Page 1 of 1

python JSON interface for changedDevices

Posted: Friday 23 December 2016 11:31
by wile
Hi,
in LUA there is the possibility to get only the status of changed devices by using devicechanged['xxx'].

Is there something similar possible with the http/JSON interface and python?

Thanks
wile

Re: python JSON interface for changedDevices

Posted: Friday 23 December 2016 11:48
by Egregius
The developer console of a good browser reveales a lot...

This json call only shows devices updated since a unixtimestamp:

Code: Select all

http://192.168.2.10:8084/json.htm?type=devices&used=true&lastupdate=1482489967
Another approach could be to use the lua part of my pass2php script at https://github.com/Egregius/LUA-Pass2PH ... ss2php.lua
Then you send the devicechanged table as a argument to a command.

Re: python JSON interface for changedDevices

Posted: Friday 23 December 2016 12:19
by wile
Great, thanks!