Announcement

Collapse
No announcement yet.

How To: weatherXML and PHLocation

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

  • #46
    I added a dropdown on the weatherXML Plugin Integration page to allow selecting None, Version1, or Version2. You won't be able to use both at the same time. I'm thinking that since I can't put plugins in the beta section, I may just put a zip file out on my website and allow downloading a zip file for beta testing. I'll try to get the documentation modified and posted this Saturday.
    --
    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


    • #47
      I have the dropdown added to the Plugin Integration tab in weatherXML .90. You select the version of PHLocation that you are using. Then go to the Locations setup page and the dropdowns to select Longitude, Latitude and Town will now display the devices for the version of PHLocation that you selected.
      --
      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


      • #48
        Originally posted by CFGuy View Post
        I have the dropdown added to the Plugin Integration tab in weatherXML .90. You select the version of PHLocation that you are using. Then go to the Locations setup page and the dropdowns to select Longitude, Latitude and Town will now display the devices for the version of PHLocation that you selected.
        Thanks!
        HS 3.0.0.548: 1965 Devices 1146 Events
        Z-Wave 3.0.1.262: 122 Nodes on one Z-Net

        Comment


        • #49
          Originally posted by CFGuy View Post
          I have the dropdown added to the Plugin Integration tab in weatherXML .90. You select the version of I've PHLocation that you are using. Then go to the Locations setup page and the dropdowns to select Longitude, Latitude and Town will now display the devices for the version of PHLocation that you selected.
          I've set the PHLocation to version to 2 and attempted to set the devices for each location, but the devices are not sticking. After I select them, there's no save option, just the delete. When I come back into the device, it then asks to "Please Select" for each of the three items.

          Comment


          • #50
            Found the issue. Since it takes a couple of days to get a new version into the updater I'll put up a zip file on my domain website.
            Stop the weatherXML plugin
            Download the zip file: http://www.myautomatedhome.net/weatherXML30091.zip
            Extract the HSPI_WEATHERXML.exe file into the HS3 main folder, overwriting the current plugin file.
            Start weatherXML.
            --
            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


            • #51
              Originally posted by CFGuy View Post
              Found the issue. Since it takes a couple of days to get a new version into the updater I'll put up a zip file on my domain website.
              Stop the weatherXML plugin
              Download the zip file: http://www.myautomatedhome.net/weatherXML30091.zip
              Extract the HSPI_WEATHERXML.exe file into the HS3 main folder, overwriting the current plugin file.
              Start weatherXML.
              That did the trick.

              Regarding the Lat/Lon for World Weather Online Setup for these locations that utilize PHLocation2, when do the values get updated? There are valid coordinates listed in HS3 for these PHLocation 2 devices, but after setting the PHLocation latitude/Longitude/Town/City devices, the lat/lon under the WWO setup section just shows -1. I also tried restarting the plugin, but the values still show -1.

              Click image for larger version

Name:	weatherXML-phlocation-wwo.PNG
Views:	4
Size:	182.2 KB
ID:	1278970

              Comment


              • #52
                Just enter your home Lat and Lon. When the schedule runs it will check for valid values in the PHLocation devices and use those for the update location but it will not over write what you enter on the setup page. If for some reason the PHLocation doesn't have a valid value it will use what is in the setup page.
                You can also setup an event that triggers on the PHLocation City Change and have the action be to update a weatherXML location.
                --
                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


                • #53
                  Originally posted by CFGuy View Post
                  Just enter your home Lat and Lon. When the schedule runs it will check for valid values in the PHLocation devices and use those for the update location but it will not over write what you enter on the setup page. If for some reason the PHLocation doesn't have a valid value it will use what is in the setup page.
                  You can also setup an event that triggers on the PHLocation City Change and have the action be to update a weatherXML location.
                  Thanks, the Lat/Lon is updating correctly like you said. I just wasn't waiting until the schedule had run.

                  I created the event, like you said. Does this look correct?

                  Click image for larger version

