Author Topic: NOAA Image of the Day source changed...  (Read 25417 times)

0 Members and 1 Guest are viewing this topic.

Offline jay_hoehn

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 656
    • Jay's Woodcrafts
Re: NOAA Image of the Day source changed...
« Reply #50 on: August 27, 2010, 12:22:58 PM »
Ken,

I am getting this error after uploading the new script.  Any thoughts.

Notice: Undefined index: last-modified in /home/content/j/a/y/jaysfurniture/html/wx/get-nnvl-iod.php on line 196

www.jayswoodfurniture.com/wx/picture.php
Davis Vantage Pro2 Plus
VVP
Weather Display


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9282
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: NOAA Image of the Day source changed...
« Reply #51 on: August 27, 2010, 12:35:35 PM »
Ken,

I am getting this error after uploading the new script.  Any thoughts.

Notice: Undefined index: last-modified in /home/content/j/a/y/jaysfurniture/html/wx/get-nnvl-iod.php on line 196

www.jayswoodfurniture.com/wx/picture.php
I saw that, Jay.  I did a http://www.jayswoodfurniture.com/wx/get-nnvl-iod.php?cache=refresh and now the page appears fine.  I guess the cache for the page was old and had not automatically refreshed.

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline jay_hoehn

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 656
    • Jay's Woodcrafts
Re: NOAA Image of the Day source changed...
« Reply #52 on: August 27, 2010, 01:55:53 PM »
Thanks Ken.  I hope this is not something I need to do each day.  The script should automagicaly refresh, right?

Jay
Davis Vantage Pro2 Plus
VVP
Weather Display


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9282
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: NOAA Image of the Day source changed...
« Reply #53 on: August 27, 2010, 06:12:11 PM »
I don't think you need to do it every day .. the issues may be due to the new script with older cache files as you implement the new script.  After it's running (and the cache is set), it should maintain itself as needed.  The ?cache=refresh argument was there just to force a refresh from the source.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline jay_hoehn

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 656
    • Jay's Woodcrafts
Re: NOAA Image of the Day source changed...
« Reply #54 on: August 27, 2010, 06:43:47 PM »
OK.  Great.  I'll try to remember the force refresh for the next time the NOAA site changes and you have to rewrite the script.  Thanks for all you do for us.

Jay
Davis Vantage Pro2 Plus
VVP
Weather Display


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9282
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: NOAA Image of the Day source changed...
« Reply #55 on: August 27, 2010, 06:44:55 PM »
You're welcome, Jay :)

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline lddaly

  • Forecaster
  • *****
  • Posts: 490
Re: NOAA Image of the Day source changed...
« Reply #56 on: September 01, 2010, 03:03:41 PM »
 #-o Acting up again? #-o I am getting Notice: Undefined index: last-modified in get-nnvl-iod.php on line 196

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2297
    • CNYWeather
Re: NOAA Image of the Day source changed...
« Reply #57 on: September 01, 2010, 03:30:52 PM »
I've got a few more than that myself  :-P

Code: [Select]
Notice: Undefined index: last-modified in /home/content/c/n/y/cnyweather/html/get-nnvl-iod.php on line 196

Notice: Undefined variable: image in /home/content/c/n/y/cnyweather/html/get-nnvl-iod.php on line 212

Warning: imagesx(): supplied argument is not a valid Image resource in /home/content/c/n/y/cnyweather/html/get-nnvl-iod.php on line 212

Notice: Undefined variable: image in /home/content/c/n/y/cnyweather/html/get-nnvl-iod.php on line 213

Warning: imagesy(): supplied argument is not a valid Image resource in /home/content/c/n/y/cnyweather/html/get-nnvl-iod.php on line 213

Notice: Undefined variable: image in /home/content/c/n/y/cnyweather/html/get-nnvl-iod.php on line 215

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/content/c/n/y/cnyweather/html/get-nnvl-iod.php on line 215

Notice: Undefined variable: image in /home/content/c/n/y/cnyweather/html/get-nnvl-iod.php on line 222

Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/content/c/n/y/cnyweather/html/get-nnvl-iod.php on line 222
Tony




Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9282
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: NOAA Image of the Day source changed...
« Reply #58 on: September 01, 2010, 04:11:13 PM »
Grrrr... yet another website change.. this time the low-res image is in .jpg instead of PNG..

I've changed
Code: [Select]
  if(preg_match('|\.png$|i',$IODimageURL)) {
preg_match('|href=\'([^\']+)\'|i',$matches[0][4],$tmatch);
$IODimageURL = $IODURL . $tmatch[1];
$Debug .= "image url not PNG. Substituting HiRes URL '$IODimageURL'<br/>\n";
}

