calendar_resource_management icon indicating copy to clipboard operation
calendar_resource_management copied to clipboard

Vehicle resource

Open manu-p opened this issue 4 years ago • 5 comments

Hi,

There's a mistake in the order of parameters in calendar-resource:vehicle:create as show in README.md. It is written:

uid* building_id* display_name* email* contact_person_user_id* vehicle_type* vehicle_make* vehicle_model* is_electric range seating_capacity

But it is:

uid* building_id* display_name* email* vehicle_type* vehicle_make* vehicle_model* is_electric range seating_capacity contact_person_user_id*

If I understand well, it just needs to create a building, and then create a vehicle attached to the building. OK. Then I read:

The resources will be added to the calendar app via cron.

Which crontab? Didn't find anything in www-data crontab, nor in any other /etc/cron.* directories. In other words, how long does it take to let users choose the new vehicle as a resource?

I can see it is populated in the oc_calresources_vehicles table, is there anything else to do to "publish" this resource?

manu-p avatar Nov 23 '21 11:11 manu-p

I give the answer I found somewhere else.

The resources will be added to the calendar app via cron.

It's cron.php in the crontab of www-data or whatever user is used for the web server (apache2, nginx, ...)

manu-p avatar Nov 24 '21 08:11 manu-p

Indeed. It's a background job in Nextcloud https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/background_jobs_configuration.html

ChristophWurst avatar Nov 24 '21 08:11 ChristophWurst

Similar confusion for calendar-resource:building:create, documentation says:

display_name* description address wheelchair_accessible

but in the example, the address is at position 2 rather than 3:

php occ calendar-resource:building:create "SpaceZ office Berlin" "Testweg 23, 12345 Berlin, Germany" ""

which is correct here?

xeruf avatar Jul 20 '22 08:07 xeruf

I see the resource room in my nextcloud calender. But i didn't see the vehicle resources. Where can I select these and add them to my appointment?

LG

sh3d0w94 avatar Sep 11 '22 13:09 sh3d0w94

May I second the request, where can I add a pool car to a calender event?

marneu avatar May 23 '24 13:05 marneu

Regarding the readme: This has been solved in the meantime and the readme was adjusted.

Regarding the vehicle: I just created a vehicle and am able to find it by its display name in the resource tab after adding it. Please keep in mind that the cron job has to run at least once after adding a resource/vehicle. That can take up to an hour.

I'm closing this issue because the original issue has been solved. Please open a new issue if you discover a bug or have feedback.

st3iny avatar May 29 '24 10:05 st3iny