A personal blog about some hobbies of mine.
August 18, 2021
Today was supposed to mark the beginning of my road trip. Oops! I am grateful for the delay as I got to see some great people and build some data goodness instead.
Yesterday was supposed to be a day spent packing and preparing the car for the road; instead, I visited with friends all throughout the day. Totally worth it.
It was annoying me that I was drawing maps by downloading CSV files from TeslaFi. I figured since I had an extra morning, I would automate some of the Tesla data collection. This would enable me to query data directly in my drawing tools. I envisioned the following solution:

This solution’s main activities include:
All in all, it took me about two hours to piece together. I leaned heavily on code snippets from my previous 2020 Vacation Project effort. Honestly? The longest part was setting up a virtual Python interpreter on my laptop… for whatever reason virtualenv was being weird and I did not want to muck up my laptop’s system interpreter.
As for how it is executed, everything is encapsulated as a state machine in AWS Step Functions. This enables me to ping the API every 20 seconds.
I figured I would test the new pipeline out over lunch… so I enabled a state machine trigger and set out to visit Sunfish on Alki Beach. When I returned, I used Tableau to connect via Athena to draw this:

Not bad for a quick morning project!
The resultant source code is available in a new repo: 2021-epic-road-trip. I will be using this repository to build more things as I play with data during this road trip.