在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:kcharwood/homebridge-suncalc开源软件地址:https://github.com/kcharwood/homebridge-suncalc开源编程语言:JavaScript 100.0%开源软件介绍:homebridge-suncalcSuncalc plugin for Homebridge that publishes a custom HomeKit accessory that emits an enum value declaring the time period of the day. Note that since this is a custom value, not all HomeKit apps will display the value.
This is intended for use in triggering scenes using sunrise and sunset. OffsetTrigger off a time relative to sunset/sunrise is useful for light triggers. This plugin allows you to specify an offset for the end of sunrise, and the beginning of sunset. For instance, if you want to trigger a scene to start 30 minutes before sunset (useful for interior lighting), you can specify an sunsetStart offset of -30 in the config.json file, as shown below. This fires the trigger 30 minutes earlier than normal, allowing your lights to come on as it gets darker at your location. Installation
Configuration{
"accessory": "Suncalc",
"location": {
"lat": 30.506667,
"lng": -97.830278
},
"offset": {
"sunriseEnd" : 30,
"sunsetStart" : -30
},
"name": "Suncalc"
} Fields:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论