Dreambox

This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
Forum rules
This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
Vaillant
Posts: 105
Joined: Sun Nov 06, 2011 7:56 am
Location: Belgium

Dreambox

Post by Vaillant »

Hello,

I recently got a Dreambox and I would like to control it using Indigo.

At the moment I use CURL to send a http-request. Now i would like to put the return answer from Dreambox in a variable in Indigo. I found one post with the same sort of question but sadly with no response.

Could someone help me with how to do this in Applescript or Python? I know there are some references to NOAA Weather Script as an example for how to do this. But it is to complex for me.

So for example:

Request:
http://dreambox/web/vol

Result:
<?xml version="1.0" encoding="utf-8"?>
<e2volume>
<e2result>True</e2result>
<e2resulttext>state</e2resulttext>
<e2current>5</e2current>
<e2ismuted>False</e2ismuted>
</e2volume>

Is there a simple scrip I can use?
Any help on this is appreciated.

Greetings,
Adrian
User avatar
matt (support)
Site Admin
Posts: 21542
Joined: Mon Jan 27, 2003 1:17 pm
Location: Texas
Contact:

Re: Dreambox

Post by matt (support) »

Hi Adrian,

Take a look at the source for both the NOAA Weather and WeatherSnoop plugins. They both get XML from an IP and parse it.
Image
Locked

Return to “Extending Indigo with Plugins and Python”