Page 1 of 1

Templates

Posted: Tue Aug 25, 2020 12:25 pm
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

Re: Templates

Posted: Wed Aug 26, 2020 10:40 am
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.

Re: Templates

Posted: Wed Aug 26, 2020 2:02 pm
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?

Re: Templates

Posted: Fri Sep 04, 2020 12:24 am
by admin
Please use "/tmp/mnt/html" instead of /var/...