Read the statement by Michael Teeuw here.
MMM-Fitbit2
-
Also - attempted to authorize and obtain token directly from the Fitbit site using their token authenticator from the “OAuth 2.0 tutorial page” and I received the error message below:
404 Not Found
Missing parameters: stateTraceback (most recent call last):
File “/usr/local/lib/python3.7/dist-packages/cherrypy/_cpdispatch.py”, line 54, in call
return self.callable(*self.args, **self.kwargs)
TypeError: index() missing 1 required positional argument: ‘state’During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/lib/python3.7/dist-packages/cherrypy/_cprequest.py”, line 628, in respond
self._do_respond(path_info)
File “/usr/local/lib/python3.7/dist-packages/cherrypy/_cprequest.py”, line 687, in _do_respond
response.body = self.handler()
File “/usr/local/lib/python3.7/dist-packages/cherrypy/lib/encoding.py”, line 219, in call
self.body = self.oldhandler(*args, **kwargs)
File “/usr/local/lib/python3.7/dist-packages/cherrypy/_cpdispatch.py”, line 60, in call
raise sys.exc_info()[1]
File “/usr/local/lib/python3.7/dist-packages/cherrypy/_cpdispatch.py”, line 58, in call
test_callable_spec(self.callable, self.args, self.kwargs)
File “/usr/local/lib/python3.7/dist-packages/cherrypy/_cpdispatch.py”, line 157, in test_callable_spec
raise cherrypy.HTTPError(404, message=message)
cherrypy._cperror.HTTPError: (404, ‘Missing parameters: state’) -
@dresch360 looks like something changed in the api requirements, but the library version hasnt
-
@sdetweil - Thanks for your reply. So does this mean that no new tokens can be created?
-
any chance of this being revived and updated?
-
@richmp95 you’d have to post in an issue in the module GitHub repo
-
@richmp95 - last I checked, this still works. Why does it need ‘reviving’?
If you would like to have extra features, I am open to suggestions and contributions. -
Is there anyway to remove the goal tracking widget underneath each resource?
I have been trying to play around with removing it myself, but every time I touch something it breaks the whole module.
Any ideas!?
-
I haven’t tried this and I haven’t looked at the code in a while, but I think you can just comment out this line to hide the progress bars:
-
@Vizulize That worked! Thank you :)
-
@Vizulize i am still having issues with this module. all it says is loading. any help with this i would appreciate it
-
@richmp95 I’m afraid I can’t do much to help without error logs.
-
Hi, updated MM and now Google-Fit can no longer be installed, so I gave MMM-Fitbit2 a go.
Thanks @Vizulize for your work, I’d really like to get it running.
I have the same error that is reported in the github:npm ERR! must provide string specTo reproduce, just try to install it on an updated MM system.
It happens when calling ./init.sh as per your instructions on githubHave you/has anybody figured out a way to initialize the module?
Thanks
Markus -
@Meidlmarkus said in MMM-Fitbit2:
MMM-Fitbit2
remove these lines from package.json
"//": [ "Requires this version to work", "https://github.com/SVendittelli/MMM-fitbit/issues/23#issuecomment-464319931" ] -
Thanks, Sam!
Had it googled in the meantime, had renamed the package-lock.json und run npm init
It braught no further error, I called auth.sh and that’s where I’m stuck now.
After entering the credentials, no browser dialog opens and I’m not quite sure where to search it.
Am logged in over ssh and in addition have a browser open to :8080
Neither on the mirror, nor on the pc, there is any dialog appearing.I guess I’ll start from scratch, remove the module folder, clone new from git, and try your suggested method with the original package.json?
Thanks again
Markus -
@Meidlmarkus yeh, can’t help on the auth part
-
@sdetweil yeah, so I renamed MMM-Fitbit2, cloned fresh.
In the package.json there is no such a line that you mentioned (I guess @Vizulize must have fixed it already)
Did npm init, then ./init seemingly went through.
With ./auth.sh same thing as before - no dialog showing up.I hope @Vizulize sees it and helps out :-)
Thanks
Markus -
@Meidlmarkus I just checked again
https://github.com/m-roberts/MMM-Fitbit2still has those lines
don’t see another author choice in google search
-
Yes, right.
Must have looked into the package.json after doing the npm init - my bad. Did another git clone and it is as you said.Meanwhile it turned out I had pip not installed. After installing pip and running ./init.sh again (after npm init) libraries were installed, and also auth.sh was able to start (only saw it when I called the python script directly rather than from auth.sh)
So auth.sh was now able to “Open a Web browser” (at least according to its logs), I just don’t see any dialog.
Anyway, will now try init with the modified package.json and see if it makes a difference - will report back.
Thanks so far
Markus -
So, quick update:
I tried inist.sh with the modified package.json
The result was just the same - I don’t see any input dialog open.I believe the module is installed properly and the dependencies are ok.
Thanks
Markus -
@Meidlmarkus It’s been a while since I worked on this. From memory, doing this over SSH has extra complexity (probably to do with the
DISPLAYenvironment variable). Honestly, I’ve wanted to rework this to be headless for a while but haven’t had the capacity to do so.My advice would be to try and run it locally if possible.
Also if anyone can verify that the modification to
package.jsonis a fix, then I will merge this in: https://github.com/m-roberts/MMM-Fitbit2/pull/10/files
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