I have updated the module: https://github.com/m-roberts/MMM-Fitbit2/commit/27706ea0a9ab13b8d12a020f7234adf361d108ae
Read the statement by Michael Teeuw here.
Posts
-
RE: MMM-Fitbit2
@davidgeo
This is currently not exposed to the user via the config.json (that feature is tracked here).
However, you can change this option to “US” in your installed module directory.
For more information about how units are handled by the Fitbit API, check out the unit system information detailed here. -
RE: MMM-Fitbit2
@goldyfruit said in MMM-Fitbit2:
@mkufner24 Same, sleep time is inaccurate.
Unfortunately, this is what is returned from the Fitbit API. If you can figure out how to produce the data you want from what is returned from the API, then I am happy to take a look!
-
RE: MMM-Fitbit2
@goldyfruit said in MMM-Fitbit2:
@Vizulize It would be great it you could allow the issue creation on GitHub, this will be easier to contribute and raise issue. :)
Done!
-
RE: MMM-Fitbit2
@mkufner24 I have explained what I am doing to retrieve sleep data in an earlier post. Beyond that, I’m not sure!
I’m glad to hear you’re enjoying the module though 😄
-
RE: MMM-Fitbit2
@aunrea This should work - I have 2 accounts on my MagicMirror and they have worked together for some time. What are you seeing?
-
RE: MMM-Fitbit2
@Stoffbeuteluwe This should not be the case. What are the logs saying?
-
RE: MMM-Fitbit2
@aunrea The module is returning the sleep data from the web API directly, which can be found here: https://dev.fitbit.com/build/reference/web-api/sleep/
You can see in the code here that the result that is returned is “totalMinutesAsleep”:
https://github.com/m-roberts/MMM-Fitbit2/blob/master/python/get_data.py#L194Beyond that, I am not sure why it is adding time to your records. Apologies!