Query about After Hours Report Configuration in Traccar

geo4 days ago

Hello community, I need help configuring automatic reports to capture events outside working hours.

Report Objective
I need to capture the following events during these hours:
Monday to Friday: 18:00 to 08:00 the next day
Saturdays and Sundays: Full 24 hours
Events to capture:
Vehicle movements
Stops
Speed violations
Any other activity during these periods
I know I can generate daily reports, but I specifically need a weekly consolidated report that includes:
All after-hours activities from Monday to Friday
Full weekend activities
All events compiled into a single weekly report

Attempts Made

  1. Using ICS File
    I've tried with a custom ICS file:
    Issue: While I can get daily reports working, I'm struggling to consolidate them into a weekly format that includes all the periods I need.
BEGIN:VCALENDAR
VERSION:2.0
BEGIN:VEVENT
UID:00000000-0000-0000-0000-000000000001
DTSTART;TZID=America/Caracas:20240101T180000
DTEND;TZID=America/Caracas:20240101T235959
RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
SUMMARY:After Hours Evening
END:VEVENT
BEGIN:VEVENT
UID:00000000-0000-0000-0000-000000000002
DTSTART;TZID=America/Caracas:20240102T000000
DTEND;TZID=America/Caracas:20240102T080000
RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
SUMMARY:After Hours Morning
END:VEVENT
END:VCALENDAR
  1. Notification Alternative
    Would it be possible to configure this using Traccar's notification system?
    Create notifications for each period
    Link notifications to a calendar
    Generate a consolidated weekly report

Questions
What's the best way to implement this weekly consolidated report?
Custom ICS?
Notification system?
Combination of both?

If using notifications:
How do I configure weekly consolidation?
How do I ensure all events are captured in a single report?
How do I handle the transition between daily periods?

If using ICS:
How do I modify the current daily format to create weekly reports?
How do I include full weekends?
How do I ensure all periods are included in one report?
Has anyone successfully configured a weekly consolidated report that includes multiple daily periods? Any guidance would be greatly appreciated.

Anton Tananaev4 days ago

It's not possible to generate a weekly report like this.