custom webserver script to emulate Automatic push notifications

Tom Lee5 years ago

I found myself wanting Pushover notifications for Traccar on stop/start events and ultimately moved most of the relevant logic into an external script (I am much better at Python than Java!). Sharing here in case anyone else has a use for it.

https://github.com/sbma44/traccar-event-handler

naxus5 years ago

Isn't pushover supported natively now?

Anton Tananaev5 years ago

Note that the latest official Traccar release does support Pushover notifications:

https://www.traccar.org/blog/traccar-4-9/

Tom Lee5 years ago

Ha! Looks like I just missed that functionality! Well, I'll add that my script does a few other things, in the hopes that it's a useful starting point for others:

  • fetches static map images for those Pushover notifications via the Mapbox Static Images API
  • reverse geocodes stop addresses for same
  • publishes status to an MQTT server
  • uploads completed trips as GeoJSON traces to S3