Read the statement by Michael Teeuw here.
MMM-Fitbit2
-
@Vizulize no problem. I’m great at finding the problems 😉. I’ll have to connect directly to the Raspberry pi and try again. I’ll let you know how it goes.
-
Hello,
When I’m asked to enter the “Client Secret”, in ssh (on the pi of the MagicMirror), I cannot type or paste anything.
What’s the solution ? -
@mattx38 - Read two messages above your post. You must work directly on the Pi in order to make it through the Fitbit login process. You can’t do this through an SSH connection.
-
@bhepler I did it directly from the terminal of the MMM Pi, sorry for my wrong explaination.
-
Hello,
I’ve installed MMM-Fitbit2 according the instructions.
Unfortunately on the MM screen the module says “Loading…” instead of showing any symbols.
Could someone help me? -
@chsp - You will probably need to check the logs and see if there are any error messages.
First, get an SSH connection to your Pi (assuming it’s a Pi) and type
pm2 log 0. Look for any errors. If you see none, point a web browser at your Pi’s IP address and use that to pull up the mirror’s interface. Press F12 to open the developer’s window and look in the Console tab for any errors.That should get you started.
-
Hi, the module works fine …:clapping_hands_medium-light_skin_tone:
-
This post is deleted! -
This post is deleted! -
Hi,
Do you think it would be possible to add the watch battery level ? -
Hi all (notably, @chsp) - turns out that there was a bug if you had selected the “weight” resource and did not have any weight data for the last 30 days. I have pushed a fix for this, so hopefully you don’t end up with “Loading…” any more!
-
@mattx38 As the client secret a password, it is blocked from printing. Just paste the secret into your terminal and press enter - it will work.
This is separate to what @bhepler raised re: SSH. Actually, you can run all of the commands over SSH, but you will need to log in to your Fitbit account in a browser on the Pi in order to generate your access tokens. Alternatively, you can run the script on another machine, generate the tokens and then transfer them onto the Pi (if you have no way to do things on your Pi’s display).
-
@Arno-Strasbourg
Seems like it’s possible to get a low-resolution status of device battery levels from the Fitbit API.
It also seems as though the Python library supports this endpoint.However, because it returns a list of devices, targeting the right one may prove to be a little more complicated.
Not much good if the battery level relates to a second tracker that you aren’t actually wearing!
I could possibly do it based on the device with"type": "TRACKER"that has the most recent"lastSyncTime", but I will need to think about it. -
@Vizulize said in MMM-Fitbit2:
@Arno-Strasbourg
Seems like it’s possible to get a low-resolution status of device battery levels from the Fitbit API.
It also seems as though the Python library supports this endpoint.
However, because it returns a list of devices, targeting the right one may prove to be a little more complicated.
Not much good if the battery level relates to a second tracker that you aren’t actually wearing!
I could possibly do it based on the device with “type”: “TRACKER” that has the most recent “lastSyncTime”, but I will need to think about it.It would be very nice. Thank you
-
I think this module is great! It works well and looks great.
Is there a way to set it to imperial instead of metric measurements? -
I have also noticed that the sleep time is inaccurate. It currently says 08:04, but the Fitbit website says 07:10. I am not sure why it is adding 56mins to my sleep time.
-
My question is…after updating MM
the module is not working.
I must do the (auth.sh) again after every MM upgrade.
Is that the same on your Mirrors?? -
Is there a way to use more than 1 Fitbit account? I tried but the second one would not authorize.
-
@aunrea For now, to get Imperial measurements, remove this line:
https://github.com/m-roberts/MMM-Fitbit2/blob/master/python/get_data.py#L96 -
@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!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login