Author Topic: Saratoga include-wxstatus  (Read 164 times)

0 Members and 1 Guest are viewing this topic.

Offline drrehak

  • Senior Member
  • **
  • Posts: 51
Saratoga include-wxstatus
« on: February 25, 2022, 09:32:11 PM »
FYI: I made a small change to include-wxstatus.php for display of WXSIM status:
Old:
Code: [Select]
if(isset($SITE['WXSIM']) and file_exists('plaintext.txt')) ...
New
Code: [Select]
if(isset($SITE['WXSIM']) and $SITE['WXSIM'] and file_exists('plaintext.txt')) ...

I know it probably won't matter to most of you, but I wanted to pass it along.

I was experimenting with WXSIM - turning it on and off, and simultaneously
adding a lot of new info to wxstatus (full reporting of my webserver hardware status,
Meteobridge status, Davis ISS status), didn't want to be bothered with renaming
plaintext all the time to hide it, ... but was bothered by the "Not Current"
message when WXSIM was false.
Dan Rehak | Pittsburgh PA
Davis Vantage Pro 2 Plus | Meteobridge Pro
Local Site | Raspberry Pi 4B

 

anything