XMLRPC API

Forum about Domotiga Open Source Home Automation for Linux.

Moderator: RDNZL

Post Reply
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

XMLRPC API

Post 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.
User avatar
Snelvuur
Forum Moderator
Forum Moderator
Posts: 3156
Joined: Fri Apr 06, 2007 11:01 pm
Location: Netherlands
Contact:

XMLRPC API

Post 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)
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

XMLRPC API

Post 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?'.
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

XMLRPC API

Post 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
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

XMLRPC API

Post 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 :-)
User avatar
Rene
Global Moderator
Global Moderator
Posts: 1689
Joined: Wed Oct 08, 2008 3:54 pm
Location: Netherlands

XMLRPC API

Post by Rene »

How philosophical;-)

Rene.
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

XMLRPC API

Post 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.
Post Reply

Return to “DomotiGa Forum”