isabella232 / tap-darkskyapi

A Singer.io tap for the Dark Sky weather API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tap-darkskyapi

A Singer Tap to extract historical and forecast weather data from the Dark Sky API.

How to use it

Install and Run

First, make sure Python 3 is installed on your system or follow these installation instructions for Mac or Ubuntu.

Then, get an access key from Dark Sky.

Then, convert config.sample.json to ~/singer.io/tap_darkskyapi_config.json; fill out your parameters.

It's recommended to use a virtualenv:

python3 -m venv ~/.virtualenvs/tap-darkskyapi
source ~/.virtualenvs/tap-darkskyapi/bin/activate
pip install -U pip setuptools
pip install -e '.'

Set up the target-csv virtual environment according to the instructions here. These commands will install tap-darkskyapi with pip, and then run it:

~/.virtualenvs/tap-darkskyapi/bin/tap-darkskyapi --config \ ~/singer.io/tap_darkskyapi_config.json | target-csv

The data will be written to a file called forecast.csv in your working directory.



Copyright © 2019 Stitch

About

A Singer.io tap for the Dark Sky weather API

License:GNU Affero General Public License v3.0


Languages

Language:Python 100.0%