Announcement

Collapse
No announcement yet.

weatherXML changes for DarkSky

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

  • #16
    Originally posted by CFGuy View Post
    Edit the icon device and go to the Status Graphics page. If there is no icon there you can add one. Make sure the image is in the Html/images/weatherXML/Condition/ directory. It should exactly match the text showing except the image will need a - instead of a space. The image needs to have the png extension.
    Thanks, but the generated value for device "Condition: Day" is -999, so how does one then create a list with different values? Or, how does one map weather condition strings to images if the "Status Graphics" tab in the device only allows for values?

    Comment


    • #17
      I forgot to add this to the main post above. DarkSky does not provide icons. So if you have been using weatherXML for a while you probably have several icons from other providers. You can rename them to match thins list and they will be used. The night ones only work the Conditons devices. The rest work with both Conditions and Forecasts.
      Once I add the Hourly forecasts the nights ones should work for that.

      clear-day.png
      clear-night.png
      rain.png
      snow.png
      sleet.png
      wind.png
      fog.png
      cloudy.png
      partly-cloudy-day.png
      partly-cloudy-night.png

      These last 3 are not used, but DarkSky said they might add them in the future
      Hail.png
      Thunderstorm.png
      Tornado.png
      --
      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


      • #18
        Originally posted by sickpuppy View Post

        Thanks, but the generated value for device "Condition: Day" is -999, so how does one then create a list with different values? Or, how does one map weather condition strings to images if the "Status Graphics" tab in the device only allows for values?
        The plugin will add the correct icon (if it exists) and set the value when the device is next updated.
        The ability to add all the images at one time is on my to do list. An example is the Temperature devices. Those devices and the Moon Phase device have all the icons in the Status Graphics already. You can change the images to be what you want, just don't change the value for them.

        --
        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
          Thanks. I was trying everything to get this to work, but to no avail. Finally got it to work by deleting the .json files in folder HomeSeer HS3>data>weatherXML. Then I went to schedules and ran them to recreate those files and... voila, each appropriate status graphic from the condition folder was now associated with the displayed device.

          Comment


          • #20
            Just sent you a donation (to offset your night out at the movies the other day)

            Comment


            • #21
              I'm sorry, but I'm still confused by images not working and I think I've done what everyone else has suggested. There are appropriately .png files in the Html/images/weatherXML/Condition directory. No errors or red lines in the log file. I tried deleting the json files as suggested, they are recreated but still no change. The forecast data is there and correct, but images aren't updating. I have a custom built HS Touch panel and it's showing nothing for Current, and the NOAA images for forecast. The WeatherXML User pages show the correct images.

              I have no icon showing for current condition, just the word clear.

              Click image for larger version

Name:	current.png
Views:	50
Size:	10.1 KB
ID:	1291611

              My Icon Image devices have the NOAA icons in them still.

              Click image for larger version

Name:	Icon Image.png
Views:	49
Size:	8.6 KB
ID:	1291613

              I have icons for clear-day and rain - but not happening.
              Attached Files

              Comment


              • #22
                right click on one of those NOAA images, paste the link into another browser page. make sure the image you want is in that location with that name. If on Linux, case matters. above you posted Condition and mine is all lower case?
                HS3 SEL running Pro Edition 3.0.0.531 on Ubuntu 18.04, mono 5.20, 656 devices, 209 events.
                Plug-Ins: Chromecast, Device History, EasyTrigger, Ecobee, JowiHue, LutronCaseta, MeiUnifi, PHLocation2, Pushover 3P, SDJ-Health, Sonos, WeatherFlow, weatherXML
                Scripts: SparkMan's Lock Event, 5 of Jon00 scripts.

                Comment


                • #23
                  The file I want is in that folder, the image name/path though is for the NOAA icon of course. I can change the image to the one I want by editing the device, but shouldn't the PI be doing that for me automatically?

                  Comment


                  • #24
                    I manually edited the image for one device, but here's what I'm seeing. The Icon Name values are correct, but the icon's themselves are incorrect/not matching (apart from device 4574 which I edited to set to the 'correct' icon - rain.png

                    Click image for larger version

Name:	Icon and Icon Names.png
Views:	45
Size:	125.8 KB
ID:	1291640

                    Comment


                    • #25
                      Currently, the image devices get changed each time the schedule runs. You need to make a copy of the NOAA image and change it's name to match the name in the Icon Name device. Rename the actual image as partly-cloudly-day.png. Then the next time the schedule runs it will put that image in the device to display it.
                      I do have on my to do list to make so anytime a new image name comes along it will get its own entry in the Status Graphics. At that point you can then change the images in the device.
                      Devices that you can currently do that with are Temperature. You can change the thermometer images as long as you don't change the values. And the moon devices can have their image changed.
                      --
                      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


                      • #26
                        Originally posted by grtaylor View Post
                        The file I want is in that folder, the image name/path though is for the NOAA icon of course. I can change the image to the one I want by editing the device, but shouldn't the PI be doing that for me automatically?
                        Do not edit the device. Edit the name of the images in your condition folder to match what is being pulled from DarkSky.

                        The names they currently use for icon file names can be found here: https://darksky.net/dev/docs/faq

                        HS3 SEL running Pro Edition 3.0.0.531 on Ubuntu 18.04, mono 5.20, 656 devices, 209 events.
                        Plug-Ins: Chromecast, Device History, EasyTrigger, Ecobee, JowiHue, LutronCaseta, MeiUnifi, PHLocation2, Pushover 3P, SDJ-Health, Sonos, WeatherFlow, weatherXML
                        Scripts: SparkMan's Lock Event, 5 of Jon00 scripts.

                        Comment


                        • #27
                          I shut down my HS3 system and did a Tar of the entire HomeSeer directory like I do every Sunday. Since rebooting I keep getting these errors every time it runs a forecast schedule. I tried to disable and reenable the weatherXML plugin to no avail.
                          .
                          .
                          2019-03-11 02:18:29.6646230 PM weatherXML Download Status: Success
                          2019-03-11 02:18:29.6647180 PM weatherXML wXMLValueSetRef: 3/11/2019 2:18:29 PM
                          2019-03-11 02:18:29.6702110 PM weatherXML importDSForecast
                          2019-03-11 02:18:29.6770030 PM weatherXML Data imported for DarkSky. Finish the process
                          2019-03-11 02:18:29.6771360 PM weatherXML Provider: Dark Sky, Set Days: 7, Actual Days: 8
                          2019-03-11 02:18:29.7047210 PM weatherXML Error ConvertValues Temp
                          2019-03-11 02:18:29.7051680 PM weatherXML Error ConvertValues Speed: Method 'System.String[].Set' not found.
                          2019-03-11 02:18:29.7055980 PM weatherXML Error ConvertValues Temp
                          2019-03-11 02:18:29.7060420 PM weatherXML Error ConvertValues Speed: Method 'System.String[].Set' not found.
                          2019-03-11 02:18:29.7064810 PM weatherXML Error ConvertValues Temp
                          2019-03-11 02:18:29.7069370 PM weatherXML Error ConvertValues Speed: Method 'System.String[].Set' not found.
                          2019-03-11 02:18:29.7073640 PM weatherXML Error ConvertValues Temp
                          2019-03-11 02:18:29.7078220 PM weatherXML Error ConvertValues Speed: Method 'System.String[].Set' not found.
                          2019-03-11 02:18:29.7082810 PM weatherXML Error ConvertValues Temp
                          2019-03-11 02:18:29.7087430 PM weatherXML Error ConvertValues Speed: Method 'System.String[].Set' not found.
                          2019-03-11 02:18:29.7092490 PM weatherXML Error ConvertValues Temp
                          2019-03-11 02:18:29.7097170 PM weatherXML Error ConvertValues Speed: Method 'System.String[].Set' not found.
                          2019-03-11 02:18:29.7101690 PM weatherXML Error ConvertValues Temp
                          2019-03-11 02:18:29.7107000 PM weatherXML Error ConvertValues Speed: Method 'System.String[].Set' not found.
                          2019-03-11 02:18:29.7111900 PM weatherXML Error ConvertValues Temp
                          2019-03-11 02:18:29.7116760 PM weatherXML Error ConvertValues Speed: Method 'System.String[].Set' not found.
                          2019-03-11 02:18:29.7132640 PM weatherXML Checking 3/11/2019 12:00:00 AM
                          2019-03-11 02:18:29.7138690 PM weatherXML Finished Checking Image for 3/11/2019 12:00:00 AM
                          2019-03-11 02:18:29.7141390 PM weatherXML Set the forecastDay
                          2019-03-11 02:18:29.7145830 PM weatherXML Set the Day abbreviation
                          2019-03-11 02:18:29.7147210 PM weatherXML Set the Night abbreviation
                          2019-03-11 02:18:29.7148620 PM weatherXML Date Format = 1
                          2019-03-11 02:18:29.7151540 PM weatherXML Set the Night condtion
                          HS3 SEL running Pro Edition 3.0.0.531 on Ubuntu 18.04, mono 5.20, 656 devices, 209 events.
                          Plug-Ins: Chromecast, Device History, EasyTrigger, Ecobee, JowiHue, LutronCaseta, MeiUnifi, PHLocation2, Pushover 3P, SDJ-Health, Sonos, WeatherFlow, weatherXML
                          Scripts: SparkMan's Lock Event, 5 of Jon00 scripts.

                          Comment


                          • #28
                            Jeff, can you check what is being pulled from DS's servers for "Dark Sky Forecast 1." Both yesterday and today, I'm getting the nighttime forecast for what would be tomorrow's forecast, which also results in a corresponding nighttime icon. Forecast devices 2-7 all have daytime forecasts/icons.
                            thanks

                            Comment


                            • #29
                              I do have images with names that match those needed by DarkSky in the correct folder. Take a look at my screenshot for Icon Name 1 and the graphic shown for Icon Image 1 - the image being shown is not named rain.png. There is a rain.png file in the folder, and it's not that one. It's the one showing for Icon Image 0. that graphic is named rain.png.

                              Comment


                              • #30
                                look at the path in Status Graphics setting for each device are they exactly the same?
                                HS3 SEL running Pro Edition 3.0.0.531 on Ubuntu 18.04, mono 5.20, 656 devices, 209 events.
                                Plug-Ins: Chromecast, Device History, EasyTrigger, Ecobee, JowiHue, LutronCaseta, MeiUnifi, PHLocation2, Pushover 3P, SDJ-Health, Sonos, WeatherFlow, weatherXML
                                Scripts: SparkMan's Lock Event, 5 of Jon00 scripts.

                                Comment

                                Working...
                                X