8000 GitHub - joewilliams/antplus_websockets: ANT+ HRM data via websockets
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

joewilliams/antplus_websockets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ANT+ HRM Data over a Websocket

This code uses the 'hrm' executable in https://github.com/joewilliams/antplus_hrm0_5 to communicate with a Garmin ANT+ USB Stick and capture heart rate data from a Garmin HRM.

Install

git clone git://github.com/joewilliams/antplus_hrm0_5.git
cd antplus_hrm0_5
make

cd ..

git clone git://github.com/joewilliams/antplus_websockets.git
cd antplus_websockets
./rebar get-deps compile generate
mkdir rel/antplus_websockets/lib/antplus_websockets-0.1/priv
cp ../antplus_hrm0_5/hrm rel/antplus_websockets/lib/antplus_websockets-0.1/priv/
./rel/antplus_websockets/bin/antplus_websockets console

Now hit localhost:8080 in a browser you should see output like the following.

{"data":{"hrm":53}}
{"data":{"hrm":55}}
{"data":{"hrm":57}}

This has been tested on Ubuntu 10.04 using the following two devices:

http://www.amazon.com/Garmin-010-10999-00-USB-Ant-Stick/dp/B000UO9KSY/

http://www.amazon.com/Garmin-Premium-Heart-Monitor-Strap/dp/B0029M3NSS/

Misc

If you plug in the USB stick and ttyUSB0 doesn't show up, try the following and reconnect it:

sudo modprobe usbserial

About

ANT+ HRM data via websockets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0