Jag har samma väderstation och kör ett program på en Pi som plockar ut data ur stationen med jämna mellanrum.
Om du ska få någon statistik om tidigare värden så får du nog läsa ofta. Jag läser en gång per minut via cron, plockar ut alla värden och stoppar in dem i en mySQL-databas men det är lite att lära.

Jag postar också temperaturen in i Domoticz (inte med i koden nedan). Tyvärr så har jag inte kommit så långt så att jag postar fukt osv men det är på väg.
Resultatet:
http://www.hemkoll.nu/ws.php
Här ser du vad jag kör:
http://www.temperatur.nu/forum/linux/ny ... t1541.html
Funkar fint på Pi.
Här är mitt PHP-script:
Kod: Markera allt
<?
$output = shell_exec('sudo /var/www/wsp -A 19 --format "%N,%h,%H,%t,%T,%C,%c,%W,%G,%D,%d,%P,%p,%r,%f,%F,%R"');
$pos = strpos($output, 'NaN');
if ($pos === false) {
$del = explode(",", $output);
$username="XXXX";
$password="XXXX";
$database="XXXX";
mysql_connect("192.168.1.XXX",$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "INSERT INTO t_station set f_datum='" . $del[0] . "', f_fukt_inne='" . $del[1] . "', f_fukt_ute='" . $del[2] . "', f_temp_inne='" . $del[3] . "', f_temp_ute='" . $del[4] . "', f_dagg='" . $del[5] . "', f_vindavkyl='" . $del[6] . "', f_vind_hastighet='" . $del[7] . "', f_vind_pust='" . $del[8] . "', f_vind_riktning='" . $del[9] . "', f_vind_grader='" . $del[10] . "', f_tryck_abs='" . $del[11] . "', f_tryck_rel='" . $del[12] . "', f_regn_1h='" . $del[13] . "', f_regn_24h='" . $del[14] . "', f_regn_l24h='" . $del[15] . "', f_regn_total='" . $del[16] . "'";
mysql_query($query);
mysql_close();
}
?>
Output från kommandot jag kör:
Kod: Markera allt
sudo /var/www/wsp -A 19 --format "%N,%h,%H,%t,%T,%C,%c,%W,%G,%D,%d,%P,%p,%r,%f,%F,%R"
2013-09-03 10:49:00,56,50,19.6,18.7,8.1,18.7,0.3,1.7,NW,315,1012.8,1014.2,0.0,0.0,0.0,11.1
wds utan växlar ger
Kod: Markera allt
Use --help for more options.
Indoor:
Temperature: 19.6 C
Humidity: 56%
Outdoor:
Temperature: 19.3 C
Wind chill: 19.3 C
Dewpoint: 8.0 C
Humidity: 48%
Absolute pressure: 1012.7 hPa
Relative pressure: 1012.7 hPa
Average windspeed: 0.7 m/s
Gust wind speed: 1.4 m/s
Wind direction: 270 W
Total rain: 11.1 mm
Kod: Markera allt
Weather Station Poller v1.0 build 30
Copyright (C) Joakim Söderberg.
Usage: ./wsp [option]...
-e, --easyweather Outputs the weather data in the
easyweather.dat csv format.
--weatherstats Outputs the weather data in the
format for weatherstats.
-s, --status Shows status of the device, such
as data count, date/time.
--settings Prints the weather display's settings.
--maxmin Outputs the max/min weather data
recorded by the station.
--alarms Displays all alarms set on the device
and if they're enabled.
-c, --count # The number of history items to read (1-4080).
Default is 1.
-a, --all Gets all available history items.
-v[v..] Shows extra debug information. For more
detailed info, add more v's.
-t, --timezone # Sets the timezone offset from CET
from -12 to 12.
-d, --delay # Sets the read update delay between
weather data readings.
-A, --altitude # Sets the altitude in m over sea level in meters.
This is not saved anywhere, so it needs to be on
specified on each call. Used to calculate
relative pressure.
--quickrain Enables faster, and potentially inaccurate rain
calculations. Instead of checking the time between
each history item to get the accurate timestamp
the delay is used. This will result in incorrect
values if you changed the delay without resetting
the memory. Notice that rain over 1h, 24h and so on
might be calculated incorrectly.
--vendorid # Changes the vendor id, should be in hex format.
Default is 1941.
--productid # Changes the product id, shoulb be in hex format.
Default is 8021.
--format <string> Writes the output in the given format.
--formatlist Lists available format string variables.
--dumpmem <path> Dumps the entire weather station memory to a file.
--infile <path> Uses a file as input instead of reading from the
weather station memory. Use output from --dumpmem.
--summary Shows a small summary of the last recorded weather.
-h, --help Shows this help text.