Skip to content

OralB Toothbrush integration for MagicMirror by Michael Teeuw

License

Notifications You must be signed in to change notification settings

ThomasMirlacher/MMM-OralB

 
 

Repository files navigation

MMM-OralB

This a module for the MagicMirror². It tries to discover a OralB Toothbrush and starts a timer while its connected.

Preview

Installation

  1. Enter 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
  6. Configure node/electron so that noble scanning can be executed without root permissions:
sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
sudo setcap -r cap_net_raw+eip ~/MagicMirror/node_modules/electron/dist/electron

#As a sideeffect electron cannot find the shared objects (since it's not compiled with the proper -rpath set):
sudo cp -l ~/MagicMirror/node_modules/electron/dist/libnode.so /usr/lib/
sudo cp -l ~/MagicMirror/node_modules/electron/dist/libffmpeg.so /usr/lib/

Integration

Add module information to your ~/MagicMirror/config/config.js.

Here is an example of an entry in config.js:

{
	module: 'MMM-OralB',
	position: 'bottom_left',
	config: {
		autoHide: 5		// autohide after 5 seconds inactivity
	}
},

Special Thanks

About

OralB Toothbrush integration for MagicMirror by Michael Teeuw

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.9%
  • CSS 7.1%