Hi Cody,

Funny, I wrote that AGI script almost 10 years ago, and still use it almost 
every day :-)

The XML output of that source has additional fields you could key off of, for 
example:
--
< relative_humidity > 78 < /relative_humidity>
< pressure_in > 30.12 < /pressure_in>
< dewpoint_string > 64.8 F (18.2 C) < /dewpoint_string>
< dewpoint_f > 64.8 < /dewpoint_f>
< dewpoint_c > 18.2 < /dewpoint_c>
< visibility_mi > 10.00 < /visibility_mi>
--

and standard sound files:
--
wx/humidity
wx/barometer
wx/dew-point
visibility
--

You could easily tweak the weather.agi AGI script to create a new 
weather-full.agi AGI script off a different extension.

Personally, I think the key to this being useful is to only provide the basics 
so the voice output is minimal and to the point.  But options are good.

As you are learning, AstLinux is a foundation that you can tweak and customize 
to your needs.  Indeed you need to understand Linux and shell scripting to some 
degree, definitely Asterisk text configuration.  Starting with working examples 
(like weather.agi) makes customizing much easier than starting from scratch.

Lonnie



On Jul 29, 2017, at 8:25 AM, Cody Alderson <aldersona...@gmail.com> wrote:

> Hi,
> 
> I am using an agi found at 
> https://abelbeck.com/lonnie/astlinux/info/weather.php to report temperature, 
> wind and a few other basic current weather events. However, is there a 
> weather reporting configuration for Astlinux that gives a more detailed 
> weather report? Maybe something that can interpret a full METAR or some other 
> weather data source into voice?
> 
> I see that there is an extensive array of voice prompts dedicated to weather 
> reporting in the sounds directory. Is there something that Astlinux can use 
> to give a more detailed current condition report and maybe even a forecast? I 
> am not sure of the limitations and just thought I would ask.
> 
> -Cody




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.

Reply via email to