Selective Notifications from Python/API/JSON Topic is solved

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
User avatar
ycahome
Posts: 248
Joined: Sunday 12 February 2017 10:55
Target OS: Linux
Domoticz version: lat Beta
Contact:

Selective Notifications from Python/API/JSON

Post 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)?
User avatar
ycahome
Posts: 248
Joined: Sunday 12 February 2017 10:55
Target OS: Linux
Domoticz version: lat Beta
Contact:

Re: Selective Notifications from Python/API/JSON

Post by ycahome »

Just answered myself by reading the following post:


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

Who is online

Users browsing this forum: No registered users and 1 guest