to
Code: [Select]
if(!preg_match('/\.(png|jpg)$/i',$IODimageURL)) {
preg_match('|href=\'([^\']+)\'|i',$matches[0][4],$tmatch);
$IODimageURL = $IODURL . $tmatch[1];
$Debug .= "image url not PNG. Substituting HiRes URL '$IODimageURL'<br/>\n";
}
and that seems to fix it (for now).

V1.04 uploaded to website at http://saratoga-weather.org/scripts-images.php#NOAAIOD

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline lddaly

  • Forecaster
  • *****
  • Posts: 490
Re: NOAA Image of the Day source changed...
« Reply #59 on: September 01, 2010, 04:23:15 PM »
Thanks Ken! That fixed it for me. =D&gt;

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2297
    • CNYWeather
Re: NOAA Image of the Day source changed...
« Reply #60 on: September 01, 2010, 04:30:05 PM »
Ken, I changed the script to the latest version.

No errors but no image now.

Guess it was waiting for the latest image. TY as always Ken.

http://www.cnyweather.com/wximage.php


Tony  8-)
« Last Edit: September 01, 2010, 04:44:46 PM by CNYWeather »
Tony




Offline weathergirl

  • Forecaster
  • *****
  • Posts: 677
    • Beamsville Weather Station
Re: NOAA Image of the Day source changed...
« Reply #61 on: September 04, 2010, 09:59:24 PM »
Why am I getting this error?

"Notice: Undefined index: last-modified in.....get-nnvl-iod.php on line 196"

http://www.beamsvillewx.ca/wxNOAA-IOD.php
Ann-Marie
Beamsville, Ontario, Canada

Offline DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3206
    • North Georgia Weather
Re: NOAA Image of the Day source changed...
« Reply #62 on: September 04, 2010, 10:02:10 PM »
Ken,

I am getting this error after uploading the new script.  Any thoughts.

Notice: Undefined index: last-modified in /home/content/j/a/y/jaysfurniture/html/wx/get-nnvl-iod.php on line 196

www.jayswoodfurniture.com/wx/picture.php
I saw that, Jay.  I did a http://www.jayswoodfurniture.com/wx/get-nnvl-iod.php?cache=refresh and now the page appears fine.  I guess the cache for the page was old and had not automatically refreshed.

Best regards,
Ken

Offline weathergirl

  • Forecaster
  • *****
  • Posts: 677
    • Beamsville Weather Station
Re: NOAA Image of the Day source changed...
« Reply #63 on: September 04, 2010, 10:13:17 PM »
Aha, thanks, Steve.
Ann-Marie
Beamsville, Ontario, Canada

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9282
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: NOAA Image of the Day source changed...
« Reply #64 on: September 04, 2010, 10:13:59 PM »
Ann-Marie, you need to update the script to Version 1.04 - 01-Sep-2010 -- allow either PNG or JPG for default image type

http://saratoga-weather.org/get-nnvl-iod.php?sce=view

Then run http://www.beamsvillewx.ca/wxNOAA-IOD.php?cache=refresh to grab the page and make new images.

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline weathergirl

  • Forecaster
  • *****
  • Posts: 677
    • Beamsville Weather Station
Re: NOAA Image of the Day source changed...
« Reply #65 on: September 04, 2010, 10:23:27 PM »
Looks good now, thanks Ken ;)
Ann-Marie
Beamsville, Ontario, Canada

Offline lddaly

  • Forecaster
  • *****
  • Posts: 490
Re: NOAA Image of the Day source changed...
« Reply #66 on: September 08, 2010, 10:00:17 AM »
NOAA should rename this "Image of the month." Geez... :roll:

Offline W Thomas

  • Welcome to my area!
  • Forecaster
  • *****
  • Posts: 1648
  • In Loving Memory Of Hooker The Weather Dog !
    • Smyth-Grayson Weather
Re: NOAA Image of the Day source changed...
« Reply #67 on: September 08, 2010, 12:02:03 PM »
LOL!!! Sort of like Ken said  The Image Of Whenever they get around to it  :grin:

By the looks of my display that are messing around with the format again....





EDIT:
Ken must have revised the code from the first change he made when the started using loops a few weeks ago.
I uploaded the latest code at that time and didn't make any modifications to it but I had to upload the latest version
again to get an image without numerous warnings and errors on my site..
« Last Edit: September 08, 2010, 01:02:50 PM by W Thomas »


     Best Regards
     Wayne

