Add daily weather report automation
This commit is contained in:
@@ -76,12 +76,23 @@ printf '%s' 'SMTP_PASSWORT_HIER_EINTRAGEN' > /mnt/user/appdata/secrets/homelab_s
|
||||
chmod 600 /mnt/user/appdata/secrets/homelab_smtp_password.txt
|
||||
```
|
||||
|
||||
Optional fuer den Wetterbericht im Tagesreport: Grafana Service Account Token
|
||||
mit Leserechten auf die Datasource in eine Host-Secret-Datei legen:
|
||||
|
||||
```bash
|
||||
printf '%s' 'glsa_REPLACE_WITH_ROTATED_READ_TOKEN' > /mnt/user/appdata/secrets/monitoring_grafana_weather_report_token.txt
|
||||
chmod 600 /mnt/user/appdata/secrets/monitoring_grafana_weather_report_token.txt
|
||||
```
|
||||
|
||||
Der Wetterbericht-Generator nutzt `python3` auf dem Host.
|
||||
|
||||
User Script:
|
||||
|
||||
```bash
|
||||
#!/bin/bash
|
||||
SEND_MAIL=1 \
|
||||
MAIL_MODE=always \
|
||||
INCLUDE_WEATHER_REPORT=1 \
|
||||
MAIL_FROM="michideheld@gmx.de" \
|
||||
MAIL_TO="Mi.Kaleschke@gmx.de" \
|
||||
SMTP_HOST="smtp.gmx.net" \
|
||||
|
||||
Reference in New Issue
Block a user