RowMetrics - communicating with the PM using Python on Linux

Post questions and issues with Concept2 PM3 SDK
yvan
Paddler
Posts: 1
Joined: January 9th, 2013, 6:35 pm

Re: RowMetrics - communicating with the PM using Python on L

Post by yvan » January 9th, 2013, 7:09 pm

Hi all,

Sorry to awaken a year-old thread! In case anyone is interested I've just been investigating interfacing my PM4 with Linux this evening and found this thread.

Many thanks for writing the Python code!

Yes, it does not work on Ubuntu - not even on the latest version (quantal quetzal) which still provides pyusb version 0.4, there is a simple fix (although it does require the command-line I am afraid), run these two commands:

Code: Select all

sudo apt-get install python-pip
pip install pyusb
If you already have 'python-usb' installed you will need to add "--upgrade" to the pip line.

Note that there was a minor syntax errors in the 'pyrow.py' file in the .zip I downloaded, on line 39 I needed to change "else" to "except" to get the code to parse.

Anyway - now I've got it working I hope to have time to do something with it. :) But that's my lot for tonight.

AndyPalmer
Paddler
Posts: 3
Joined: April 21st, 2012, 11:06 am

Re: RowMetrics - communicating with the PM using Python on L

Post by AndyPalmer » January 17th, 2013, 12:46 am

Hi.

I only just found this thread, but I got pyrow up and running on my machine a week or so ago and have it logging data and drawing stroke plots using Tkinter GUI classes in Python. I am planning to make some kind of software that logs data and gives the user an interactive way to examine the log. The results shown from RowMetrics (great work, by the way) are kind of similar to what I want to do, but I'd like the graphs to be interactive somehow. I also want to get the workout monitor into a window and thread per erg and support multiple ergs.

It would also be really amazing to add some kind of visualisation to make rowing on the erg less boring. I was thinking it would be amazing to use the new Occulus Rift to display some kind of trippy 3d visualisation, but this is a lot of work, and I'm not really a good enough programmer to handle this kind of thing.

I have pyusb and pyrow working fine (had to modify pyrow.py though - probably the same problem yvan found), so I'll give RowMetrics a try tonight.

Thanks for the tip about non-root access by the way (on the RowMetrics page). That is really helpful, as it sucks to have to remember to start the python command with sudo each time.

Bob S.
Marathon Poster
Posts: 5142
Joined: March 16th, 2006, 12:00 pm

Re: RowMetrics - communicating with the PM using Python on L

Post by Bob S. » January 17th, 2013, 11:37 am

AndyPalmer wrote:Hi.


It would also be really amazing to add some kind of visualisation to make rowing on the erg less boring. I was thinking it would be amazing to use the new Occulus Rift to display some kind of trippy 3d visualisation, but this is a lot of work, and I'm not really a good enough programmer to handle this kind of thing.
Isn't that what RowPro already does? A free test period comes with each new erg - well at least it used to - I don't know if they still do it.

Bob S.

User avatar
Citroen
SpamTeam
Posts: 8075
Joined: March 16th, 2006, 3:28 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: RowMetrics - communicating with the PM using Python on L

Post by Citroen » January 17th, 2013, 12:14 pm

Bob S. wrote: Isn't that what RowPro already does? A free test period comes with each new erg - well at least it used to - I don't know if they still do it.
On windows and on windows running in bootcamp on a Mac but not on LINUX.

rodrigosavage
Paddler
Posts: 1
Joined: September 17th, 2013, 10:10 am

Re: RowMetrics - communicating with the PM using Python on L

Post by rodrigosavage » September 17th, 2013, 10:20 am

Hi!

I read AndyPalmer response and I suggest that we do the project, I started a repository for the project, please join

https://bitbucket.org/rodrigosavage/row ... /wiki/Home

I have lot of experience in computer graphics and networks, I don't think it should be complicated if we work all together.

wzzrd
Paddler
Posts: 1
Joined: December 14th, 2013, 11:05 am

Re: RowMetrics - communicating with the PM using Python on L

Post by wzzrd » December 14th, 2013, 11:11 am

So, rodrigosavage, AndyPalmer, I see there is a Bitbucket repo, but there's just a README in there right now. I'm willing to put some effort into this as well. How about it? :)

Post Reply