Author Topic: Saratoga Templates Meteobridge FTP & Weather Data Status Not Current  (Read 619 times)

0 Members and 1 Guest are viewing this topic.

Offline lobsterman

  • Contributor
  • ***
  • Posts: 126
    • Cape Small Harbor Weather
I know I have solved this once before but cannot recall how to resolve the Not Current status notice.

Saratoga Templates with data from Meteobridge NANO SD

I have run the reload template which gives a positive response.

My templates are all updated to latest versions.

Offline hymrog

  • Member
  • *
  • Posts: 36
    • NewAlbanyWeather
Re: Saratoga Templates Meteobridge FTP & Weather Data Status Not Current
« Reply #1 on: September 05, 2019, 08:29:20 PM »
Hello

What does your live data page report for your FTP uploads?  Are you using the correct credentials? Also, are able do a test FTP upload successfully?

g

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 7630
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Saratoga Templates Meteobridge FTP & Weather Data Status Not Current
« Reply #2 on: September 05, 2019, 09:59:13 PM »
I think it's an FTP issue (either not successfully completing or uploading to the wrong directory?)

The MBtags.php?sce=view on your site shows:

$WX['date'] = '2019-07-02'; // local date
$WX['time'] = '06:30:31'; // local time

so it hasn't been uploaded for a while.  Make sure the template (for the MBtags.php file) in Meteobridge uses
https://suiattle.net/CapeSmallHarborWeather/mbridge/gen-MBtags.php

Although.. if your Meteobridge software is an older version (which didn't support https for templates), you might have to allow

http://suiattle.net/CapeSmallHarborWeather/mbridge/gen-MBtags.php as the template by turning off the redirect to https for your site temporarily, have meteobridge reload the template, then turn on the https redirect again.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline lobsterman

  • Contributor
  • ***
  • Posts: 126
    • Cape Small Harbor Weather
Re: Saratoga Templates Meteobridge FTP & Weather Data Status Not Current
« Reply #3 on: September 07, 2019, 04:05:14 PM »
I think it's an FTP issue (either not successfully completing or uploading to the wrong directory?)

The MBtags.php?sce=view on your site shows:

$WX['date'] = '2019-07-02'; // local date
$WX['time'] = '06:30:31'; // local time

so it hasn't been uploaded for a while.  Make sure the template (for the MBtags.php file) in Meteobridge uses
https://suiattle.net/CapeSmallHarborWeather/mbridge/gen-MBtags.php

Although.. if your Meteobridge software is an older version (which didn't support https for templates), you might have to allow

http://suiattle.net/CapeSmallHarborWeather/mbridge/gen-MBtags.php as the template by turning off the redirect to https for your site temporarily, have meteobridge reload the template, then turn on the https redirect again.

FTP test upload works fine.

The "Reload Template" gives: "Info (Event #04): Download of template went fine"

The NANO SD supports https, unlike the Meteobridge version on a TP-3020, for example.

I'll try turning off https and see what happens.

Offline lobsterman

  • Contributor
  • ***
  • Posts: 126
    • Cape Small Harbor Weather
Re: Saratoga Templates Meteobridge FTP & Weather Data Status Not Current
« Reply #4 on: September 07, 2019, 05:21:52 PM »
I think it's an FTP issue (either not successfully completing or uploading to the wrong directory?)

The MBtags.php?sce=view on your site shows:

$WX['date'] = '2019-07-02'; // local date
$WX['time'] = '06:30:31'; // local time

so it hasn't been uploaded for a while.  Make sure the template (for the MBtags.php file) in Meteobridge uses
https://suiattle.net/CapeSmallHarborWeather/mbridge/gen-MBtags.php

Although.. if your Meteobridge software is an older version (which didn't support https for templates), you might have to allow

http://suiattle.net/CapeSmallHarborWeather/mbridge/gen-MBtags.php as the template by turning off the redirect to https for your site temporarily, have meteobridge reload the template, then turn on the https redirect again.

FTP test upload works fine.

The "Reload Template" gives: "Info (Event #04): Download of template went fine"

The NANO SD supports https, unlike the Meteobridge version on a TP-3020, for example.

I'll try turning off https and see what happens.

Nada. I cannot get the Not Current status to change with https redirect off. [ You are not allowed to view attachments ]

Is there an FTP_LAST_UPLOAD flag set somewhere I can delete?

The FTP does a test upload correctly to the correct folder.


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 7630
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Saratoga Templates Meteobridge FTP & Weather Data Status Not Current
« Reply #5 on: September 07, 2019, 08:38:32 PM »
According to your Settings-weather.php the MBtags.php file is supposed to be at https://suiattle.net/CapeSmallHarborWeather/mbridge/MBtags.php but doing ?sce=dump on that URL shows
Code: [Select]
$WX['date'] = '2019-07-02'; // local date
$WX['time'] = '06:30:31'; // local time
which is why the wxstatus.php page shows the stale data
Quote
Meteobridge FTP    NOT Current    1622:05:56    > 0:05:15
02/07/2019 06:30
Meteobridge weather data    NOT Current    1622:05:56    > 0:05:15 02/07/2019 06:30

Since the FTP is showing success, either the folder the file is being uploaded to or/and the filename is not MBtags.php, so check the FTP settings for correct path/filename.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline lobsterman

  • Contributor
  • ***
  • Posts: 126
    • Cape Small Harbor Weather
Re: Saratoga Templates Meteobridge FTP & Weather Data Status Not Current
« Reply #6 on: September 08, 2019, 09:42:14 AM »
According to your Settings-weather.php the MBtags.php file is supposed to be at https://suiattle.net/CapeSmallHarborWeather/mbridge/MBtags.php but doing ?sce=dump on that URL shows
Code: [Select]
$WX['date'] = '2019-07-02'; // local date
$WX['time'] = '06:30:31'; // local time
which is why the wxstatus.php page shows the stale data
Quote
Meteobridge FTP    NOT Current    1622:05:56    > 0:05:15
02/07/2019 06:30
Meteobridge weather data    NOT Current    1622:05:56    > 0:05:15 02/07/2019 06:30

Since the FTP is showing success, either the folder the file is being uploaded to or/and the filename is not MBtags.php, so check the FTP settings for correct path/filename.

Pretty odd. I had all the paths correct and test upload working fine. The old FTP username/pwd combo worked fine when using FTP at the terminal but it had a double quote in it. Finally I went and changed the FTP username's password.

Changing the password seems to have solved the problem.

Thanks for your patience and help.