okay
alias weather {
sockclose weather
echo connecting to www.wunderground.com 80
sockopen wz www.wunderground.com 80
}
on *:SOCKOPEN:weather: {
echo -s $sockname was just opened, Retrieving info
sockwrite -n $sockname GET /cgi-bin/findweather/getForecast?query=christchurch+new+zealand HTTP/1.0
sockwrite $sockname $crlf
}
on *:SOCKCLOSE:weather: {
echo Connect to wunderground.com closed
sockclose weather
}
on 1:sockread:weather:{
if ($sockerr > 0) return
:next
sockread %tmp
if ($sockbr == 0) return
if (%tmp != $null) {
echo -s %tmp
}
goto next
}
thats the root of the code, not too smart
does anyone know a easy way to filter the info I want?
ie: the Conditions
and only the updated time and place
temp, wind and conditions
I hate using big if statments and plus it seems to over write vars that are set becasue the if statment meats another one
any help would be good
btw the code that it gets over written i deleted pissed me off
but its just if (updated: isin %tmp) { } etc