remixer-dec / AirPurifierApp

web app + server for xiaomi mi air purifier, based on miio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AirPurifierApp

A small web-app to control Xiaomi Mi Air Purifier (only the 2nd model was tested) and capture its stats.

Screenshot

Installation

  1. Navigate to Server directory
  2. Run npm ci or npm install
  3. Run node miio-fix Starting from v1.1, it runs automatically as postinstall script
  4. Edit config.js (You have to set up miio token first, see more info in miio docs or try to run npx miio discover )
  5. Run node index.js to start the server
  6. If you're using different IP/Port, edit the first line of client.js in the Client directory.
  7. 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)

About

web app + server for xiaomi mi air purifier, based on miio

License:MIT License


Languages

Language:JavaScript 49.3%Language:CSS 30.7%Language:HTML 20.0%