====== Mise en place ====== ===== NsLu2 ===== * [[http://www.cyrius.com/debian/nslu2/|Doc Generique]] * [[http://www.cyrius.com/debian/nslu2/unpack.html|Installation Debian sur le NsLu2]] ===== Soft Wview ===== * [[http://www.wviewweather.com/release-notes/wview-User-Manual.html|Manuel]] * [[http://www.wviewweather.com/release-notes/wview-User-Manual.html#Installation-debian|Installation Debian]] ===== Acces au soft ===== * Parametrage : http://10.0.10.126/wviewmgmt/login.php * Remontes : http://10.0.10.126/weather/ ==> /var/lib/wview has been created with distro examples ==> /etc/wview has been created with distro examples This is a first time install so the station type will be set to "simulator". To change the station type, run "wviewconfig" or use the wviewmgmt web interface to change it. You will need to stop wview and clear the databases of simulator data after you have changed the station type: #> wviewcleardata This is a first time install so the generation templates will be set to "chrome-standard-US units". To change this run "wviewhtmlconfig" to configure the template directory after you have configured wview for metric units and-or extended data. If you have problems accessing the wviewmgmt site after installation, try restarting apache2: #> sudo apache2ctl restart so the PHP5-sqlite module gets loaded - this will never be required again. If you want start/stop control of wview from the Management Web Site (and you are comfortable giving the http server user account sudo privileges): Add the http user to the sudo group: #> sudo adduser www-data sudo Set the sudo group to no password required privileges in /etc/sudoers: #> sudo visudo (Make sure the line [%sudo ALL=NOPASSWD: ALL] is at the bottom of the /etc/sudoers file) To start/stop wview: "#> sudo /etc/init.d/wview start|stop" You may want to restart rsyslog so wview log file settings will take effect: "#> sudo /etc/init.d/rsyslog restart" wview logs will be found at: /var/log/wview.log You may want to restart logrotate so wview rotate settings will take effect. Starting wview daemons: ====== Diverses petites choses ====== ===== Configuration ===== * Stockée dans un fichier sqlite ''/etc/wview/wview-conf.sdb'' * Curieusement, pour integrer les modifs il faut restarter wview ==== probleme en cas de crash ==== * Le fichier de conf peut etre impacté et donc degradé * Lorsque des valeurs sont degradés elles sont consideres comme etant nul * Dans la conf des chemins dans le FS sont indiques * Le logiciel tourne sous root (accés a la station?!?) => Comme les chemins sont vides, les images sont generes dans le / ===== Comment et ou sont stockes les données ===== * Géolocalisation iris:/var/lib/wview/archive# ls -lrt total 132 -rw-r--r-- 1 root root 1040 Feb 23 14:09 wview-archive.sql -rw-r--r-- 1 root root 129 Feb 23 14:09 readme.txt -rw-r--r-- 1 root root 2048 Apr 5 00:00 wview-noaa.sdb -rw-r--r-- 1 root root 3072 Apr 5 10:21 wview-history.sdb -rw-r--r-- 1 root root 64512 Apr 5 22:10 wview-archive.sdb -rw-r--r-- 1 root root 47104 Apr 5 22:11 wview-hilow.sdb iris:/var/lib/wview/archive# * Accés iris:/tmp# sqlite3 wview-hilow.sdb SQLite version 3.7.3 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> .table ET hail inTemp rain windDir UV hailRate metainfo rainRate windGust baromPressure heatIndex outHumidity solarRadiation windSpeed dewPoint inHumidity outTemp windChill sqlite> select * from InTemp; 1333490400|73.58|1333490769|74.66|1333493370|0.0|7784.76|105 1333494000|74.66|1333494000|75.02|1333495200|0.0|8993.396|120 1333497600|74.48|1333500360|74.84|1333497600|0.0|8962.985|120 1333501200|73.76|1333504680|74.48|1333501200|0.0|8893.501|120 1333504800|73.58|1333507110|73.76|1333504800|0.0|8843.461|120 * Outils En me balladant j'ai trouvé un outils qui semble interessant [[http://code.google.com/p/phpliteadmin/|PhpLite]] via ce [[https://groups.google.com/forum/?fromgroups#!topic/wview/TiAkwj9K07E|Forum]] ===== Alimentation ===== * Aucun des elements ne fonctionne sans piles, malgres la cellule photovoltaique * S'il manque un seul des elements, wview ne fonctionne pas * La station necessite une alimentation en 6V * L'USB propose du 5V => on va voire si l'USB ne pourrait pas alimenter aussi la station, au risque de cramer le NSLU2 * [[http://pinouts.ru/Slots/USB_pinout.shtml|Connectique de l'USB]] DELETEME : Test Fait, ca ne marche pas... (tout au moins, le logo d'alim ne disparait pas de la station) :-( ===== Liens divers et d'ete ===== * [[http://www.wviewweather.com/vanilla/index.php?p=/discussion/13/wview-and-pbx-in-a-flash-asterisk-voip/p1|Interconnexion entre Wview et Asterisk]] * [[https://groups.google.com/forum/?fromgroups#!forum/wview|GoogleGroup de Wview]] * [[http://www.wviewweather.com/mantis/|Le Manthis de WView]] ====== Differentes pages de docs ====== * [[http://www.wviewweather.com/|A marche pô mal :)]] * [[http://www.aguilmard.com/phpBB3/viewtopic.php?f=2&t=2057|Donc c'est comme ca dedans...]] * [[http://donegalweather.net/station_operation.php|Une station météo a base d'arduino]] lien trouvé a partir ce [[https://groups.google.com/forum/?fromgroups#!topic/wview/Gmi-C4QvGok|Forum]] * [[http://lystpalasset.blogspot.fr/2009/12/wmr200-weather-station-and-linux.html|Lecture rapide du protocol WMR]] * [[http://www.aguilmard.com/phpBB3/viewtopic.php?f=2&t=508&st=0&sk=t&sd=a&start=120|Eux ils semble jouer au decodage]] * [[http://www.euvrard.net/meteo/wmr100/|Un petit bout de driver qui marche (tm)]] Nb : regler pb de droit USB * [[http://www.grosjeanne.name/Wiki/XNet_Meteo:Links|Encore du demontage]] * [[http://www.bashewa.com/wmr200-protocol.php|Le protocol (youpi)]] * [[http://forums.infoclimat.fr/topic/51631-driver-linux-pour-wm100-ou-wmr-150-a-adapter-pour-wmr200/|Un Forum avec des liens interessants]] * [[http://richard.geneva-link.ch/nslu2.html|NsLu2]] * [[http://www.rainmanweather.com/site/content/Getting-Your-Weather-Station-Online|Encore de la vente, mais vers de l'Eth...]] adlp@RBS-ADLP-LNX:/tmp/wmr200/alone$ ./wmr100 WMR100 - WMR100 Station Reader v0.1 Based on driver.c generated by usbsnoop2libusb.pl - (c) timo.lindfors@iki.fi Adapted by denis ducret to WMR200- WindSpots.com - info@windspots.com Adapted by C.Euvrard to WMR100 d1 Record: d2 2a 0a 00 0b 08 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff e9 63 e9 33 00 00 08 00 35 2e 00 00 Record: d2 2a 0b 00 0b 08 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff e9 63 e9 33 00 00 08 00 35 2e 00 00 Record: d2 2a 00 01 0b 08 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff e9 63 e9 33 00 00 08 00 35 2e 00 00 d7 10 2d 17 01 01 07 00 e5 00 20 3c 00 00 75 02 Record: d7 10 2d 17 01 01 07 00 e5 00 20 3c 00 00 75 00 d6 0d 2d 17 01 01 07 f1 13 f1 33 58 03 d9 08 00 00 00 00 e1 00 Record: Record: d2 2a 01 01 0b 08 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff e9 63 e9 33 00 Record: d2 2a 03 01 0b 08 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff e9 63 e9 33 00 00 08 00 36 2e 00 00 ^C