It was a long time ago that ErgometerJS has had an update. I have now a major update ready:
* Added usb support for pm3-5. This is supported in:
- Node (using node-hid)
- Electron ( using node-hid)
- Chrome canary with experimental features (using web-hid)
* Updated the electron projects. The switched from the native BLE to the web BLE.
You can download the source from
https://github.com/tijmenvangulik/ErgometerJS
If you want to try it live to
https://ergometer-space.org
(web hid is not yet supported in ergometer-space, but I will add it in the coming week. You can try it using the desktop apps (=electron) )
Tijmen
ErgometerJS hid (usb) support
- tijmenvangulik
- 500m Poster
- Posts: 64
- Joined: November 25th, 2012, 10:24 am
- tijmenvangulik
- 500m Poster
- Posts: 64
- Joined: November 25th, 2012, 10:24 am
Re: ErgometerJS hid (usb) support
Another milestone for ergometerjs. I just added cordova usb support.
Tijmen
Tijmen
Re: ErgometerJS hid (usb) support
Hi Tijmen,
Congratulations on creating a nice library. You've certainly done a nice job at abstracting away the complexities of PM communication via usb and bluetooth.
Could you suggest the best way to detect the end of a workout/race. With USB, I am receiving TrainingDataEvent events, however, the distance emitted with the last event is not the full workout/race distance and the workDistance does not quite reach 0 as well.
Thanks for your help,
William
Congratulations on creating a nice library. You've certainly done a nice job at abstracting away the complexities of PM communication via usb and bluetooth.
Could you suggest the best way to detect the end of a workout/race. With USB, I am receiving TrainingDataEvent events, however, the distance emitted with the last event is not the full workout/race distance and the workDistance does not quite reach 0 as well.
Thanks for your help,
William