Author Topic: Problems with Forecast in Saratoga Template  (Read 770 times)

0 Members and 1 Guest are viewing this topic.

Offline Andy G

  • Forecaster
  • *****
  • Posts: 306
    • SunPrairieWeather.com
Problems with Forecast in Saratoga Template
« on: January 06, 2019, 11:01:04 AM »
Hi I seem to have a problem with my forecast script over about the past week or so. I am mostly seeing this "Sorry.. the forecast for Sun Prairie WI is not available at this time". I have many forecast cities in my settings.php file and the only ones I seem to be having a problem with are the cities in the Milwaukee Forecast Office, all the other cities in the dropdown list outside of the Milwaukee office seem to be working fine on this page http://www.sunprairieweather.com/wxforecast.php?z=0 . I have seen the forecast work a few times over the past week but almost always seeing the forecast unavailable message. Any ideas?

Thanks Andy
Once you can accept the universe as being something expanding into an infinite nothing which is something, wearing stripes with plaid is easy.
~Einstein


SunPrairieWeather.com
Davis VP2 24 FARS

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 947
    • LexMAWeather
Re: Problems with Forecast in Saratoga Template
« Reply #1 on: January 06, 2019, 02:54:25 PM »
You are using advforecast2.php version 5.09, which uses the beta NWS JSON API. Quirkiness is to be expected. If you don't want that use version 4.05.
https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

Offline Andy G

  • Forecaster
  • *****
  • Posts: 306
    • SunPrairieWeather.com
Re: Problems with Forecast in Saratoga Template
« Reply #2 on: January 06, 2019, 03:45:24 PM »
Uploaded 4.05 still doesnt appear to be working. I am also seeing this error. "NWS server has an error." Still everything working except the two cities in the NWS Milwaukee forecast office.

Thanks for any help

You are using advforecast2.php version 5.09, which uses the beta NWS JSON API. Quirkiness is to be expected. If you don't want that use version 4.05.
Once you can accept the universe as being something expanding into an infinite nothing which is something, wearing stripes with plaid is easy.
~Einstein


SunPrairieWeather.com
Davis VP2 24 FARS

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 947
    • LexMAWeather
Re: Problems with Forecast in Saratoga Template
« Reply #3 on: January 06, 2019, 04:34:56 PM »
Did a view-source and it says you are on 5.00.

Code: [Select]
<!-- advforecast-json.php (multi) - V5.00 (beta)- 02-Mar-2017 on PHP 7.2.6-->
https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

Offline Andy G

  • Forecaster
  • *****
  • Posts: 306
    • SunPrairieWeather.com
Re: Problems with Forecast in Saratoga Template
« Reply #4 on: January 06, 2019, 04:48:19 PM »
I updated the advforecast2.php file I didnt see where there was a different version of the advforecast-json.php file.
This page http://www.sunprairieweather.com/check-fetch-times.php?show=versions shows I am running 4.05 of advforecast2.php ?

Thanks

Did a view-source and it says you are on 5.00.

Code: [Select]
<!-- advforecast-json.php (multi) - V5.00 (beta)- 02-Mar-2017 on PHP 7.2.6-->
Once you can accept the universe as being something expanding into an infinite nothing which is something, wearing stripes with plaid is easy.
~Einstein


SunPrairieWeather.com
Davis VP2 24 FARS

Offline Andy G

  • Forecaster
  • *****
  • Posts: 306
    • SunPrairieWeather.com
Re: Problems with Forecast in Saratoga Template
« Reply #5 on: January 06, 2019, 05:45:35 PM »
I am thinking it is a problem with my local office. I put kens forecast locations from his settings.php file from the template and they displayed as expected. All my other forecast locations away from my home zone display as expected?

Thanks for any help
Once you can accept the universe as being something expanding into an infinite nothing which is something, wearing stripes with plaid is easy.
~Einstein


SunPrairieWeather.com
Davis VP2 24 FARS

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 947
    • LexMAWeather
Re: Problems with Forecast in Saratoga Template
« Reply #6 on: January 06, 2019, 08:21:18 PM »
Something weird going on... I'll look more.

Interestingly, this works:

   http://www.sunprairieweather.com/advforecast2.php

https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 947
    • LexMAWeather
Re: Problems with Forecast in Saratoga Template
« Reply #7 on: January 06, 2019, 08:42:16 PM »
What is

 
Code: [Select]
$SITE['fcstscript']
set to in your Settings.php file?

If it is advforecast2-json.php, change it to advforecast2.php.
https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

Offline Andy G

  • Forecaster
  • *****
  • Posts: 306
    • SunPrairieWeather.com
Re: Problems with Forecast in Saratoga Template
« Reply #8 on: January 06, 2019, 09:21:35 PM »
I noticed that also i will check on that file

Something weird going on... I'll look more.

Interestingly, this works:

   http://www.sunprairieweather.com/advforecast2.php
Once you can accept the universe as being something expanding into an infinite nothing which is something, wearing stripes with plaid is easy.
~Einstein


SunPrairieWeather.com
Davis VP2 24 FARS

Offline Andy G

  • Forecaster
  • *****
  • Posts: 306
    • SunPrairieWeather.com
Re: Problems with Forecast in Saratoga Template
« Reply #9 on: January 06, 2019, 09:28:04 PM »
I think that did it!

Quote
set to in your Settings.php file?

If it is advforecast2-json.php, change it to advforecast2.php.
Once you can accept the universe as being something expanding into an infinite nothing which is something, wearing stripes with plaid is easy.
~Einstein


SunPrairieWeather.com
Davis VP2 24 FARS

Offline Andy G

  • Forecaster
  • *****
  • Posts: 306
    • SunPrairieWeather.com
Re: Problems with Forecast in Saratoga Template
« Reply #10 on: January 06, 2019, 09:29:14 PM »
I will give it some time to make sure, but thanks a million for the help!
Once you can accept the universe as being something expanding into an infinite nothing which is something, wearing stripes with plaid is easy.
~Einstein


SunPrairieWeather.com
Davis VP2 24 FARS

 

anything