O2 Joggler and my broken light in living room

17 replies [Last post]
g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011

Well to start with I am A HARDWARE ENGINEER i deal with resistors nuts cap's and bolts.  Software forget it i at my own admission am crap.

But today i broke a light in our living room when i went running into wife and said loooooooooook...................fell over cat grabbed light breaking it into 5+ pieces

you get the picture

anyway once i finally came round (forgot to mention hit head oh fire-cast iron log burner) 10 minutes later wife after realizing i was actually ok and she was not about to be widowed and rich said what? have we won the lottery???? No was my reply i got this working kindof....

 

she looked and on joggler was a single display saying Outside Temp (no actual display of temp) but it said Outside temp in a nice translucent button.

 

to repeat her language would be inappropriate..especially on forum

so i set up viewer on a pc and server and have a couple of questions.

on xmlconfig what ip should be the iserver ip?  HAH or a real pc running iserver?  seems a bit lax in this definition on docs i have read

on xap viewer i see hah sending out loads of stuff, nothing from joggler.

can someone point me in right direction please.  yes RTFM several times.

Wifey has calmed down as i have this weekend sold a load of current cost stuff on fleabay, and annoyed one ebayer as i dropped a display whilst packing it :( .

 

Ta

brett
Offline
Providence, United States
Joined: 9 Jan 2010
setting up the iServer

Well the whole idea of running the iServer on the HAH is that you don't need a heavy duty PC running it too.  So start by shutting down the windows version.  Which kind of answers your next question "which ip?".

In your config.xml you should have the IP address of your HAH and make sure the iServer is running.

                        <iserver>
                                <port>9996</port>
                                <ip>192.168.1.138</ip>
                                <password>Frogstomp</password>
                        </iserver>

The Joggler only sends out information once its connected to the right iServer and has authenticated.  I suggest you turn off password authentication on the HAH iServer as its not really needed for a local LAN, the windows iServer cannot operating passwordless - I added this feature to mine.

As for the documentation yes its very scant this stuff is written by hackers who only write code, the problem with that is nobody can use it or figure it out so it ends up on the software trash heap.  Which is sad.

If you are getting no data it could be that your UID does not match... the configuration is a little NAFF in that both the SOURCE and the UID must be correctly defined.  Personally I would relax the UID.

A snippet from my xapconfig.xml that monitors my office temperature.

                <button NAME="Office">
                        <label><text>Office C</text></label>
                        <gridX>4</gridX>
                        <gridY>1</gridY>
                        <width>*1.5</width>
                        <height>*1</height>
                        <bsctext>
                                <fontcolour>0xFFFFFF</fontcolour>
                                <fontsize>36</fontsize>
                        </bsctext>
                        <xAP>
                                <schema>xAPBSC</schema>
                                <uid>FF00DB80</uid>
                                <source>dbzoo.livebox.Controller:1wire.1</source>
                        </xAP>
                        <mode>text</mode>
                        <hide>state</hide>
                </button>

That should get you more joy.  I'm sure there are many others who acn point you in the right direction.

Brett

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Sample with screenshot

Jogger screenshot

Sample configuration for a very basic HAH joggler screen along with its xml file.

AttachmentSize
xapconfig.zip 1.26 KB
g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
Thank you

Brett your upstanding has gone to "GOD" level.

 

after your pointers and sample script i have all 3 temps working AND i push a button it flips a relay.

 

Thank you again.

 

now i have a starting piint to play with.

 

Dean

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
 Wow what a learning curve

 Wow what a learning curve but i now have a working joggler.

What i would like to do next is have some sort of display that changes with value.

 

so grid should be background red when watt=0 and green when watts=500, i use a cc digital board with a ldr that picks up if i am feeding or drawing off the grid and it send 0 or 500w to the current cost on channel 3 depending if i am feeding or drawing off grid.

Has anyone ever done anything like this? does anyone have sample scripts and/or pictures of different buttons "vu style" meter's etc?

i don't want to reinvent th wheel.


http://www.packetradio.co.uk/gallery/index.php/HAH/joggler

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
Joggler notes

Installing on joggler has been documented previously but here are some pitfall's

 

when the docs say copy 6 files also remember to copy button files over.

 

don't try and use example xml code it does not work too well (well i couldnt get it to) i suspect xAP has been updated on the HAH and old code does now not work.

 

Brett has listed a sample file above that "works" his note on the UID is critical (stumped me for a while) and don't forget to remove password "Joggler" in config files

as i find and think of "extra gottchas" i will edit this post accordingly.

 

now i know theres a way of uploading files to here but here's a link to my xapconfig.xml file (relates to screenshot on above link)

 

http://www.packetradio.co.uk/xapconfig.xml

 

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Screenshotting the joggler

To make nice screenshots of the joggler I have this alias setup on my linux box.

It remotely connects to the "joggler" runs a command to dump the screen and converts the XWD file format into PNG dropping into a directory for me to grab.

alias grabjoggler='ssh joggler '\''xwd -root -display :0'\'' | convert xwd:- /u02/public/out.png'

Brett

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
Wife went out time to play

http://www.packetradio.co.uk/gallery/index.php/HAH/joggler2

 

and the config file

 

http://www.packetradio.co.uk/xapconfig2.xml

 

tidy up mainly the relay and rf buttons were out of alignment and i centralized them all, stuck in a custom background as well.

kevin
Offline
Huddersfield, United Kingdom
Joined: 17 May 2010
xAP Flash beta 5

Just getting ready post beta 5 for download by anyone ...    and was just looking over the current beta test list and I couldn't find your name Dean (G7PKF)  ...  I maybe have the wrong email address for you... When did I send you the beta link and to what email address ? It is very possible you didn't get the incremental updates either..   The instructions you didn't have (another post)  were included with the beta. 

Also - I'm keen to get feedback on any issues that there are with beta 5 so that I can fix them in later builds / documentation - so if you can post them to the main thread on AutomatedHome then I'll definitely see them there rather than mixed in on this forum - although depending on how many HAH Joggler users emerge then some section here for xAPFlash might become useful and will be easier for me to monitor. 

http://www.automatedhome.co.uk/vbulletin/showthread.php?t=2854

HAH specific things obviously belong here and Brett has kindly written an iServer implementation that runs on both HAH and the Joggler itself so that's better supported here.  The Joggler version can be installed with beta 5.

 Yes as Brett says the documentation isn't up to the great level that HAH has - although it is better than a lot that I've seen.  I'm an electronics engineer embracing software now as quick as I can learn ... I wouldn't class myself as a 'hacker' which was the term used.  xAPFlash was a project for my own use that people seemed interested in so I released it. It was my first ever experience of Flash (awful IDE !)  and was never intended as a release quality application. 

I had many offers to write up improved docs, installation experiences and example configurations but in the end only one user did some formatting and typo correction to the orginal documentation.  Brett provided some of his own install experience notes too and has been a great help recently in moving towards easier installation and fuller documentation.  I'm anxious to imrove all these things but the best source for improving this will be users experience and feedback....   keep it coming.

   Kevin

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Coming clean

I'll put my hand up and take the rap for this one.  I slipped Dean a copy of the 5 beta after he express so much interest in putting this to use.  Hopefully my faith in him to provide feedback hasn't been misplaced.

Brett

kevin
Offline
Huddersfield, United Kingdom
Joined: 17 May 2010
 "As for the documentation

 "As for the documentation yes its very scant this stuff is written by hackers who only write code, the problem with that is nobody can use it or figure it out so it ends up on the software trash heap.  Which is sad."

I've posted elsewhere re this and am looking to improve it , particularly with feedback , experiences and 'how to's' from users ....  I wouldn't call it scant but certainly the XML documentation needs imrovement. GUI examples will help considerably too.  This was a 'for me' project that I released for others - warts and all.

"If you are getting no data it could be that your UID does not match... the configuration is a little NAFF in that both the SOURCE and the UID must be correctly defined.  Personally I would relax the UID"

NAFF eh ... actually it was done this way for good reason.

1) The XML file maybe be used by different clients with different capabilities - some may have the resources to parse incoming source addresses and some may not and instead have to use UID's. The fact that both are present avoids issues should you move between such clients. I accept that less capable clients are unlikley to be able to run a GUI or parse XML.

