Hallo
I added the "forecastRule" field to the database "wview.py"
and the file
https://github.com/hes19073/hesweewx/blob/master/bin/user/vanfortex.py
also in /weewx/bin/user/vanfortex.py
in the "skin.conf" by "search_list_extensions = user.xstats.ExtStats,
...user.vanfortex.vantageText...
Thanks for your replies. I managed to get a good result just using HTML
and Javascript, without having to interfere with any conf files or with any
of the Python code. This is what worked:
1. Capturing $current.forecastRule.raw with index.html.tmpl which passed
that value as an integer
snippets from my gauges-lite.js code:// forecast descriptions associated with forecastRule.// one forecast desc per line, the first line corresponds to forecastRule 0var FORECASTRULES_FILE = "forecastrules.txt”;… … var Forecast_list = null; // table of forecast stringsfunction start_gaug
You could do it in the Cheetah template. Something like this (NOT TESTED):
#set rules = ["Mostly clear and cooler.", "Mostly clear with little
temperature change.", "Mostly clear for 12 hours with little temperature
change.", ... , ]
The forecast is:
$rules[$current.forecastRule.raw]
I'm trying to write code that will take Davis's forecastRule (a number) and
display this on my webpage as text by reading the number off an array and
returning the text corresponding to that number.
For example if the Davis forecastRule returned is 5, I want the webpage to
display "Partly cloud