CWOP CW8217
KVAWHITE22 Wunderground   Davis VUE &  Davis Vantage Pro 2  /   Dedicated Server
GR Level 3 ,Level 2 AE Radars  Weather Display 10.37P  Mid Atlantic Weather Network Member
SkyWarn & Spotter Network 6092

Offline lddaly

  • Forecaster
  • *****
  • Posts: 490
Re: NOAA Image of the Day source changed...
« Reply #68 on: September 08, 2010, 06:27:28 PM »
LOL!!! Sort of like Ken said  The Image Of Whenever they get around to it  :grin:
:lol:
Quote
'Image Of The Whenever-We-Get-Around-To-Posting-A-New-One'

NOAA must read our posts... they have updated the image today!!! A great shot of Tropical Depression Hermine. =D&gt;

Offline W Thomas

  • Welcome to my area!
  • Forecaster
  • *****
  • Posts: 1648
  • In Loving Memory Of Hooker The Weather Dog !
    • Smyth-Grayson Weather
Re: NOAA Image of the Day source changed...
« Reply #69 on: September 08, 2010, 08:07:58 PM »

NOAA must read our posts... they have updated the image today!!! A great shot of Tropical Depression Hermine. =D&gt;


They surely must ! I noticed that as well.  Well...at least I did after I updated the script #-o

You getting any of Hermine's action down your way??


     Best Regards
     Wayne

CWOP CW8217
KVAWHITE22 Wunderground   Davis VUE &  Davis Vantage Pro 2  /   Dedicated Server
GR Level 3 ,Level 2 AE Radars  Weather Display 10.37P  Mid Atlantic Weather Network Member
SkyWarn & Spotter Network 6092

Offline lddaly

  • Forecaster
  • *****
  • Posts: 490
Re: NOAA Image of the Day source changed...
« Reply #70 on: September 08, 2010, 08:11:40 PM »
You getting any of Hermine's action down your way??

5.57" of rain. Plus, I got to hear our tornado sirens about an hour ago. \:D/

Offline W Thomas

  • Welcome to my area!
  • Forecaster
  • *****
  • Posts: 1648
  • In Loving Memory Of Hooker The Weather Dog !
    • Smyth-Grayson Weather
Re: NOAA Image of the Day source changed...
« Reply #71 on: September 09, 2010, 08:38:58 AM »
Yep..You're getting it  :lol: :lol:


     Best Regards
     Wayne

CWOP CW8217
KVAWHITE22 Wunderground   Davis VUE &  Davis Vantage Pro 2  /   Dedicated Server
GR Level 3 ,Level 2 AE Radars  Weather Display 10.37P  Mid Atlantic Weather Network Member
SkyWarn & Spotter Network 6092

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 923
    • North Bend Weather
Re: NOAA Image of the Day source changed...
« Reply #72 on: September 10, 2010, 01:09:15 PM »
Im getting an error again, started this morning after they changed the image. Here are 3 links I've tried..

http://www.snoqualmieweather.com/wxnoaa.php
http://www.snoqualmieweather.com/get-nnvl-iod.php
http://www.snoqualmieweather.com/get-nnvl-iod.php?cache=refresh

I'm pretty sure I'm using the latest update..

// Version 1.04 - 01-Sep-2010 -- allow either PNG or JPG for default image type
"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + VP2 UV + Lightning Detector + Logitech Webcam + Soil temp + Soil Moisture

Offline lddaly

  • Forecaster
  • *****
  • Posts: 490
Re: NOAA Image of the Day source changed...
« Reply #73 on: September 10, 2010, 01:16:34 PM »
Im getting an error again, started this morning after they changed the image. Here are 3 links I've tried..

http://www.snoqualmieweather.com/wxnoaa.php
http://www.snoqualmieweather.com/get-nnvl-iod.php
http://www.snoqualmieweather.com/get-nnvl-iod.php?cache=refresh

I'm pretty sure I'm using the latest update..

// Version 1.04 - 01-Sep-2010 -- allow either PNG or JPG for default image type

It is working on my site, but :shock: today's image is exceptionally large! :shock: Its shape is not conducive to my resizing parameters either. #-o http://www.planoweather.com/wxiod.php

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 923
    • North Bend Weather
Re: NOAA Image of the Day source changed...
« Reply #74 on: September 10, 2010, 01:27:11 PM »
Interesting. My site has issues allmost everytime they change the image.
"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + VP2 UV + Lightning Detector + Logitech Webcam + Soil temp + Soil Moisture

 

anything