Announcement

Collapse
No announcement yet.

Hstv 3

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

    #16
    Did you put in the user name thing as above? I get an error in my log "9/23/2012 7:44:04 PM - Error - Script compile error: Name 'userName' is not declared.on line 19" with the script below.


    Public Dim IName as String = "HSTV"
    Public Dim sINI as String = "hspi_hstv.ini"
    Sub Main(ByVal sChanNum As String)
    hs.WriteLog(IName,"Tune to channel " & sChanNum)
    SELECT CASE userName
    CASE "default"
    Select Case sChanNum
    Case "169"
    hs.TriggerEvent ("Channel NFLNET DN")
    Case "187"
    hs.TriggerEvent ("Channel ABC DN")
    Case "171"
    hs.TriggerEvent ("Channel AMC DN")
    Case "173"
    hs.TriggerEvent ("Channel ESPN DN")
    Case "175"
    hs.TriggerEvent ("Channel HISTORY DN")
    Case "176"
    hs.TriggerEvent ("Channel TLC DN")
    Case "183"
    hs.TriggerEvent ("Channel WCIU DN")
    Case "184"
    hs.TriggerEvent ("Channel MYTV DN")
    Case "188"
    hs.TriggerEvent ("Channel NBC DN")
    Case "189"
    hs.TriggerEvent ("Channel CBS DN")
    Case "190"
    hs.TriggerEvent ("Channel FOX DN")
    Case "191"
    hs.TriggerEvent ("Channel PBS DN")
    Case "192"
    hs.TriggerEvent ("Channel CW DN")
    Case "197"
    hs.TriggerEvent ("Channel DISNEY DN")
    Case "198"
    hs.TriggerEvent ("Channel ABC FAMILY DN")
    Case "200"
    hs.TriggerEvent ("Channel COMCAST DN")
    Case "203"
    hs.TriggerEvent ("Channel ESPN2 DN")
    Case "204"
    hs.TriggerEvent ("Channel TNT DN")
    Case "206"
    hs.TriggerEvent ("Channel NGC DN")
    Case "208"
    hs.TriggerEvent ("Channel AETV DN")
    Case "212"
    hs.TriggerEvent ("Channel SCIFI DN")
    Case "215"
    hs.TriggerEvent ("Channel TNCK DN")
    Case "216"
    hs.TriggerEvent ("Channel CNN DN")
    Case "218"
    hs.TriggerEvent ("Channel Discovery DN")
    Case "219"
    hs.TriggerEvent ("Channel TBS DN")
    Case "221"
    hs.TriggerEvent ("Channel USA DN")
    Case "224"
    hs.TriggerEvent ("Channel Animal Planet DN")
    Case "197"
    hs.TriggerEvent ("Channel DISNEY DN")
    End Select
    END SELECT
    End Sub
    Last edited by jayman13; September 23, 2012, 08:03 PM.

    Comment


      #17
      It's looking good I think though once I can get it working...
      Attached Files

      Comment


        #18
        Look in the download thread for an example on how to split the username and the channel number.
        http://forums.homeseer.com/showthread.php?t=123533

        Also you will need to add an entry to the ini file to add the user name to what is sent to the script. It is in the example in the above thread.
        --
        Jeff Farmer
        HS 3, HSPhone
        My HS3 Plugins: CFHSExtras, Random, Restart, Tracker, WeatherXML, PanaBluRay
        Other Plugins In Use: APCUPSD, BLOnkyo, Device History, EasyTrigger, HSTouch Server, PHLocation2, Pushover, RFXCom, UltraGCIR3, UltraMon3, UltraPioneerAVR3, X10, Z-Wave

        Hardware: GoControl Irrigation Controler, Schlage Lever Lock, Schlage Deadbolt, Way2Call Hi-Phone, RFXCom RFXrec433 Receiver, WGL 800, TI-103, Z-Net, Pioneer 1120, Pioneer 1021, Pioneer LX302, Panasonic BDT-110, Panasonic BDT-210 x2

        Comment


          #19
          Originally posted by CFGuy View Post
          Look in the download thread for an example on how to split the username and the channel number.
          http://forums.homeseer.com/showthread.php?t=123533

          Also you will need to add an entry to the ini file to add the user name to what is sent to the script. It is in the example in the above thread.
          Got it. Didn't understand the concept at first especially since I am a novice at scripting but got to learn a little in the process. Working great now. By the way, is there a way to change the font and or color or underline certain words in the description and leave the rest a different font or color?

          Comment

          Working...
          X