“Unable to load data for realtime.txt“ error (SOLVED)

Post Reply
User avatar
WessexWeather
Forecaster
Forecaster
Posts: 130
Joined: Mon Aug 21, 2017 6:26 pm
Location: Wimborne, East Dorset, UK
Station model: Davis Vantage Vue
Software: Meteobridge
Contact:

“Unable to load data for realtime.txt“ error (SOLVED)

Post by WessexWeather » Mon Nov 15, 2021 4:28 pm

I’ve been running two versions of Meteotemplate for some time, my main site wessexweather.net using the api and another using realtime.txt and update.php. This second site was running on an addon domain with a Cron job running update.php every minute.

Over the weekend I decided to move this site from the addon domain to a subdomain mytempest.wessexweather.net. The file structure is exactly the same except using the subdomain address instead of the addon domain.

Now update.php returns “Unable to load data for realtime.txt”, but realtime.txt is updating every 30 seconds into the root. I have also checked that the Main Setup has been amended correctly.

I am thinking that subdomains behave differently from addon domains perhaps? Perhaps the path to realtime.txt is incorrect somewhere?

Can anyone identify where I am going wrong?
Last edited by WessexWeather on Mon Nov 15, 2021 10:29 pm, edited 1 time in total.
Regards,

Simon (WessexWeather)

Image

davidefa
Expert
Expert
Posts: 888
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: “Unable to load data for realtime.txt“ error

Post by davidefa » Mon Nov 15, 2021 5:11 pm

It seems to work correctly now.
I think you have identified correctly the problem.
You may specify the path to the file in two ways:
- locally ( you have to find the correct absolute or relative path )
- or via 'http' ( using the url of the file which should be https://mytempest.wessexweather.net/realtime.txt )
Image

User avatar
WessexWeather
Forecaster
Forecaster
Posts: 130
Joined: Mon Aug 21, 2017 6:26 pm
Location: Wimborne, East Dorset, UK
Station model: Davis Vantage Vue
Software: Meteobridge
Contact:

Re: “Unable to load data for realtime.txt“ error

Post by WessexWeather » Mon Nov 15, 2021 10:28 pm

I solved the problem by specifying the path to realtime.txt in /meteotemplate/update/updateSettings.php. I honestly can’t remember having to do this before!
Regards,

Simon (WessexWeather)

Image

Post Reply