wns - weewx extension that sends data to Wetternetz-Sachsen
Distributed under the terms of the GNU Public License (GPLv3)
You will need an account at Wetternetz-Sachsen
http://www.wetternetz-sachsen.de
-
download
wget -O weewx-wns.zip https://github.com/roe-dl/weewx-wns/archive/master.zip
-
run the installer
WeeWX up to version 4.X
sudo wee_extension --install weewx-wns.zip
WeeWX from version 5.0 on after WeeWX packet installation
sudo weectl extension install weewx-wns.zip
WeeWX from version 5.0 on after WeeWX pip installation into an virtual environment
source ~/weewx-venv/bin/activate weectl extension install weewx-wns.zip
-
enter parameters in the weewx configuration file
[StdRESTful] [[Wns]] enable = true station = station ID api_key = WNS-Kennung T5AKT_ = observation type that holds 5cm-temperature SOD1D_ = observation type that holfs sunshine duration skip_upload = false log_url = false
-
restart weewx
for SysVinit systems:
sudo /etc/init.d/weewx stop sudo /etc/init.d/weewx start
for systemd systems:
sudo systemctl stop weewx sudo systemctl start weewx
-
Station ID and WNS-Kennung are mandatory. You get them from the Wetternetz Sachsen administrator.
-
Set
T5AKT_ = None
if you do not measure 5cm temperature. Otherwise give the WeeWX observation type you use for that value. -
Set
SOD1D_
to the observation type of sun duration. If you do not have such an observation type set it to None. -
Set
TSOI10
,TSOI20
, andTSOI50
to the appropriate WeeWX observation types if you measure soil temperatures. The number is the depth in cm. -
Set skip_upload to true to do all the calculation and preparation without doing the real upload. This is for testing. Set log_url=true to see what would be uploaded.
-
Set log_url to true to log the URL sent to Wetternetz Sachsen to syslog. This is for trouble shooting.