Events table entry doesn't happen all the time

Malkit Singh8 years ago

Hi Anton,
I am getting this weird problem. Sometimes I get entry into events table when the engine is turned on or off but sometimes ( most of the times ) I don't.
I am using version 3.9 on the windows machine. And here is config snippet from my config file

    <entry key='event.enable'>true</entry>
    <entry key='event.overspeedHandler'>true</entry>
    <entry key='event.overspeed.notRepeat'>true</entry>
    <entry key='event.motionHandler'>true</entry>
    <entry key='event.geofenceHandler'>true</entry>
    <entry key='event.alertHandler'>true</entry>
    <entry key='event.ignitionHandler'>true</entry>
    <entry key='event.statusHandler'>true</entry>
    <entry key='event.maintenanceHandler'>true</entry>

Actually, I made an app in which user can set push notifications for events like, engine on/off, device starts moving, stops moving etc. And in the back end, I have peace of code which gets triggered whenever an entry is made in events table by the Traccar server. Entries in this table are coming at the random time, these are not happening real time what could be the reason of this?
Do I need to configure device too for these events? Do I need to configure anything on the server end?
I am using LK206 and LK210 device.

Anton Tananaev8 years ago

Events should be coming in real time. If you have some script for push notifications, I would recommend to use event forwarding instead of checking database entries.