• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
  1. Home
  2. timodejong95
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
T
Offline
  • Profile
  • Following 0
  • Followers 0
  • Topics 0
  • Posts 18
  • Groups 0

timodejong95

@timodejong95

3
Reputation
31
Profile views
18
Posts
0
Followers
0
Following
Joined Mar 21, 2020, 11:46 AM
Last Online Oct 19, 2020, 6:44 PM

timodejong95 Unfollow Follow

Best posts made by timodejong95

  • RE: MMM-OralB / Bluetooth equipped toothbrush integration

    Hey guys,

    I have tracked this topic for a while and I have created an own module for bluetooth devices based on (https://github.com/Hypfer/Cybele). Currently only Oral B toothbrush is supported: https://github.com/timodejong95/MMM-BluetoothDevices

    I am still testing it but it seems to work stable’ish. Although I cannot test it with an actual mirror because that is still work in progress. If you want to check it out and test be my guest. If you have any improvements or tips let me know!

    Hope this helps out.

    posted in Development
    T
    timodejong95
    Mar 21, 2020, 12:00 PM
  • RE: MMM-OralB / Bluetooth equipped toothbrush integration

    @lavolp3 Oke I have pushed some changes, see: https://github.com/timodejong95/MMM-BluetoothDevices. Don’t forget npm install.

    I updated the configuration see docs. You need to add a track key to the device config with the value ‘battery’:

    example:

    devices: [
      { type: 'OralBToothbrush', name: 'oralb', mac: 'xxx', tracks: ['battery'], format: 'formatted' },
    ],
    

    It’s still a bit buggy let me know what your experience is!

    posted in Development
    T
    timodejong95
    Apr 19, 2020, 7:10 PM
  • RE: MMM-OralB / Bluetooth equipped toothbrush integration

    @lavolp3 No worries, check I will have a look at this when I find some time, probably this weekend. Seems that the devices couldn’t connect at the first try but failed in de second which is triggered instantly.

    @djerik Thanks for sharing

    I will try and fix the issues you send to be, thanks for sharing and excuses for the bugs! I might write some tests because the manual tests are stacking up and code coverage is always good.

    posted in Development
    T
    timodejong95
    Apr 23, 2020, 10:12 AM

Latest posts made by timodejong95

  • RE: MMM-OralB / Bluetooth equipped toothbrush integration

    @lavolp3 Nice, yeah thats still a thing. I thought it was the way it connects, but the devices automatically disconnects after 20-30 seconds. When disconnected its not able to get the battery status. So what I build that if the devices is disconnected at the first 5 seconds of brushing it’s going to reconnect (1 try). If that succeeds it gets the battery value. If not well, then sadly not.

    I haven’t figured out a solution to keep it connected throughout the whole session or just forever. My guess is, the brush might expect data to be send to keep the connection active/alive.

    In the logs I see that the reconnection has failed, do you got that every session? Else I might increase the reconnection attempts to 2.

    posted in Development
    T
    timodejong95
    Apr 27, 2020, 8:37 AM
  • RE: MMM-OralB / Bluetooth equipped toothbrush integration

    I have just pushed some new changes which improve connecting, and a few tests cases for device connection. It requires a npm install.

    @lavolp3 and @djerik if you have some time could you try it out? Also I though you already had it on but if not it might be handy to enable debugLogs.

    Also I want to thank you for the time you put into this and help me by providing logs and errors so I can improve the module.

    posted in Development
    T
    timodejong95
    Apr 25, 2020, 2:24 PM
  • RE: MMM-OralB / Bluetooth equipped toothbrush integration

    @lavolp3 Oké check, well no need to try again tonight because your up-to-date then. I will let you know when I have looked at it. For now you can prevent the errors by removing the battery in the tracks array.

    posted in Development
    T
    timodejong95
    Apr 23, 2020, 11:39 AM
  • RE: MMM-OralB / Bluetooth equipped toothbrush integration

    @lavolp3 Check I get you. Just to be sure, you did do npm install I changed a package? If not then I will comeback to it when I have tested it myself.

    posted in Development
    T
    timodejong95
    Apr 23, 2020, 10:38 AM
  • RE: MMM-OralB / Bluetooth equipped toothbrush integration

    @lavolp3 No worries, check I will have a look at this when I find some time, probably this weekend. Seems that the devices couldn’t connect at the first try but failed in de second which is triggered instantly.

    @djerik Thanks for sharing

    I will try and fix the issues you send to be, thanks for sharing and excuses for the bugs! I might write some tests because the manual tests are stacking up and code coverage is always good.

    posted in Development
    T
    timodejong95
    Apr 23, 2020, 10:12 AM
  • RE: MMM-OralB / Bluetooth equipped toothbrush integration

    @lavolp3 Damm ashame, could you post the logs above the error? If correct there should be 2 more error logs, and just to be sure it still works when you remove the battery track, right?

    posted in Development
    T
    timodejong95
    Apr 20, 2020, 9:41 AM
  • RE: MMM-OralB / Bluetooth equipped toothbrush integration

    @lavolp3 Oke I have pushed some changes, see: https://github.com/timodejong95/MMM-BluetoothDevices. Don’t forget npm install.

    I updated the configuration see docs. You need to add a track key to the device config with the value ‘battery’:

    example:

    devices: [
      { type: 'OralBToothbrush', name: 'oralb', mac: 'xxx', tracks: ['battery'], format: 'formatted' },
    ],
    

    It’s still a bit buggy let me know what your experience is!

    posted in Development
    T
    timodejong95
    Apr 19, 2020, 7:10 PM
  • RE: MMM-OralB / Bluetooth equipped toothbrush integration

    I have been debugging it and it seems that the devices is ‘just’ being disconnected:

    HCI Event: Disconn Complete (0x05) plen 4
        status 0x00 handle 64 reason 0x13
        Reason: Remote User Terminated Connection
    

    I do not know why :/

    posted in Development
    T
    timodejong95
    Apr 18, 2020, 9:30 PM
  • RE: MMM-OralB / Bluetooth equipped toothbrush integration

    @lavolp3

    Haha thanks man.

    I have made some big changes, improved connecting devices, GATT service, characteristics and some more. I have also managed to get the battery value, but I have an issue: after around 15-30 seconds after connection successfully to the device the connection drops:

    {"ServicesResolved":false,"Connected":false}
    

    I haven’t figured out why this happens, all the normal data is still received. Only the battery status not, it needs to be connected. I haven’t push anything to the repo yet. First I want to look if I can get it working (fully).

    Are you experiencing the same with noble or can you get the battery status after 30 seconds or 1 minute plus?

    I keep you updated.

    posted in Development
    T
    timodejong95
    Apr 18, 2020, 5:38 PM
  • RE: MMM-OralB / Bluetooth equipped toothbrush integration

    @lavolp3 Thanks, I will have a look at that this weekend.

    Also managed to connect to the services and characteristics. But how did you know the one you needed?

    Because you only connecting to the 3th key in the services array and a hardcoded uuid for the characteristics. I am curious how you find the one you needed.

    posted in Development
    T
    timodejong95
    Apr 17, 2020, 6:41 AM
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