New Weather Station

New Weather Station

Since my old Renkfore WH2315 weather station unfortunately no longer worked properly (connection problems), I had to organize a new one. I decided to buy a semi-professional weather station from the provider dnt. The WeatherScreen PRO station is a WiFi weather station, so e.g. you can directly send your data to Weather Underground, Ecowitt Weather, Weathercloud or another weather provider.

Here you can see the outside sensors and the basis station: Photo

Below is a picture with the weather station in action. The first spot was at the back terrace, in the north of the property. By the way, the yellow spots are quite valuable dirt (Sahara dust) which was transported from North Africa to Central Europe by a favorable air current at the beginning of March 2022. Photo

New spot:

The weather station is mounted since fall 2022 at the south side of the property, so the spot is now very suitable to measure the Foehn-winds. Photo

Changes compared to the old (Renkforce Weather Station):

A big advantage of the new weather station is a built-in memory by means of a sd-card. So if there are connection problems with the station and the WiFi you have no data loss.

Here you can see the new construction: construction_weather_station_not_splitted_in_two_subnails.svg Photo taken from https://www.netcup.de/

Publication of the weather station take place in two ways:

  • Sending data to Weather Underground (automatically via the weather station)
  • Sending data to a private webserver (Raspberry Pi - WeeWX - webserver)

Sending data to Weather Underground (automatically via the weather station):

Only the below settings on the basis station have to be made (sensitive data is marked as XXX) Photo

Sending to a private webserver:

First the weather data is send to the Raspberry Pi on which an open source software for weather stations WeeWX is installed. In a second step this data is send to a webserver. Because the WeatherScreen PRO station has no USB-connection I had to install an extra driver. The driver is available on GitHub via the following link (matthewwall / weewx-interceptor). For the installation I followed basically the GitHub documentation and another documenation which is unfortunately only available in German (https://www.dl1nux.de/erfahrungen-mit-dnt-wetterstation-weatherscreen-pro-und-weewx/).

Below is an excerpt of the weewx.conf-file with the settings of the interceptor-driver (192.168.0.164 is the internal IP address of the Pi):

pi@raspberrypi:~ $ cat /etc/weewx/weewx.conf
##############################################################################

[Interceptor]
    # This section is for the network traffic interceptor driver.

    # The driver to use:
    driver = user.interceptor

    # Specify the hardware device to capture.  Options include:
    #   acurite-bridge - acurite internet bridge, smarthub, or access
    #   observer - fine offset WH2600/HP1000/HP1003, ambient WS2902
    #   lw30x - oregon scientific LW301/LW302
    #   lacrosse-bridge - lacrosse GW1000U/C84612 internet bridge
    #   ecowitt-client - any hardware that uses the ecowitt protocol
    #   wu-client - any hardware that uses the weather underground protocol
    device_type = ecowitt-client
    port = 40080
    address = 192.168.0.164 

##############################################################################

Finally at the basis station a customized server with the Ecowitt protocol has to be installed: Photo

Rsync via crontab:

By default, the WeeWX software on the Pi runs with root access. Unfortunately, this also creates all folders as root. In order to store these files on the webserver and make them generally accessible, it is advisable not to grant root access on the server. So in a first step I changed the user of the folder and the group (it is the same user). Then these folders can be copied and stored on the server without any problem with this non-root user. See also https://www.pluralsight.com/blog/it-ops/linux-file-permissions

I did everthing via a crontab:

pi@raspberrypi:~ $ crontab -e

*/1 * * * * sudo chown -R xyuser:xyuser /var/www/html/weewx
*/2 * * * * rsync --numeric-ids -avz /var/www/html/weewx  xyuser@somehost.example.com:/var/www/html 

Finally two links to the weather station:

webserver (smartphone skin)

IPATSC5-Wunderground

Technical Data (WeatherScreen PRO station):

Below is screenshot taken from the WeatherScreen PRO Data Sheet. The data sheet is unfortunately only available in German. Photo