This repo holds collection of Python scripts to analyze trip information extracted from Automatic.
To extract data from Automatic using their REST API you would need to obtain access token first. Follow the isntructions on Automatic website.
Once you have token, you can fetch the list of your trips from Automatic:
AUTOMATIC_ACCESS_TOKEN=<your token here>
curl "https://api.automatic.com/trip/?limit=250" -H "Authorization:Bearer $AUTOMATIC_ACCESS_TOKEN" | jq '.results' > trips.json
mkvirtualenv automatic
workon automatic
pip install -q -r requirements.txt
I was too lazy to ingest and parse trip data in json format, so you would need to convert it to CSV first:
python json-to-csv.py > out.csv
python plot.py