https://github.com/gampleman/weather-dials
Showing a weather dial for your own town
https://github.com/gampleman/weather-dials
Last synced: 21 days ago
JSON representation
Showing a weather dial for your own town
- Host: GitHub
- URL: https://github.com/gampleman/weather-dials
- Owner: gampleman
- Created: 2019-09-16T16:29:27.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-17T10:57:55.000Z (almost 7 years ago)
- Last Synced: 2025-06-25T16:01:58.706Z (about 1 year ago)
- Language: JavaScript
- Size: 583 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Weather Dial Generator
There's a super cool poster called [Weather Radials](http://www.weather-radials.com/), which is a visualization I've long wanted to make for other places I've lived in. However, getting the data can be pretty tricky, so I've taken the opportunity here to make a little tool. The intention is that you generate a chart for a place, then copy the generated SVG into an image editing tool and compose your own poster.

## Setting up
You will need to sign up for a free API key at https://stormglass.io/. There is an API key included in the project, but it good for only 50 requests a day, and generating the chart takes 36 of them :(
Then (using Node 10):
```sh
npm install
REACT_APP_STORMGLASS_TOKEN=your-api-token-here npm start
```
This will install dependencies and run the app locally.
## Testing and building for production
You can run the unit tests with:
```sh
npm test
```
and the integration tests with:
```sh
npm run test:integration
```
You can build the production assets with:
```sh
REACT_APP_STORMGLASS_TOKEN=your-api-token-here npm run build
```