timodejong95 / MMM-BluetoothDevices

Magic mirror module for bluetooth devices
7 stars 2 forks source link

How to find MAC address of tooth brush #3

Closed Jimster1 closed 4 years ago

Jimster1 commented 4 years ago

Any tips on how to find the MAC address of the toothbrush to add tot the config ?

Thanks Jim

timodejong95 commented 4 years ago

Hey @Jimster1,

Sorry for my late reply.

If you haven't figured it out already you can search bluetooth devices with this command:

hcitool scan

I have noted this and I will put this in the documentation, when I got some time.

Jimster1 commented 4 years ago

I tried this but it does not return anything?

pi@raspberrypi_MM:~/MagicMirror/modules/MMM-BluetoothDevices $ hcitool scan Scanning ... pi@raspberrypi_MM:~/MagicMirror/modules/MMM-BluetoothDevices $

timodejong95 commented 4 years ago

Hey @Jimster1,

My bad, I haven't documentated this part when I build it.

I checked it and what you have to do is use bluetoothctl, run:

sudo bluetoothctl

Then you will see:

Agent registered
[bluetooth]#

If you then prompt the following command:

scan on

All bluetooth devices will show in a list. It might take a bit for the bluetooth device to be discovered. You also want to press a button on the toothbrush so the device will send a bluetooth message.

Can you confirm this worked?

Jimster1 commented 4 years ago

amazing, that worked a treat. Thank you