You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Pushover API includes an optional "device" parameter, which allows the user to name the specific device(s) to send the notification to instead of all devices under the user key.
I have several devices in my pushover user account (phones, tablets, etc.) and as currently implemented, raspiBackup sends any requested notifications to ALL of them. It would be preferable to have these instead sent only to selected devices as I do with other applications where I have integrated Pushover.
Looking through the raspiBackup code, it appears this could be implemented with just 6 or 7 simple lines of code and wouldn't impact any current user configurations. If I felt capable of submitting a proper pull request, I would do so, but this is probably best left to someone who understand the code in full.
Thanks for considering this addition.
The text was updated successfully, but these errors were encountered:
Makes sense to me to add the device parameter 👍 . It's just another parameter which has to be passed to the API and a new optional pushover configuration parameter PUSHOVER_DEVICE.
If you like you can update raspiBackup right now and add here another line
--form-string "device=MYDEVICE"\
as a workaround until it's implemented in raspiBackup. Will try to get it into next upcoming release 😉
I've also added the optional ttl parameter, so that (in my case) the pushover message self-destructs after 24 hours when the next daily backup is run. It's just housekeeping, but I find that parameter useful as well.
The Pushover API includes an optional "device" parameter, which allows the user to name the specific device(s) to send the notification to instead of all devices under the user key.
I have several devices in my pushover user account (phones, tablets, etc.) and as currently implemented, raspiBackup sends any requested notifications to ALL of them. It would be preferable to have these instead sent only to selected devices as I do with other applications where I have integrated Pushover.
Looking through the raspiBackup code, it appears this could be implemented with just 6 or 7 simple lines of code and wouldn't impact any current user configurations. If I felt capable of submitting a proper pull request, I would do so, but this is probably best left to someone who understand the code in full.
Thanks for considering this addition.
The text was updated successfully, but these errors were encountered: