Page 1 of 1

template.cgi missing? **solved**

Posted: Wed Oct 14, 2020 9:51 am
by fortunatech
The MB Wiki instructs to use the "template.cgi" script in a URL call to return data directly from the software. It gives an example of http://ip-of-meteobridge/cgi-bin/template.cgi?template=[DD...

This template is useful to obtain yesterday's min/max data from soil sensors in the garden directly from a browser window.

Using version 4.4 version after 10/12, MB's response to a template query is "no such file or directory". Has the path changed?

Re: template.cgi missing?

Posted: Wed Oct 14, 2020 8:41 pm
by ve7gel
I have this issue too when querying Meteobridge. A query from my irrigation system or home automation controller both fail with "No such file or directory" as well.

P.S. I logged in via SSH and checked for the presence of the template....it does indeed seem to be missing.

Re: template.cgi missing?

Posted: Fri Oct 16, 2020 2:01 am
by kurite
I too am missing template.cgi in the latest firmware but the other cgi interfaces are available. A bit frustrating since I just set up a Siri Shortcut to read me the current weather from template.cgi (super easy to use!)

TL-MR3020 (no USB hub)

Meteobridge 4.4 (Oct 14 2020, build 13969)

Re: template.cgi missing?

Posted: Sat Oct 17, 2020 4:55 pm
by admin
It is there with the current version. Which platform are you on?

Re: template.cgi missing?

Posted: Sat Oct 17, 2020 5:00 pm
by ve7gel
I have a TP-MR3020v1. The problem was there with the October 14 update, and I haven't tried the most recent update. I was waiting for confirmation that it was fixed, so will try it a bit later today. Thanks for the info

Re: template.cgi missing?

Posted: Sat Oct 17, 2020 5:43 pm
by kurite
I just got 5.0, same issue of missing template.cgi:
TL-MR3020 (no USB hub)
Meteobridge 5.0 (Oct 17 2020, build 13977), FW 1.4

Re: template.cgi missing?

Posted: Sat Oct 17, 2020 6:21 pm
by admin
You are right, on MR3020v1 the file has been stripped by error from the latest releases. It is added again. Final version 4.4 as well as new 5.0 do have it again. Please do a reboot.

Re: template.cgi missing? **solved**

Posted: Sat Oct 17, 2020 6:34 pm
by ve7gel
Thanks for the update. Rebooted with V5 and it is now working properly.

Re: template.cgi missing? **solved**

Posted: Sat Oct 17, 2020 7:18 pm
by kurite
Yes, it is there now on Meteobridge 5.0 (Oct 17 2020, build 13979), FW 1.4

Awesome support. Thank you very much.