Page 1 of 1

XMLRPC API

Posted: Wed Mar 11, 2009 11:30 pm
by RDNZL
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

Posted: Wed Mar 11, 2009 11:38 pm
by Snelvuur
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)

XMLRPC API

Posted: Thu Mar 12, 2009 2:09 am
by Digit
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?'.

XMLRPC API

Posted: Thu Mar 12, 2009 10:38 am
by RDNZL
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

XMLRPC API

Posted: Thu Mar 12, 2009 12:02 pm
by Digit
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

Posted: Thu Mar 12, 2009 12:21 pm
by Rene
How philosophical;-)

Rene.

XMLRPC API

Posted: Sat Mar 21, 2009 1:31 pm
by RDNZL
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.