Announcement

Collapse
No announcement yet.

weatherXML changes for DarkSky

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

  • CFGuy
    replied
    3.0.1.7
    Changed code to lower case the updater_override.txt file name.
    Fixed error where precipitation percent was not getting set to the correct value for those that use a comma for the decimal separator.. Ex. .10 vs ,10
    Add Wind Gusts to the Forecast devices for provider DarkSky
    Speak Devices: Modified the Forecast Day N to be a textarea instead of a textbox.


    Note: The folowing does not affect existing Devices. Only as you add new devices.
    Once a device is created you can change any of the location values and the device name. All the code uses the refID to make changes.

    Devices with a location of "weather Forecast" will now be set to "weather Forecast Legacy"
    Devices with a location "weather Current" will now be set to "weather Current Legacy"
    Devices with a location "HSTouch Forecast" will become "weather Forecasts"
    Devices with a location "HSTouch Current" will become "weather Conditions"

    Leave a comment:


  • MNB
    replied
    Jeff thanxs for the quick comeback, this is not a drop dead issue only a observation and isn't something that requires immediate attention, Mike

    Leave a comment:


  • prsmith777
    replied
    Originally posted by CFGuy View Post
    This is also in their Docs. Why shouldn't I use the summary field for “automated purposes?”
    The algorithm that generates a human-readable summary is complex and can produce millions of possible summaries—too many to be practical for automated processing. Moreover, we're constantly tweaking the logic, so any pattern-matching you do against our summaries today could easily break tomorrow! By contrast, we promise to keep the values of icon property documented and warn you of any changes to that list.


    I think the closest you will get is in the DSCondition1.json file. It is a snapshot of that moment. You should be able to get by with using that summary since you are using Regex to find certain words. For a list of Conditions that have been imported over time click on the weatherXML Advanced menu button, then Click on Custom. Each time a unique condition is found, it gets added to the list on the custom page. This allows users who want the conditions in a different language to enter the text on the custom page and weatherXML will replace the import text with the entered replacement value. If you prefer Klingon, then enter the Klingon word for the condition.

    If you want to clear the list and start fresh with DarkSky running, you can find the list in the hspi_weatherXML.ini file. Look for the section [language conditions]
    Delete all the entries and with the next import of data, the list will start being built again/


    Thanks Jeff. This helps a lot. Looks like I have my work cut out for me.

    Leave a comment:


  • CFGuy
    replied
    MNB,
    That is definately a bug. It should list Day 0 through Day N.
    In my HSTouch setup, I have a page that shows a summary of the Day 0 to Day 7 forecast. I have set the image for the day to be clickable.
    When clicked it opens a smaller screen over the top of the forecast page. It has a lot more detail for the page selected.
    At the time I made the page there was either no way to dynamically set an image box or there was and I didn't know about it.
    I was able though to call an event so I would set the Forecast Image Rotator to the value of that days image. When done you clicked anywhere on the small screen and it closed.
    When the ability to dynamically change to a particular image, I went that route.
    If HS Mobile gets to where it can show images better, then I could see doing a screen with todays forecast and adding a button to rotate all of the data to the next day.
    That would require a few more devices to rotate the data as well as the images, but would help save screen space in both HSTouch and HSMobile.

    I'll look at this and if its a quick fix I will get it into .7 that I plan on posting this evening. US Central Time, around 7 ish.

    Leave a comment:


  • MNB
    replied
    Jeff, notice one of my devices seem to have an issue in the HSTouch Forecast Image Rotator device when you select a forecast Image (right most column) it opens but no text is being displayed but you can move down the invisible list and it will select a image to display. What and how is this device suppose to work? Mike
    Attached Files

    Leave a comment:


  • CFGuy
    replied
    It will be there later. I went ahead and added it to the release thread because of the change to location names for new devices. If you add a new device you will either have to change the location of the new device to match your existing ones or you will need to change the existing devices locations.
    Once .7 is available I will post here along with a big warning about the names.

    Leave a comment:


  • ewkearns
    replied
    Originally posted by CFGuy View Post

    <snip> Once you are on version 5 I have added a button on the Debug Log page that will when clicked create an Updater Override file in the Homeseer directory. You can then go to the Plugin Management page and Update Listings. That will add a way to select whatever the most current version of weatherXML is available.<snip>
    I am unable to download 3.0.1.7, as it does not show up in the updater file. I was able to go from .5 to .6 with no problem...

    Leave a comment:


  • CFGuy
    replied
    Originally posted by Rotech View Post
    Hi jeff, I know you have been very busy with the implementation, but I was wondering when you get a chance, can you post the screens shot of the device page of how thing should look like. I am not sure if my devices are what they should. I would like to have everything on track before you go ahead to your next phase. Thank you.

    The image below is the way it should look for DarkSky. Each provider will have a different look now as I only show the devices that can be populated by the provider.
    Something that might help you is not completely done yet so I have not added it to the docs.
    On the HS device management page, set it to show the conditions devices. Find the Group Root device and click on the name to edit it. There is a tab labeled weatherXML. Click on that tab. You should get a list of the devices that have been added that are not supported by the current provider. You can manually delete them or there is a button labeled Delete Unsupported Devices. Clicking that button will delete the devices for just that location. BUT IT IS PERMANENT. You can not get them back.

    Click image for larger version

