https://github.com/hypfer/mikettle2mqtt
Mi Kettle to mqtt bridge
https://github.com/hypfer/mikettle2mqtt
Last synced: about 1 year ago
JSON representation
Mi Kettle to mqtt bridge
- Host: GitHub
- URL: https://github.com/hypfer/mikettle2mqtt
- Owner: Hypfer
- Created: 2019-08-17T16:57:00.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-22T11:02:00.000Z (over 6 years ago)
- Last Synced: 2025-02-13T16:44:12.987Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mikettle2mqtt
**Deprecated** Use [https://github.com/Hypfer/Cybele](https://github.com/Hypfer/Cybele)
**This is just a somewhat working prototype.**
It will most likely stay like this since the noble library seems to be unmaintained and rather broken.
Since actively connecting to one device seems to break access to other devices, I moved this from ble2mqtt to a seperate project.
To keep things somewhat reliable, this program exits every time the kettle disconnects.
This is not how anything should ever work at all. You've been warned.
I also had to add some modifications to the noble library to get it working at all. [https://github.com/Hypfer/noble](https://github.com/Hypfer/noble)
## Installation
* git clone
* npm install
* copy config.default.json to config.json and edit for your setup
Since using raw sockets apparently requires root, you might need to run ``sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)`` if you want to run mikettle2mqtt as a regular user like a reasonable human being.
For persistence, you'll find a simple systemd unit file in the deployment folder. Don't forget to specify the correct paths.
## Notes
This library is much better: [https://github.com/drndos/mikettle](https://github.com/drndos/mikettle)
Please build an application with it to make this mess obsolete.