Results 1 to 3 of 3

Thread: Speak Humidity level from Bobcat

  1. #1
    Join Date
    Apr 2004
    Location
    Dearborn, MI
    Posts
    1,968

    Default Speak Humidity level from Bobcat

    Code:
    local path = 'Fordrat8\\Ocelot\\Ocelot.Module4.Bobcat-H'
    local device = DeviceManager:GetDeviceUsingPath (path)
    if device then
      device:Print ()
    else
      print ('No Device')
    end
    local controlid = 'Humidity'
    local control = device:GetControl (controlid)
    if control then
       print (control:GetValue())
       Voice:Speak("Living Room Humidity is"..control:GetValue().."percent")
    end
    Last edited by jwilson56; November 7th, 2008 at 09:02 AM.
    John

    Now Playing skin creator

    Girder 5.0 / Elk-M1EZ8 / Ocelot / SECU-16IR /SECU-16I / SECU-16 / BobCat Humidity
    JRMC 11.1 / M-Audio Delta 410 / Xitel HIFI Pro / Xitel HIFI Link
    NetRemote 2.0 / 6 Zone whole house audio delivering 1580 watts RMS total
    ELO 15" Touchscreen, Nokia 770 and Advent 3500PC Mobile PC 7" TS
    Droid 2 Global

    Click here to visit my Nowplaying Showcase Blog

  2. #2
    Join Date
    Nov 2002
    Posts
    169

    Default

    FYI, the component has two shortcuts, that just need the device ID.

    To get the value from the latest update:
    Code:
    local v = Ocelot:GetValue('Ocelot.Module3.Bobcat-H')
    To send commands:
    Code:
    Ocelot:SetValue('Ocelot.LocalIR', 'IRName')
    Ocelot:SetValue('Ocelot.Module1.Zone0', 'IRName')
    Ocelot:SetValue('Ocelot.Module2.Relay0', 'On') --or 'Off'
    Ocelot:SetValue('Ocelot.Timer0', 1)
    Ocelot:SetValue('Ocelot.Variable0', 1)

  3. #3
    Join Date
    Apr 2004
    Location
    Dearborn, MI
    Posts
    1,968

    Default

    Thanks for the shortcut
    John

    Now Playing skin creator

    Girder 5.0 / Elk-M1EZ8 / Ocelot / SECU-16IR /SECU-16I / SECU-16 / BobCat Humidity
    JRMC 11.1 / M-Audio Delta 410 / Xitel HIFI Pro / Xitel HIFI Link
    NetRemote 2.0 / 6 Zone whole house audio delivering 1580 watts RMS total
    ELO 15" Touchscreen, Nokia 770 and Advent 3500PC Mobile PC 7" TS
    Droid 2 Global

    Click here to visit my Nowplaying Showcase Blog

Posting Permissions

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