Announcement

Collapse
No announcement yet.

CastWebPage via script not working

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

    CastWebPage via script not working

    I'm trying to cast a URL via a script. It isn't working. It does work if I use a regular Chromecast Cast event.

    Here is my script:

    Sub Main(byVal params As String)

    Dim paramsArr() As String
    paramsArr = params.Split("|")

    Dim castId As String = paramsArr(0)
    Dim url As String = paramsArr(1)
    If url.IndexOf("$$D") > -1 Then
    url = hs.ReplaceVariables(url)
    End If

    hs.WriteLog("CastWebPage", "castID: " & castId & ", url: " & url)

    hs.PluginFunction("Chromecast","","CastWebPage", new Object() {castId, url})

    End Sub​

    Anyone have any ideas?
    HS4, Insteon, Z-wave, USB-UIRT, Harmony Hubs, Google Hub/Chromecasts/Speakers, Foscam & Amcrest cameras, EZVIZ DB1 doorbell
    Plugins: BLLAN, BLOccupied, BLUSBUIRT, Chromecast, Harmony Hub, Insteon, Jon00 Homeseer/Echo Skill Helper, Harmony Hub, Jon00 DB Charting, MediaController, NetCAM, PHLocation2, Pushover 3P, weatherXML, Z-wave

    #2
    I just checked the code, there is a typo for this scripting function, it is called CastWepPage instead of CastWebPage.
    I will fix it in the next version of the plugin, sorry for the trouble.

    Comment


      #3
      Thank you for your speedy reply! Glad to hear I wasn't missing something silly.
      HS4, Insteon, Z-wave, USB-UIRT, Harmony Hubs, Google Hub/Chromecasts/Speakers, Foscam & Amcrest cameras, EZVIZ DB1 doorbell
      Plugins: BLLAN, BLOccupied, BLUSBUIRT, Chromecast, Harmony Hub, Insteon, Jon00 Homeseer/Echo Skill Helper, Harmony Hub, Jon00 DB Charting, MediaController, NetCAM, PHLocation2, Pushover 3P, weatherXML, Z-wave

      Comment

      Working...
      X