Author Topic: GR3 ftp in wxstatus.php  (Read 242 times)

0 Members and 1 Guest are viewing this topic.

Offline BKS97

  • Senior Contributor
  • ****
  • Posts: 178
    • Sartell East Weather
GR3 ftp in wxstatus.php
« on: March 14, 2024, 02:49:06 PM »
I would like to have wxstatus.php show the GR3 radar ftp status.  After a search of some related posts, I entered the location of my GR3 directory in include-wxstatus.php,  but so far nothing shows up.
   
Code: [Select]
$path = realpath($WEBROOT . $SITE['GR3DIR'] . '/GR3' ) . '/';
$GR3file = $path . $SITE['GR3radar'] . "_" . $SITE['GR3type'] . "_0." .

Hoping to learn what else I need to do.

https://sartelleastweather.com

Offline Vasco

  • Forecaster
  • *****
  • Posts: 343
    • PWS
Re: GR3 ftp in wxstatus.php
« Reply #1 on: March 14, 2024, 03:13:04 PM »
Not sure, but I think you add custom entries to wxstatus.php, line 100 on  :?

Ecowitt GW1102 (with GW2000) + Weather Display in Windows 10

Offline BKS97

  • Senior Contributor
  • ****
  • Posts: 178
    • Sartell East Weather
Re: GR3 ftp in wxstatus.php
« Reply #2 on: March 14, 2024, 03:44:38 PM »
Not sure, but I think you add custom entries to wxstatus.php, line 100 on  :?



Since the coding for a GR3 ftp check is built in to the include-wxstatus.php file, I'm thinking that wouldn't be required.  I just added the name of my ftp directory as part of the path to it.

Offline BKS97

  • Senior Contributor
  • ****
  • Posts: 178
    • Sartell East Weather
Re: GR3 ftp in wxstatus.php
« Reply #3 on: March 15, 2024, 09:26:09 AM »
Adding the word “custom” to a forum search helped me solve the issue. 
Coding for a GR3 FTP status check is built in to the include-wxstatus.php file, but I had to add this line to the custom checks space in wxstatus,php to get the check to work:
 
Code: [Select]
do_check(langtransstr("GRLevel3 Radar FTP"),$GR3file,60*10+15,'file');   
I copied the line above from the GR3 syntax in include-wxstatus.php.  The FTP status check is working, so I assume what I’ve done is correct.

Thanks for your help, Vasco.  I stumble through this stuff pretty much blindly, but a little help here and there makes a big difference.