Selective Notifications from Python/API/JSON
Posted: Thursday 15 February 2018 14:55
Hello,
As far as I know In python we have only one way to send notifications:
What I would like to be able to select which notification-systems must be activated. Basically just like it is possible to configure this for switches/sensors in the GUI after choosing the "notification" button.
So the command would be something like:
So an additional parameter, which then contains one or more systems from the list: clickatell, email, http, kodi, lms, nma, prowl, pushalot, pushbullet, pushover.
This is already implemented via LUA,
can we have the same on python via JSON/API or by exporting notification parameters (to avoid end user intervention to be required)?
As far as I know In python we have only one way to send notifications:
Code: Select all
use urllib to fetch
http://127.0.0.1:8080/json.htm?param=sendnotification&type=command&subject=<subject>&body=<body>
So the command would be something like:
Code: Select all
http://127.0.0.1:8080/json.htm?param=sendnotification&type=command&system=notificationsystems&subject=<subject>&body=<body>
This is already implemented via LUA,
can we have the same on python via JSON/API or by exporting notification parameters (to avoid end user intervention to be required)?