A Singer Tap to extract historical and forecast weather data from the Dark Sky API.
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