Coder Social home page Coder Social logo

Comments (2)

fgebhart avatar fgebhart commented on May 17, 2024

Thanks for creating this issue. I guess I have been running workoutizer for too long on my Raspberry Pi and became blind to what happens on other systems. The RPI unfortunately does not auto mount garmin devices.

I think the best approach to solve this issue would to be (similar to what you have suggested) to remove the file copying from the mount_device_endpoint endpoint. Workoutizer will only mount your device if you configure it to do so, like currently described in setup. The copying, however, should happen irrespective of whether workoutizer is running on a Raspberry Pi or any other machine.

Currently I could image to implement another watchdog to monitor the path in which the device is expected to be mounted. Once the device gets mounted (irrespective of how it got mounted) the watchdog would trigger the copying which would copy the files from the device to the target location configured in settings.path_to_trace_dir. And from here everything behaves like before (watchdog triggers import of activity fit files).

I will try to make the solution as generic as possible. For that it would be helpful if you could share the following two paths:
On Raspberry Pi 3B Raspbian 10 (buster):

  1. Path to the activity folder (which contains the .fit activity files) once mounted: /run/user/1000/gvfs/mtp\:host\=091e_4b48_0000c4fa0516/Primary/GARMIN/Activity/
  2. The left over fraction of the above path when device is not mounted: /run/user/1000/gvfs/

from workoutizer.

fgebhart avatar fgebhart commented on May 17, 2024

Just double checked, the paths are exactly the same on Linux Mint 20 (Ulyana). So I would assume this to be the case for most debian based linux distros (e.g. Ubuntu, Raspbian).

And, luckily Mint also comes with auto mounting. Which means I do have both scenarios at hand 👍

from workoutizer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.