I am looking at weatherradio and the recent documentation posted on github

github.com/indilib/indi-3rdparty/blob/ma...adme-WeatherRadio.md

Thank you Wolfgang for this nice firmware and website addon.

Question regarding indiserver start up.
I have run ekos and started weather radio and see all the nice readings, and lights etc.
I have set my preferred sensors for the readings and saved the configuration.

I would like to run weatherradio without Ekos, for instance just to have the web pages.
Can I simply execute
$ indiserver -v indi_weatherradio
Will this pick up any settings from ~/.indi/Weather Radio_config.xml ?

Question regarding data on webpage - graph times (locale and timezone problem)
In bin/wr_rrd_fetch.py and bin/wr_rrd_lastupdate.py the default timezone is set to 1, (? for central europe)
I am in Cork.
My data is saved in the rrd files like so

Python 2.7.16 (default, Oct 10 2019, 22:02:15) 
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import rrdtool
>>> a = rrdtool.lastupdate("sensors.rrd")
>>> print (a)
{'date': datetime.datetime(2020, 3, 21, 11, 19, 7), 'ds': {'BME280_Temp': 20.94, 'MLX90614_Tamb': 19.91, 'TSL2591_Lux': 19.51082, 'BME280_Pres': 1020.375, 'MLX90614_Tobj': 19.19, 'DHT_Temp': None, 'DHT_Hum': None, 'BME280_Hum': 59.03027}}
>>> 
Which is in my localtime.

But the graphs are one hour ahead of this due to timezone calculation.
$ cd /usr/share/weatherradio/bin
$ grep timezone *.py
wr_rrd_fetch.py:parser.add_argument("-t", "--timezone", default=1, type=int,
wr_rrd_fetch.py:            series[categories[pos]]["data"].append([(time + args.timezone*3600)*1000, round(y, 2)])

Should I set the default to 0 here or should I pass -t 0 to the call from cron ?

Question regarding lastupdate on webpage
See screenshot of homepage

lastupdate is --
Not sure why it does not contain the correct time.

In charts.js
        document.querySelector("#lastupdate").textContent = new Date(lastUpdate).toLocaleString();
Should I pass en-IE to toLocaleString ?
       document.querySelector("#lastupdate").textContent = new Date(lastUpdate).toLocaleString("en-IE");

Question re autoupdate of webpage
Does the page autoupdate when new values are available?

Question about best way to change webpage when I don't have the anenometer
I don't have the anenometer. Should I just edit weatherradio.html to delete the references to the windspeed?

Again sorry for all the questions, just trying to get to grips with weatherradio.

Adrian

Read More...