Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update NOAA information retrieval to use API instead of HTML scraping. #25

Open
lgaetz opened this issue Jul 15, 2013 · 0 comments
Open

Comments

@lgaetz
Copy link
Member

lgaetz commented Jul 15, 2013

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:

  • 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant