Announcement

Collapse
No announcement yet.

TTS embedded variable

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    TTS embedded variable

    Is it possible to embed a TTS action with a device variable? <O</O

    My hope is that a variable or analog value that is in Homeseers device listing can be nested in a TTS action.

    Example 1



    The [2 is the device code listing for wind speed from the VWS plug-in.

    Example 2



    The `8 is the device code listing for a analog value from a Stargate controller.

    Thanks,
    Lance

    #2
    Try something like this. Change the device codes to what ever you want spoke.

    PHP Code:
    sub main()


    hs.speak "The current wind speed is, " hs.Devicestring("w34") & ",miles per hour"
    hs.speak "The current wind direction is from the, " hs.Devicestring("w36"
    hs.speak "The current temperature is, " hs.Devicestring("w32") & ",Degrees"
    hs.speak "You have, " hs.Devicestring("z31") & ",from the Homeseer board"
    hs.speak "You have, " hs.Devicestring("q20") & ",from Mediacom mail box"
    hs.speak "You have, " hs.Devicestring("q21") & ",from Earthlink mail box"
    hs.speak "The current Homeland security condition is, " hs.Devicestring("z51"
    hs.speak "Here is Tim's Favorite channel listing, " hs.Devicestring("x12")
    hs.speak "Here is Carol's Favorite channel listing, " hs.Devicestring("x19")
    'done talking
    end sub 
    Tim
    FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

    HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

    Comment

    Working...
    X