Lufft WS10: Setting up datalogging with Meteohub over WLAN
The Lufft WS10 weather sensor is now supported by the Meteohub datalogger software. Meteohub can be installed on a low-cost Raspberry Pi single board computer and connects to the WS10 sensor via WiFi using standard TCP/IP sockets. Before configuring the WS10 and Meteohub to work together, you will need to set them up on the same network.
The Lufft WS10 is an IP connected weather station that can connect to your network like any other WiFi device such as a computer, smartphone or your toaster. First download the Lufft Configtool.NET application from the company website or the Google Play Store for Android. Then connect the WS10 weather sensor to power (24v DC) and then connect to the WiFi network created. The network does not require a login. Once connected with an Android or Windows device, you should connect to the weather sensor with Configtool.NET.
In Configtool.NET first discover and add the sensor. Once connected, you can verify it can collect data by selecting some channels and enabling logging. Once you have verified connection with this local device, proceed with connecting the WS10 to your local WiFi network. This is done in the WiFi settings of the device using Configtool.NET.
Once you have set the WLAN id and password, the Lufft WS10 will connect to your network. For most users it will use DHCP to automatically get an IP address in your local address. Most routers will maintain the IP for a long time. However, you can set a static IP via Configtool.NET or possibly by defining a static IP from your router. This will make access to the WS10 using TCP/IP more reliable as you can always rely on the IP address of the device remaining the same.
With the WS10 now set up on your LAN (Local Area Network), it will be available via a standard TCP/IP socket (a combination of an IP address and a port). The default port of the WS10 is 9750, and in a common home or small business network the IP could be something along the lines of 192.168.1.28.
Connecting the Meteohub datalogger to the Lufft WS10
The next step is to install Meteohub and connect it to the weather sensor. An easy and affordable way to get the datalogging platform running it on the affordable Raspberry Pi SBC (Single Board Computer). There are many different models on the market, but since the price of all is reasonable, I would recommend getting the top-of-the-line device for best performance and connectivity.
At the time of writing this is the Raspberry Pi 3 Model B+. You will also need an SD card for storage. I recommend at least 16 GB card to have ample storage for the operating system and logged data. Once you have the hardware in place, follow the instructions on the wiki on how to install Meteohub to the Raspberry Pi.
Note that Lufft WS10 support arrived to Meteohub in update version 5.1a in November 2018 and you will need the update to have support for the sensor. Once you have installed Meteohub and verified you have a supported version (5.1a or higher) open the Weather Station page in the administration panel of the system. In the settings, use the "Add weather station" dropdown and select WS600/700/10 from the options.
Once the sensor is added you will need to set the correct configuration to it. Since we are using the WLAN connection you will need to set "Type of connection" to TCP/IP. For the "IP Address : Port" selection choose the values that apply for your network. For example: 192.168.1.28:9750. Also enter the name, altitude and other. Finally hit save.
Now the sensor should be connected. In the "Log Files" section you can find the "meteohub log" details, which should display something similar to this:
logger (19.11.2018 08:47:09): data logger (version 5.1a, build 258) started.
logger (19.11.2018 08:47:10): connect station 0 (WS600/700/10 via TCP/IP).
logger (19.11.2018 08:47:10): station 0 (WS600/700/10), compact weather station device 7-1 activated: WS10
logger (19.11.2018 08:47:10): station 0 (WS600/700/10), compact weather station device 7-1 identifies as: No. 29, Project 1601, HW 0.1, SW 0.12, device 5
logger (19.11.2018 08:47:10): station 0 (WS600/700/10), compact weather station device 7-1 provides 13 channels: 100, 110, 200, 300, 305, 400, 500, 700, 600, 800, 900, 902, 903
Once you have the WS10 successfully added to Meteohub you should configure the channels in the "Sensors" tab of the user interface. You should match the wind, rain, pressure, outdoor and precipitation type fields as shown in the image below.
Once this is in place the Meteohub should be collecting data from the Lufft WS10. To view the raw data you can have a peek of the values on the "Raw Data" section of the Meteohub interface.