Announcement

Collapse
No announcement yet.

weatherXML changes for DarkSky

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

  • CFGuy
    replied
    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.

    Leave a comment:


  • grtaylor
    replied
    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:	61
Size:	125.8 KB
ID:	1291640

    Leave a comment:


  • grtaylor
    replied
    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?

    Leave a comment:


  • drparker151
    replied
    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?

    Leave a comment:


  • grtaylor
    replied
    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:	66
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:	64
Size:	8.6 KB
ID:	1291613

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

    Leave a comment:


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

    Leave a comment:


  • sickpuppy
    replied
    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.

    Leave a comment:


  • CFGuy
    replied
    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.

    Leave a comment:


  • CFGuy
    replied
    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

    Leave a comment:


  • sickpuppy
    replied
    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?

    Leave a comment:


  • CFGuy
    replied
    Originally posted by Rotech View Post
    Jeff, I suppose you are going to announce when the final release is finished. But when finished do we still have to go thru all of the process as explained above?
    You will need to delete the devices. I really don't want to code an automatic delete of your devices.
    You won't have to download the zip file. The files that are in the zip will be part of the normal Updater process.
    You will have to register with DarkSky and enter the API, Lat and Long. Which is the same as all of the providers that use an API.
    The only time you will need to set the logging level to Output File is if you are getting errors and I ask you to set it and send me the output file.

    Leave a comment:


  • Rotech
    replied
    Jeff, I suppose you are going to announce when the final release is finished. But when finished do we still have to go thru all of the process as explained above?

    Leave a comment:


  • CFGuy
    replied
    Originally posted by sickpuppy View Post
    Jeff, thanks so much for offering up the beta - looks awesome and I feel the data I'm getting from Dark Sky is spot on. I've gotten everything to work except for the icons in the days 1-7 to work (the current condition icon works fine). All the icons show up in PI under User -> Current, but then when I select the corresponding Dark Sky devices (Icon: Day Image) under forecast, I only get the text. How do I get the forecast icons to show up?
    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. If you aren't using the device in HS Mobile or HSTouch you can go to the Devices tab, delete the Icon: Image devices and add them back. The next time the forecast runs if you have the images in the Condtion directory, they will be used.

    Leave a comment:


  • sickpuppy
    replied
    Jeff, thanks so much for offering up the beta - looks awesome and I feel the data I'm getting from Dark Sky is spot on. I've gotten everything to work except for the icons in the days 1-7 to work (the current condition icon works fine). All the icons show up in PI under User -> Current, but then when I select the corresponding Dark Sky devices (Icon: Day Image) under forecast, I only get the text. How do I get the forecast icons to show up?

    Leave a comment:


  • CFGuy
    replied
    For conditions and Forecast, that should be correct. I can only say that I haven't changed the code for those 2 sections. Make a backup of the current hspi_weatherXML.exe file, just in case.

    Leave a comment:

Working...
X