molobrakos / toothbrush

Get very useful and interesting information about your toothbrush
MIT License
20 stars 3 forks source link

[documentation] Missing description of attributes and their values from the json output #2

Open noisy opened 2 years ago

noisy commented 2 years ago

For example, with my toothbrush I'm getting:

{"running": 8, "pressure": 114, "time": 0, "mode": 3, "quadrant": 1}
{"running": 3, "pressure": 114, "time": 17, "mode": 0, "quadrant": 1}
{"running": 3, "pressure": 114, "time": 27, "mode": 0, "quadrant": 1}
{"running": 3, "pressure": 114, "time": 38, "mode": 0, "quadrant": 1}
{"running": 3, "pressure": 114, "time": 48, "mode": 0, "quadrant": 2}
{"running": 3, "pressure": 114, "time": 59, "mode": 1, "quadrant": 2}
{"running": 2, "pressure": 114, "time": 61, "mode": 1, "quadrant": 26}

From that I was able to deduce:

Modes

Value Name
0 daily clean
1 sensitive
2 gum care
3 whiten
4 intense
5 super sensitive
6 tongue clean

Running

Value Name
2 cleaning finished
3 brushing in progress
8 "awake"/"idle"

Can I get different values? 1/4-7? What are their meaning?

Quadrants

I would expect that quadrants would be according to this schema: image

however, I was able to get very values from a very different range during multiple different brushing sessions:

{"running": 3, "pressure": 114, "time": 26, "mode": 6, "quadrant": 0}
{"running": 3, "pressure": 114, "time": 32, "mode": 0, "quadrant": 1}
{"running": 3, "pressure": 114, "time": 42, "mode": 0, "quadrant": 1}
{"running": 3, "pressure": 114, "time": 74, "mode": 0, "quadrant": 2}
{"running": 3, "pressure": 114, "time": 95, "mode": 0, "quadrant": 3}
{"running": 2, "pressure": 114, "time": 0, "mode": 0, "quadrant": 7}
{"running": 3, "pressure": 114, "time": 124, "mode": 0, "quadrant": 33}
{"running": 3, "pressure": 114, "time": 124, "mode": 0, "quadrant": 35}
{"running": 3, "pressure": 114, "time": 164, "mode": 1, "quadrant": 34}
{"running": 2, "pressure": 114, "time": 30, "mode": 6, "quadrant": 40}
{"running": 2, "pressure": 114, "time": 166, "mode": 1, "quadrant": 50}
{"running": 3, "pressure": 114, "time": 186, "mode": 0, "quadrant": 39}
{"running": 2, "pressure": 114, "time": 210, "mode": 0, "quadrant": 47}
{"running": 2, "pressure": 114, "time": 150, "mode": 5, "quadrant": 55}

what possible values for quadrant I can get, and what is their meaning?

Tested on Oral-B series IO, version 9

noisy commented 2 years ago

In general, I am trying to write a module for Magic Mirror. In the end I would like to display as much information as possible. Like, battery status, time and duration of last brushing, score, etc...