From 8f02e2b833a686d5a047eae7e104f6e4bce3b419 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sun, 25 Dec 2022 13:55:04 +0100 Subject: [PATCH 1/2] fix(readme): install odbcinst1debian2 odbcinst1debian2 is a dependency of odbc-mdbtools. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f4dde70..335282e 100644 --- a/README.md +++ b/README.md @@ -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 From 8bde04ba412f14f82796c8dcddbe1f8c8d5d91bb Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sun, 25 Dec 2022 14:02:55 +0100 Subject: [PATCH 2/2] fix(readme): suppress direnv loading output in cron By default direnv outputs this while executing: ``` direnv: loading ~/python-itho-wpu/.envrc ``` In a cronjob this results in emails, or when no MTA is configured: ``` CRON[1095]: (CRON) info (No MTA installed, discarding output) ``` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 335282e..59b613d 100644 --- a/README.md +++ b/README.md @@ -130,7 +130,7 @@ Assuming InfluxDB is running on the Raspberry Pi as well. cat > /etc/cron.d/itho <> /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 ```