2) Recognising UID's is much easier and faster than source addresses and this is in fact how xAPFlash works. In heavy xAP traffic environments (like mine) this does make a difference.

3) The <source> address is included so that you have something that immediately associates the <uid> with a xAP device in a readable way, documentation if you like.

4) If in a later version of xAPFlash the recognition is moved to source address rather than UID then the XML will still work without change.

5) Allowing registration of UID's with iServer was another possible way of defining which traffic might be passed between iServer and xAPFlash.  As iServers might be implemented on a very small memory embedded device (and xAP source lengths are not restricted lengthwise) this was pre-emptive of that need.

6) You require the <source> address to be able to send (target) a message back to that device, for example to control a relay on HAH. You can not target a xAP endpoint by UID. 

Just for completeness .. it is possible to recover source address from xAP BSC devices but it can take up to a minute from startup , sometimes longer, for that to happen

 

K

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
Actually

I found the documentation ok once i had switched from computer engineer mode to "Real" engineer mode, reminded me of the procedures i used to have to follow.

Once i figured the Xap old code would no longer "work" and a sample of working code was forthcoming i have sort of got used to how it works but still have an awful lot to learn.

 

The real shame is that they don't make this device anymore :(

 

Dean

kevin
Offline
Huddersfield, United Kingdom
Joined: 17 May 2010
Broken old xAP file

