Announcement

Collapse
No announcement yet.

Weather XML Variables

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

    Weather XML Variables

    Are the variables that the plugin creates, like the weather alert ones, suppose to clear out after the alert has expired?
    Because they are not.
    I am using them now, since I can not get the "Last Alert Device" to work. It really messes with my HSTouch because the regular alert devices disappear after the alert expires, there fore I can't set things to use values to change buttons or screens.
    Jon00 helped me with this script -
    Code:
    Sub Main(ByVal Params As Object)
    
            Dim AlrtTitle As String
            hs.CreateVar("wxmlAlertTitle_1")
            AlrtTitle = hs.GetVar("wxmlAlertTitle_1")
            If AlrtTitle = "" Then
                hs.SetDeviceString(1381, "No active alerts", True)
            Else
                hs.SetDeviceString(1381, AlrtTitle, True)
            End If
        End Sub
    but my device still shows a warning from 2 days ago. So the variable must not be getting cleared after the alert expires.

    Thanks,
    Tim
    FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

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