A collection of random tools to dabble with
- Garmin GPS (Zumo 590)
- MTK track logger
- Contour +2
- Digital camera
Development and testing is done exclusively on Debian Linux though most other distributions should equally work. All tools require python3 and virtualenv.
All tools require their environment in triparchive_env
in the
installation directory. It can be created with
% /usr/bin/virtualenv -p python3 --always-copy triparchive_env
% source ./triparchive_env/bin/activate
% pip install -r requirements.txt
Automatically downloads traffic camera locations and converts them into Garmin poi format. Requires gpsbabel.
Import GPS information from Contour +2 cam into a database. For each position the filename and timestamp offset are saved. This will allow a player to play a movie at a certain offset by clicking on a trackpoint on a map.
% bin/videoimport.sh --video_name /tmp/FILE0023.MP4
Import tracklogs from GPX files.
% bin/gpximport.sh --gpx_name /tmp/current.gpx
Import tracklogs from an mtk track logger. Requires gpsbabel.
% bin/mtkimport.sh --mtk_dev /dev/ttyACM0
Import country files from the GNS website.
% bin/gnsimport.sh --gns_country austria
Generate an overview map containing the tracklogs of all tracks contained in video files selected by the given mask. Video files have to be imported already for this command to produce useful output.
% bin/videomap.sh --video_mask=sauerland --map_width=400 --map_height=300
Generate an overview map containing all tracklogs imported from a GPS receiver. Trackpoints may be filtered by timestamp.
% bin/trackmap.sh --track_start=2016-05-01T06:00:00 --track_end=2016-05-02T06:00:00
Add EXIF information to image. GPS position is fetched from
trackpoints by matching timestamps. Location names are fetched from
geonetnames information by correlating location with data previously
imported with gnsimport.sh
.
% bin/geotagger.sh --photo_name DCIM0001.jpg
Add a transparent map to a video centered around the camera position. The result will look like this:
% bin/mapmovie.sh --video_name video.mp4
A simple web application that serves a clickable map containing the tracks of a selected set of videos. Clicking on a trackpoint plays the video at the given position. For this to work the movies need to be placed in content/static (a symlink is sufficient).
% bin/videoserve.sh --video_mask=5.6.2016