Web acces to DomotiGa

Pop your questions regarding Home automation software here.....

Web acces to DomotiGa

Postby ToBo » Sun Jul 31, 2016 3:15 am

Hello Everyone,
I am newbie with Gambas, DomotiaGA and Linux. Just discovered this nice Forum.

I like to put in every room a Pi with a small 5" Display to control the room. I will write my own small Application to see some buttons, change / see the temperature and may be dim the light.

The question is how do I communicate with the DomotiGA server and to change the values ?

I guess the best way is the JSON-RPC ?
Is this right ?

Perhaps somebody could show me an example how to program the value.get and value.set method in Gambas ?

Best regards.
Thorsten
ToBo
Starting Member
Starting Member
 
Posts: 2
Joined: July 2016

Re: Web acces to DomotiGa

Postby ToBo » Mon Aug 01, 2016 7:36 pm

Please, nobody here who can show a dummy the syntax in Gambass for the value get function?

-> {"jsonrpc": "2.0", "method": "value.get", "params": {"device_id": 39, "valuenum": 1, "command": "value"}, "id": 1} <- {"jsonrpc": "2.0", "result": {"valuenum": 1, "rawvalue": "18.00", "correction": "", "units": "°C", "log": false, "logdisplay": false, "logspeak": false, "rrd": false, "graph": false, "valuerrddsname": "", "valuerrdtype": "", "lastchanged": "2014-02-23 13:12:52", "lastseen": "2014-02-23 13:12:52", "description": "", "type_id": 0, "feedback": false, "control": false, "value": "18.00"}, "id": 1}
ToBo
Starting Member
Starting Member
 
Posts: 2
Joined: July 2016

Re: Web acces to DomotiGa

Postby wwolkers » Wed Aug 03, 2016 8:15 am

the complete json-rpc documentation is on the domotiga website: https://www.domotiga.nl/projects/domotiga/wiki/JSON-RPC

For the rest, DomotiGa itself also users json-rpc, so you can find plenty of examples in the DomotiGa source code itself.
wwolkers
Member
Member
 
Posts: 273
Joined: September 2008
Location: Netherlands


Return to Questions & Discussions Forum

Who is online

Users browsing this forum: No registered users and 1 guest