NOAA Weather Plus discussions

Posted on
Wed Jul 22, 2015 6:38 pm
gskarp offline
Posts: 96
Joined: Apr 19, 2012

Re: NOAA Weather Plus discussions

All of a sudden my current condition icon (and all condition icons) says "http://forecast". I reloaded the plugin. Any ideas?

Posted on
Wed Jul 22, 2015 11:51 pm
nsheldon offline
Posts: 1899
Joined: Aug 09, 2010
Location: CA

Re: NOAA Weather Plus discussions

Hi.

I'm guessing you're talking about how the condition icons are appearing on a control page? Maybe you could attach a screen shot of what you're seeing.

Posted on
Fri Jul 24, 2015 12:38 am
gskarp offline
Posts: 96
Joined: Apr 19, 2012

Re: NOAA Weather Plus discussions

No, I am referring to the icons being called out by a NOAA Weather Plus Device. This is the states window for the device. Notice all the icons are reading "http://forecast":

Image

Posted on
Fri Jul 24, 2015 1:53 am
nsheldon offline
Posts: 1899
Joined: Aug 09, 2010
Location: CA

Re: NOAA Weather Plus discussions

Got it. Yea. NOAA changed the weather icon URL so my basic string replace method of extracting the weather condition icon name failed. I've updated the plugin to version 1.1.18 and begun using a more flexible (but slightly slower) regular expression method of extracting the weather condition icon name. Version 1.1.18 is available for download now.

Posted on
Fri Jul 24, 2015 1:55 am
nsheldon offline
Posts: 1899
Joined: Aug 09, 2010
Location: CA

Re: NOAA Weather Plus discussions

Patch update 1.1.18 released:

(See main NOAA Weather Plus thread for download link).

Changes Since Version 1.1.17

  • Fixed a bug that caused the weather condition icon name state to show up as a partial URL instead of the icon filename.

Posted on
Fri Jul 24, 2015 9:09 am
gskarp offline
Posts: 96
Joined: Apr 19, 2012

Re: NOAA Weather Plus discussions

God bless you Nathan Sheldon!

Posted on
Sun Jan 08, 2017 8:49 am
PottedPorkProduct offline
User avatar
Posts: 13
Joined: Jun 29, 2014
Location: San Diego, CA, USA

Re: NOAA Weather Plus discussions

The forecast icons for today and tomorrow aren't working on my system. Several are either empty or say "DualImage". I'm running version 1.1.18

currentConditionIcon is an empty string
forecastTodayIcon looks like it's working, it says "sct"
forecastTonightIcon says "DualImage"
forecastTomorrowIcon says "DualImage"
forecastTomorrowNightIcon says "DualImage"

forceast2ndDayIcon looks like it's working, it says "bkn"
forecast2ndNightIcon also looks like it's working, it says nra20
Same for the rest of the forecasts going out until day 6.

Posted on
Sun Jan 08, 2017 10:07 pm
nsheldon offline
Posts: 1899
Joined: Aug 09, 2010
Location: CA

Re: NOAA Weather Plus discussions

It looks like the National Weather Service has begun using just-in-time image generation for some forecast icons. The "DualImage" designation you're seeing is the result of forecast icon URLs specifying a PHP script (DualImage.php) instead of an actual image file name. The PHP script allows NOAA to specify URLs that pass a number of parameters which then dynamically generates a PNG image based on those parameters in real-time. So for instance the URL
Code: Select all
http://forecast.weather.gov/DualImage.php?i=nra&j=nra&ip=90&jp=60
dynamically generates an image of nighttime rain with the text "90% ---> 60%" superimposed over the bottom part of the image.

The various weather icon states found in the NOAA Weather Plus plugin were intended to be used in Indigo control pages to specify a weather forecast image file name (locally stored on the Indigo server). Indigo wasn't designed to allow remote images to be used for dynamic device states. Device state icon images must reside in the /Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/images folder, but if they're generated in real-time now, there's no way to store all possible image mode state names as image files in that location.

I'll have to think about possible ways of working around this within the plugin. I don't have any ideas yet. Unfortunately, I don't see a viable workaround for this problem in a way that would allow images for the "DualImage" conditions to be shown. If you have any suggestions, I'd be happy to hear them.

Posted on
Mon Jan 09, 2017 3:50 am
nsheldon offline
Posts: 1899
Joined: Aug 09, 2010
Location: CA

Re: NOAA Weather Plus discussions

Patch update 1.1.19 released:

(See main NOAA Weather Plus announcement post for download link).

Changes Since Version 1.1.18

  • Fixed weather condition icon image names that appeared as "DualImage" for the icon name due to changes in NOAA data feed.

Posted on
Thu Mar 29, 2018 8:39 pm
philipbasile offline
Posts: 81
Joined: Jan 08, 2015
Location: NJ

Re: NOAA Weather Plus discussions

When I display the forecast icon on a control page all I get is something like shra80.
I dont understand how I am supposed to use this feature. Can someone explain this ?

Thanks

philip

Posted on
Fri Mar 30, 2018 1:33 am
nsheldon offline
Posts: 1899
Joined: Aug 09, 2010
Location: CA

Re: NOAA Weather Plus discussions

The Current Condition Icon and various Forecast Icon device states are taken directly from the NOAA data feed. They specify the filename of an icon image file that corresponds to the weather condition. These icon image files aren't installed in Indigo and must be manually installed in order to work on Control Pages. This requires a bit of work.

You first need to download a ZIP file of the various weather icons from NOAA at http://w1.weather.gov/xml/current_obs/weather.php. Once you've unzipped those icons, you need to convert them all from JPEG to PNG files. The Preview application in macOS can do this, but not in batch (unless you create an AppleScript or Automator action). After converting to PNG, you need to edit the filename of each image by adding something distinctive such as "NOAA Condition" followed by a plus sign (+) in front of the existing file name. This allows you to select a single Device State image in the control page. Be sure you aren't currently editing the control page, then put all of the image files in the /Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/images/controls/devices directory. When you begin editing the control page again, create a new control item, set Display to Device State. Set For to your NOAA Weather Plus device and select your Forecast icon state. Make sure the "As image" radio button is selected and select the "NOAA Condition+.png" item from the list. Once you click Save and Close, you can view the Control Page and the new control you created will appear as a NOAA weather condition icon that corresponds to the forecasted weather.

Posted on
Fri Mar 30, 2018 8:11 am
philipbasile offline
Posts: 81
Joined: Jan 08, 2015
Location: NJ

Re: NOAA Weather Plus discussions

Got it !
Thank You !

Who is online

Users browsing this forum: No registered users and 1 guest