Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure device commands when events occur #4714

Open
Elsensee opened this issue Jul 7, 2021 · 0 comments
Open

Configure device commands when events occur #4714

Elsensee opened this issue Jul 7, 2021 · 0 comments

Comments

@Elsensee
Copy link
Contributor

Elsensee commented Jul 7, 2021

Is your feature request related to a problem? Please describe.
A device can be configured to send its location every x minutes. To save battery it might be preferable to have a higher interval when inside of a geofence (because for example one knows, that in that geofence the device has no GPS signal anyway or there won't be much movement) than outside of a geofence (because that's where the movement happens). To achieve this, one would have to send commands manually to the device when the device is entering a geofence vs when it's exiting it.

Describe the solution you'd like
Since Traccar has the information about geofences and can communicate with the device, it would be a fantastic idea to have a automatic "IFTTT"-like system. So if some event happens (low power, geofence entering/exiting, whatever), actions can be configured. (Send a command to the device)

This could be solved by writing its own component, which is hooked into the location processing pipeline.

Describe alternatives you've considered

  1. The system could be hooked into the notification system, which is already pretty configurable in that it can differentiate the general type of notification and then send any notification that is configured. In this case the notification channel could also be a command sent to the device.
  2. This might work with webhooks which then feedback into the traccar API (because the connection to the device is in traccar, another way will probably not work due to constraints on the mobile connection -> CGNAT at the provider level), but that wouldn't be super user-friendly.

Additional context
Being able to send commands on some events could extend the functionality of devices and add a wide range of configurability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant