• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Withings

Scheduled Pinned Locked Moved Unsolved Requests
health
26 Posts 14 Posters 20.3k Views 17 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    matt25 @ih800a
    last edited by matt25 Dec 8, 2016, 8:08 PM Dec 8, 2016, 8:08 PM

    @ih800a @frog

    Hi, sorry, was out last few weeks. Just tried the module on another raspberry card with from scratch installation and I cannot reproduce the issue you describe. When you launch the mirror, do you have any issue in the logs? (use “npm start dev” command). Thanks

    I 1 Reply Last reply Dec 8, 2016, 8:24 PM Reply Quote 0
    • I Offline
      ih800a @matt25
      last edited by Dec 8, 2016, 8:24 PM

      @matt25

      Per the console, I do receive weight (poids=90.67;) and date (date=1481195497) information, but then see the following:

      status=0
      error TypeError: Cannot read property ‘date’ of undefined
      error TypeError: Cannot read property ‘body’ of undefined
      data=undefined
      data is null

      M 1 Reply Last reply Dec 9, 2016, 9:47 AM Reply Quote 0
      • M Offline
        matt25 @ih800a
        last edited by matt25 Dec 9, 2016, 9:48 AM Dec 9, 2016, 9:47 AM

        @ih800a
        ok thanks.
        Do you only have a Withings scale, correct? or do you also have a watch or others?

        My guess is that as my module is just currently a proof of concept, I try to display all the related information (weight, sleep, activity ) but if you do not have the withings device related it crashes.

        Also, could you tell me when:
        “error TypeError: Cannot read property ‘date’ of undefined”
        which line in the MM_Withings.js script is related. It should be written in the debug console. Thanks

        I 1 Reply Last reply Dec 9, 2016, 3:39 PM Reply Quote 0
        • I Offline
          ih800a @matt25
          last edited by Dec 9, 2016, 3:39 PM

          @matt25

          I have a few Withings devices (pulse, scale, BP monitor, etc), so your theory makes good sense. Kudos, by the way on this proof of concept - I like it and this will be one of my first Pi / Magic Mirror / module customizations, so I appreciate any insight you have.

          The errors appear at MM_Withings.js:208, which I believe is the line that writes the error to the log.

          1 Reply Last reply Reply Quote 0
          • A Offline
            aluini
            last edited by Dec 26, 2016, 8:42 PM

            I corrected some things on the module :

            • correction of the @ih800a bug (I had the same)
            • add external CSS
            • add the loader
            • add translation

            I’ll review the design of the module

            [card:aluini/MM_Withings]

            1 Reply Last reply Reply Quote 0
            • S Offline
              Snille Module Developer
              last edited by Feb 10, 2017, 7:17 AM

              Hi @aluini, is your module still working correctly? I’m only getting the weight. :)
              I have an Body Cardio Scale, do I have to define this somewhere?

              Thanks!

              If you cant find it, make it and share it!
              Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

              1 Reply Last reply Reply Quote 0
              • F Offline
                fox
                last edited by Mar 3, 2017, 8:16 PM

                @aluini said in Withings:

                I corrected some things on the module :

                • correction of the @ih800a bug (I had the same)
                • add external CSS
                • add the loader
                • add translation

                I’ll review the design of the module

                [card:aluini/MM_Withings]

                Nice. I want to test it.
                My data from my withings steel also showable?

                Issues With MMM-WatchDog known?

                https://forum.magicmirror.builders/post/29827

                Useful for PIR-Sensor: https://forum.magicmirror.builders/post/21299

                1 Reply Last reply Reply Quote 0
                • J Offline
                  Jayh391
                  last edited by Mar 6, 2017, 9:23 PM

                  I can not get it to work. I only have the scale.

                  1 Reply Last reply Reply Quote 0
                  • F Offline
                    fabbr
                    last edited by Mar 27, 2018, 4:30 PM

                    I looked at the module and it just need to be updated however, I can find a way to be able to get the JSON data to be displayed. All I get is a {“status”:342,“error”:“The signature (using Oauth) is invalid”}

                    I tried almost everything already.

                    If anyone can give it a try and make that work, I can update the module and even create new features.

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      AgP42 Project Sponsor Module Developer
                      last edited by Jul 19, 2018, 7:30 AM

                      Hello,

                      I also try to make it work, but I didn’t succed. Probably I did some wrong behaviour during the oAuth process.

                      At the end I can see on my MagicMirror logs an error 283, that correspond according to Nokia API website to : “283 : Token is invalid or doesn’t exist”.

                      I considered it was OAuth version 1.0 because it look like it.

                      Also it is written on Nokia website :

                      “The Health Mate API is now fully functional with OAuth 2.0 authentication protocol.
                      Therefore, the OAuth 1.0 process will no longer be supported beginning:
                      November 30, 2018”

                      Also I do not really want to fight to make it work if the service will be cut by Nokia/Withings on a few months.

                      Does someone have the knowledge to update this module with OAuth 2.0 ?

                      1 Reply Last reply Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy