[asterisk-users] AGI and Severe Weather Alerts
Danny Nicholas
danny at debsinc.com
Tue May 11 08:20:12 CDT 2010
I use www.melissadata.com, weather.yahooapis.com and Cepstral to give a
current forecast for any 3,6,7 or 10 digit number you enter. The "built-in"
asterisk sounds offer most of the information you would say; I generate
whatever is "missing" (city names mostly) with Cepstral.
For your application, the best (IMO) strategy would be to have an AGI that
is cronned to run every X minutes and "launch" a call when needed using AMI.
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Seann Clark
Sent: Monday, May 10, 2010 11:05 PM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] AGI and Severe Weather Alerts
All,
I am toying with an idea of using an AGI to be able to 'call'
my phone, or phones, in case of severe weather warnings. I have been
tinkering with a script that reads from weather underground for the
forecast, based off a PHP version of a weather AGI I found on the net.
It seems rather trivial to have the AGI as a script, that does nothing
unless a condition is met, and then call out, with a TTS synthesized
read out of the warning, or error seen. I would like to know if anyone
has done this before and what they used to get the warning for their
area's. I haven't a very clear idea of how to parse properly XML data in
either python or perl, but I have templates of what did work (until
formats changed, StormSiren being a python module I used for sms). Also
if I ever get anything to work, and anyone is interested I can share my
code.
Regards,
Seann Clark
More information about the asterisk-users
mailing list