Have build a simple XMLRPC server inside domotiga (written in Gambas ofcourse).
So webpages and programs (clients) can query and set things.
I only have to program the methods to do this.
Now which one do we need?
domotiga.setdevice
domotiga.getdevice
domotiga.listdevices
domotiga.gethousestatus
domotiga.sethousestatus
domotiga.speak
domotiga.playsound
domotiga.getlastcaller
Anyone have a list of these, I was thinking more home automation software have an xmlrpc api builtin, but cannot find one LOL...
Suggestions are welcome.
Now I only have some system and test methods:
----
Sending the following request:
<?xml version="1.0"?>
<methodCall>
<methodName>system.listMethods</methodName>
<params>
</params>
</methodCall>
Debug info of server data follows...
---GOT---
HTTP/1.1 200 OK
Connection: close
Content-Length: 533
Content-Type: text/xml
Server: Gambas RPC Server
<?xml version="1.0"?>
<methodResponse>
<params>
<param>
<value>
<array>
<data>
<value>
<string>system.listMethods</string>
</value>
<value>
<string>system.methodHelp</string>
</value>
<value>
<string>system.methodSignature</string>
</value>
<value>
<string>examples.ping</string>
</value>
<value>
<string>examples.getStateName</string>
</value>
</data>
</array>
</value>
</param>
</params>
</methodResponse>
---END---
HEADER: connection: close
HEADER: content-length: 533
HEADER: content-type: text/xml
HEADER: server: Gambas RPC Server
---
Regards,
Ron.
XMLRPC API
Moderator: RDNZL
- Snelvuur
- Forum Moderator
- Posts: 3156
- Joined: Fri Apr 06, 2007 11:01 pm
- Location: Netherlands
- Contact:
XMLRPC API
I think best is to start "somewhere" along the way you will find what is needed though, you can always add more.
// Erik (binkey.nl)
// Erik (binkey.nl)
XMLRPC API
I use something similar for communication between Pronto, iPod, website with my Domotica app.
New functionality is added on demand, not as in 'what shall i make today?'.
New functionality is added on demand, not as in 'what shall i make today?'.
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
XMLRPC API
I could bump into a showstopper, something that I need and is not possible with the current xmlrpc protocol/server, I rather find that out now, then later.
I have not done any studies beforehand...
The fact that almost no home automation program has an xmlrpc api worries me
Regards,
Ron
I have not done any studies beforehand...
The fact that almost no home automation program has an xmlrpc api worries me

Regards,
Ron
XMLRPC API
I wouldn't worry to much about that, just follow your instinct - it has brought you this far, so if you face any new challenges in the future, you can handle them 

XMLRPC API
How philosophical;-)
Rene.
Rene.
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
XMLRPC API
Thanks Dr. Robert [8D]
Your advise resulted in me building this.
<b>DomotiGa XML-RPC API Documentation Version 0.01</b>
You can find it here if anyone is interested.
http://www.domotiga.nl/projects/domotig ... ga/XML-RPC
Regards,
Ron.
Your advise resulted in me building this.
<b>DomotiGa XML-RPC API Documentation Version 0.01</b>
You can find it here if anyone is interested.
http://www.domotiga.nl/projects/domotig ... ga/XML-RPC
Regards,
Ron.