Weather Script

I found this script, it work´s perfekt, but only with °F when i change the the adress to celicus (u=c) in the homepage adress is doesn´t work! can anyone help me?

set weather to "curl " & quote & “http://weather.yahooapis.com/forecastrss?w=12591699” & quote

set postWeather to “grep -E ‘(Current Conditions:|F<BR)’”

set forecast to do shell script weather & " | " & postWeather

(characters 1 through -7 of paragraph 2 of forecast) as string

Thank you!!

Servus,

if you’re using celsius you have to “grep” also for celsius (C<BR)


set weather to "curl " & quoted form of "http://weather.yahooapis.com/forecastrss?w=12591699&u=c"
set postWeather to "grep -E '(Current Conditions:|C<BR)'"
set forecast to do shell script weather & " | " & postWeather
text 1 through -7 of paragraph 2 of forecast

Thank you! :wink: