0.1.9 • Published 9 years ago

node-waterrower v0.1.9

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Waterrower

An interface to the Waterrower rowing machine. Connect the Waterrower display to your system using the Micro USB socket. Values in the Waterrower display are read asynchronously and made available to the API. The values will start at 0, and as they are transferred the values will be updated. It usually takes 3-4 seconds for this to happen.

The node module does its best to identify the port that the Waterrower is using, and this has always worked with the limited number of systems at our disposal. They are MAC OS/10, Raspbian, Ubunutu and Windows. See below for troubleshooting.

Simple API currently exposes: Stroke Rate, Total Speed, Average Speed, Distance, Heart Rate. This example use will display the Waterrower values and update them every 2 seconds.

var waterrower = require("./Waterrower");
 
var readWaterrower = function() {

  console.log("Stroke Rate ...................." + waterrower.readStrokeCount());
  console.log("Total Speed ...................." + waterrower.readTotalSpeed());
  console.log("Average Speed .................." + waterrower.readAverageSpeed());
  console.log("Distance... ...................." + waterrower.readDistance());
  console.log("Heart Rate ....................." + waterrower.readHeartRate());

}

setInterval(readWaterrower, 2000);

Troubleshooting

In the Waterrower module index.js file change debug to true. Restarting your program will show the ports that have been found. For example, on a MAC :

// Read Waterrower
//
// Initialise
var debug = true;

Output:
$ node index.js 
in readWrite closed call open
Number of ports=3
com name /dev/cu.Bluetooth-Incoming-Port
port ID 
com name /dev/cu.Bluetooth-Modem
port ID 
com name /dev/cu.usbserial-A800etv2
port ID 
in readWrite open call read
in read connecting to /dev/cu.usbserial-A800etv2
Stroke Rate ....................0
Total Speed ....................0
Average Speed ..................0
Distance... ....................0
Heart Rate .....................0
in readWrite connecting
in read open
0.1.9

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago