1.0.1 • Published 9 months ago

mi-service v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

MiService

XiaoMi Cloud Service for mi.com This is a fork from https://github.com/Yonsm/MiService implemented in TypeScript.

Install

npm install mi-service

Usage

const {getService} = require("mi-service");
async function main() {
	const mina = await getService("mina");
	// 获取音响设备列表
	let list = await mina.device_list();
	console.log(list);
}
main().catch((e) => {
	console.error(e);
});
1.0.1

9 months ago

1.0.0

9 months ago