Name:	phlocation2-event-weatherxml-update.PNG
Views:	18
Size:	78.6 KB
ID:	1279159

                  I did notice that the current conditions and forecast aren't updating for my PHLocation users that have now been updated in WeatherXML to use PHLocation 2. The last update was from the 22nd.

                  Click image for larger version

Name:	weatherxml-steve-phone-current.PNG
Views:	4
Size:	345.7 KB
ID:	1279160

                  Here's some debug logs. Let me know if you want me to send you the WWConditions2.xml file. Let me know your email and I can send it.

                  Code:
                   
                  Jan-25 17:33:01 weatherXML Check to see if DB is being used. Save the data is set to Yes.
                  Jan-25 17:33:01 weatherXML Set selected Speak Devices String
                  Jan-25 17:33:01 weatherXML Error weatherWWOCurrent: Object reference not set to an instance of an object.
                  Jan-25 17:33:01 weatherXML The file D:\Program Files (x86)\HomeSeer HS3\Data\weatherXML\WWConditions2.xml is ready for import.
                  Jan-25 17:33:01 weatherXML SaveLocSource (Value: 1/25/2019 5:33:01 PM to WeatherInfo2 lastranDlWWO in weatherXML\weatherInfo.ini)
                  Jan-25 17:33:01 weatherXML wXMLValueSetRef: 1/25/2019 5:33:01 PM
                  Jan-25 17:33:01 weatherXML Download Status: Success
                  Jan-25 17:33:01 weatherXML Downloading the WWO Weather file at http://api.worldweatheronline.com/premium/v1/weather.ashx?q=xx.xx321983,xx.xx732605&format=xml&num_of_days=5&tp=12&key=xxxxxxxxxxxxx
                  Jan-25 17:33:01 weatherXML Replacement URL: http://api.worldweatheronline.com/premium/v1/weather.ashx?q=xx.xx321983,xx.xx732605&format=xml&num_of_days=5&tp=12&key=xxxxxxxxxxxxxxx
                  Jan-25 17:33:01 weatherXML Download and Import
                  Jan-25 17:33:01 weatherXML SaveLocSource (Value: 1/25/2019 5:33:01 PM to WeatherInfo2 HiLowDate in weatherXML\weatherInfo.ini)
                  Jan-25 17:33:01 weatherXML wXMLValueSetRef: 1/25/2019 5:33:01 PM
                  Jan-25 17:33:01 weatherXML Reset Hi Low
                  Jan-25 17:33:01 weatherXML SaveLocSource (Value: Overcast to weatherInfo2 ConditionPrevious in weatherXML\weatherInfo.ini)
                  Jan-25 17:33:01 weatherXML SaveLocSource (Value:xx.xx732605 to WeatherInfo2 wwolon in weatherXML\weatherInfo.ini)
                  Jan-25 17:33:01 weatherXML wXMLValueSetRef: xx.xx732605
                  Jan-25 17:33:01 weatherXML SaveLocSource (Value: xx.xx321983 to WeatherInfo2 wwolat in weatherXML\weatherInfo.ini)
                  Jan-25 17:33:01 weatherXML wXMLValueSetRef: xx.xx321983
                  Jan-25 17:33:01 weatherXML The phlocation Longitude is xx.xx732605
                  Jan-25 17:33:01 weatherXML SaveLocSource (Value: 1/25/2019 5:33:01 PM to WeatherInfo1 alertEnd in weatherXML\weatherInfo.ini)
                  Jan-25 17:33:01 weatherXML Using PH Longitude device value instead: xx.xx732605
                  Jan-25 17:33:01 weatherXML wXMLValueSetRef: 1/25/2019 5:33:01 PM
                  Jan-25 17:33:01 weatherXML Alerts Finished
                  Jan-25 17:33:01 weatherXML The PH Longitude device string is
                  Jan-25 17:33:01 weatherXML Checking alerts for xxxx Texas
                  Jan-25 17:33:01 weatherXML Check for alert triggers
                  Jan-25 17:33:01 weatherXML The phlocation Latitude is xx.xx321983
                  Jan-25 17:33:01 weatherXML Using PH Latitude device value instead: xx.xx321983
                  Jan-25 17:33:01 weatherXML The PH Latitude device string is
                  Jan-25 17:33:01 weatherXML The parsed value is 2709
                  Jan-25 17:33:01 weatherXML The current culture is en-US
                  Jan-25 17:33:01 weatherXML Found RefID: 1451
                  Jan-25 17:33:01 weatherXML The phlocation Longitude refID is 2710
                  Jan-25 17:33:01 weatherXML Check if this address exists: Location 1 Alert #3
                  Jan-25 17:33:01 weatherXML The phlocation Latitude device refID is 2709
                  Jan-25 17:33:01 weatherXML wXMLCurrent: Running current location 2
                  Jan-25 17:33:01 weatherXML SaveLocSource (Value: 1/25/2019 5:33:01 PM to WeatherInfo2 currentStart in weatherXML\weatherInfo.ini)
                  Jan-25 17:33:01 weatherXML Found RefID: 882
                  Jan-25 17:33:01 weatherXML wXMLValueSetRef: 1/25/2019 5:33:01 PM
                  Jan-25 17:33:01 weatherXML Check if this address exists: Location 1 Alert #2
                  Jan-25 17:33:01 weatherXML Check if this address exists: Location 1 Alert #1
                  Jan-25 17:33:01 weatherXML Found RefID: 1452

                  Comment


                  • #54
                    jeff at myautomatedhome.net
                    --
                    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


                    • #55
                      Originally posted by CFGuy View Post
                      jeff at myautomatedhome.net
                      I sent the file a couple of days ago. Just checking to see if you may have tracked down the cause of the error which is preventing the updates from WWO.

                      Comment


                      • #56
                        I have figured out what is causing the error. In the previous version there was a section to grab the text location the data was from. I was using that to populate the Location device. I will most likely just comment out the code looking for the location for now. I have to go into the main office for work tomorrow so it will either be tomorrow evening or tuesday when I can submit the fix to the updater.
                        --
                        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


                        • #57
                          Hi Jeff. Any luck with the fix for updating PHLocation devices when using WWO? It seems like updates through homeseer are taking way longer than before. I wonder if you could have two versions of your plugin: a paid and a free, just so you could put beta releases out faster instead of waiting for the official update to make it to the updater.

                          Comment


                          • #58
                            I think you missed one of my emails. I figured you were busy and just didn't have a chance. I have version .92 available to download at http://www.myautomatedhome.net/weatherxml.zip. Make a backup of the current hspi_weatherxml.exe.
                            Then save the file in the zip to the HS directory. If you would try to current schedule. And if it works try the forecast schedule.

                            If you replied after that then I missed it.
                            --
                            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


                            • #59
                              Thanks Jeff. Totally missed your email. I have .92 installed and everything updated ok with no errors in the log. I'll keep an eye on it tomorrow during my commute to see if the "update conditions and forecast" event that I created triggers without error. I manually triggered the event after running the current conditions and forecast schedules and didn't receive an error, but also nothing changed since my location hadn't changed.

                              Comment


                              • #60
                                Originally posted by slbuck View Post
                                I'll keep an eye on it tomorrow during my commute to see if the "update conditions and forecast" event that I created triggers without error.
                                Not seeing the object not referenced error anymore and the updates appear to work correctly when changing cities.

                                Occasionally, I do see the following errors:

                                Error: System.Net.HttpWebResponse The remote server returned an error: (500) Internal Server Error.

                                and

                                Error: System.Net.HttpWebResponse The remote server returned an error: (400) Bad Request.

                                But I think this is WWO having issues since it's not doing it all the time. I have the schedules set to run every hour and it's not throwing these errors every time.

                                Comment

                                Working...
                                X