Simple tools using Xiaomi MiHome devices.
- run
npm install
- run
npm install -g miio
, if you want to discover devices usingmiio discover
Currently, you can only have your air purifier have an upper limit for automatic operation.
This can be configured in the air.js (set your IP).
Then start the script by running npm start
or node index.js
.
Node 8+ is required due to the use of async
/await
.
Please note the licenses of RxJS and miio
, and other npm packages utilized (package.json
).
The code itself is merely an example usage, you can do what the fuck you want:
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <[email protected]>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.