在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:bfishadow/homebridge-laser-egg开源软件地址:https://github.com/bfishadow/homebridge-laser-egg开源编程语言:JavaScript 100.0%开源软件介绍:homebridge-laser-eggScroll down for Chinese. AboutThis is a Homebridge plugin to add HomeKit support to the first generation Laser Egg air quality monitors. Laser Egg is a sleek AQI monitor. However the 1st gen Laser Eggs don’t have HomeKit support, while the newer model does. This plugin will save some money if you don’t need more features but the HomeKit integration. This plugin was inspired by homebridge-airnow, a plugin which fetch data through API. The Laser Egg doesn’t have an API. Yet we analyzed the iOS app traffic and find the data points. These data, however, are not encrypted. @ohdarling88 contributed all the codes. @bfishadow found the data source and wrote this readme. Usage
ConfigGet the right IDEach Laser Egg has a unique UDID. But the API uses another ID called Laser Egg ID. You will call manufacturer’s API to get the
All step by step screenshots are in the SampleHere’s the sample config file. In this case you have two laser eggs in your home. {
"accessories":[
{
"accessory":"laser-egg",
"name":"Laser Egg 1",
"laser_egg_id":"12345",
"polling":"5"
},
{
"accessory":"laser-egg",
"name":"Laser Egg 2",
"laser_egg_id":"12346",
"polling":"5"
}
]
} Here are the explanations for each data field. All fields are required.
homebridge-laser-egg关于这是一个为第一代镭豆空气质量监测器增加 HomeKit 支持的 Homebridge 插件。 “镭豆”是一个好用且漂亮的空气质量监测器。但第一代镭豆产品并没有支持苹果的 HomeKit,较新的型号才有。如果你不需要新款镭豆的其他功能,只需要 HomeKit 支援,又想省点钱,那么请使用本插件。 这个插件的灵感来自 homebridge-airnow 插件,它通过读取第三方 API 接口获取数据。虽然镭豆并没有开放 API 接口,但我们分析了 iOS 应用的流量,找到了数据源。更有趣的是,这些数据并未加密。 于是,@ohdarling88 写了所有的代码,发现数据源的 @bfishadow 撰写了本教程。 用法
配置取得正确的 ID每一款镭豆都有一个独立的 UDID,但他们的 API 却在使用另一个称为 Laser Egg ID 的 ID。因此,你需要调用一次厂商的 API 来获取
如果有困难,可以参考 配置示例以下是一个配置文件的部分,假设你家有两台镭豆。 {
"accessories":[
{
"accessory":"laser-egg",
"name":"Laser Egg 1",
"laser_egg_id":"12345",
"polling":"5"
},
{
"accessory":"laser-egg",
"name":"Laser Egg 2",
"laser_egg_id":"12346",
"polling":"5"
}
]
} 以下是各个字段的含义,所有字段都是必须填写的。
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论