×
INDI Library v1.8.4 Released

Minor bugfix release with some highlights:

weatherradio cron scripts in Readme-WeatherRadio.md [SOLVED]

1 week 11 hours ago 6 days 17 hours ago by procras. Reason: Solved
procras
Senior Boarder
Senior Boarder
Posts: 55
More
Topic Author
weatherradio cron scripts in Readme-WeatherRadio.md [SOLVED] #51015
I have been trying out weatherradio which is a very nice weather station.

<strong>Thank you very much Wolfgang</strong>

I have a question regarding the cron scripts outlined in the documentation.

indi-3rdparty/indi-duino/doc/Readme-WeatherRadio.md

<code>
#
# cron jobs for arduino weather radio
#
#
4,9,14,19,24,29,34,39,44,49,54,59 * * * * <userid> /usr/share/weatherradio/bin/wr_rrd_update.py
4,9,14,19,24,29,34,39,44,49,54,59 * * * * <userid> /usr/share/weatherradio/bin/wr_rrd_update_sensordata.py

#
# Update JSON export files
#
*/5 * * * * <userid> /usr/share/weatherradio/bin/wr_rrd_lastupdate.py
*/5 * * * * <userid> /usr/share/weatherradio/bin/wr_rrd_fetch.py -s 6h
*/15 * * * * <userid> /usr/share/weatherradio/bin/wr_rrd_fetch.py -s 1d
0 * * * * <userid> /usr/share/weatherradio/bin/wr_rrd_fetch.py -s 7d
0 0 * * * <userid> /usr/share/weatherradio/bin/wr_rrd_fetch.py -s 30d

*/5 * * * * <userid> /usr/share/weatherradio/bin/wr_rrd_fetch.py -s 6h -o /usr/share/weatherradio/html/data/RTsensors_6h.json /usr/share/weatherradio/sensors.rrd
*/15 * * * * <userid> /usr/share/weatherradio/bin/wr_rrd_fetch.py -s 1d -o /usr/share/weatherradio/html/data/RTsensors_1d.json /usr/share/weatherradio/sensors.rrd
0 * * * * <userid> /usr/share/weatherradio/bin/wr_rrd_fetch.py -s 7d -o /usr/share/weatherradio/html/data/RTsensors_7d.json /usr/share/weatherradio/sensors.rrd
0 0 * * * <userid> /usr/share/weatherradio/bin/wr_rrd_fetch.py -s 30d -o /usr/share/weatherradio/html/data/RTsensors_30d.json /usr/share/weatherradio/sensors.rrd

</code>

It seems that the first set of calls to we_rrd_fetch.py -s [6h|1d|7d|30] are repeated in the second batch which declares the -o file and the sensors.rrd files.

These are already defined and included from wr_config.py


Can't the last block be deleted?

<code>

*/5 * * * * <userid> /usr/share/weatherradio/bin/wr_rrd_fetch.py -s 6h -o /usr/share/weatherradio/html/data/RTsensors_6h.json /usr/share/weatherradio/sensors.rrd
*/15 * * * * <userid> /usr/share/weatherradio/bin/wr_rrd_fetch.py -s 1d -o /usr/share/weatherradio/html/data/RTsensors_1d.json /usr/share/weatherradio/sensors.rrd
0 * * * * <userid> /usr/share/weatherradio/bin/wr_rrd_fetch.py -s 7d -o /usr/share/weatherradio/html/data/RTsensors_7d.json /usr/share/weatherradio/sensors.rrd
0 0 * * * <userid> /usr/share/weatherradio/bin/wr_rrd_fetch.py -s 30d -o /usr/share/weatherradio/html/data/RTsensors_30d.json /usr/share/weatherradio/sensors.rrd

</code>

Am I misunderstanding something, or is this a typo?

Adrian

Please Log in or Create an account to join the conversation.

1 week 10 hours ago
sterne-jaeger
Platinum Boarder
Platinum Boarder
Posts: 475
Karma: 6
More
weatherradio cron scripts in Readme-WeatherRadio.md [SOLVED] #51017
Hi Adrian,
no, these lines are necessary, since they create the JSON documents for the sensor data . This page is intended to analyze the raw values of sensors.

But sure, if you are not interested in this data, you can omit it.

- Wolfgang

TSA-120 + FSQ-85 + GSO 150/750 | Avalon Linear + M-zero | Moravian G2-8300 + ASI 1600mm pro + ASI 294mc pro | KStars/INDI on Raspberry Pi 4 with Raspbian 10

Please Log in or Create an account to join the conversation.

1 week 10 hours ago
procras
Senior Boarder
Senior Boarder
Posts: 55
More
Topic Author
weatherradio cron scripts in Readme-WeatherRadio.md [SOLVED] #51018
Thanks Wolfgang

The first block generates the RTdata_[1d|30d|6h|7d].json files

and the second block generates the RTsensors_[1d|30d|6h|7d].json files

Thanks for explaining this.

Adrian

Please Log in or Create an account to join the conversation.

Time to create page: 0.526 seconds