在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:grover/homebridge-calendar开源软件地址:https://github.com/grover/homebridge-calendar开源编程语言:JavaScript 100.0%开源软件介绍:homebridge-calendarA calendar plugin for homebridge, which allows flexible scheduling of triggers using any iCal calendar. HomeKits own scheduling means are limited and in some instances not flexible enough for more advanced scheduling needs. This plugin integrates any iCal calendar (iCloud, Google Calendar, ...) into HomeKit and creates stateless switches for the events in the calendar using the scheduled event summary. StatusSupported calendars
In theory any calendar solution that supports iCal (RFC 5545) and sharing should work, however some vendors choose to deviate from the RFC in their implementation. If you use one that works, but isn't on the list - great please add it to this README.md. InstallationAfter Homebridge has been installed:
Configuration{
"bridge": {
...
},
"platforms": [
{
"platform": "Calendar",
"calendars": [
{
"name": "Cal 1",
"url": "webcal://",
"pollingInterval": 5,
"offset": "-8h",
"sensors": [
"Sensor 1",
"Sensor 2"
]
}
]
}
]
}
The above example creates the plugin with three contact sensors:
Calendar events may overlap, may be full day, recurring or single occurance events and can even span multiple days. OffsetYou might want to trigger the sensors earlier than the scheduled event. This can be done by applying an offset to the calendar. An offset specifies the time to subtract from the scheduled start of the event. The offset essentially moves the start date ahead by the specified amount of time. The end date of the events is unaffected. Essentially this extends the event duration by the offset. Offset syntaxAn offset is a combination of a number and a postfix that indicates the unit of time to move. The supported offset postfixes are the following:
An offset is always negative, e.g. it moves the start to an earlier time. You can specify the minus in front of the offset. Positive offsets (with a plus symbol in front) to move to a later time are not supported. Sharing an iCloud calenderTo give the plugin access to a calender it is advised to create a seperate (iCloud) calender and share it publically. Public sharing provides a read-only view on the calender and a URL that can be used by the plugin to access the calender. No one else can modify a publically shared calender in this way. Here's good instructions on how to do this. Refer to the public sharing section there. ContributingYou can contribute to this homebridge plugin in following ways:
Pull requests are accepted. Some asks for friendly gesturesIf you use this and like it - please leave a note by staring this package here or on GitHub. If you use it and have a problem, file an issue at GitHub - I'll try to help. If you tried this, but don't like it: tell me about it in an issue too. I'll try my best to address these in my spare time. If you fork this, go ahead - I'll accept pull requests for enhancements. LicenseMIT License Copyright (c) 2018 Michael Fröhlich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论