I'm trying to make a simple template that generates a very simple XML file, and I cannot figure out what the heck I'm doing wrong.
I have a NanoSD.
Template file has been added into the templates folder in data, I called it "weathercat.exp" (not sure if this is right). It's just
Code: Select all
<value>
<name>AirTemp_C</name>
<data>[th0temp]</data>
</value>
<value>
<name>IntTemp_C</name>
<data>[thb0temp]</data>
</value>
<value>
<name>RH</name>
<data>[th0hum]</data>
</value>
<value>
<name>IntRH</name>
<data>[thb0hum]</data>
</value>
<value>
<name>Barometer_hPa</name>
<data>[thb0press]</data>
</value>
<value>
<name>WindSpeed_ms</name>
<data>[wind0wind]</data>
</value>
<value>
<name>WindDirect_deg</name>
<data>[wind0dir]</data>
</value>
<value>
<name>Rain_mm</name>
<data>[rain0total-daysum]</data>
</value>
Template: weathercat
File: weathercat.xml
Hitting "test" it generates a weathercat.xml file in /data/html, but all that file contains is the word "weathercat". =(
I'm missing something obvious here. Or just doing this completely wrong.
Also not sure how to actually GET to that via (if I can) via web. http://<meteobridgeip>/html/weathercat.xml doesn't work. /data/html/weathercat doesn't work, etc.