Python script example: Create a GPS tracking video from Overland data #181
gloriouslyawkwardlife
started this conversation in
Show and tell
Replies: 1 comment
-
|
That's pretty neat! Thanks for sharing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
End result of this particular script: https://stevenbuehler.us/Data/OverlandVideo/2025-05-24.mp4
I did this for a specific day that I drove around the state (home to Kennedy Space Center to see a launch, to Daytona Beach, back home), but one can always use a ‘yesterday’/’today’ variable to replace the dates in the query string. My original purpose for doing this was to check the timestamps and make corrections to the data when I forget to choose to start or end a trip, and it kind of grew from there. I use a cgi Python script to parse the Overland GeoJSON payload into MySQL for efficiency, using UNIX epoch integers for timestamps in the data so as not to have to deal with timezone issues in the database itself.
The red dot indicating location is intended to be the same size as the
horizontal_accuracyvalue from the Overland data, so I can see any error margins with the GPS fix. Most of the time the dot is 1 meter radius (best accuracy). There are a few spots in the video where the horizontal accuracy goes nuts (up to 5 or 6 km) and the whole frame turns red, and some ‘fluke’ frames from bad GPS readings. The video is 60 frames per second, one frame per GPS fix (so one minute of video = 1 hour of real time).I wanted to do this with Wolfram Script (a little more robust), but I kept running into cloud resource limits; so Python it was.
https://stevenbuehler.us/now
Beta Was this translation helpful? Give feedback.
All reactions