mirror of
https://github.com/pommi/python-itho-wpu.git
synced 2024-12-22 18:53:28 +01:00
Compare commits
2 Commits
c41b700f13
...
8bde04ba41
Author | SHA1 | Date | |
---|---|---|---|
8bde04ba41 | |||
8f02e2b833 |
@ -21,6 +21,7 @@ See the [pislave](https://github.com/ootjersb/pislave#wiring) project
|
||||
pigpiod \ # Pigpio daemon to communicate over the I2C bus
|
||||
python3-pigpio \ # Python module to talk to the pigpio daemon
|
||||
python3-pyodbc \ # Python module to access an ODBC database
|
||||
odbcinst1debian2 \ # Library for accessing ODBC config files (odbc-mdbtools dependency)
|
||||
sqlite3 \ # To store a subset of the Itho database in SQLite
|
||||
direnv \ # Environment variable manager to store credentials for InfluxDB
|
||||
python3-influxdb # To export measurements to InfluxDB
|
||||
@ -129,7 +130,7 @@ Assuming InfluxDB is running on the Raspberry Pi as well.
|
||||
cat > /etc/cron.d/itho <<EOT
|
||||
PATH=/usr/bin:/bin:/usr/sbin:/sbin
|
||||
|
||||
*/5 * * * * root cd /root/python-itho-wpu && direnv exec . ./itho-wpu.py --action getdatalog --export-to-influxdb >> /var/log/itho.log
|
||||
*/5 * * * * root cd /root/python-itho-wpu && DIRENV_LOG_FORMAT='' direnv exec . ./itho-wpu.py --action getdatalog --export-to-influxdb >> /var/log/itho.log
|
||||
EOT
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user