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:
- Enter your module-directory:
cd ~/MagicMirror/modules
- Clone repository :
git clone https://github.com/SvenSommer/MMM-OralB
- Enter new directory:
cd ~/MagicMirror/modules/MMM-OralB
- Install dependencies:
sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev
- Install noble module:
npm install noble
- 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
- 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';
- 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!