Skip to content

MadBoulder/weather-widget-generation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weather-widget-generation

Generate weather widgets for all the bouldering areas

Overview

The main idea is to:

  1. Retrieve list of locations from BetaLibrary's data folder
  2. Geocode each of the locations and get its coordinates via Open Cage's API
  3. Build the url and code of the widget required by https://weatherwidget.io/
  4. Add the widget to each of the zone pages

Requirements

  • Python 3
  • A free account and API key from Open Cage

TO DO List

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

About

Generate weather widgets for all the bouldering areas

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published