
-- Weather.applescript
-- Copyright 2014 Andres Albanese. All rights reserved
-- Description: it says the variables of WetherMan for the selected city
tell application "WeatherMan"
UpdateNow
set xlist to City List
repeat with xCity in xlist
set xHum to ("Humidity " & (Humidity of City xCity) as string) & " %"
set xTemp to ((Current Temperature of City xCity) - 32) * 5 / 9
set xWind to (Wind Speed of City xCity as number) * 1.6
say "The weather of " & xCity & " is a temperature of " & xTemp & " ° Centigrade, a wind speed of " & xWind & " kilometers per hour, and " & xHum & " ."
say "The wind direction is " & Wind Direction & " ° "
say "The present condition is " & Conditions as string
say "The moon illumination is " & Moon Illumination
end repeat
end tell