[Asterisk-Users] Hack for Canadian weather
Colin Anderson
ColinA at landmarkmasterbuilder.com
Wed Sep 7 18:22:38 MST 2005
[your-context]
include => app-canadian-weather
[app-canadian-weather]
exten => *55,1,Answer()
exten => *55,2,Playback(pls-wait-connect-call)
exten => *55,3,System(/etc/asterisk/weather.sh | text2wave -o
/var/lib/asterisk/sounds/weather.ulaw -otype ulaw -)
exten => *55,4,Playback(weather)
/etc/asterisk/weather.sh:
rm -f /var/lib/asterisk/sounds/weather.ulaw
rm -f /etc/asterisk/textforecast_e.html?Bulletin=fcpn16.cwwg
wget -q
http://weatheroffice.ec.gc.ca/forecast/textforecast_e.html?Bulletin=fcpn16.c
wwg
grep -A5 "City of Edmonton" textforecast_e.html?Bulletin=fcpn16.cwwg
More information about the asterisk-users
mailing list