Generate weather widgets for all the bouldering areas
The main idea is to:
- Retrieve list of locations from BetaLibrary's data folder
- Geocode each of the locations and get its coordinates via Open Cage's API
- Build the url and code of the widget required by https://weatherwidget.io/
- Add the widget to each of the zone pages
- Python 3
- A free account and API key from Open Cage
A better approach to generate the urls can be found at: https://news.ycombinator.com/item?id=23550316. With the current approach some location's coordinates are way to different to be corrected via trial and error (such as Yosemite Valley) and have to be set manually.
Citing:
Or simply call https://forecast7.com/api/getUrl/ChIJawhoAASnyhQR0LABvJj-zOE (with Origin: https://weatherwidget.io), where ChIJawhoAASnyhQR0LABvJj-zOE is google maps api placeID. This returns something like: 41d0128d98/istanbul
PS: you can get placeID with https://forecast7.com/api/autocomplete/istanbul