Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Fetch URL on sense dont work

 

 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

Best Answer
0 Votes
3 REPLIES 3

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.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

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

Best Answer
0 Votes

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).

Peter McLennan
Gondwana Software
Best Answer
0 Votes