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.

    MMM-OralB / Bluetooth equipped toothbrush integration

    Scheduled Pinned Locked Moved Development
    68 Posts 13 Posters 29.2k Views 20 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.
    • S Offline
      Shifty
      last edited by

      Hi,
      im on Holiday for some Days, but the week after next week i’m back home.
      After that i can help you with checking your code on my MM with my Toothbrush.

      I hope this will help you.

      1 Reply Last reply Reply Quote 0
      • A Offline
        aphex13
        last edited by

        Hi @SvenSommer, thank you for the work! i will check the module in the next days!
        would i be possible to connect more the one brush (toothbrush_uuid)?

        thanks!

        1 Reply Last reply Reply Quote 0
        • FistandantilusF Offline
          Fistandantilus
          last edited by

          Hi,

          I have tested the module today with a Oral B Genius 9000 toothbrush. I´m experiencing the same problems mentioned already in the old post. When I run brushTimer.js standalone in the module folder everything is working fine.
          To run it in MM I used:

          sudo npm rebuild --runtime=electron --target=1.6.11 --disturl=https://atom.io/download/atom-shell --abi=53
          

          MM is starting now but when I switch on the toothbrush nothing happens. It is just displaying “Seaching…”
          How can I fix that?

          regards,
          F.

          1 Reply Last reply Reply Quote 0
          • SvenSommerS Offline
            SvenSommer
            last edited by SvenSommer

            Hey @Fistandantilus,
            Thanks for checking out the module. Sorry for disappointing you, but the MMM-OralB-module is not finished yet. The module is not capable of displaying any other message than ‘Searching…’ right now.

            I stopped the development a few month ago, caused by the different matching results, we experienced in the testing phase at the individual toothbrushes.
            But I’m definitely interested in making this module.

            If you want to help me , you could send me your detailed test output of the scenario I pointed out before.

            Here are some details:

            • If the toothbrush is started bluetooth is activated for 3 Seconds.
            • If the brush is paused/stopped bluetooth is activated again for 32 Seconds.

            This leads to the following limited possiblities in tracking a brush session.

            • A start of a session is only trackable, if the programm/script has started with a (for 32 seconds) silent brush.
            • A stop is only trackable 3 seconds after start.
            • A stop/pause leads to a 32 Seconds “cooldown phase”, were no tracking is possible. This will reset the timer to 0:00.

            This is only helpfull if you do not interrupt you brushing session. :smile:

            If you wanna try the current setup you can run the script by:

            1. Enter your module-directory: cd ~/MagicMirror/modules
            2. Clone repository : git clone https://github.com/SvenSommer/MMM-OralB
            3. Enter new directory: cd ~/MagicMirror/modules/MMM-OralB
            4. Install dependencies: sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev
            5. Install noble module: npm install noble
            6. Exceute helper programm to find your brushID (this is not the mac-address): sudo node findBrushId.js
              This should lead to a output like
            Searching for OralB Toothbrushes with manufacturerData: "dc00010205030000000101"...
            changed state to:poweredOn
            Found OralB Tootbrush with ID: 544a1621209f
            
            
            1. Copy and paste your ID into the brushTimer.js file: sudo nano brushTimer.js
              (Save and exit with STRG + O and STRG + X )
            "use strict";
            
            var NodeHelper = require("node_helper");
            var noble = require('noble');
            
            //Copy Paste your ID here 
            var toothbrush_uuid = '544a1621209f';
            
            1. Run script with sudo node brushTimer.js
              This should lead to an output like:
            scanning started...
            Toothbrush is running
            0:1
            0:2
            0:3
            0:4
            0:5
            0:6
            0:7
            0:8
            0:9
            0:10
            0:11
            0:12
            0:13
            0:14
            0:15
            0:16
            0:17
            0:18
            Toothbrush stopped. "Cool down" for 32 seconds needed!
            
            

            Looking for some building inspiration?
            Check out my large, thin and metal framed mirror on robstechlog.com.

            Modules released:
            MMM-GoogleAnalytics
            MMM-GrafanaChart
            MMM-GrafanaGauges

            1 Reply Last reply Reply Quote 1
            • FistandantilusF Offline
              Fistandantilus
              last edited by Fistandantilus

              Good morning,

              this is the result of brushtimer.js when I start the brush and stop it just by enableling bluetooth:

              scanning started...
              Toothbrush connection ALIVE atSun Jul 02 2017 07:39:55 GMT+0200 (CEST)
              Toothbrush is running
              0:1
              0:2
              0:3
              0:4
              0:5
              0:6
              0:7
              0:8
              0:9
              0:10
              0:11
              0:12
              0:13
              0:14
              0:15
              0:16
              0:17
              0:18
              0:19
              0:20
              0:21
              0:22
              0:23
              0:24
              0:25
              0:26
              0:27
              0:28
              0:29
              0:30
              0:31
              Toothbrush connection LOST at Sun Jul 02 2017 07:40:27 GMT+0200 (CEST) was alive since Sun Jul 02 2017 07:39:55 GMT+0200 (CEST)
              Cooldown was432033 sec => => resetting timer
              

              When I start the real operating mode the timer doesn´t stop when I stop brushing because the bluetooth connection stays alive. So your described scenario is working as expected.

              Did you try to contact Oral-B to see if there are sdk´s available for other platforms as well? Getting the connection status in a first step is great but of course all other information the brush is sending should be visualized as well to get rid of the mobile app.

              1 Reply Last reply Reply Quote 0
              • FistandantilusF Offline
                Fistandantilus
                last edited by yawns

                Just sent a mail to Oral-B ;)

                Hi,

                you may already have heard about the raspberry pi project Magic Mirror (https://magicmirror.builders/). This is a project to display information on a mirror using a semi transparent mirror glas and a monitor behind. As most mirrors are used in bathrooms what is obviously? Exactly people are using toothbrushes in front of it. The timer and the app you are offering are great but as we already have the possibility to display information on the mirror itself we would like to get rid of addidional equipment and would like to build a module that is able to visualize the information your toothbrushes are sending. We kindly request your support to get that feature into the project.

                best regards,
                Sven

                1 Reply Last reply Reply Quote 0
                • SvenSommerS Offline
                  SvenSommer
                  last edited by SvenSommer

                  That’s an quite a nice offer…
                  Email is out, I’ll keep you updated.

                  Looking for some building inspiration?
                  Check out my large, thin and metal framed mirror on robstechlog.com.

                  Modules released:
                  MMM-GoogleAnalytics
                  MMM-GrafanaChart
                  MMM-GrafanaGauges

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    goofy
                    last edited by

                    Hello,
                    this is a very interesting project :)
                    Do you have any updates for us :)

                    For me - i have also a Oral-B 6500 Series - is it helpful for you to get data from me ?

                    1 Reply Last reply Reply Quote 0
                    • FistandantilusF Offline
                      Fistandantilus
                      last edited by

                      Unfortunately I did not get any response from Braun/Oral B so far :(

                      I’m also still very interested in a working solution. Just a reliable timer which correctly recognizes the running brush would be enough. I don’t need all features the original app has.

                      F.

                      1 Reply Last reply Reply Quote 0
                      • G Offline
                        goofy
                        last edited by

                        Hello,
                        one thing - what for a kind of usb bluetooth stick do you use ?
                        i remember that you need a bluetooth v4.0 to read out data, maybe
                        this is the problem ?

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 7
                        • 7 / 7
                        • 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