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

Weather Calls: Store Timestamp on Fitbit Device

ANSWERED

Hello Community,

 

short question on the best way to get last weather sync information for fitbit device.

 

I am using darksky.net to fetch weather information on Versa clock faces. Weather will be updated every hour. 

 

In case end-user goes to e.g. alarm app on fitbit device and returns to the clock face the clock face will be reopened and the weather will be fetched again. Due to the fact that I have limited weather calls I would like to avoid this. Check first whether the weather was fetched within the last hour.

 

There is may be another (better) way but my goal is to store a simple file with the timestamp on the fitbit device. Once the weather was fetched it will overwrite the timestamp. On each clock face start, check timestamp first before fetching weather again.

 

Any help is highly appreciated.

 

Eric

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Seems like the best way. The file system api is the only method to store data like that on the fitbit, and it will probably be faster to access the data than your current method. 

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2

Seems like the best way. The file system api is the only method to store data like that on the fitbit, and it will probably be faster to access the data than your current method. 

Best Answer
0 Votes

Thanks ... and it is working.


For documentation purposes, reference here:

https://dev.fitbit.com/build/guides/file-system/

Best Answer
0 Votes