LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 02-04-2008, 06:39 PM   #1
jonbvgood
Member
 
Registered: Sep 2007
Location: SW, UK
Distribution: Kubuntu 10.10 and Crunchbang
Posts: 46

Rep: Reputation: 18
Question 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.
 
Old 02-10-2008, 08:47 AM   #2
luberg
LQ Newbie
 
Registered: Feb 2008
Location: Caronno Pert.
Distribution: SuSE10.2
Posts: 1

Rep: Reputation: 0
Red face 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!
 
Old 02-13-2009, 03:42 PM   #3
mr_minning
LQ Newbie
 
Registered: Dec 2008
Location: Gothenburg, Sweden
Distribution: Fedora, CentOS 7, Ubuntu, Arch, Raspbian
Posts: 19

Rep: Reputation: 10
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
 
Old 02-15-2009, 05:05 AM   #4
jonbvgood
Member
 
Registered: Sep 2007
Location: SW, UK
Distribution: Kubuntu 10.10 and Crunchbang
Posts: 46

Original Poster
Rep: Reputation: 18
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up pytrainer jonbvgood Linux - Software 0 10-14-2007 04:06 PM
Linux application to access Garmin Forerunner 305 data jonbvgood Linux - Software 1 09-23-2007 03:54 PM
kernel confıguratıon spawnasdf Slackware 2 03-14-2006 04:53 PM
Help with Ezonics EZ-305 Webcam d0ugb Linux - Hardware 0 03-07-2004 12:00 AM
3 D acceleration in sis 305 indradeep Linux - Hardware 0 10-26-2003 06:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration