Comments (2)
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):
- 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/
- The left over fraction of the above path when device is not mounted:
/run/user/1000/gvfs/
from workoutizer.
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)
- Make the auto-import more flexible HOT 15
- ENH: Provide feedback on progress of "Reimport" in UI
- Introduce mypy to code base
- Introduce isort to code base HOT 1
- [BUG] run_docker.sh does not forward container port HOT 3
- [BUG] Readme in setup dir does not install latest version of workoutizer HOT 5
- [BUG] processing demo activity's does not complete HOT 7
- [ENH] Officially support Python 3.7 and run on Raspberry Pi (ARM) HOT 3
- [BUG] 920xt not mounting automatically HOT 9
- TST: Test results not consistent
- [BUG] Incorrect if statement causes block devices to never be mounted
- [BUG] Altitude is shown incorrectly HOT 6
- [BUG] Block device not settled yet when mount triggerd by wkz_mount.service HOT 7
- [ENH] Make workoutizer Windows compatible
- [BUG] macos build pipeline seems broken
- [BUG] Rounding errors cause wkz.gis.geo distance calculation error. HOT 4
- Trouble getting workoutizer to work HOT 13
- Make path to activities inside garmin device configurable
- BUG: Error in filter when e.g. avg_speed is not available in fit file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from workoutizer.