Extra API special for Python programmers

Python and python framework
Post Reply
User avatar
Xorfor
Posts: 83
Joined: Sunday 03 December 2017 23:37
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Extra API special for Python programmers

Post by Xorfor » Thursday 17 May 2018 21:33

During development of Python plugins, I got requests if it was possible to send notifications, access user variables, etc.

For that reason I started to write an global API in Python based on Domoticz API/JSON URL's which can be used in Python Plugins. At this moment it is possible to:
  • Create, update, delete and check existance User variables
  • Send Notifications
  • Execute server commands, like Reboot, Shutdown, and Log a message in Domoticz log
  • Get all kind of properties from Domoticz, like sunset, sunrise, Domoticz version, update available, etc.
  • Create, update, delete and check existance Hardware
  • Devices is still under development. Look at the code for the methods and properties.
Look at the Wiki for more information. Also look at the test scripts for examples to use this api.

Please feel free to use this and add the missing functionality.

Source can be found at: Xorfor/Domoticz-API

zak45
Posts: 481
Joined: Sunday 22 January 2017 12:37
Target OS: Windows
Domoticz version: V3.9056
Contact:

Re: Extra API special for Python programmers

Post by zak45 » Friday 18 May 2018 11:11

Thanks, great idea to not re-invent the Wheel ;-)
will take a look.

febalci
Posts: 306
Joined: Monday 03 July 2017 19:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Extra API special for Python programmers

Post by febalci » Friday 18 May 2018 12:26

Wow, this solves all problems l had with plugin development. Thanks a lot Xorfor...

Post Reply

Who is online

Users browsing this forum: olicot and 2 guests