weewx-dwd: Adjust config
This commit is contained in:
parent
b7aad60e68
commit
fd72dc14c9
2 changed files with 3 additions and 5 deletions
|
@ -56,8 +56,6 @@ RUN wget -nv -O icons-dwd.zip "https://www.dwd.de/DE/wetter/warnungen_aktuell/ob
|
|||
RUN sed -i -z -e "s|PTH=\"/etc/weewx/skins/Belchertown/dwd\"|PTH=\"/home/weewx/skins/weewx-wdc/dwd\"|g" /tmp/weewx-dwd/weewx-DWD-master/usr/local/bin/wget-dwd &&\
|
||||
sed -i -z -e "s|SchilderLZ|SchilderEM|g" /tmp/weewx-dwd/weewx-DWD-master/usr/local/bin/wget-dwd &&\
|
||||
sed -i -z -e "s|config = configobj.ConfigObj(\"/etc/weewx/weewx.conf\")|config = configobj.ConfigObj(\"/data/weewx.conf\")|g" /tmp/weewx-dwd/weewx-DWD-master/usr/local/bin/dwd-warnings &&\
|
||||
sed -i -z -e "s|config_path = \"/etc/weewx/weewx.conf\"|config_path = \"/data/weewx.conf\"|g" /tmp/weewx-dwd/weewx-DWD-master/usr/local/bin/dwd-cap-warnings &&\
|
||||
sed -i -z -e "s|config_path = \"/etc/weewx/weewx.conf\"|config_path = \"/data/weewx.conf\"|g" /tmp/weewx-dwd/weewx-DWD-master/usr/local/bin/dwd-mosmix &&\
|
||||
sed -i -z -e "s|#!/usr/bin/python3|#!/usr/bin/env python3|g" /tmp/weewx-dwd/weewx-DWD-master/usr/local/bin/dwd-warnings &&\
|
||||
sed -i -z -e "s|#!/usr/bin/python3|#!/usr/bin/env python3|g" /tmp/weewx-dwd/weewx-DWD-master/usr/local/bin/dwd-cap-warnings &&\
|
||||
sed -i -z -e "s|#!/usr/bin/python3|#!/usr/bin/env python3|g" /tmp/weewx-dwd/weewx-DWD-master/usr/local/bin/dwd-mosmix &&\
|
||||
|
|
|
@ -10,12 +10,12 @@
|
|||
#/usr/local/bin/dwd-warnings 2>/dev/null >/dev/null
|
||||
|
||||
# Soll statt dwd-warnings dwd-cap-warnings verwendet werden,
|
||||
# hier das Kommentarzeichen entfernen und dafuer eines vor
|
||||
# hier das Kommentarzeichen entfernen und dafuer eines vor
|
||||
# die Zeile mit dwd-warnings setzen
|
||||
/usr/local/bin/dwd-cap-warnings --weewx --resolution=city 2>/dev/null >/dev/null
|
||||
/usr/local/bin/dwd-cap-warnings --config=/data/weewx.conf 2>/dev/null >/dev/null
|
||||
|
||||
# Fuer Wettervorhersagen XXXXX durch den Stationscode
|
||||
# ersetzen und das Kommentarzeichen entfernen.
|
||||
/usr/local/bin/dwd-mosmix --weewx --daily --hourly K1174 2>/dev/null >/dev/null
|
||||
/usr/local/bin/dwd-mosmix --config=/data/weewx.conf --daily --hourly K1174 2>/dev/null >/dev/null
|
||||
|
||||
exit 0
|
||||
|
|
Reference in a new issue