Does anyone know of a AGI script that takes advantage of the weather sound files that's included with the extra sound files available from www.loligo.com/asterisk/sounds/ <http://www.loligo.com/asterisk/sounds/> ? Thank, Jeramie -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050215/263c4d50/attachment.htm
How about writing some script that works with a free service like weather.com ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Jeramie Rentfrow Sent: Tuesday, February 15, 2005 9:49 AM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Extra sounds (Weather) Does anyone know of a AGI script that takes advantage of the weather sound files that's included with the extra sound files available from www.loligo.com/asterisk/sounds/ <http://www.loligo.com/asterisk/sounds/> ? Thank, Jeramie -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050215/b7cec018/attachment.htm
http://edgett.bc.ca/simonsays/archives/000228.html ----- Original Message ----- From: "Trevor G. Hammonds" <trevor@skyhost.net> To: "'C F'" <shmaltz@gmail.com>; "'Asterisk Users Mailing List - Non-Commercial Discussion'" <asterisk-users@lists.digium.com> Sent: Tuesday, February 15, 2005 11:16 PM Subject: RE: [Asterisk-Users] Extra sounds (Weather)>C F wrote on Tuesday, 15 February 2005 10:23 AM: > >>http://lists.digium.com/pipermail/asterisk-users/2003-November/025983.html> > Unfortunately, the site referenced in that messageis no longer active.> It > mentions that the code was donated to the AsteriskDocumentation Project,> but I see no reference to the code on that site. > > Any ideas? > > Sincerely, > Trevor Hammonds > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users> To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users>__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
> C F wrote on Tuesday, 15 February 2005 10:23 AM: > > > http://lists.digium.com/pipermail/asterisk-users/2003-November/025983.html > > Unfortunately, the site referenced in that message is no longer active. It > mentions that the code was donated to the Asterisk Documentation Project, > but I see no reference to the code on that site. > > Any ideas?If I recall correctly, Eric moved to another city and likely has a different domain name. I believe he still frequents the list though.
Liaan vd Merwe wrote on Tuesday, 15 February 2005 1:37 PM:> http://edgett.bc.ca/simonsays/archives/000228.htmlThank you, but this is not the script. Sincerely, Trevor Hammonds
This is the example script (extracted from that link) you will need to find a weather page for your region an then change the urls and grep statements chow L [weather.sh] #!/bin/sh WEATHER=`lynx -nolist -dump http://weatheroffice.ec.gc.ca/forecast/textforecast_e.html?Bulletin=fpcn11.cwvr | grep -A3 "^Greater Vancouver.$" | sed 's/\.\./\. /;s/km\/h/km per hour/'` echo EXEC Festival \"Online Weather forecast for\" echo EXEC Festival \"$WEATHER\" echo EXEC Festival \"Thank you\" ----- Original Message ----- From: "Trevor G. Hammonds" <trevor@skyhost.net> To: "'Asterisk Users Mailing List - Non-Commercial Discussion'" <asterisk-users@lists.digium.com> Sent: Wednesday, February 16, 2005 12:23 PM Subject: RE: [Asterisk-Users] Extra sounds (Weather)> Liaan vd Merwe wrote on Tuesday, 15 February 20051:37 PM:> >> http://edgett.bc.ca/simonsays/archives/000228.html > > Thank you, but this is not the script. > > Sincerely, > Trevor Hammonds > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users> To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users>__________________________________ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. http://info.mail.yahoo.com/mail_250
Hi Trevor This i know I just send you a other script doing the same task this will give you a guideline to make you own ----- Original Message ----- From: "Trevor G. Hammonds" <trevor@skyhost.net> To: "'Asterisk Users Mailing List - Non-Commercial Discussion'" <asterisk-users@lists.digium.com> Sent: Wednesday, February 16, 2005 1:50 PM Subject: RE: [Asterisk-Users] Extra sounds (Weather)> Liaan vd Merwe wrote on Wednesday, 16 February 20052:53 AM:> >> This is the example script (extracted from thatlink) you will need>> to find a weather page for your region an thenchange the urls and>> grep statements chow L > > Once again, this is NOT the script mentioned at EricWieling's former> site, > http://www.fnords.org/~eric/asterisk/, referenced itthe message in the> archives at >http://lists.digium.com/pipermail/asterisk-users/2003-November/025983.html.> > > Sincerely, > Trevor Hammonds > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users> To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users>__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Hi This is my script for my local forecast for SE England. I have had problems getting festival to work integrated so I have cron run this script every 3 hours and use Playback to play it in Asterisk: Script ------ #!/bin/sh cd /var/lib/asterisk/sounds curl "http://www.bbc.co.uk/weather/ukweather/printables/print_regional_outloo k.shtml?pmslondon" 2>/dev/null \ | (sed -n '/print area open/,/print area close/ { s/<.*>//;s/deg C/Celsius/;s/deg F/Fahrenheit/;s/ deg$/ /;s/^C /Celsius /;s/^F)/Fahrenheit)/;p }' && date +'B B C forecast, %A %e %B at %l %p') \ | /usr/local/bin/text2wave -f 8000 - -o wx.tmp.wav sox wx.tmp.wav -r 8000 -c 1 wx.tmp.gsm mv wx.tmp.gsm wx.gsm;rm -rf wx.tmp.wav Extensions.conf --------------- ;Weather forecast for SE England 0_0 WX (199) exten => 199,1,Answer exten => 199,2,Playback(wx) exten => 199,3,Hangup -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Liaan vd Merwe Sent: 16 February 2005 11:57 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] Extra sounds (Weather) Hi Trevor This i know I just send you a other script doing the same task this will give you a guideline to make you own ----- Original Message ----- From: "Trevor G. Hammonds" <trevor@skyhost.net> To: "'Asterisk Users Mailing List - Non-Commercial Discussion'" <asterisk-users@lists.digium.com> Sent: Wednesday, February 16, 2005 1:50 PM Subject: RE: [Asterisk-Users] Extra sounds (Weather)> Liaan vd Merwe wrote on Wednesday, 16 February 20052:53 AM:> >> This is the example script (extracted from thatlink) you will need>> to find a weather page for your region an thenchange the urls and>> grep statements chow L > > Once again, this is NOT the script mentioned at EricWieling's former> site, > http://www.fnords.org/~eric/asterisk/, referenced itthe message in the> archives at >http://lists.digium.com/pipermail/asterisk-users/2003-November/025983.ht ml.> > > Sincerely, > Trevor Hammonds > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users> To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users>__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.