Hi,
I'm making use of the
"TARGET !scriptname" datasource method - as per https://network-weathermap.com/manual/0.98/pages/targets.html#script.
I'm able to successfully run a script (after enabling lib/datasources/WeatherMapDataSource_external.php) and it returns the four line values as required.
I want to then use
ICON and use the hint variable
external_line1 to choose which image to display - for example:
Code:
ICON 16 16 images/updown_{node:this:external_line1}.png
However, it seems that weathermap generates the following warning:
Code:
WARNING: configs/simple.conf: ICON 'images/updown_down.png' does not exist, or is not readable. Check path and permissions. [WMARN38]
It resolves the hint variable as expected, and the image file path and name is correct and does exist. If I use that file path/name directly, or if I use another hint variable that has been created by
SET, it does not have the warning/error.
Any ideas why using the hint variable
external_line1 would cause this error, even though it seems to resolve OK?
Thank you.