<generic> and sliders

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • g8kmh
    Automated Home Jr Member
    • May 2006
    • 18

    <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; 16 December 2011, 07:08 PM.
  • Kevin
    Moderator
    • Jan 2004
    • 558

    #2
    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; 17 December 2011, 10:48 AM.

    Comment

    • g8kmh
      Automated Home Jr Member
      • May 2006
      • 18

      #3
      OK,
      Thanks Kevin, it was worth a shot.

      Back to more Nanode coding...

      L

      Comment

      • Kevin
        Moderator
        • Jan 2004
        • 558

        #4
        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.

        Comment

        • g8kmh
          Automated Home Jr Member
          • May 2006
          • 18

          #5
          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

          Comment

          Working...
          X