Name:	Capture.PNG
Views:	28
Size:	103.4 KB
ID:	1298625

    Leave a comment:


  • CFGuy
    replied
    This is also in their Docs. Why shouldn't I use the summary field for “automated purposes?”
    The algorithm that generates a human-readable summary is complex and can produce millions of possible summaries—too many to be practical for automated processing. Moreover, we're constantly tweaking the logic, so any pattern-matching you do against our summaries today could easily break tomorrow! By contrast, we promise to keep the values of icon property documented and warn you of any changes to that list.


    I think the closest you will get is in the DSCondition1.json file. It is a snapshot of that moment. You should be able to get by with using that summary since you are using Regex to find certain words. For a list of Conditions that have been imported over time click on the weatherXML Advanced menu button, then Click on Custom. Each time a unique condition is found, it gets added to the list on the custom page. This allows users who want the conditions in a different language to enter the text on the custom page and weatherXML will replace the import text with the entered replacement value. If you prefer Klingon, then enter the Klingon word for the condition.

    If you want to clear the list and start fresh with DarkSky running, you can find the list in the hspi_weatherXML.ini file. Look for the section [language conditions]
    Delete all the entries and with the next import of data, the list will start being built again/



    Leave a comment:


  • drparker151
    replied
    Of note in the faq is they will use the worst condition of the day for the icon. If it is clear during the day and partly cloudy at night, you'll get partly-cloudy-night.

    Leave a comment:


  • drparker151
    replied
    the list of names is here:
    The Dark Sky API allows you to request weather forecasts and historical weather data programmatically. We are asked a lot of questions, and always try to answer them.

    Leave a comment:


  • prsmith777
    replied
    Originally posted by CFGuy View Post


    The conditions make up the name of the images. Ex Condition: Partly cloudy overnight Image: Partly-cloudy-overnight.png
    That's interesting but unfortunately doesn't help me much.

    I guess if there is no published list of possible conditions, I am going to have to record my conditions in a database. After some time, maybe weeks or months, I should have a list that has most possibilities and then I can go from there. The weather does change a lot here in Colorado

    Leave a comment:


  • CFGuy
    replied
    Originally posted by prsmith777 View Post
    Has anyone found a list of the names of possible Conditions given by Dark Sky?

    NOAA has a list of conditions here https://w1.weather.gov/xml/current_obs/weather.php

    I am currently using NOAA conditions for triggering several events by using Easy Trigger regular expressions.

    I've noticed that Dark Sky is more accurate for local conditions than NOAA. I'd like to make the switch to Dark Sky and it would be helpful to know what they are using so I can adjust my regex appropriately.

    The conditions make up the name of the images. Ex Condition: Partly cloudy overnight Image: Partly-cloudy-overnight.png

    Leave a comment:


  • prsmith777
    replied
    Originally posted by The Profit View Post

    Jeff posted a list in post #131 above.
    Thanks. I saw those. They don't seem to match up exactly. For instance, my current Dark Sky condition is "Mostly Cloudy" and there is no such icon. In order for Regular Expressions to work, I need exact names of their conditions.



    Leave a comment:


  • The Profit
    replied
    Originally posted by prsmith777 View Post
    Has anyone found a list of the names of possible Conditions given by Dark Sky?

    NOAA has a list of conditions here https://w1.weather.gov/xml/current_obs/weather.php

    I am currently using NOAA conditions for triggering several events by using Easy Trigger regular expressions.

    I've noticed that Dark Sky is more accurate for local conditions than NOAA. I'd like to make the switch to Dark Sky and it would be helpful to know what they are using so I can adjust my regex appropriately.
    Jeff posted a list in post #131 above.


    Sent from my iPad using Tapatalk

    Leave a comment:

Working...
X