Author Topic: wxstatus issues  (Read 811 times)

0 Members and 1 Guest are viewing this topic.

Offline weatheroz

  • Senior Contributor
  • ****
  • Posts: 216
    • http://www.jimboombaweather.com
wxstatus issues
« on: February 15, 2023, 02:59:14 AM »
I'm trying to fix some of the Saratoga stuff in to my site, and for the life of me I can't seem to sort out why it is coming up with these two time/date issues with it.

Weather-Display weather data    NOT Current    465679:56:00    > 0:05:15
01/01/1970 10:00
Weather-Display NOAA report    NOT Current    7568:44:49    > 24:15:00
06/04/2022 09:11

The url to it is https://jimboombaweather.com/tools/wxstatus.php

Brendan,
vk4blp
IRLP 6857 Echolink 672767


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: wxstatus issues
« Reply #1 on: February 15, 2023, 11:08:25 AM »
The issue is caused by a mismatch in expected date formats.  Your testtags.php?sce=view shows
Code: [Select]
$time =  '02:01 AM';    // current time
$date =  '2/16/2023';    // current date
so the date is in M/D/Y format.

In Settings.php, you have
Code: [Select]
$SITE['WDdateMDY'] = false; // for weather software date format of month/day/year.  =false for day/month/year
which expects the date to be in D/M/Y format.
Change that to
Code: [Select]
$SITE['WDdateMDY'] = true; // for weather software date format of month/day/year.  =false for day/month/year
and that will fix the date display.

More troubling is all the missing scripts on your site.. you should upload those to have your site work correctly.
Quote
Note: script(s) not current and need update(s):
ajaxWDwx.js File not installed
AW-forecast-lang.php File not installed
AW-forecast.php File not installed
DS-forecast-lang.php File not installed
DS-forecast.php File not installed
get-meteoalarm-warning-inc.php File not installed
get-USNO-sunmoon.php File not installed
get-UV-forecast-inc.php File not installed
meteoalarm-codenames.json File not installed
meteoalarm-geocode-aliases.php File not installed
OWM-forecast-lang.php File not installed
OWM-forecast.php File not installed
PW-forecast-lang.php File not installed
PW-forecast.php File not installed
quake-json.css File not installed
quake-json.js File not installed
quake-json.php File not installed
quake-UK.php File not installed
thermometer.php File not installed
VC-forecast-lang.php File not installed
VC-forecast.php File not installed
WC-forecast.php File not installed
wxquake.php File not installed
Use this link for details.
Also missing is wxindex.php (or an index.php) main page.
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 weatheroz

  • Senior Contributor
  • ****
  • Posts: 216
    • http://www.jimboombaweather.com
Re: wxstatus issues
« Reply #2 on: February 15, 2023, 05:25:05 PM »
The issue is caused by a mismatch in expected date formats.  Your testtags.php?sce=view shows
Code: [Select]
$time =  '02:01 AM';    // current time
$date =  '2/16/2023';    // current date
so the date is in M/D/Y format.

In Settings.php, you have
Code: [Select]
$SITE['WDdateMDY'] = false; // for weather software date format of month/day/year.  =false for day/month/year
which expects the date to be in D/M/Y format.
Change that to
Code: [Select]
$SITE['WDdateMDY'] = true; // for weather software date format of month/day/year.  =false for day/month/year
and that will fix the date display.

More troubling is all the missing scripts on your site.. you should upload those to have your site work correctly.

Also missing is wxindex.php (or an index.php) main page.

Thanks, I was setting that to what I wanted to see, rather than what your scripts were wanting. I think I outsmarted myself on that one. :)

I'm doing things a bit differently, I'm grabbing bits from your template to work under something totally different, so I'm doing things the hard way. :)

Thanks for your help on this one.
Brendan,
vk4blp
IRLP 6857 Echolink 672767


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: wxstatus issues
« Reply #3 on: February 15, 2023, 05:31:39 PM »
You're absolutely free to 'roll your own' with the scripts/templates.  If you want just a few select functions, you might download the scripts from the scripts page for each script desired.  Not all the scripts have separate downloads as they are template support scripts.  Also, I have https://github.com/ktrue scripts there if you'd rather use the scripts from there instead.
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 weatheroz

  • Senior Contributor
  • ****
  • Posts: 216
    • http://www.jimboombaweather.com
Re: wxstatus issues
« Reply #4 on: February 16, 2023, 11:56:22 PM »
thanks for that Ken, much appreciated all your efforts in creating these scripts and templates for everyone.
Brendan,
vk4blp
IRLP 6857 Echolink 672767


 

anything