/Polar-Flowlink-linux

Development of interface for Polar FT60 HRM for Linux. It was tested with FT80 and it didn't work, due to different command set. I will need physical access to the watch to be able to devise a solution for other HRMs. Simple one page web interface that can be run on local machine and mimics polarpersonaltrainer is also included (see screenshot) but needs lots of polishing. Please note it is a work in progress. This early version pulls down all data except for weekly training program.

Primary LanguageCGNU General Public License v3.0GPL-3.0

* Supported OS

GNU/Linux

* Requirements: 

For driver: libusb-dev, libudev-dev, libpq-dev

For web interface: apache2 with apache2-mod-php5 (or other web browser with php support), postgresql

For database handling postgresql server is also required. psql client is recommended for debugging purposes.

* How to compile

firstly create bin directory in the project tree: mkdir bin
then run ``make'' in command line: make

* Installing web page

Run postgresql as user postgres and add user as role. Create database and allow user to do anything with the database. Basically you need to do (change <username> with your username):
Run psql and within the psql shell type in:
	create table <username>;
	grant all privileges on database <username> to <username>;

I would also recommend:
	grant all privileges on database <username> to root;

Finish with
	\q

As normal user type in bash shell: psql
	\i sql-tables/polar-createtable

Copy directory web where it can be found by web browser. Edit config.php and enter your username and password required to access database.

* Inclusion of files from other authors

Part of package includes hidapi project, licensed under GPLv3, BSD and HIDAPI license. Terms under GPLv3 are chosen in this project.

* License

This work is licenced under GPL v3 or later. Please read LICENSE for more information.

* TODO
- Make a simple portal with excercise analysis. Make a better analyses and provide user feedback.

- Parse training program data.

- Parse data from footpod. I don't have it handy, so if you need this functionality consider lending me one ;).

- Daemonize process of reading from flowlink.