01-24-2021 08:57
01-24-2021 08:57
I am trying to create a clock face and I want to add the total number of covid-19 cases around the world. How would I do that? I know I need a companion app but I don't know where to go from there. Any help would be very much appreciated.
02-03-2021 03:39
02-03-2021 03:39
If you have a Web API which has the data you want, then you can do the following steps to get that data to the device:
1. Make a clock face with a companion
2. In the companion, fetch() the data from the Web API
3. In the companion, use the File Transfer API to send the data to the device
4. On the device, receive the File Transfer and display the data on the clock
5. Make the companion wake every 30 mins or so and fetch the data using wakeInterval
https://dev.fitbit.com/build/guides/communications/file-transfer/
https://dev.fitbit.com/build/guides/companion/#life-cycle-events