News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

RPC Plugin overview

Started by hari, July 15, 2010, 04:01:58 PM

Previous topic - Next topic

hari

The actual version of the RPC plugin supports the following requests (assuming 127.0.0.1 for the IP):

http://127.0.0.1:8088/status

ID|Room|Category|Template|Description|State
1|0|7|7|CORE|
2|0|1|1|DCERouter|
3|0|14|10|File Grids Plug-in|
4|0|61|27|General Info Plug-in|
5|0|68|31|Climate Plug-in|
6|0|66|9|Datagrid Plug-in|
7|0|78|39|Infrared Plug-in|
8|0|67|32|Lighting Plug-in|
9|0|56|12|Orbiter Plug-in|
10|0|15|2|Media Plug-in|
11|0|69|34|Telecom Plug-in|
12|0|99|52|Event Plug-in|
13|0|70|33|Security Plug-in|
14|0|159|1809|Plug And Play Plug-in|
15|0|65|26|App Server|
16|0|156|1808|HAL|
17|0|60|1977|UPnP Server|
18|0|88|45|Asterisk|
19|0|101|57|Text To Speech|
20|0|81|1754|ZWave|
21|0|82|1820|ZWave Embedded Climate Interfa|
22|0|80|1922|ZWave Embedded Security Interf|
23|0|4|2032|RPC Plugin|
336|2|73|38|Wohnzimmer|OFF/0
338|2|73|38|Lava Lampe|ON/100


http://192.168.80.1:8088/rooms

ID|Description
1|Flur
2|Wohnzimmer
3|Schlafzimmer


http://192.168.80.1:8088/jsondata?callback=mycallback

mycallback (
{ "devices": [
{ "id": 1, "room": 1, "category": 7, "template": 7, "description": "CORE", "state": "" },
{ "id": 2, "room": 1, "category": 1, "template": 1, "description": "DCERouter", "state": "" },
{ "id": 3, "room": 1, "category": 14, "template": 10, "description": "File Grids Plug-in", "state": "" },
{ "id": 4, "room": 1, "category": 61, "template": 27, "description": "General Info Plug-in", "state": "" },
{ "id": 5, "room": 1, "category": 68, "template": 31, "description": "Climate Plug-in", "state": "" },
{ "id": 6, "room": 1, "category": 66, "template": 9, "description": "Datagrid Plug-in", "state": "" },
{ "id": 7, "room": 1, "category": 78, "template": 39, "description": "Infrared Plug-in", "state": "" },
{ "id": 8, "room": 1, "category": 67, "template": 32, "description": "Lighting Plug-in", "state": "" },

[...]

{ "id": 336, "room": 2, "category": 73, "template": 38, "description": "Wohnzimmer", "state": "OFF/0" },
{ "id": 338, "room": 2, "category": 73, "template": 38, "description": "Lava Lampe", "state": "ON/100" },
] } );


switch on device 338 (off is also supported):
http://192.168.80.1:8088/control?device=338&command=on

set level 50 for device 338:
http://192.168.80.1:8088/control?device=338&command=setlevel&parameter=50

more to come..
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

Megart.vlad

It is very interesting. The plug-in needs to be install for use?
I search a way of creation the user interface for simple users only, without administrations.

hari

Quote from: Megart.vlad on July 29, 2010, 08:44:07 AM
It is very interesting. The plug-in needs to be install for use?
I search a way of creation the user interface for simple users only, without administrations.
you need to create a new device below the core, select the RPC plugin in the device template selector and make sure that the RPCPlugin.so file resides in the pluto/bin directory

br Hari
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

pw_ktp

Quote from: hari on July 29, 2010, 10:24:29 AM
Quote from: Megart.vlad on July 29, 2010, 08:44:07 AM
It is very interesting. The plug-in needs to be install for use?
I search a way of creation the user interface for simple users only, without administrations.
you need to create a new device below the core, select the RPC plugin in the device template selector and make sure that the RPCPlugin.so file resides in the pluto/bin directory

br Hari

Hi I really want to try this out - it is in the 710 release ? I using 710 as the lighting wizards wasnt working for me in 810.

If not how can install and use it.??

also how can i control things like lights from the command line??

derailed-rhouse isnt working for me, - is there any other methods ? php , perl methods of control??

thank you.

hari

No, not in 0710. Available in the standalone dce variant and 0810.
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

Megart.vlad

Can I start Scenarios from Web with help of RPC plugin?

hari

not yet, but this will follow soon..
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

Megart.vlad

#7
Quote from: hari on July 29, 2010, 10:24:29 AM
Quote from: Megart.vlad on July 29, 2010, 08:44:07 AM
It is very interesting. The plug-in needs to be install for use?
I search a way of creation the user interface for simple users only, without administrations.
you need to create a new device below the core, select the RPC plugin in the device template selector and make sure that the RPCPlugin.so file resides in the pluto/bin directory

br Hari

I install plugin, but RPCPlugin.so file is not resides in the pluto/bin directory.
Can I install it's manually?

hari

Quote from: Megart.vlad on September 06, 2010, 04:15:53 PM
Quote from: hari on July 29, 2010, 10:24:29 AM
Quote from: Megart.vlad on July 29, 2010, 08:44:07 AM
It is very interesting. The plug-in needs to be install for use?
I search a way of creation the user interface for simple users only, without administrations.
you need to create a new device below the core, select the RPC plugin in the device template selector and make sure that the RPCPlugin.so file resides in the pluto/bin directory

br Hari

I install plugin, but RPCPlugin.so file is not resides in the pluto/bin directory.
Can I install it's manually?


did you install the package?

possy: did we package that already?

br Hari
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

Marie.O

If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]