Page 1 of 1

Selective Notifications from Python/API/JSON

Posted: Thursday 15 February 2018 14:55
by ycahome
Hello,

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>
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:

Code: Select all

http://127.0.0.1:8080/json.htm?param=sendnotification&type=command&system=notificationsystems&subject=<subject>&body=<body>
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)?

Re: Selective Notifications from Python/API/JSON

Posted: Monday 19 February 2018 8:06
by ycahome
Just answered myself by reading the following post:


http://www.domoticz.com/forum/viewtopic ... 31&t=14884