05-16-2021 17:16 - edited 05-17-2021 07:59
05-16-2021 17:16 - edited 05-17-2021 07:59
I have a Versa and I want this to happen:
1. HR is recorded.
2. HR is sent to Pi and is displayed on screen
3. Pi adjusts PWM fan speed
4, Pi reports fan speed back to Versa
5. Fan speed is shown on Versa
How do I make an app for the Pi and the Versa to do this (python only)? I have a 4 wire CPU fan.
Fan curve:
Off for 0-50% HR
Every 1% HR changes fan speed changes by 2%
100% speed on 100% HR
No signal is detected: Fan off
05-17-2021 05:43
05-17-2021 05:43
Some Fitbits have a WiFi connection. Maybe it's possible you can do something with XMLHttpRequest / AJAX ?
05-17-2021 06:59 - edited 05-17-2021 07:58
05-17-2021 06:59 - edited 05-17-2021 07:58
@josekreif Data is exchanged via Bluetooth.
05-17-2021 09:18
05-17-2021 09:18
Hey So if i got your point, you want to adjust your fan speed based on your Heart Rate?
Well, as far is i've learned ( still new ) , you'd need to use the heart rate API ( documentation here ) and use a companion app to communicate with a small web API you'd then build in Python, as you prefer, thanks to the fetch API ( documentation here )