Hello,
I have a problem configuring a calendar for Notifications.
What I am opting to do is:
No. 1 Do a notification via email during business hours only.
No. 2 Do notification via sms only for " out of office hours"
I have prepared two calendars for this purpose:
Non Labor Hours ICS (ID=5):
BEGIN:VCALENDAR
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
VERSION:2.0
BEGIN:VEVENT
CREATED:20221109T120525Z
LAST-MODIFIED:20221109T120657Z
DTSTAMP:20221109T120657Z
UID:111d6966-7744-4773-98f3-79bd578fd19e
SUMMARY:Non Labor Hours 17:01 - 00:00
RRULE:FREQ=DAILY;BYDAY=MO,TU,WE,TH,FR
DTSTART;TZID=Europe/Sofia:20221109T170100
DTEND;TZID=Europe/Sofia:20221109T000000
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR
and Labor Hours ICS (ID=6):
BEGIN:VCALENDAR
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
VERSION:2.0
BEGIN:VEVENT
CREATED:20221109T114504Z
LAST-MODIFIED:20221109T115109Z
DTSTAMP:20221109T115109Z
UID:1e80926e-80e6-4fc9-a437-be437a546bee
SUMMARY:Labor Hours ICS
RRULE:FREQ=DAILY;BYDAY=MO,TU,WE,TH,FR
DTSTART;TZID=Europe/Sofia:20221109T080000
DTEND;TZID=Europe/Sofia:20221109T170000
TRANSP:OPAQUE
SEQUENCE:1
X-MOZ-GENERATION:1
END:VEVENT
END:VCALENDAR
I have made two Notifications for which I have also added the corresponding calendars:
id |
type |
attributes |
always |
calendarid |
notificators |
8 |
alarm |
{"alarms": "temperature"} |
false |
6 |
mail |
9 |
alarm |
{"alarms": "temperature"} |
false |
5 |
sms |
The problem is that the two notifications are triggered simultaneously.
I was expecting that when the event occurs I would only get an email, but the SMS is triggered as well.
What version of Traccar are you using?
Hi, Anton
Implementation-Version: 5.3
I would recommend to upgrade first. Let us know if it solves the issue.
Hi, Anton
Will it be enough to just replace tracker-server.jar?
I can confirm that, after updating Traccar to version 5.4 the configuration works as expected.
The problem is clarified, thanks!
Hello,
I have a problem configuring a calendar for Notifications.
What I am opting to do is:
No. 1 Do a notification via email during business hours only.
No. 2 Do notification via sms only for " out of office hours"
I have prepared two calendars for this purpose:
Non Labor Hours ICS (ID=5):
and Labor Hours ICS (ID=6):
I have made two Notifications for which I have also added the corresponding calendars:
The problem is that the two notifications are triggered simultaneously.
I was expecting that when the event occurs I would only get an email, but the SMS is triggered as well.