Selecteer een pagina

For my birthday I received the TFA Nexus Pro from my fiancee. A very nice weather station with a fair price. Perhaps not the best weather station for true weather addicts but more than enough for me.

TFA Nexus Pro Weather StationIt has a memory for 3000 weather items. You can read the memory by connecting the weather station via a USB cable to your personal computer. But if you want to save the weather data for later use or perhaps you want to display your current weather (near) realtime your personal computer needs to keep running 24/7.

But I also have a NAS system that is running 24/7 already and I wondered perhaps I can connect the weather station to my NAS server.

And yes I can. My NAS server is from QNAP but this also works for a Synology NAS server and perhaps other as well.

For the QNAP you must install the “Optware IPKG” package first. You can do this by logging in on the Web interface and go to “Application Servers” -> “QPKG Center” and then installing the “Optware IPKG” from the available tab.

For the Synology you need another procedure that is explained on the synology website. For a Thecus NAS you can follow this guide for installing Optware on your NAS.

Afterwards connect with SSH (for instance with PuTTY) to your NAS server and login as the administrator user.

Then run the following command:

ipkg update

This will update the package list for ipkg. Afterwards install the following items:

GCC:

ipkg install gcc

Make:

ipkg install make

libusb:

ipkg install libusb

Next download and unpack the te923tool from Sebastian John.

 wget http://te923.fukz.org/downloads/te923tool-0.5.tgz tar -xzvf te923tool-0.5.tgz 

Now we’ll start compiling the te923tool:

 cd downloads/te923tool-0.5 rm te923con make all 

Now you should have a file called te923con in the same directory. Let’s copy it to a different directory.

 cp te923con /opt/bin/ 

Now it is time to connect the weather station to the NAS server with the supplied USB cable.

You can check if it is connected by reading the following command:

dmesg

You may see that there is usbhid device added. But the weather station is not a usbhid device so we execute the following command:

rmmod usbhid

Please note: This may break other USB devices connected to your NAS for instance if you have a USB keyboard connected to your NAS. If you don’t or if you know what you are doing feel free to execute this command.

Now we can execute it with for instance:

 /opt/bin/te923con -i0 

Which could for instance lead to an output like this:

1332324359:16.95:49:9.90:78:0:0:0:0:0:0:0:0:1027.6:0:6:0:15:0.1:0.0:18.8:81

This is a semi colon seperated output:

Unixtime:T0:H0:T1:H1:T2:H2:T3:H3:T4:H4:T5:H5:PRESS:UV:FC:STORM:WD:WS:WG:WC:RC

-  Unixtime - Current date / time in a unixtime stamp format.
-  T0    - temperature from internal sensor in °C
-  H0    - humidity from internal sensor in % rel
-  T1..5 - temperature from external sensor 1..4 in °C
-  H1..5 - humidity from external sensor 1...4 in % rel
-  PRESS - air pressure in mBar
-  UV    - UV index from UV sensor
-  FC    - station forecast, see below for more details
-  STORM - stormwarning; 0 - no warning, 1 - fix your dog
-  WD    - wind direction in n x 22.5°; 0 -> north
-  WS    - wind speed in m/s
-  WG    - wind gust speed in m/s
-  WC    - windchill temperature in °C
-  RC    - rain counter (maybe since station starts measurement) as value

   weather forecast means (as precisely as possible)
     0 - heavy snow
     1 - little snow
     2 - heavy rain
     3 - little rain
     4 - cloudy
     5 - some clouds
     6 - sunny

In this case for instance the inside temperature is 16.95 degrees Celsius. The inside humidity is 49%, the outside temperature is 9.9 degrees Celsius and outside humidity is 78%. The pressure is 1027.6 and it is expected to remain sunny (which is indicated by the 6) for the next few hours.

Hurray you are now able to read the values from your weather station from your QNAP or Synology NAS server and possibly any NAS server that supports the Optware ipkg.

Please note that this tool works for most weather station based on the Hideki te923 chip like the TFA Nexus Pro, Mebus TE923, Irox pro, Honeywell TE923, MeteoScan Pro 923, Cresta 923 and perhaps others.

Next up is saving the data in regular intervals to a MySQL database.