Results 1 to 5 of 5

Thread: <generic> and sliders

  1. #1
    Automated Home Jr Member
    Join Date
    May 2006
    Posts
    18

    Default <generic> and sliders

    First off, let me say I think the work done by both of you is excellent. I dusted off the Joggler especially!

    Has anyone tried using the <generic> with sliders or are they BSC only (as the docs say)?

    Specifically I'm trying to get the temperature out of xAPWeather like so:

    Code:
    		    <button name="slider-outside1">
    			<label>
    				<text>EGVP</text>
    			</label>
    			<gridX>2</gridX>
    			<gridY>3</gridY>
    			<xAP>
    				<schema>generic</schema>
    		                <source>mi4.weather.egvp</source>
    		                <uid>FF400100</uid>
    		                <generic>
    			                <Class>Weather.Report</Class>
    			                <body>Weather.Report</body>
    			                <parameter>TempC</parameter>
    		                </generic>
    			</xAP>
    			<mode>slider</mode>
    			<slider>
    				<type>embedded</type>
    				<min>-20</min>
    				<max>50</max>
    				<design>sleek</design>
    				<rotation>horizontal</rotation>
    			</slider>
    		</button>
    and the message is

    Code:
    xap-header
    {
    v=12
    hop=1
    uid=FF400100
    class=Weather.Report
    source=mi4.weather.egvp
    }
    Weather.Report
    {
    UTC=15:50
    Date=20111216
    WindM=12.7
    WindK=20.4
    WindDirC=W
    WindDirD=280
    TempC=4.0
    Lehane
    Last edited by g8kmh; 16th December 2011 at 06:08 PM.

  2. #2
    Moderator Kevin's Avatar
    Join Date
    Jan 2004
    Location
    West Yorkshire
    Posts
    553

    Default

    No - that's not going to work - there's no current way to get the parameter treated as a numeric that can then be applied to a slider. You would have to extract it another way and re-present it as a BSC level device.

    K
    Last edited by Kevin; 17th December 2011 at 09:48 AM.

  3. #3
    Automated Home Jr Member
    Join Date
    May 2006
    Posts
    18

    Default

    OK,
    Thanks Kevin, it was worth a shot.

    Back to more Nanode coding...

    L

  4. #4
    Moderator Kevin's Avatar
    Join Date
    Jan 2004
    Location
    West Yorkshire
    Posts
    553

    Default

    Just thinking... there might be a way...

    IIRC beta 5 sliders can link to BSC text devices .. and the Joggler itself can convert an incoming generic , like your weather schema Temp value to an outgoing BSC (via a text box) so that will give you your 'Temp' value as a BSC text device, updating in realtime based on the content from the weather schema message.

    If , and I'm not sure on this, iServer will return the textbox's outgoing BSC message back to the Joggler it originated from then you could link this to a slider :-) . Of course if you have two Jogglers it should definitely be OK.

    Let me know if this works.

    K

    PS Nanodes with xAP.. anything of general interest to us all ? I have a couple of here in my round tuit box.

  5. #5
    Automated Home Jr Member
    Join Date
    May 2006
    Posts
    18

    Default

    I'll take a look at the reformatting and see if it works.

    I'm nearly done on a one-wire/TOM10 replacement - so far works fine, left on the to-do list is:
    Change 'lazy code' to respond to BSC.Query properly (address match) currently sends info for all
    Finish web config interface to map node number against a friendly name and also do instance name/UID.
    Finish the xAP 1.3 conditional compile
    Test against > 12 sensors (in theory up to 64 but I need to look at conversion times vs. update rates).

    It uses a bus/star for the one-wire devices and a FRAM/RAM for the storage (I'm using a FRAM so it needs a wire jumper to +5V) though there is a conditional compile for no external and only 8 devices and fixed config.

    L

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •