×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

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

  • Posts: 89
  • Thank you received: 16
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
Last edit: 4 years 5 days ago by Adrian. Reason: Solved
4 years 5 days ago #51015

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

  • Posts: 1185
  • Thank you received: 370
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
4 years 5 days ago #51017

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

  • Posts: 89
  • Thank you received: 16
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
4 years 5 days ago #51018

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

Time to create page: 0.280 seconds