08-01-2024 03:41
08-01-2024 03:41
Hello everyone, I wrote a program for my Sense in which I send data to a web server in my own WiFi via fetch URL (via http, not https). This works wonderfully in the simulator. But when I transfer the program to the clock, nothing arrives on the server. What could be the reason? Greetings Pfeiffy
08-01-2024 13:22
08-01-2024 13:22
http will only work to localhost or equivalent. If your server is on a different device to that on which the Fitbit mobile app is running, it will need non-self-signed https.
I found it easier (but messier) to run a server on the phone.
08-02-2024 03:26
08-02-2024 03:26
Hello, thank you very much for the answer. That's what I thought. But I thought that a web server would work in your own WiFi network. How did you implement your web server for Android, I've been looking for something like this for a long time - do you have an example project here?
Greetings Pfeiffy
08-02-2024 13:44
08-02-2024 13:44
Alas, http has to be localhost or equivalent; not any other device on LAN.
I think there are a couple of Fitbit Android servers here (Python and Java). I also managed to do it using node.js on Android, but didn't like the environment (dory).