roomnode moved & lobat endpoints on the xAPFlash Joggler app

1 reply [Last post]
AndrewJ
Offline
United Kingdom
Joined: 22 Nov 2012

Does anyone here use either the moved or lobat endpoints with the joggler xAPFlash applet?

having trouble in getting them to display the values, in the pachube tab i have the "key" setup as state as opposed to text, this seems to work fine for cosm - https://cosm.com/feeds/94428

the endpoints are setup as follows

dbzoo.livebox.jeenode:bedroom2.moved

dbzoo.livebox.jeenode:bedroom2.lobat

snippet on my button value for the moved endpoint

        <button NAME="Room2-Moved">
            <gridX>5</gridX>
            <gridY>2</gridY>
            <label>
                <text>R2-PIR</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>FF00D802</uid>
                <source>dbzoo.livebox.jeenode:bedroom2.moved</source>
            </xAP>
            <mode>status</mode>
        </button>

snippet for lobat - note the mode is set to text and the hide is set to state

        <button NAME="Room2-Lobat">
            <gridX>4</gridX>
            <gridY>2</gridY>
            <label>
                <text>R2-PWR</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>*</uid>
                <source>dbzoo.livebox.jeenode:bedroom2.lobat</source>
            </xAP>
            <mode>text</mode>
            <hide>state</hide>
        </button>

brett
Offline
Providence, United States
Joined: 9 Jan 2010
The secret is to use a DUAL

The secret is to use a DUAL image button and map these buttons to the STATE.

http://www.dbzoo.com/livebox/xapflash#using_a_dual_image

ON would mean the LOBAT status was set to 1 - which is why the GREEN button appears.

OFF is for the LOBAT status of 0 (RED Button) as in everything is OK.

Yeah I know they should be the other way around but I haven't got to fixing that and renaming the button set to match the colours.   Easily done in anycase you can see how this is done below.

                <button NAME="OutsideLoBat">
                        <gridX>1</gridX>
                        <gridY>2</gridY>
                        <style>glossy_button_off_.png</style>
                        <width>80</width>
                        <height>80</height>
                        <posX>+10</posX>
                        <label>
                                <text>LoBat</text>
                                <offset>-50</offset>
                                <fontsize>20</fontsize>                       
                                <fontcolour>0xffffff</fontcolour>
                        </label>
                        <xAP>
                                <schema>xAPBSC</schema>
                                <uid>*</uid>
                                <source>dbzoo.livebox.jeenode:outside.lobat</source>
                        </xAP>
                        <mode>status</mode>                       
                </button>

And a screenshot of showing how this looks.  I have a few jeenodes offline and I need to put a larger antenna on the base node so they get reliable comms.

Hardware Info