Announcement

Collapse
No announcement yet.

Forecast for Location 2

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

    Forecast for Location 2

    I moved my daughter and her husband to Sterling, CO.
    I have the current data in HSTouch using the replacement variables.
    How do I get their forecasts into HStouch, since only the default forecasts have devices in HS?
    I looked through the docs and the ini file.
    I am still using HS2. (last release)

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

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

    #2
    weatherXML for HS2 won't create devices for any but the first location.

    But it does still store the data in an ini file so it can be displayed in the plugin webpages.

    You could create your own devices and then write a script that grabs the data you want to use and put it into the devices you create. Then use those devices in HSTouch.
    --
    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


      #3
      Sorry, I just don't see it in the weatherXML ini file in the config folder.
      Am I looking in the wrong place?

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

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

      Comment


        #4
        I had dig into the way back machine to look this up.

        The file is in the directory
        HomeSeer HS2\data\weatherXML
        it's name is weatherInfo.dat.

        You can still use the HS ini functions.
        Set a variable like this.

        Dim sINIFile2 AsString = "\..\data\weatherXML\weatherInfo.dat"

        Then you can use the sINIFile2 on the end of the HS ini functions.
        --
        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


          #5
          This is what I fudged out, not so good at scripting.

          Code:
          Sub Main(ByVal Params As Object)
          
          Dim sINIFile2 As String = "\..\data\weatherXML\weatherInfo.dat"
          
          Dim a As String = hs.GetINISetting("Forecast2","forecastToday",sINIFile2)
          
          
          
          hs.SetDeviceString("t50",a)
          
          
          End Sub
          What I get in the device t50 is "\..\data\weatherXML\weatherInfo.dat"

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

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

          Comment


            #6
            You need 1 more parameter on the GetINISetting

            PHP Code:
              
             Dim a 
            As String hs.GetINISetting("Forecast2","forecastToday",""sINIFile2
            The third parameter is the default value to be returned if that key does not exist in the file.

            The name of the ini file is the 4th parameter.
            --
            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


              #7
              That did it. Thank you

              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