====== Introduction ====== This topic demonstrates how to connect TFA dostmann Nexus wireless weather [[http://tfa-dostmann.de/index.php?id=62&L=1&tx_browser_pi1%5Bpointer%5D=1&cHash=249771faf1387672c5fd1119e9d81092|station]] ([[http://tfa-dostmann.de/fileadmin/bedienungsanleitungen/35.1075_e_02.pdf|datasheet]]) to carambola and to upload data to remote server. Other weather stations that possible can be supported (but not tested): Hideki, Nexus, Mebus, Irox, Honeywell, Cresta TE923, TE923W, TE821W, WXR810, DV928, TE831X, IROX PRO-X USB This USB device is recognized as: Product ID: 0x6801 Vendor ID: 0x1130 (Tenx Technology, Inc.) {{ :TFA_dosman_nexus.jpg?nolink&300}} {{:carambola_nexus.jpg?nolink&300 }} ====== Live data demonstration ======


All data streams can be found [[https://pachube.com/feeds/37785|here]], or plain text CSV [[http://api.pachube.com/v2/feeds/37785.csv|data]] ====== Software ====== ===== Windows software ===== Software, that comes prepacked with weather station is only for windows. Although it works nice, it lacks some features. I will not discuss about it further, in case somebody want's to try original windows software can be downloaded [[http://www.8devices.com/files/wetherstation_setup.exe| here]] ===== Testing on Linux PC ===== * Main development is [[http://te923.fukz.org/index|here]], but link is down, so you can get archive [[http://fukz.de/download/te923tool/te923-0.4.tgz|0.4v]] directly (local [[http://www.8devices.com/files/te923-0.4.tgz|copy]] if you like). Original software was downloaded from [[http://www.fukz.de/2009/03/08/te923-tool-v04/|here]] * Some original [[http://www.mrbalky.com/2010/05/09/weather-station-tinkering/|notes]] about software * Download archive, extract and build it (you need to install libusb-dev in advance). After this you should remove HID support. (details [[http://www.mrbalky.com/tag/te923/|here]]). After you run program with no keys, you should see output like this: user@linux:/tmp# sudo te923con 1318004865:23.25:66:23.20:69:::::::::980.0::5:0:12:0.7:0.0:22.5:113 * For more details how to use program type te923con -h * Error messages: ''Error while setting configuration (-1)'' - you are not root ''Error while setting configuration (-16)'' - probably HID driver is still running. Remove with ''sudo rmmod usbhid'' ===== Getting Embedded ===== * To install package to Carambola type: opkg install http://www.8devices.com/files/te923tool_1_ramips.ipk * To test if it works type: te923con -p * ''te923tool'' sources (as package to carambola build system) to [[http://www.8devices.com/files/te923tool.zip|download]] * Create feed which looks like in this screenshot: {{:configure_packube_feeds.png?600x300&direct|}} * Data meaning 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 0 - heavy snow 1 - little snow 2 - heavy rain 3 - little rain 4 - cloudy 5 - some clouds 6 - sunny STORM - stormwarning; 0 - no warning, 1 - fix your dog WD - wind direction in deg; 0 -> north WS - wind speed in m/s WG - wind gust speed in m/s WC - windchill temperature in C RC - rain counter (absolute value) in mm * It is easy to setup all job as single line te923con -p >/tmp/pachube2.json; curl -X PUT -d @/tmp/pachube2.json -H "X-PachubeApiKey: --------API_KEY--------" -v http://api.pachube.com/v2/feeds/37785 * After quick test if it works, you can setup linux schedule to run every minute. root@OpenWrt:/tmp# crontab -l # Minute Hour Day of Month Month Day of Week Command # (0-59) (0-23) (1-31) (1-12 or Jan-Dec) (0-6 or Sun-Sat) * * * * * te923con -p >/tmp/pachube2.json; curl -X PUT -d @/tmp/pachube2.json -H "X-PachubeApiKey: --------API_KEY--------" -v http://api.pachube.com/v2/feeds/37785 ====== Links ====== * http://www.fukz.de/ * http://www.mrbalky.com/2010/05/09/weather-station-tinkering/ * http://www.mrbalky.com/ * http://www.mrbalky.com/2010/05/09/weather-station-one-last-thing/ * http://www.mrbalky.com/tag/te923/ * http://www.sensorpedia.com/index.html