File: environmentcanada-

package info (click to toggle)
remstats 1.00a4-8woody1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,576 kB
  • ctags: 1,020
  • sloc: perl: 11,706; ansic: 2,776; makefile: 944; sh: 869
file content (11 lines) | stat: -rw-r--r-- 824 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
# 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>