Dean -     You say xAP has been updated on the HAH and that the xAP 'old' code is hence broken.   Which is the old code you mean - I assume it's a XML file.  Is it my basic example that I included with the original beta 5 distribution ?  If so I wasn't aware it's broken but it could be - would the Joggler not load it or what was the issue ?

- . -

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
yes and no

the samples in the beta 5 did not seem to work as did the sample on these forums but the one in this post did.

BUT that said it could also have n=been i missed the line about copying buttons, it said copy these 6 files what it really should say is copy every file (not directories) in this location.

 

so this may be a red herring.

 

Dean

 

P.S what sort of engineer are you? me i am HND telecommunications HNC and ONC electronics, apprentiship was with marconi instruments hence "following procedures"

BodgeIT
Offline
London, United Kingdom
Joined: 10 Jun 2010
...not Frimley?

A fellow Marconi man.  I was Draughtsman at Command & Control!

Did all my onc, hnc stuff but that was a few years back now, bit like my French, didn't get used much and withered a lot.

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
nah longacres and fleetville st albans

and like you a while ago 25-30 years ago God im getting old

EJ-Ambient
Offline
Ringwood, United Kingdom
Joined: 5 Aug 2011
Back to work!!!

Hi Dean

I've emailed elsewhere the reasons for my absence, but I'm keen to get back on the horse!!!  How did you get on with the Joggler/HAH...reading the above looks like you had fun....

I was at the point of waiting for the arrival of the Joggler Beta 5 stuff...looks like you're way ahead of me now...how was it - and where is it (do you have an URL location?)....

I've got a Joggler on my desk, my HAHHub is feeding my Pachube site nicely (visit feed 34982) and i'm keen to integrate the two....would you oblige with hints and tips?...

Hope to hear from you soon

EJ

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Its all been done

This thread is a little old since then its been integrated into the HAH and a distribution has been setup you can install it onto the joggler with minimal fuss.  See http://www.dbzoo.com/livebox/xapflash

Brett

Hardware Info