====== configuration ====== copier les fichiers de open2300.zip dans : root@OpenWrt:/usr/bin# ls -l |grep 2300 -rwxr-xr-x 1 root root 66408 Jan 2 15:17 fetch2300 -rwxr-xr-x 1 root root 66550 Jan 2 15:17 log2300 -rwxr-xr-x 1 root root 62235 Jan 2 15:17 minmax2300 copier /etc open2300.conf -rwxr-xr-x 1 root root 3224 Jan 2 13:32 open2300.conf changer le port serie et les unitées __si on veux gagner de la place en DB on pourrait suprimer :__ * WS_Wsp (trop volatile) , remplacé par WS_Wmin WS_Wmax * WS_Wdird (trop volatile) , on ne garde que WS_WdirT * WS_R1h , non utilisé * WS_R24h , recalculé à partir du Rtot ====== fetch2300 ====== la commande fetch2300 prend autour de 10 secondes , pas de variation notable de charge cpu root@OpenWrt:~/open2300# ./fetch2300 Date 2011-Jan-02 Time 13:36:31 Ti 19.8 Timin 18.7 Timax 21.2 TTimin 09:51 DTimin 2011-01-02 TTimax 22:58 DTimax 2011-01-01 To 2.2 Tomin 1.8 Tomax 11.4 TTomin 12:38 DTomin 2011-01-02 TTomax 17:01 DTomax 2011-01-01 DP 1.0 DPmin 0.6 DPmax 8.4 TDPmin 12:20 DDPmin 2011-01-02 TDPmax 16:58 DDPmax 2011-01-01 RHi 60 RHimin 59 RHimax 67 TRHimin 13:24 DRHimin 2011-01-02 TRHimax 01:14 DRHimax 2001-01-01 RHo 92 RHomin 91 RHomax 93 TRHomin 12:20 DRHomin 2011-01-02 TRHomax 11:11 DRHomax 2011-01-02 WS 0.0 DIRtext NW DIR0 315.0 DIR1 315.0 DIR2 225.0 DIR3 292.5 DIR4 315.0 DIR5 292.5 WC 2.2 WCmin -6.0 WCmax 11.4 TWCmin 09:47 DWCmin 2011-01-02 TWCmax 17:01 DWCmax 2011-01-01 WSmin 0.0 WSmax 20.5 TWSmin 13:36 DWSmin 2011-01-02 TWSmax 09:47 DWSmax 2011-01-02 R1h 0.00 R1hmax 0.00 TR1hmax 13:36 DR1hmax 2011-01-02 R24h 0.00 R24hmax 0.00 TR24hmax 13:36 DR24hmax 2011-01-02 Rtot 0.00 TRtot 23:16 DRtot 2010-12-29 RP 1008.700 RPmin 1005.900 RPmax 1009.700 TRPmin 00:27 DRPmin 2001-01-01 TRPmax 11:21 DRPmax 2011-01-02 Tendency Rising Forecast Sunny Date 2011-Jun-13 Time 10:32:31 Ti 22.8 Timin 17.8 Timax 27.3 TTimin 13:00 DTimin 2011-04-13 TTimax 07:06 DTimax 2011-05-09 To 23.2 Tomin -10.0 Tomax 43.1 TTomin 06:57 DTomin 2011-06-02 TTomax 18:14 DTomax 2011-05-25 DP 15.7 DPmin -14.1 DPmax 18.7 TDPmin 07:17 DDPmin 2011-04-16 TDPmax 17:44 DDPmax 2011-05-30 RHi 65 RHimin 47 RHimax 76 TRHimin 20:20 DRHimin 2011-05-29 TRHimax 07:00 DRHimax 2011-05-10 RHo 63 RHomin 13 RHomax 96 TRHomin 19:00 DRHomin 2011-05-25 TRHomax 07:25 DRHomax 2011-06-03 WS 4.7 DIRtext N DIR0 0.0 DIR1 45.0 DIR2 22.5 DIR3 22.5 DIR4 22.5 DIR5 0.0 WC 23.2 WCmin -11.5 WCmax 43.1 TWCmin 06:07 DWCmin 2011-04-13 TWCmax 18:14 DWCmax 2011-05-25 WSmin 4.7 WSmax 9.4 TWSmin 10:31 DWSmin 2011-06-13 TWSmax 10:29 DWSmax 2011-06-13 R1h 0.00 R1hmax 9.32 TR1hmax 16:15 DR1hmax 2011-05-03 R24h 0.00 R24hmax 26.41 TR24hmax 14:59 DR24hmax 2011-05-31 Rtot 95.83 TRtot 10:57 DRtot 2011-06-12 RP 1013.000 RPmin 1013.000 RPmax 1013.000 TRPmin 10:32 DRPmin 2011-06-13 TRPmax 10:32 DRPmax 2011-06-13 Tendency Steady Forecast Cloudy ====== log2300 ====== Write current data to log interpreted log2300 filename config_filename This is very suitable for a cron job since it makes no output to screen. If no config_filename is given the program will search for it using the default search sequence - see the open2300-dist.conf file. Log file format: Timestamp Date Time Temp_indoor Temp_outdoor Dewpoint Rel_humidity_indoor Rel_humidity_outdoor Wind_speed Wind_direction-degrees Wind_direction_text Wind_chill Rain_1h Rain_24h Rain_total Rel_pressure Tendency Forecast Example root@OpenWrt:~/open2300# ./log2300 toto root@OpenWrt:~/open2300# cat toto 20110102150601 2011-Jan-02 15:06:01 20.0 1.9 0.7 60 92 0.0 315.0 NW 1.9 0.00 0.00 0.00 1008.800 Rising Sunny ====== minmax2300 ====== Reset minimum/maximum values in a WS-2300 weather station. Reset Daily Maximum (Temp, Humid, WC, DP) minmax2300 dailymax config_filename Reset Daily Minimum (Temp, Humid, WC, DP) minmax2300 dailymin config_filename Reset Temperature Indoor Max/Min/Both minmax2300 timax/timin/tiboth config_filename Reset Temperature Outdoor Max/Min/Both minmax2300 tomax/tomin/toboth config_filename Reset Dewpoint Max/Min/Both minmax2300 dpmax/dpmin/dpboth config_filename Reset Windchill Max/Min/Both minmax2300 wcmax/wcmin/wcboth config_filename Reset Wind Max/Min/Both minmax2300 wmax/wmin/wboth config_filename Reset Humidity Indoor Max/Min/Both minmax2300 himax/himin/hiboth config_filename Reset Humidity Outdoor Max/Min/Both minmax2300 homax/homin/hoboth config_filename Reset Pressure Max/Min/Both minmax2300 pmax/pmin/pboth config_filename Reset Rain Maximum 1h/24h minmax2300 r1max/r24max config_filename Reset Rain Counter 1h/24h/Total minmax2300 r1/r24/rtotal config_filename If the config_filename parameter is omitted the program will look at the default paths. See the open2300-dist.conf file for info ====== réglage pression relative ====== Comme cette pression varie avec l?altitude, il a été convenu, afin de faciliter les comparaisons entre les stations, de ramener toutes les altitudes au niveau de la mer (altitude 0). C?est ce qu?on appelle la " Pression relative ". Pour faire cette opération il suffit de diviser votre altitude par 8,3. Vous aurez le nombre de hPa à ajouter à la pression absolue pour obtenir la pression relative. __Exemple :__ * Pression absolue : 1000 hPa * Altitude 187 m * Correction à ajouter : 187 / 8.3 = 22.5 hPa * Pression relative : 1000 + 22.5 = 1022.5 hPa Frouzins : 174m : +21 hPa j'ai toujours la pression absolue au taquet: et ceci même en ayant changé la la base (SAV). Au début j'arrive a récupérer une pression correct après un démarrage à froid(10min-60min). Mais quelques mois après les premiers bug ça ne revient plus, quelque soit la méthode (banché ou pas au transfo/au routeur)