$rpc = new JSONRPC("http://user:pass...@127.0.0.1:82/api/"); $rpc->SetValue(38809, 18.5);
Hello,is it possible to call to an external json roc api?I want to communicate with IP-Symcon. There is an JSON API
$rpc = new JSONRPC("http://user:password@127.0.0.1:82/api/"); $rpc->SetValue(38809, 18.5);
http.exe --json POST http://user:pas...@127.0.0.1/api/ jsonrpc=2.0 method=DS_SwitchMode params:=[%1,true] id=null
--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/groups/opt_out.
Hi Christian,Talking to IP-Symcom sounds rather like a usecase of a dedicated binding instead of doing it in a rule, don’t you think?So if you would go for a binding, things would be easy; you could simply use the Jackson library and do your requests :-)Regards,Kai
Am 21 Nov 2013 um 09:05 schrieb Christian Radermacher <radermache...@googlemail.com>:
Hello,is it possible to call to an external json roc api?I want to communicate with IP-Symcon. There is an JSON API
$rpc = new JSONRPC("http://user:password@127.0.0.1:82/api/"); $rpc->SetValue(38809, 18.5);
I must give an internal ID (38809 in the Sample) and the value.Is there a solution in Rules possible?RegardsChristian