KiezelPay / Fitbit_Realistic_HRM

Show an HRM animation in a Fitbit clockface or app which pulses with the same frequency as the user's actual heart rate and stops when the watch is taken off
MIT License
23 stars 7 forks source link

Transfer setting from main index.js #1

Open gpfrello opened 6 years ago

gpfrello commented 6 years ago

Hello, thanks for your great module. I would like to change heart icon color and HR text based on a setting. The settings are provided by the companion app and then transferred to the main index.js. How can I now transfer the settings to the hrm module? Practically I would like to have something like hrIcon.style.fill = settings.heartcolor working (where heart color is set in the settings) Thanks

kverpoorten commented 6 years ago

Please check line 67 of hrm.js

There the color of the icon is set, you can just replace #FF0000 with the color from your settings there.