MadBoulder / weather-widget-generation

Generate weather widgets for all the bouldering areas

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:GNU General Public License v3.0


Languages

Language:HTML 46.9%Language:JavaScript 33.1%Language:Python 19.6%Language:CSS 0.3%Language:Procfile 0.1%