Common xapflash configuration file for jogglers

31 replies [Last post]
brett
Offline
Providence, United States
Joined: 9 Jan 2010

I was thinking about the problem of having the HAH system and multiple jogglers and keeping their configuration all in sync and I have a solution.

The HAH system will contain the configuration file for the joggler as it already has a webserver so it makes this process easier.   The URL http://x.x.x.x/live maps to the location /etc/www on the HAH.

A Joggler will would to be configured like this (not tested btw) assuming the 192.168.1.138 is the HAH system.

config.xml

<joggler>
   <version>0.5</version>
   <name>Joggler</version>
   <usejogglerapi>auto</userjogglerapi>
   <configfilelocation>http://192.168.1.138/live/</configfilelocation>
   <configfile>xapconfig.xml</configfile>
   <iserver>
    <port>9996</port>
    <ip>192.168.1.138</ip>
    <password>xxx</password>
   </iserver>
</joggler>

As I have no way of testing this I'd be interested how others get on, it should work.

Brett

EJ-Ambient
Offline
Ringwood, United Kingdom
Joined: 5 Aug 2011
Hangs on my Joggler

Hi Brett

Tried this out but all I get is a black screen with a dim xAP logo.....also, on checking the file hasn't been updated on the Joggler....the new file is on my HAHHub in the /etc/www/..... I've changed my instance to HAH01 and changed the UID's on the instance screen as well - will that be what's affecting me?

Still able to exit back to the main Joggler screen with the home button....

SWMBO is out for the night so I can play!!!

All the best

EJ

brett
Offline
Providence, United States
Joined: 9 Jan 2010
A few suggestions about the xapflash black screen

The <configfilelocation> tag MUST have a trailing / as I have in my example above. The xapflash.swf application appends the contents of <configfilelocation> and <configfile> together to form a URL.

Use a browser to verify that <configfilelocation> + <configfile> can be loaded via a browser.

ie http://x.x.x.x/live/xapconfig.xml 

All of the graphical asset referenced by the xapconfig.xml file must already be located on the joggler where the xapFlash.swf file is located.  Failure to do this will result in a BLACK screen on startup.  The xapFlash application is not very forgiving when it can't find an asset (.png, .jpg etc)

Alternatively you could place all the assets into /etc/www on the HAH but as flash space is limited and  they would be retrieved over the network to the joggler I woudn't go this route.

Brett

EJ-Ambient
Offline
Ringwood, United Kingdom
Joined: 5 Aug 2011
No go!

The <configfilelocation> tag MUST have a trailing / as I have in my example above - it does...

Use a browser to verify that <configfilelocation> + <configfile> can be loaded via a browser. - it can be loaded and viewed...

All of the graphical asset referenced by the xapconfig.xml file must already be located on the joggler where the xapFlash.swf file is located. - they are....if I use the same <configfile> local to the Joggler I get no error

The only difference/wrinkle is I'm running iserver off the Joggler I'm trying to update....!!

EJ

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Back to basics

I would go back to basics construct a VERY SIMPLE xapconfig.xml file that uses NO graphics at all.  I still feel this is the root cause.   Dump your VERY complex configuration file and start simple.

Configure one Button that's it - keep it simple and work upwards (and no external graphics)

Brett

EJ-Ambient
Offline
Ringwood, United Kingdom
Joined: 5 Aug 2011
Still no joy...

I've cut the xapconfig.xml right down (still using the button images - do you want me to remove them as well?) and exactly the same thing occurs....

1. Put the config file onto the joggler - points at the HAHHub for the xapconfig.xml file

2. Remove any xapconfig.xml from the joggler

3. Re-boot the joggler - back to the joggler menu

4. press the xAP button - screen goes blank with a dim xAP logo.....hung!

5. Hit the Home button to exit xAP....look on joggler and nothing has been downloaded!

6. Re-instate original (local) config and xapconfig files - reboot - xAP works fine...

I've got iserver running on both the Joggler and the HAHHub.....how do I turn off the iserver on the Joggler?

EJ

brett
Offline
Providence, United States
Joined: 9 Jan 2010
I mentioned that ANY graphic

I mentioned that ANY graphic that can't be resolved will result in a black screen and a hung state so you still included a button image? WHY? This kind of defeats the purpose of the simple test.

The Joggler when referencing a remote configuration will NOT download it to the local filesystem, its simply slurped into memory and parsed on the Joggler.  Point 5 will never be true even once its working.

The iServer running on the joggler will not be having any adverse affect, however you can disable this by removing its startup script from /etc/init.d/boot.d on the joggler.  Simply renamaing it so it does not begin with "S" will do.  Preferable you don't use a uppercase "K" either as this means "KILL" (even thou its not running it just looks confusing) - S = START btw

If you want to see what is going on over your network and what files the xapflash application is trying to reach out for run WIRESHARK on your PC and then examine the traffic.

It might be worth talking to KevinH, this is not my application and I don't know its finer points.

Brett

EJ-Ambient
Offline
Ringwood, United Kingdom
Joined: 5 Aug 2011
Still no joy...

All the graphics resolve locally - do they need to be in the /live/ instead.....

Anyway I removed ALL references to images and still get the black screen of death BSoD!

I de-instanced my main HAHHub, so it's a plain vanilla setup now (I've instanced the remote HAHHub instead)..... same-same BSoD

I've also removed the iServer from the Joggler..... BSoD

Now, however, I can no longer get any data displayed on the buttons when xapconfig is local!  This might be a red herring but I thought it best to mention it....

I'll give KevinH a nudge as well -

Thanks for the help....

EJ

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Very sucky.

What happens if you setup a local browser to load a LOCAL .swf file and its config.file points at the HAH?

It might give some better errors than the joggler perhaps.

BSoD - It certainly isn't very helpful about why it won't load is it?

Error handling - often overlooked area. I was guilty of this in my first couple of HAH firmware revs too (I'm talking VERY early here like rev < 50)

Without any images it stil dies?!  WTF.  Something's just not right here its almost as if its NOT even load the xapconfig.xml file then.

Did you wireshark the network to verify that it was at last reaching out to get this?

Brett

EJ-Ambient
Offline
Ringwood, United Kingdom
Joined: 5 Aug 2011
Bear with me!

What happens if you setup a local browser to load a LOCAL .swf file and its config.file points at the HAH? I'm running Windows Vista with Firefox.....what do I need to do? (Sorry if this is elementary - but I'm struggling a bit!!!)

Without any images it stil dies?! - Yeah, really WTFF!

Installed WireShark - getting to grips with it a bit.....the Jogglers don't appear to be reaching out for the file at all! There's no interaction between the Joggler IP and the HUB IP!

Also running xFx and there's lots of Invalid Messages from the 127.0.0.1:50499 stating

Error Message: Invalid name/value pairing. A value of 0 for the Device ID is reserved for future use
Message Line#: 5 - uid=FF000000
Received From: 127.0.0.1:50449

xap-hbeat
{
v=12
hop=1
uid=FF000000
class=xap-hbeat.alive
source=dbzoo.livebox.Plugboard
interval=60
port=3643
}

Is this owt?

Also: The HUB iServer is inconsistent ..... but the Joggler iServer is solid!  For eg.. I can set up Joggler2 for local xapconfig and iServer on HUB...all works fine....then reset for iServer on Joggler and re-boot...all works fine....then reset back to iServer on HUB and re-boot.....no data/can't see the iServer...reset back to Joggler, re-boot...all works fine!!!

Also:  One Joggler (the one I've setup as the iServer) will NOT work with the HUB iServer at all!

Going for a pint....hear from you soon!

EJ

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Plugboard should be, by

Plugboard should be, by default uid=FF00D800, in that xap message you posted.

Plugboard should not be BAULKING like that - if there is a default UID configured then it will use it without sanity checking. Verify /etc/xap-livebox.ini in the [plugboard] section for uid=0 (or something non-sensible) if you see it there is your issue.

If the Joggler is not reaching over the network then WOAH, ok something is screwing up in the configuration file perhaps so that is breaking it.

Its a sad day at this point we really need Kevin to chime in with some pointers.

The iServer difference is hard to explain that sounds more like a configuration issue.  BOTH are built using the same source code.

I hope that pint settled your nerves a little.

EJ-Ambient
Offline
Ringwood, United Kingdom
Joined: 5 Aug 2011
Deeper and deeper

So....I'm getting to grips with xFx viewer and there's a couple of things showing up..

1) plugboard does NOT activate on a HUB which has been instanced (everything else looks OK and appears on the list of elements when I expand the instanced HUB's entry - see filename+HAH11)

2) UKUSA-xapflash-joggler is sending several requests for non-existent rf/sensors (see filename+UKUSA)

Files should be attached.....

AttachmentSize
xFx view 20110124 - HAH11.jpg 66.42 KB
xFx view 20110124 - UKUSA.jpg 57.79 KB
brett
Offline
Providence, United States
Joined: 9 Jan 2010
Point 1 - Known defect ->

Brett

EJ-Ambient
Offline
Ringwood, United Kingdom
Joined: 5 Aug 2011
More reading...

Thanks for your sterling efforts....and (hopefully) limitless patience....

Right - point 1, more reading for me....

Point 2 - should I be looking for a UKUSA.ini file somewhere? Still fumbling my way round the HAH, sorry..

I'm trying to post an accumulated kWh value to a Pachube ID, and I'd like it to go in as ID=0, but it won't appear....here's the code (with thanks to Garry for the original)...

function CumulativeDataPost1()
    CumulativeData = string.format([[xap-header
{
class=pachube.update
target=dbzoo.livebox.pachube
}
datastream
{
id=4                             <<<< All ID's upto 10 work fine (maybe more - just no time)
tag=DailyKwH
Value=%s
}]], CumulativeKwH)

xap.sendShort(CumulativeData)
end

function CumulativeDataPost0()
    CumulativeData = string.format([[xap-header
{
class=pachube.update
target=dbzoo.livebox.pachube
}
datastream
{
id=0                             <<<< DOES NOT WORK
tag=DailyKwH
Value=%s
}]], CumulativeKwH)

xap.sendShort(CumulativeData)
end

Is it possible to send to ID=0?

Thanks for your time!

Elliot

brett
Offline
Providence, United States
Joined: 9 Jan 2010
I explicity disallow

I explicity disallow ID=0.

Why?

Well because the following all get converted to 0 so I hard to say if this is VALID or INVALID.

id=hello    *invalid*   but  atoi("hello") = 0
id=*    *invalid*   but  atoi("*") = 0
id=0         *valid*    but atoi("0") = 0

When casting a string back to a number you use the ASCI TO INTEGER (atoi) call but an invalid string will also result in 0.   So to make error handling simpler I disallow ANY and ALL strings that return 0.

I could put in additional code so check if the first character is a CHARACTER "0" and the length of the line is 1 and allow this as a special case I guess.... but this was more work and I didn't think it would matter at the time.

See for yourself.

http://code.google.com/p/livebox-hah/source/browse/trunk/userapps/hah/xa...

Brett

EJ-Ambient
Offline
Ringwood, United Kingdom
Joined: 5 Aug 2011
Non numeric ID's

That's well argued, but, aren't there also users that use non-numeric Pachube ID's?  Won't they atoi = "0" so they can't post to those fields?  Not that I'm complaining - the amount of work you've put into this, you can lay down the law......but can we have numeric ID=0, please!!!

brett
Offline
Providence, United States
Joined: 9 Jan 2010
I raised a defect

Perhasp Karl can have a look at this one :)

http://code.google.com/p/livebox-hah/issues/detail?id=36

EJ-Ambient
Offline
Ringwood, United Kingdom
Joined: 5 Aug 2011
Oops!

I've tried to remove the references to rf/sensors from the xapconfig.xml, but all I've done is made the UKUSA.xAPFLASH.joggler go into overdrive and start issueing requests every second...what've I done?  Where do I change it?

See attached...the message rate got up to 1500 before I pulled the plug on the joggler!!

Help, please!!!

AttachmentSize
xFx view 20110124 - UKUSA.jpg 59.57 KB
EJ-Ambient
Offline
Ringwood, United Kingdom
Joined: 5 Aug 2011
Bit the bullet

And the moral of the story is - don't muck with stuff that works, particularly when you've come back from the pub after several refreshing pints!

I bit the bullet this morning - reset all back to plain vanilla - went through the xapconfig.xml 'carefully' and removed any reference to items not actually available in the system - loaded it onto the iServer Joggler and rebooted......and it all works as it should (locally - not fixed the remote xapconfig.xml from the HAHHub, yet) - except for the one Invalid Message (on xFx) which comes up every 60 seconds and looks like...

Error Message: Invalid name/value pairing. A value of 0 for the Device ID is reserved for future use
Message Line#: 5 - uid=FF000000
Received From: 127.0.0.1:60048

xap-hbeat
{
v=12
hop=1
uid=FF000000
class=xap-hbeat.alive
source=dbzoo.livebox.Plugboard
interval=60
port=3644
}

So today's little project is to track down this entity!!!!  Wish me luck.....

EJ

EJ-Ambient
Offline
Ringwood, United Kingdom
Joined: 5 Aug 2011
Got it working

Hi Brett

Just got back to this - and it all works a treat (multiple Jogglers pointing to a common xAP)....

I rolled everything back to the HAH acting in isolation as the iServer, pointed each Joggler at the url (as above) and they kicked into life with the full GUI as stored on the HAH.....

