# scripts/environmentcanada- - weather stuff from Environment Canada
# (until they change the format of their pages. :-(

port	80
timeout	10
send	GET http://weather.ec.gc.ca/forecast/##WILDPART##.html HTTP/1.0\nUser-Agent: Remstats/0.12.2\nHost: ##HOST##\nConnection: close\n\n

valuepattern   Temperature:.+?<B>([-+]?\d+\.\d+).+?Barometer:.+?<B>(\d+\.\d+).+?Wind Speed:.+?<B>(([NSEW]+)\s+(\d+\.\d+)|Calm)(.+?Windchill.+?\(([-+]?\d+\.\d+))?.+?Dew Point:.+?<B>([-+]?\d+\.\d+).+?Relative Humidity:.+?<B>(\d+).+?Visibility:.+?<B>(\d+(\.\d+)?\s+k?m)
infopattern   Temperature:.+?<B>([-+]?\d+\.\d+).+?Barometer:.+?<B>(\d+\.\d+).+?Wind Speed:.+?<B>(([NSEW]+)\s+(\d+\.\d+)|Calm)(.+?Windchill.+?\(([-+]?\d+\.\d+))?.+?Dew Point:.+?<B>([-+]?\d+\.\d+).+?Relative Humidity:.+?<B>(\d+).+?Visibility:.+?<B>(\d+(\.\d+)?\s+k?m)

OK	</HTML>
