Package: komoog
Convert yourkomoothiking/cycling trips to audio
signals.repository:https://github.com/benmaier/komoog/documentation:http://komoog.readthedocs.io/fromkomoog.komootimportdownload_all_komoot_tours,choose_downloaded_komoot_tourfromkomoog.audioimportconvert_tour_to_audio,play_audiodownload_all_komoot_tours()tour=choose_downloaded_komoot_tour()audio,sampling_rate=convert_tour_to_audio(tour,approximate_length_in_seconds=4,set_tune_to_follow_tour_profile=True,)play_audio(audio,sampling_rate)After hiking I noticed that komoot comes with elevation profiles of tour
hiking trips:This reminded me of wave tables I know from sound synthesis. Because I’m
always looking for sounds to use when making music, I decided to write
code that generates sounds from hiking profiles that can be used in
sound synthesis.Note that I adapted code fromjs-on/medium_komootto
access trips on komoot.ExamplesColorado Provencale in Rustrel - La Doa Loop from Rustrelhttps://user-images.githubusercontent.com/10728380/131221697-8f5ff1b5-5fae-47a4-b36b-ad8c39992718.mp4https://user-images.githubusercontent.com/10728380/131221699-a9dd5741-3ae5-4d16-ad44-9ce8642bbecb.mp4Lookout - L’Aiguebrun Loop from Buouxhttps://user-images.githubusercontent.com/10728380/131221700-085da556-614a-4b9d-8f7d-c88e0d9f172c.mp4https://user-images.githubusercontent.com/10728380/131221701-85fcb6ed-eadc-453b-a32c-98c5008c945b.mp4Gorges de Régalon - Vue de la Gorge Loop from Quartier Gardethttps://user-images.githubusercontent.com/10728380/131221702-36af7891-9089-45a8-8b7f-262bf29d4383.mp4https://user-images.githubusercontent.com/10728380/131221704-131734e1-d82c-4fe3-a6d4-749c69fdd34e.mp4Forêt des Cèdres - Vue au sud - Belvédère Loop from Lacostehttps://user-images.githubusercontent.com/10728380/131221705-95615790-45c3-4266-9f46-8c287c6cb167.mp4https://user-images.githubusercontent.com/10728380/131221707-3add51cb-ad1e-49a0-9801-9f69086f5f62.mp4Crête du Grand luberon - Le Mourre Nègre (1125m) Loop from Rue de l’Églisehttps://user-images.githubusercontent.com/10728380/131221708-f209abdd-3a57-4bca-b0ae-c726e25064c5.mp4https://user-images.githubusercontent.com/10728380/131221709-8add9296-b7a6-46ff-97f5-520e854e0041.mp4Installpipinstallkomoogkomoogwas developed and tested forPython 3.6Python 3.7Python 3.8So far, the package’s functionality was tested on macOS only.PrerequisitesSave your komoot credentials in~/.komoog/komoot.jsonas{"email":"your@email.com","password":"yourpassword","clientid":"yourclientid"}You can find your client id in the komoot url when you log in. Click on
your username, then on “Planned Tours” or “Completed Tours”. The URL
will change to something likehttps://www.komoot.com/user/1851102841208/tours?type=plannedHere,1851102841208is yourclientid.Dependencieskomoogdirectly depends on the following packages which will be
installed bypipduring the installation processnumpy>=1.17scipy>=1.5.0gpxpy>=1.4.2simplejson>=3.17.2simpleaudio=>=1.0.4matplotlib>=3.0.0DocumentationThe full documentation is available atkomoog.readthedocs.io.ChangelogChanges are logged in aseparate
file.LicenseThis project is licensed under theMIT
License. Note
that this excludes any images/pictures/figures shown here or in the
documentation.ContributingIf you want to contribute to this project, please make sure to read thecode of
conductand thecontributing
guidelines.
In case you’re wondering about what to contribute, we’re always
collecting ideas of what we want to implement next in theoutlook
notes.Dev notesFork this repository, clone it, and install it in dev mode.gitclonegit@github.com:YOURUSERNAME/komoog.gitmakeIf you want to upload to PyPI, first convert the newREADME.mdtoREADME.rstmakereadmeIt will give you warnings about bad.rst-syntax. Fix those errors inREADME.rst. Then wrap the whole thingmakepypiIt will probably give you more warnings about.rst-syntax. Fix those
until the warnings disappear. Then domakeupload