FWS 20 Wetterstation
Wetterstation FWS-20 an T-Link MR3020 (MR703n) OpenWrt-Router anschließen
fowsr: mit Hilfe des Programmes kann man die Wetterstation an den OpenWrt-Router anbinden.
lua Scripts: https://github.com/wezm/weather-tools/blob/master/README.markdown
ACHTUNG: die Hardware des TL-MR3020 kann nur USB-2. Da die Wetterstation aber noch einen USB-1 Anschluss hat muss ein USB-Hub dazwischen geschaltet werden (das billigste ebay Teil -ohne externe Spannungsversorgung) ist dafür ausreichend.
Installation von fowsr (direkt über opkg Paket-Management)
opkg update opkg install fowsr [email protected]:fowsr -p 00414764 | 51 21 3C CE __ __ __ __ __ __ __ __ __ __ __ __ | Q!< usb_set_debug: Setting debugging level to 255 (on) usb_os_find_busses: Found 001 usb_os_find_devices: Found 014 on 001 skipped 1 class/vendor specific interface descriptors usb_os_find_devices: Found 013 on 001 usb_os_find_devices: Found 012 on 001 usb_os_find_devices: Found 011 on 001 usb_os_find_devices: Found 001 on 001 error obtaining child information: Inappropriate ioctl for device error obtaining child information: Inappropriate ioctl for device USB error: could not get bound driver: No data available usb_get_driver_np returned -61 00414760 | 51 21 3F 79 __ __ __ __ __ __ __ __ __ __ __ __ | Q!?y failed to release interface: 0 failed to close interface: 0
das sieht zwar nicht ganz sauber aus, funktioniert aber doch!
Die Daten liegen dann in '/tmp':
[email protected]:/tmp# cat /tmp/pywws.log 2013-02-17 20:07:50,18.0,39.0,22.000,80.0,8.800,997.700,0.0,0.0,12.0,16.200,00 2013-02-17 19:37:50,30.0,42.0,21.600,80.0,8.800,997.700,0.0,0.0,12.0,16.200,00 2013-02-17 19:07:50,30.0,46.0,19.400,80.0,8.900,997.500,0.0,0.0,12.0,16.200,00 ...
todo: beschreiben wie die Daten versendet werden (Aufruf und Anmeldung)
cron job erstellen:
crontab -u root -e # oeffnet Datei '/etc/crontabs/root' -------------------- Inhalt von 'root' -------------- # alle 2 Minuten */2 * * * /mypath/dosomething :w :q
cron job starten:
/etc/init.d/cron enable /etc/init.d/cron start
Infos zum wundermap Upload-Format : Upload-Format