Templates

This section covers the Meteobridge PRO, PRO2, NANO SD, Raspberry Pi and VM platforms exclusively

Moderator: Mattk

Post Reply
36260
Expert Boarder
Expert Boarder
Posts: 91
Joined: Sun Feb 17, 2008 11:17 am
Location: Saint Pierre de Jards - France

Templates

Post by 36260 »

Hello,
I have one template that generates a file, say a.html every 60 secondes. I access data using url "http://ip-of-meteobridge/cgi-bin/templa ... ile=a.html" with no issue
I have a second template that generates a file, say b.html every 15 secondes. When I try access data using url "http://ip-of-meteobridge/cgi-bin/templa ... ile=b.html" I get server response

Code: Select all

Error: template file "b.html" not found
Status: 503 Service Unavailable
Content-type: text/plain
Error: Service Unavailable
But the file is indeed present in the expected folder /var/data/html as for a.html and is updated accordingly
Any clue?
Thank you
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Templates

Post by admin »

Meteobridge is not blocking certain files. If a file has been generated to this folder it can be accessed via HTTP. "/var/data/" is a temporary filesystem kept in RAM, so data will be lost after a reboot. But as you said, both files where there. So I don't have an explanation. Please check if your assumptions regarding existence of files are right. May be you overlooked something.
36260
Expert Boarder
Expert Boarder
Posts: 91
Joined: Sun Feb 17, 2008 11:17 am
Location: Saint Pierre de Jards - France

Re: Templates

Post by 36260 »

I can assure you that both files are permanently siting in /var/data/html. Templates that are generating these two files are sitting /var/data/templates. I monitor these folders using WinSCP
So what could be wrong?
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Templates

Post by admin »

Please use "/tmp/mnt/html" instead of /var/...
Post Reply