Instead of screen scraping the NOAA website, use the class defined above to get info. Class requires the latitude and longitude which is already in the sql database.
Rough steps required:
define function in functions.inc.php that matches lat&long to the zip code from sql
define function(s) in functions.inc.php that returns current conditions and/or forecast from lat&long.
update agi so that freepbx functions are accessible (bootstrap post 2.9) and eliminate the sql and html lookups.
See this project:
https://github.com/jhitesma/PHP-NOAA-Weather
Instead of screen scraping the NOAA website, use the class defined above to get info. Class requires the latitude and longitude which is already in the sql database.
Rough steps required: