A small web-app to control Xiaomi Mi Air Purifier (only the 2nd model was tested) and capture its stats.
- Navigate to Server directory
- Run
npm ci
ornpm install
RunStarting from v1.1, it runs automatically as postinstall scriptnode miio-fix
- Edit config.js (You have to set up miio token first, see more info in miio docs or try to run
npx miio discover
) - Run
node index.js
to start the server - If you're using different IP/Port, edit the first line of client.js in the Client directory.
- Run any http-server in the Client directory
Libraries used (licenses): Vue(MIT), FontAwesome4(MIT+OFL), miio(MIT), Chart.js(MIT), nodejs-websocket(MIT), workbox(MIT)