Author Topic: USA and Hawaii Weather Extremes  (Read 743 times)

0 Members and 1 Guest are viewing this topic.

Offline Silversword

  • --Stan Y.
  • Forecaster
  • *****
  • Posts: 560
    • Up Country Maui Weather
USA and Hawaii Weather Extremes
« on: May 31, 2020, 08:37:02 PM »
Hi All,

Don't know if this is the place to have this issue to solve for me and maybe others that might have the same issue that I have.

It seems that the data for Weather Extremes for the US and Hawaii on my Nav/Menu bar as indicated on the attachment has been stuck for a few or more days.

Where in the scripts that I could edit to make corrections or what corrections that might be needed?

Thanks for any suggestions or recommendations will be very much appreciated.

Regards,

--Stan Y.
  Maui, Hawaii
 [ You are not allowed to view attachments ]  
Stan Y. - KH6HHG - Maui, Hawaii
 --- Blitzortung ID: 993
 --- FlightRadar24 ID: F-PHOG1

WDL 6.05
MS Windows 7 Pro
Dell Optiplex GX280-Intel Pentium 4 CPU 3.00GHz, 4 GB RAM
Davis Vantage Pro 2+ Wireless
Webcam: Axis 211

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9288
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: USA and Hawaii Weather Extremes
« Reply #1 on: May 31, 2020, 09:03:20 PM »
Hi Stan,
You seem to be using
Quote
<!-- State Extremes Script Version 4.03e saratoga-weather.org -->
<!-- The cache life HAS NOT expired and fresh data was not written to the cache file -->
<!-- reportDate='Wednesday, March 25, 2020' -->

and that script has stopped functioning as the data source at NOAA is no longer updated.

You can use https://saratoga-weather.org/scripts-NWSmisc.php#NWSEXTR the world extremes script 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 Silversword

  • --Stan Y.
  • Forecaster
  • *****
  • Posts: 560
    • Up Country Maui Weather
Re: USA and Hawaii Weather Extremes
« Reply #2 on: May 31, 2020, 09:28:31 PM »
Hi Ken,

Thanks for the prompt reply and will try to figure this out and hope it works out for the fix, or where to insert this script with editing for USA and Hawaii.

Much Mahalo for all that you do to keep us going.

Regards,

--Stan Y.
   Maui, Hawaii
Stan Y. - KH6HHG - Maui, Hawaii
 --- Blitzortung ID: 993
 --- FlightRadar24 ID: F-PHOG1

WDL 6.05
MS Windows 7 Pro
Dell Optiplex GX280-Intel Pentium 4 CPU 3.00GHz, 4 GB RAM
Davis Vantage Pro 2+ Wireless
Webcam: Axis 211

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9288
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: USA and Hawaii Weather Extremes
« Reply #3 on: May 31, 2020, 09:33:32 PM »
Easy to make the change.  Customize worldextremes.php and upload.

Then in menubar.php change
Code: [Select]
include_once('usaextremes.php'); to
Code: [Select]
include_once('worldextremes.php'); and
delete (later on that page)
Code: [Select]
<!-- Weather Underground -->
<?php include_once('stateextremes.php')?> -->
and you should be good to go.  The worldextremes.php produces the $usa* and $state* variables the same as the older usaextremes.php and stateextremes.php scripts did.
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 Silversword

  • --Stan Y.
  • Forecaster
  • *****
  • Posts: 560
    • Up Country Maui Weather
Re: USA and Hawaii Weather Extremes
« Reply #4 on: May 31, 2020, 09:45:24 PM »
Hi Ken,

Thanks for the tutorial, will work on it later tonight and see what happens.

Much Aloha and Mahalo,

--Stan Y.
  Maui, Hawaii
Stan Y. - KH6HHG - Maui, Hawaii
 --- Blitzortung ID: 993
 --- FlightRadar24 ID: F-PHOG1

WDL 6.05
MS Windows 7 Pro
Dell Optiplex GX280-Intel Pentium 4 CPU 3.00GHz, 4 GB RAM
Davis Vantage Pro 2+ Wireless
Webcam: Axis 211

Offline Silversword

  • --Stan Y.
  • Forecaster
  • *****
  • Posts: 560
    • Up Country Maui Weather
Re: USA and Hawaii Weather Extremes
« Reply #5 on: June 01, 2020, 04:11:47 PM »
Hi Ken,

Got it working this morning.

Thanks you much again for the update and hope that this will help others as well that might have this issue.

All set and good to go for now.

Mahalo Nui, Loa,

--Stan Y.
   Maui, Hawaii
Stan Y. - KH6HHG - Maui, Hawaii
 --- Blitzortung ID: 993
 --- FlightRadar24 ID: F-PHOG1

WDL 6.05
MS Windows 7 Pro
Dell Optiplex GX280-Intel Pentium 4 CPU 3.00GHz, 4 GB RAM
Davis Vantage Pro 2+ Wireless
Webcam: Axis 211

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 923
    • North Bend Weather
Re: USA and Hawaii Weather Extremes
« Reply #6 on: July 12, 2020, 07:18:26 PM »
Hi Ken. I updated to the latest worldextremes script awhile ago to fix my menu bar issues, but my extremes page itself isn't working.

https://www.northbendweather.com/wxusaextremes.php

Code: [Select]
$worldhigh   = str_replace("\n","<br/>\n",$worldhigh);
$worldlow    = str_replace("\n","<br/>\n",$worldlow);
$worldprecip = str_replace("\n","<br/>\n",$worldprecip);

return(array($worldhigh,$worldlow,$worldprecip));
}                                                                                     <<<<<<<<<<<< Line 465

"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 saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9288
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: USA and Hawaii Weather Extremes
« Reply #7 on: July 12, 2020, 07:24:50 PM »
Use worldextremes.php V 5.03 - 26-Jun-2020. The data source .csv changed so the 5.02 script fails to find data.
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 ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 923
    • North Bend Weather
Re: USA and Hawaii Weather Extremes
« Reply #8 on: July 12, 2020, 07:41:15 PM »
Strange, I am using v5.03.
"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 saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9288
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: USA and Hawaii Weather Extremes
« Reply #9 on: July 12, 2020, 07:56:14 PM »
Change the include() on that page to include_once()
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 ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 923
    • North Bend Weather
Re: USA and Hawaii Weather Extremes
« Reply #10 on: July 12, 2020, 08:31:31 PM »
I changed it to include_once. The error message went away, but now the page doesn't show anything.

https://www.northbendweather.com/wxusaextremes.php

I think the style-switcher is messing with it somehow.

https://www.northbendweather.com/worldextremes.php
« Last Edit: July 12, 2020, 08:36:31 PM by ALITTLEweird1 »
"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 saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9288
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: USA and Hawaii Weather Extremes
« Reply #11 on: July 13, 2020, 12:05:14 AM »
I see in menubar.php you have an include_once("worldextremes.php");

You'll need to post the contents of wxusaextremes.php and worldextremes.php to see what going on.
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 ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 923
    • North Bend Weather
Re: USA and Hawaii Weather Extremes
« Reply #12 on: July 24, 2020, 10:40:26 PM »
Sorry for the late response. I'm not using the wxusaextremes script anymore, I just kept the name of my page the same. I'm using the latest worldextremes.php script.
"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