https://github.com/jackdbd/weather-app-node
https://github.com/jackdbd/weather-app-node
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jackdbd/weather-app-node
- Owner: jackdbd
- Created: 2017-04-29T08:07:20.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-10-03T15:31:48.000Z (over 5 years ago)
- Last Synced: 2025-09-08T23:39:52.133Z (9 months ago)
- Language: JavaScript
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Weather App Node.js
[](https://travis-ci.com/jackdbd/weather-app-node)
A simple CLI that converts an address into geographic coordinates (see [What is geocoding?](https://developers.google.com/maps/documentation/geocoding/overview#Geocoding)) and spits out a weather forecast for that location.

Built with:
- [Node.js](https://nodejs.org/)
- [yargs](https://www.npmjs.com/package/request)
- [got](https://github.com/sindresorhus/got)
Geocoding powered by the [Geocoding API](https://developers.google.com/maps/documentation/geocoding/start).
Weather forecasts powered by [Dark Sky](https://darksky.net/poweredby/).
## API keys
In order to use the Google Geocoding API you need an API key. See [here](https://developers.google.com/maps/documentation/geocoding/get-api-key) for details. For a free alternative see [Geocodeapi](https://geocodeapi.io/).
You will need another key to use the Dark Sky API. You can get one [here](https://darksky.net/dev/).
I store my API keys in a `.envrc` file that I load with [direnv](https://github.com/direnv/direnv).
## How to use it
here are a few examples:
```shell
node src/app.js --address London
node src/app.js -a 'New York'
node src/app.js -a 90210
node src/app.js -a 'Via dei Fori Imperiali'
node src/app.js -a 'Sensoji Temple'
```