MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Arno-Strasbourg
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 6
    • Groups 0

    Arno-Strasbourg

    @Arno-Strasbourg

    1
    Reputation
    1
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Arno-Strasbourg Unfollow Follow

    Best posts made by Arno-Strasbourg

    • RE: MMM-Fitbit2

      @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

      posted in Health
      Arno-StrasbourgA
      Arno-Strasbourg

    Latest posts made by Arno-Strasbourg

    • RE: MMM-Fitbit2

      @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

      posted in Health
      Arno-StrasbourgA
      Arno-Strasbourg
    • RE: MMM-Fitbit2

      Hi,
      Do you think it would be possible to add the watch battery level ?

      posted in Health
      Arno-StrasbourgA
      Arno-Strasbourg
    • RE: Fitbit

      @Stoffbeuteluwe It isn’t exactly the bottom bar. But it’s ok. It will be good for me.
      Thank you !

      posted in Troubleshooting
      Arno-StrasbourgA
      Arno-Strasbourg
    • RE: Fitbit

      Yes I confirm, it works very well !! Thank you very much !!
      Just a small question, I put it on the bottom_bar, but it appear on the bottom left.

      How can i center it please ? with the MMM-Fitbit2.css or custom.css ? and wich command to add ?
      That makes 2 questions in fact ! :face_with_hand_over_mouth:

      posted in Troubleshooting
      Arno-StrasbourgA
      Arno-Strasbourg
    • RE: Fitbit

      Oh ! There is an other app !! Where can I found it ? It isn’t on the gitub third party modules ?

      Edit : Got it ! Thank you @Stoffbeuteluwe

      posted in Troubleshooting
      Arno-StrasbourgA
      Arno-Strasbourg
    • RE: Fitbit

      Hi guys,

      I don’t know if the module is still maintained. But I have just implemented it. I have got the credentiels. I have put the code in the config.js file. It works fine but I have no datas refresh and an error in the log :

      /home/pi/.pm2/logs/mm-error.log last 15 lines:
      0|mm | [2020-05-10 13:41:56.342] [ERROR] TypeError: PythonShell.run is not a function
      0|mm | at Class.setCreds (/home/pi/MagicMirror/modules/MMM-fitbit/node_helper.js:32:15)
      0|mm | at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-fitbit/node_helper.js:18:9)
      0|mm | at Socket. (/home/pi/MagicMirror/js/node_helper.js:113:11)
      0|mm | at Socket.emit (events.js:200:13)
      0|mm | at /home/pi/MagicMirror/node_modules/socket.io/lib/socket.js:528:12
      0|mm | at processTicksAndRejections (internal/process/task_queues.js:82:9)
      0|mm | [2020-05-10 13:41:56.380] [ERROR] TypeError: PythonShell is not a constructor
      0|mm | at Class.getData (/home/pi/MagicMirror/modules/MMM-fitbit/node_helper.js:43:25)
      0|mm | at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-fitbit/node_helper.js:22:9)
      0|mm | at Socket. (/home/pi/MagicMirror/js/node_helper.js:113:11)
      0|mm | at Socket.emit (events.js:200:13)
      0|mm | at /home/pi/MagicMirror/node_modules/socket.io/lib/socket.js:528:12
      0|mm | at processTicksAndRejections (internal/process/task_queues.js:82:9)
      .
      .
      .
      0|mm | [2020-05-10 13:43:43.317] [LOG]
      0|mm | Set credential request recieved.
      0|mm | [2020-05-10 13:43:43.318] [LOG]
      0|mm | {
      0|mm | client_id: '22BR8T',
      0|mm | client_secret: '51313d185cxxxxxxxxxxxxxxxxd141c99'
      0|mm | }
      0|mm | [2020-05-10 13:43:43.329] [LOG]
      0|mm | Whoops! There was an uncaught exception...
      0|mm | [2020-05-10 13:43:43.330] [ERROR] TypeError: PythonShell.run is not a function
      0|mm | at Class.setCreds (/home/pi/MagicMirror/modules/MMM-fitbit/node_helper.js:32:15)
      0|mm | at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-fitbit/node_helper.js:18:9)
      0|mm | at Socket. (/home/pi/MagicMirror/js/node_helper.js:113:11)
      0|mm | at Socket.emit (events.js:200:13)
      0|mm | at /home/pi/MagicMirror/node_modules/socket.io/lib/socket.js:528:12
      0|mm | at processTicksAndRejections (internal/process/task_queues.js:82:9)
      0|mm | [2020-05-10 13:43:43.334] [LOG] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|mm | [2020-05-10 13:43:43.335] [LOG] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      0|mm | [2020-05-10 13:43:43.336] [LOG] Initial run request recieved.
      0|mm | [2020-05-10 13:43:43.338] [LOG] Running getData.py
      0|mm | [2020-05-10 13:43:43.339] [LOG] Whoops! There was an uncaught exception...
      0|mm | [2020-05-10 13:43:43.342] [LOG] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|mm | [2020-05-10 13:43:43.342] [LOG] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      0|mm | [2020-05-10 13:43:43.344] [LOG] [NewPIR] Initialize...
      0|mm | [2020-05-10 13:43:43.340] [ERROR] TypeError: PythonShell is not a constructor
      0|mm | at Class.getData (/home/pi/MagicMirror/modules/MMM-fitbit/node_helper.js:43:25)
      0|mm | at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-fitbit/node_helper.js:22:9)
      0|mm | at Socket. (/home/pi/MagicMirror/js/node_helper.js:113:11)
      0|mm | at Socket.emit (events.js:200:13)
      0|mm | at /home/pi/MagicMirror/node_modules/socket.io/lib/socket.js:528:12
      0|mm | at processTicksAndRejections (internal/process/task_queues.js:82:9)
      

      Do someone has any idea of that error ?

      posted in Troubleshooting
      Arno-StrasbourgA
      Arno-Strasbourg