Code: Alles auswählen
#!/bin/bash
weectl database add-column co2_Temp --type=REAL -y
weectl database add-column co2_Hum --type=REAL -y
weectl database add-column co2_Batt --type=REAL -y
....
Code: Alles auswählen
If you don't work with the standard configuration (/etc/weewx/weewx.conf), you have to adjust the --config=/etc/weewx/weewx.conf entry accordingly.
weectl database add-column co2_Temp --type=REAL -y
in
weectl database --config=/etc/weewx/weewx.conf add-column co2_Temp --type=REAL -y
und alle Zeile des Scripts so abändern?