Don't know what I was doing wrong last time......I blame the beer myself!!!

Anyway - that's another one off the list.... just got to get the GUI to display on my Android and I'll be mega-chuffed!!

Cheers - and hope you had a great Easter....

regards

EJ

kevin
Offline
Huddersfield, United Kingdom
Joined: 17 May 2010
The problem with this message

The problem with this message is that a device ID of 0000 is specifically disallowed as it is reserved for some specific device / discovery / configuration functionality in xAP. The device ID is the centre 4 digits of the UID.

uid=FF000000

If you just give the HAH controller a different UID it will disappear.  Dont use FFFF either (reserved) and actually I would avoid anything starting FFxx.

This is configured in the Admin/Instance HAH Instance field - which can also be left blank should you wish to accept the default

K

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
what am i doing wrong?

My hah is on 192.168.0.124

 

when i browse to http://192.168.0.124/live/xapconfig.xml

 

i get the xapconfigxml file displayed.

 

if i put the config.xml 9with correct ip i get

 

XML parsing problem within xapconfig.xml :-(

error #1085

all buttons png's are there etc etc joggler does work under its own steam/xapconfig.xml file

 

my hah xmlconfigfile is basic with no extra buttons etc?

 

anyone shed any light?

 

Dean

 

p.s xapconfig.xml below (and it does work within the hah web gui) and the hah is the only i server on network.

 

<?xml version="1.0" encoding="windows-1252"?>
<joggler>
    <version>0.5</version>
    <config>
        <iserver>
            <port>9996</port>
            <ip>192.168.0.124</ip>
        </iserver>
        <xAP>
            <bscbuttons>false</bscbuttons>
            <bscpages>false</bscpages>
        </xAP>
    </config>

    <layout>
        <gridXmax>8</gridXmax>
        <gridYmax>4</gridYmax>
        <aspectLock>false</aspectLock>
        <configure>false</configure>
        <background>
            <image>sonata-background-menubar.jpg</image>
            <scaleX>800</scaleX>
            <scaleY>420</scaleY>
        </background>
        <defaults>
            <button>
                <alpha>.75</alpha>
                <width>80</width>
                  <height>80</height>
                <style>glossy_button_off_.png</style>           
            </button>
            <textbox>
                <alpha>.75</alpha>
                <width>100</width>
                  <height>100</height>
                <align>centre</align>
            </textbox>
            <label>
                <offset>centre</offset>
            </label>
            <bsctext>
                  <fontsize>34</fontsize>
                <align>centre</align>
            </bsctext>           
        </defaults>
    </layout>
   
    <page NAME="Menu">
        <group>Menu</group>
        <button NAME="page1">
            <label>
                <text>Control</text>
            </label>
            <style>menu_button_off_.png</style>                       
            <gridX>0</gridX>
            <gridY>0</gridY>
            <link>Page1</link>
            <mode>pagetoggle</mode>
            <group>Menu</group>
        </button>       
        <button NAME="page2">
            <label>
                <text>Monitor</text>
            </label>
            <gridX>0</gridX>
            <gridY>1</gridY>
            <style>menu_button_off_.png</style>                       
            <link>Page2</link>
            <mode>pagetoggle</mode>
            <group>Menu</group>
        </button>
        <button NAME="page3">
            <label>
                <text>Page 3</text>
            </label>
            <gridX>0</gridX>
            <gridY>2</gridY>
            <style>menu_button_off_.png</style>                       
            <visible>true</visible>
            <link>Page3</link>
            <mode>pagetoggle</mode>
            <group>Menu</group>
        </button>
        <button NAME="page4">
            <label>
                <text>Page 4</text>
            </label>
            <gridX>0</gridX>
            <gridY>3</gridY>
            <style>menu_button_off_.png</style>                       
            <visible>true</visible>
            <link>Page4</link>
            <mode>pagetoggle</mode>
            <group>Menu</group>
        </button>
    </page>   
   
    <page NAME="Page1">
        <group>main</group>       
        <visible>true</visible>

        <button NAME="Relay1">
            <label>
                <text>Relay X</text>
            </label>
            <gridX>2</gridX>
            <gridY>0</gridY>
            <xAP>
                <schema>xAPBSC</schema>
                <uid>FF00DB60</uid>
                <source>dbzoo.livebox.controller:relay.1</source>
            </xAP>
            <mode>control</mode>           
        </button>

        <button NAME="Relay2">
            <label>
                <text>Relay 2</text>
            </label>
            <gridX>3</gridX>
            <gridY>0</gridY>
            <xAP>
                <schema>xAPBSC</schema>
                <uid>FF00DB61</uid>
                <source>dbzoo.livebox.controller:relay.2</source>
            </xAP>               
            <mode>control</mode>           
        </button>

        <button NAME="Relay3">
            <label>
                <text>Relay 3</text>
            </label>
            <gridX>4</gridX>
            <gridY>0</gridY>
            <xAP>
                <schema>xAPBSC</schema>
                <uid>FF00DB62</uid>
                <source>dbzoo.livebox.controller:relay.3</source>
            </xAP>
            <mode>control</mode>
        </button>

        <button NAME="Relay4">
            <label>
                <text>Relay 4</text>
            </label>
            <gridX>5</gridX>
            <gridY>0</gridY>
            <xAP>
                <schema>xAPBSC</schema>
                <uid>FF00DB63</uid>
                <source>dbzoo.livebox.controller:relay.4</source>
            </xAP>
            <mode>control</mode>
        </button>

        <!-- RF -->
        <button NAME="RF1">
            <label>
                <text>RF 1</text>
            </label>
            <gridX>1</gridX>
            <gridY>1</gridY>
            <style>glossy_button_off_.png</style>           
            <xAP>
                <schema>xAPBSC</schema>
                <uid>FF00DBA0</uid>
                <source>dbzoo.livebox.controller:rf.1</source>
            </xAP>
            <mode>control</mode>
        </button>

        <button NAME="RF2">
            <label>
                <text>RF 2</text>
            </label>
            <gridX>2</gridX>
            <gridY>1</gridY>
            <style>glossy_button_off_.png</style>           
            <xAP>
                <schema>xAPBSC</schema>
                <uid>FF00DBA1</uid>
                <source>dbzoo.livebox.controller:rf.2</source>
            </xAP>
            <mode>control</mode>
        </button>

        <button NAME="RF3">
            <label>
                <text>RF 3</text>
            </label>
            <gridX>3</gridX>
            <gridY>1</gridY>
            <style>glossy_button_off_.png</style>           
            <xAP>
                <schema>xAPBSC</schema>
                <uid>FF00DBA2</uid>
                <source>dbzoo.livebox.controller:rf.3</source>
            </xAP>
            <mode>control</mode>
        </button>
        <button NAME="RF4">
            <label>
                <text>RF 4</text>
            </label>
            <gridX>4</gridX>
            <gridY>1</gridY>
            <style>glossy_button_off_.png</style>           
            <xAP>
                <schema>xAPBSC</schema>
                <uid>FF00DBA3</uid>
                <source>dbzoo.livebox.controller:rf.4</source>
            </xAP>
            <mode>control</mode>
        </button>
        <button NAME="RF5">
            <label>
                <text>RF 5</text>
            </label>
            <gridX>5</gridX>
            <gridY>1</gridY>
            <style>glossy_button_off_.png</style>           
            <xAP>
                <schema>xAPBSC</schema>
                <uid>FF00DBA4</uid>
                <source>dbzoo.livebox.controller:rf.5</source>
            </xAP>
            <mode>control</mode>
        </button>
        <button NAME="RF6">
            <label>
                <text>RF 6</text>
            </label>
            <gridX>6</gridX>
            <gridY>1</gridY>
            <style>glossy_button_off_.png</style>           
            <xAP>
                <schema>xAPBSC</schema>
                <uid>FF00DBA5</uid>
                <source>dbzoo.livebox.controller:rf.6</source>
            </xAP>
            <mode>control</mode>
        </button>
        <button NAME="RF7">
            <label>
                <text>RF 7</text>
            </label>
            <gridX>7</gridX>
            <gridY>1</gridY>
            <style>glossy_button_off_.png</style>           
            <xAP>
                <schema>xAPBSC</schema>
                <uid>FF00DBA6</uid>
                <source>dbzoo.livebox.controller:rf.7</source>
            </xAP>
            <mode>control</mode>
        </button>
       
    <!-- a button to Overlay a few setting that you want to check quickly -->
        <button NAME="overlay-page-btn">
            <label>
                <text>Check</text>
            </label>
            <gridX>1</gridX>
            <gridY>3</gridY>
            <style>menu_button_off_.png</style>                       
            <link>overlay-page</link>
            <mode>pagetoggle</mode>
<!-- BUG: the button won't update the STYLE unless its in a group even if its the only element -->
            <group>check</group> 
        </button>           
    </page>
   
    <page NAME="overlay-page">
       <visible>false</visible>
       <!-- Clip and position a background behind our buttons -->
       <background>
          <image>blue-background.jpg</image>
          <width>220</width>
          <height>110</height>
          <posX>200</posX>
          <posY>10</posY>
       </background>
      
        <button NAME="temp2-popup">
            <gridX>3</gridX>
            <gridY>0</gridY>
            <label>
                <text>HWT FEED</text>
                <fontcolour>0x000000</fontcolour>
                <offset>-20</offset>
                <fontsize>20</fontsize>           
            </label>
            <bsctext>
                <fontcolour>0x000000</fontcolour>
            </bsctext>           
            <style>inside-temp-icon.png</style>           
            <xAP>
                <schema>xAPBSC</schema>
                <uid>FF00D802</uid>
                <source>dbzoo.livebox.jeenode:pond.temp</source>
            </xAP>               
            <mode>text</mode>           
            <hide>state</hide>
        </button>      
        <button NAME="temp1-popup">
            <gridX>2</gridX>
            <gridY>0</gridY>
            <label>
                <text>Hot Water Tank</text>
                <fontcolour>0x000000</fontcolour>
                <offset>-20</offset>
                <fontsize>20</fontsize>           
            </label>
            <bsctext>
                <fontcolour>0x000000</fontcolour>
            </bsctext>           
            <style>outside-temp-icon.png</style>           
            <xAP>
                <schema>xAPBSC</schema>
                <uid>FF00D802</uid>
                <source>dbzoo.livebox.jeenode:pond.temp</source>
            </xAP>
            <mode>text</mode>           
            <hide>state</hide>
        </button>
    </page>
   
    <page NAME="Page2">
        <group>main</group>       
        <visible>false</visible>

        <button NAME="temp1">
            <gridX>2</gridX>
            <gridY>0</gridY>
            <label>
                <text>Hot Water Tank</text>
                <fontcolour>0x000000</fontcolour>
                <offset>-20</offset>
                <fontsize>20</fontsize>           
            </label>
            <bsctext>
                <fontcolour>0x000000</fontcolour>
            </bsctext>           
            <style>outside-temp-icon.png</style>           
            <xAP>
                <schema>xAPBSC</schema>
                <uid>FF00D802</uid>
                <source>dbzoo.livebox.jeenode:pond.temp</source>
            </xAP>
            <mode>text</mode>           
            <hide>state</hide>
        </button>

        <button NAME="temp2">
            <gridX>3</gridX>
            <gridY>0</gridY>
            <label>
                <text>HWT FEED test</text>
                <fontcolour>0x000000</fontcolour>
                <offset>-20</offset>
                <fontsize>20</fontsize>           
            </label>
            <bsctext>
                <fontcolour>0x000000</fontcolour>
            </bsctext>           
            <style>inside-temp-icon.png</style>           
            <xAP>
                <schema>xAPBSC</schema>
                <uid>FF00D802</uid>
                <source>dbzoo.livebox.jeenode:pond.temp</source>
            </xAP>               
            <mode>text</mode>           
            <hide>state</hide>
        </button>

        <button NAME="temp3">
            <gridX>4</gridX>
            <gridY>0</gridY>
            <style>inside-temp-icon.png</style>           
            <label>
                <text>Room 2</text>
                <fontcolour>0x000000</fontcolour>
                <offset>-20</offset>
                <fontsize>20</fontsize>           
            </label>
            <bsctext>
                <fontcolour>0x000000</fontcolour>
            </bsctext>           
            <xAP>
                <schema>xAPBSC</schema>
                <uid>FF00D802</uid>
                <source>dbzoo.livebox.jeenode:pond.temp</source>
            </xAP>
            <mode>text</mode>
            <hide>state</hide>
        </button>

        <button NAME="light">
            <gridX>5</gridX>
            <gridY>0</gridY>
            <label>
                <text>Light</text>
                <fontcolour>0x000000</fontcolour>
                <offset>-20</offset>
                <fontsize>20</fontsize>           
            </label>
            <bsctext>
                <fontcolour>0x000000</fontcolour>
            </bsctext>           
            <style>inside-temp-icon.png</style>           
            <xAP>
                <schema>xAPBSC</schema>
                <uid>FF00D801</uid>
                <source>dbzoo.livebox.jeenode:pond.light</source>
            </xAP>
            <mode>text</mode>
            <hide>state</hide>
        </button>
       
        <button NAME="temp5">
            <gridX>6</gridX>
            <gridY>0</gridY>
            <label>
                <text>test 5</text>
                <fontcolour>0x000000</fontcolour>
                <offset>-20</offset>
                <fontsize>20</fontsize>           
            </label>
            <bsctext>
                <fontcolour>0x000000</fontcolour>
            </bsctext>           
            <style>inside-temp-icon.png</style>           
            <xAP>
                <schema>xAPBSC</schema>
                <uid>FF00D802</uid>
                <source>dbzoo.livebox.jeenode:pond.temp</source>
            </xAP>
            <mode>text</mode>
            <hide>state</hide>
        </button>

        <button NAME="cc-temp">
            <gridX>1</gridX>
            <gridY>2</gridY>
            <label>
                <text>CC Temp</text>
                <fontcolour>0xFFFFFF</fontcolour>
                <offset>-20</offset>
                <fontsize>20</fontsize>           
            </label>
            <bsctext>
                <fontcolour>0xFFFFFF</fontcolour>
            </bsctext>           
            <style>thermometer_red.png</style>           
            <xAP>
                <schema>xAPBSC</schema>
                <uid>FF00DC04</uid>
                <source>dbzoo.livebox.CurrentCost:temp</source>
            </xAP>
            <mode>text</mode>
            <hide>state</hide>
        </button>

        <button NAME="House">
            <gridX>2</gridX>
            <gridY>2</gridY>
            <label>
                <text>House</text>
                <fontcolour>0xFFFFFF</fontcolour>
                <offset>-20</offset>
                <fontsize>20</fontsize>           
            </label>
            <bsctext>
                <fontcolour>0xFFFFFF</fontcolour>
                <fontsize>32</fontsize>
            </bsctext>           
            <style>electricity.png</style>           
            <xAP>
                <schema>xAPBSC</schema>
                <uid>FF00DC01</uid>
                <source>dbzoo.livebox.CurrentCost:ch.1</source>
            </xAP>
            <mode>text</mode>
            <hide>state</hide>
        </button>
       
        <button NAME="Solar">
            <gridX>3</gridX>
            <gridY>2</gridY>
            <label>
                <text>Solar</text>
                <fontcolour>0x000000</fontcolour>
                <fontsize>20</fontsize>           
                <offset>-20</offset>
            </label>
            <bsctext>
                <fontcolour>0x000000</fontcolour>
            </bsctext>           
            <style>lightbulb.png</style>           
            <xAP>
                <schema>xAPBSC</schema>
                <uid>FF00DC0B</uid>
                <source>dbzoo.livebox.CurrentCost:sensor.1</source>
            </xAP>
            <mode>text</mode>
            <hide>state</hide>
        </button>
       
        <button NAME="Grid">
            <gridX>4</gridX>
            <gridY>2</gridY>
            <label>
                <text>Grid</text>
                <fontcolour>0xFFFFFF</fontcolour>
                <offset>-20</offset>
                <fontsize>20</fontsize>           
            </label>
            <bsctext>
                <fontcolour>0xFFFFFF</fontcolour>
            </bsctext>           
            <style>electricity.png</style>           
            <xAP>
                <schema>xAPBSC</schema>
                <uid>FF00DC0E</uid>
                <source>dbzoo.livebox.CurrentCost:sensor.2</source>
            </xAP>
            <mode>text</mode>
            <hide>state</hide>
        </button>
        <button NAME="sensor3">
            <gridX>5</gridX>
            <gridY>2</gridY>
            <label>
                <text>Sensor 3</text>
                <fontcolour>0x000000</fontcolour>
                <offset>-20</offset>
                <fontsize>20</fontsize>           
            </label>
            <bsctext>
                <fontcolour>0x000000</fontcolour>
            </bsctext>           
            <style>lightbulb.png</style>           
            <xAP>
                <schema>xAPBSC</schema>
                <uid>FF00DC0D</uid>
                <source>dbzoo.livebox.CurrentCost:sensor.3</source>
            </xAP>
            <mode>text</mode>
            <hide>state</hide>
        </button>
        <button NAME="Imerssion">
            <gridX>6</gridX>
            <gridY>2</gridY>
            <label>
                <text>Imersion</text>
                <fontcolour>0x000000</fontcolour>
                <offset>-20</offset>
                <fontsize>20</fontsize>           
            </label>
            <bsctext>
                <fontcolour>0x000000</fontcolour>
            </bsctext>           
            <style>lightbulb.png</style>           
            <xAP>
                <schema>xAPBSC</schema>
                <uid>FF00DC1A</uid>
                <source>dbzoo.livebox.CurrentCost:sensor.6</source>
            </xAP>
            <mode>text</mode>
            <hide>state</hide>
        </button>

        <textbox name="sms-msg">
            <gridX>1</gridX>
            <gridY>3</gridY>
            <width>*4</width>
            <height>/4</height>
            <align>left</align>
            <background>
                <visible>false</visible>
            </background>
            <text>No SMS Message</text>
            <xAP>               
                <schema>generic</schema>
                <source>dbzoo.livebox.SMS</source>
                <uid>FF00DD00</uid>
                <generic>
                    <Class>SMS.message</Class>
                    <body>inbound</body>
                    <parameter>msg</parameter>
                </generic>
            </xAP>           
        </textbox>
       
        <textbox name="sms-num">
            <gridX>1</gridX>
            <gridY>3</gridY>
            <width>*4</width>
            <height>/4</height>
            <posY>-20</posY>
            <align>left</align>
            <background>
                <visible>false</visible>
            </background>
            <text>(xxx)xxxx-xxx</text>
            <xAP>               
                <schema>generic</schema>
                <source>dbzoo.livebox.SMS</source>
                <uid>FF00DD00</uid>
                <generic>
                    <Class>SMS.message</Class>
                    <body>inbound</body>
                    <parameter>num</parameter>
                </generic>
            </xAP>           
        </textbox>

    </page>
   
    <page NAME="Page3">
        <group>main</group>       
        <visible>false</visible>
        <background>
           <posX>108</posX>
           <posY>0</posY>
           <image>black-background.jpg</image>
           <width>700</width>
           <height>420</height>
           <visible>true</visible>
        </background>
       
        <button name="Configure">
            <label>
                <text>Configure</text>
            </label>
            <gridX>3</gridX>
            <gridY>0</gridY>
            <mode>config</mode>
        </button>       
</page>

    <page NAME="Page4">
        <group>main</group>       
        <visible>false</visible>
    </page>
</joggler>

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
been playing SWMBO out still no joy

:(

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Well you can always go back

Well you can always go back to bare basics delete that configuration file and ask the GUI to setup the default again for you.  It always works out of the box then as you tinker with it watch what you change.

Brett

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
Did that about an hour ago

NO joy any other ideas?

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Really?  A little hard for me

Really?  A little hard for me to debug without a livebox handy but it should just work with build 306 .  I'll see if I can check this using a remote livebox in Derek's basement.

Well I just tried this Out of the Box experience and it worked just fine for me - no errors just a happy gui.  Ah are you running this on an INSTANCE'd livebox?   As I've never tried it on one of those.

Brett

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
Ill have a go with

I have a second livebox and hah pcb.  i will vanilla them both and try them on seperate lan..

 

whats the betting the joggler upgrade kicks in soon and messes everything up :(

 

and no i don't belive this to be an instanced livebox just default AFAIK (it was but then i turned it back)

 

Dean

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
Hmm

Running wireshark i cannot see it even trying to contact the HAH?

 

both ip's are correct time for more digging :(

BoxingOrange
Offline
United Kingdom
Joined: 11 Jun 2010
Typo in config.xml

If you used the original config.xml that Brett posted in the first post you will get two errors.

Firstly, the <name> tag ends with </version>, and secondly, the <usejogglerapi> ends with </userjogglerapi>.  Correct these and you should be good to go.  Remember Brett can't test things very easily so an odd type can creep in ;)

 

Karl

PS : I haven't read the whole post, so if someone has already pointed this out, sorry.

BoxingOrange
Offline
United Kingdom
Joined: 11 Jun 2010
Any progress with this Dean?I

Any progress with this Dean?

I had a little time last night and have managed to get somewhere with mine, I have the config.xml and xapconfig.xml on the HAH and the Joggler can read it OK.  I'm happy to share the config, or have a look at yours if that would help.

I think there may be an error in the hah-sample.tar.gz file on this page http://www.dbzoo.com/livebox/xapflash, I'm working on finding it and will post an updated version if I can prove it.

 

Karl

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
yes

Missed those typos.

all working now.

Thanks Karl (and Bret)

 

Dean

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Just recapping so I can

Just recapping so I can neatly close this thread

The file you need to modify on the joggler is config.xml

<?xml version="1.0" encoding="iso-8859-1"?>
<joggler>
        <version>0.5</version>
        <name>joggler</name>
        <xAP>
                <uid>0739</uid>
        </xAP>
        <usejogglerapi>true</usejogglerapi>
        <configfilelocation>http://livebox.local/live/</configfilelocation>
        <configfile>xapconfig.xml</configfile>
</joggler>

This would cause the joggler to reach out to livebox.local and load the xapconfig.xml file from there.

On the livebox have the xapconfig.xml file that is now shared with the joggler.

# ls /etc/www
xapconfig.xml
#

Hardware Info