Events and Notifications not working.

Xesyl7 years ago

On the web interface there are no events appearing for my device, as a result there are also no notifications going on.

There are events in the SQL table, but they aren't being tied to the device as far as I can tell.

mysql> select * from events order by id desc limit 5;
+------+---------------+---------------------+----------+------------+------------+------------+
| id   | type          | servertime          | deviceid | positionid | geofenceid | attributes |
+------+---------------+---------------------+----------+------------+------------+------------+
| 1220 | deviceUnknown | 2018-04-05 13:19:51 |        1 |       NULL |       NULL | {}         |
| 1219 | geofenceEnter | 2018-04-05 13:09:30 |        1 |      12750 |          1 | {}         |
| 1218 | geofenceExit  | 2018-04-05 13:07:35 |        1 |      12745 |          1 | {}         |
| 1217 | deviceOnline  | 2018-04-05 13:07:04 |        1 |       NULL |       NULL | {}         |
| 1216 | deviceUnknown | 2018-04-05 08:28:27 |        1 |       NULL |       NULL | {}         |
+------+---------------+---------------------+----------+------------+------------+------------+
5 rows in set (0.00 sec)

Logging doesn't reveal any problems either. The events are enabled in the config, and I'm not sure where else to check.

Anton Tananaev7 years ago

Have you enabled web notifications for your user?

Xesyl7 years ago

Does web notifications have to be on for email notifications to work as well (my main goal).

Notifications for the device - https://i.imgur.com/XZY4dCt.png

Anton Tananaev7 years ago

Web and email notifications are two completely different things. To get events in web app you just need web notifications.

Xesyl7 years ago

Ahh, I was expecting that the events pane on the web would list events regardless of web notifications being on or off.

I'm actually troubleshooting the email notifications as my ultimate goal. They aren't being sent at all, even though the notification test under the user is successful. I can't see any logging/evidence of the events firing an email notification anywhere.