[asterisk-users] AGI to announce temperature from weather.com XML file

Barry L. Kline blkline at attglobal.net
Thu Jul 16 08:09:00 CDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Trevor Hammonds wrote:

> I am hoping someone on the list has an example of a lightweight AGI script
> that I may modify to either read the simple text file and set a dialplan
> variable to the current temperature, or hopefully a more-sophisticated one
> which will parse the XML file to set the dialplan variable.  

I think that the 'FILE' function will do what you're looking for.

Barry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFKXyZsCFu3bIiwtTARAg/rAJ9D6RQQ2N51GNU8sWHbxPyJM82U1ACgn4bR
c55n6BEUTuMPRSsRgETeE9w=
=YLth
-----END PGP SIGNATURE-----



More information about the asterisk-users mailing list