From: Bruce W. <br...@mi...> - 2001-06-07 13:58:51
|
I have not seen any code that does this yet. I just added this example the 'Show internet weather conditions' command in internet_data.pl: my $conditions = read_all $f_weather_conditions; $conditions =~ s/\n/ /g; $Weather{TempInternet} = $1 if $conditions =~ /(\d+) degrees/i; $Weather{HumidInternet} = $1 if $conditions =~ /(\d+)\%/; $Weather{BaromInternet} = $1 if $conditions =~ /([\d\.]+) in\./; $Weather{WindInternet} = $1 if $conditions =~ /wind (.+?)\./; print_log "Internet weather Temp=$Weather{TempInternet} Humid=$Weather{HumidInternet} " . "Wind=$Weather{WindInternet} Pres=$Weather{BaromInternet}"; Bruce -----Original Message----- Anyone have simple code to turn a fan on/off depending on current or forecast temp from a local forecast site? If not, what's the easiest way to parse weather data? (No i-Button - yet.) Thanks... |