Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-04-2008, 06:39 PM
|
#1
|
Member
Registered: Sep 2007
Location: SW, UK
Distribution: Kubuntu 10.10 and Crunchbang
Posts: 46
Rep:
|
pytrainer - setting up for garmin 305
I have tried to set up pytrainer 1.4.5 to import data from my garmin forerunner 305 so far without success. Below is the doc to explain how to make a plugin. I get lost at executable file. Any ideas, or has someone got a plugin for the FR 305,or is there a better option for linux and sports data?
A decent sports program eg sportstracks on windows keeps my laptop dual fuelled!
Build your own Gps Device Plugin
(pytrainer 1.2.0 and later)
Build your own Pytrainer gps device plugin is very easy.
* Make a dir in the plugins file.
for example: #mkdir /somepath/pytrainer/plugins/yourplugin
* Create a config plugin file.
for example: #touch /somepath/pytrainer/plugins/yourplugin/conf.xml
* Edit the conf plugin file with this code:
<?xml version="1.0" ?>
<pytrainer-plugin
name="Plugin name (for example: Garmin 301)"
description="Plugin description (for example: Import from your garmin 301)"
plugincode="Internal plugin code without spaces (for example: garmin301)"
pluginbutton="Text to show in the button (for example: Import from Garmin 301)"
executable="The executable plugin script (for example: main.py)"
author="The author plugin (for example: Fulano Palotes)"
>
<conf-values variable="variable conf name (for example: device)"
value="variable conf default value (for example: /dev/ttyUSB0)"/>
</pytrainer-plugin>
* You can add so many conf-values lines in the conf plugin file as you need it.
* create the executable plugin script like you have named it in the conf plugin file.
For example: touch /somepath/pytrainer/plugins/yourplugin/main.py
* Edit the executable plugin script. You can write it in any language. There are only two rules.
o Pytrainer will launch the executable plugin script with too many parameters as conf-values you defined in the plugin file.
For example, if your executable plugin script is main.sh and you have inserted one conf-value line in the plugin file (conf-values variable="device") pytriner will launch your executable plugin script in this way:
/path/main.sh --device "value"
o Your script must print the gpx file path
* i wil write some several lenguages example plugins in the future
* Please, if you write a plugin, send me it by email in order to include it in pytrainer package.
|
|
|
02-10-2008, 08:47 AM
|
#2
|
LQ Newbie
Registered: Feb 2008
Location: Caronno Pert.
Distribution: SuSE10.2
Posts: 1
Rep:
|
Installing PyTrainer...
I'm sorry to borry you by this way.
I have a lot of problems about the GtkEmbedMoz in running the pyTrainer... where you find this library in your distro?
I'm using SuSE10.2
Thanks a lot for your help!
|
|
|
02-13-2009, 03:42 PM
|
#3
|
LQ Newbie
Registered: Dec 2008
Location: Gothenburg, Sweden
Distribution: Fedora, CentOS 7, Ubuntu, Arch, Raspbian
Posts: 19
Rep:
|
I'm also trying to get this to work (pyTrainer 1.6.0.5, gpsbabel-1.3.6-1.fc10.i386, Forerunner 305 and Fedora 10).
I've found the config files and edited them (/usr/share/pytrainer/plugins/garmin-hr).
Found a reference to setting device to usb: instead of /dev/ttyUSB0 (which I did).
Now when I start pyTrainer I get another option in the File menu: "Import from Garmin (hr)". However it doesn't do anything... Except ask me if I'm sure I got a Garmin at usb:
It turns out I have to run pyTrainer as root to get it going. The watch beeps and the progressbar moves at a resonable speed. However I don't get any data into pyTrainer. At least it doesn't show anything.
Did you get it going? How did you do it?
BR
|
|
|
02-15-2009, 05:05 AM
|
#4
|
Member
Registered: Sep 2007
Location: SW, UK
Distribution: Kubuntu 10.10 and Crunchbang
Posts: 46
Original Poster
Rep:
|
No success Yet
i have not dabbled with pyytrainer for a while, it is was of the few reasons i still access a windows xp pc. I have just got another laptop with linux and will have another go in the next couple of weeks
|
|
|
All times are GMT -5. The time now is 07:27 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|