Author Topic: WxOnThisDay  (Read 1765 times)

0 Members and 1 Guest are viewing this topic.

Offline n7xrd

  • Forecaster
  • *****
  • Posts: 370
    • Kamiah Weather
WxOnThisDay
« on: December 28, 2016, 03:00:44 PM »
Hasn't been working last few days on mine and a few other sites I checked But there are a few where it is workng also????

Today in Weather History: for this day December 28

Weather History for December 28
 
History for this date is not available

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2604
    • SouthEast Lincoln, NE Weather
Re: WxOnThisDay
« Reply #1 on: December 28, 2016, 03:09:04 PM »
It's the 'https' requirement.  In 'include-dailyhistory.php' change
Code: [Select]
// Page containing the history
$urlW4U = "http://www.weatherforyou.com/weather_history/"; // primary history URL
to
Code: [Select]
// Page containing the history
$urlW4U = "https://www.weatherforyou.com/weather_history/"; // primary history URL
The alternate CRH weather history feed
Code: [Select]
$urlNOAA = "http://www.crh.noaa.gov/eax/wxhistory/";                // secondary history URL appears to be dead for anything but 'eax'.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline n7xrd

  • Forecaster
  • *****
  • Posts: 370
    • Kamiah Weather
Re: WxOnThisDay
« Reply #2 on: December 28, 2016, 04:53:47 PM »
 :grin:  Thank you worked like a charm!!!

Offline Curly

  • Forecaster
  • *****
  • Posts: 724
    • Michiana Weather
Re: WxOnThisDay
« Reply #3 on: December 28, 2016, 06:46:38 PM »
I've modified the script slightly and fixed the scaled down secondary NWS source.
The time zone is the only setting located near the top of the file.
http://www.weather.ricksturf.com/scripts/include-dailyhistory.zip

Offline n7xrd

  • Forecaster
  • *****
  • Posts: 370
    • Kamiah Weather
Re: WxOnThisDay
« Reply #4 on: December 28, 2016, 06:49:32 PM »
Thank You will give it a try now!!! 

Offline Curly

  • Forecaster
  • *****
  • Posts: 724
    • Michiana Weather
Re: WxOnThisDay
« Reply #5 on: December 28, 2016, 07:07:05 PM »
If you don't see results, you may need to force an update because the cache file is dated today, or you can delete the cache file so it gets recreated with fresh data.
To force the update, go to your weather history page and then add the following to the end of the URL and hit enter.
Code: [Select]
?forceupdate=1

Offline n7xrd

  • Forecaster
  • *****
  • Posts: 370
    • Kamiah Weather
Re: WxOnThisDay
« Reply #6 on: December 28, 2016, 07:12:53 PM »
If you don't see results, you may need to force an update because the cache file is dated today, or you can delete the cache file so it gets recreated with fresh data.
To force the update, go to your weather history page and then add the following to the end of the URL and hit enter.
Code: [Select]
?forceupdate=1
No problem already working!!!  Thank you for your hard work!!! :grin:

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2604
    • SouthEast Lincoln, NE Weather
Re: WxOnThisDay
« Reply #7 on: December 28, 2016, 09:20:36 PM »
Thanks for the definitive fix, Curly! :-)
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline tman1991

  • Senior Member
  • **
  • Posts: 52
    • http://frogville.us
Re: WxOnThisDay
« Reply #8 on: June 30, 2024, 03:28:27 AM »
I did a complete rewrite of this script since a) weatherforyou doesnt seem to work with the cURL function and b) the alternate NOAA website changed.   So I had to find the new NOAA website and figure out how to parse the data.  If someone can figure out how to pad some space on the left that would be great.  I also got rid of the random vs full part (if you read the old code that makes more sense) part and the caching. Seemed like a waste. 

I just realized this is an area script for a local forecast not national..  Ill keep looking for a national one or a way to get weatherforyou to work.


« Last Edit: July 01, 2024, 12:20:17 AM by tman1991 »

 

anything