npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

homebridge-calendar-scheduler

v2.2.2

Published

Calendar Scheduler plugin for Homebridge, which allows flexible scheduling of triggers with event progress report using any iCal calendar.

Downloads

92

Readme

📅 Homebridge Calendar Scheduler verified-by-homebridge

Support Ukraine Badge "Buy Me A Coffee" "Ko-fi"

npm npm npm

Creating and maintaining Homebridge plugins consume a lot of time and effort, if you would like to share your appreciation, feel free to "Star" or donate.

Click here to review more of my plugins.

Info

Calendar Scheduler plugin for Homebridge, which allows flexible scheduling of triggers with event progress report using any iCal calendar.

Installation

After Homebridge has been installed:

sudo npm install -g --unsafe-perm homebridge-calendar-scheduler@latest

Example Config

{
  "platforms": [
    {
      "platform": "CalendarScheduler",
      "debug": false,
      "calendars": [
        {
          "calendarName": "calendar-1",
          "calendarUrl": "https://calendar.google.com/calendar/ical/{...}.ics",
          "calendarUpdateInterval": 3,
          "calendarTriggerOnUpdates": true,
          "calendarUpdateButton": false,
          "calendarEvents": [
            {
              "eventName": "event-name1"
            },
            {
              "eventName": "event-name-with-retrigger",
              "eventTriggerOnUpdate": true
            }
          ]
        },
        {
          "calendarName": "calendar-2",
          "calendarUrl": "https://calendar.google.com/calendar/ical/{...}.ics",
          "calendarUpdateInterval": 30,
          "calendarTriggerOnUpdates": false,
          "calendarTriggerOnAllEvents": true,
          "calendarEvents": [
            {
              "eventName": "event-name-without-retrigger",
              "eventTriggerOnUpdate": false
            },
            {
              "eventName": "^event-(.*)",
              "eventTriggerOnUpdate": false,
              "calendarEventNotifications": [
                {
                  "notificationName": "event-notification-name-before-start-15m",
                  "notificationStartOffset": -15
                },
                {
                  "notificationName": "event-notification-name-after-start-15m",
                  "notificationStartOffset": 15
                },
                {
                  "notificationName": "event-notification-name-before-end-15m",
                  "notificationEndOffset": -15
                },
                {
                  "notificationName": "event-notification-name-after-end-15m",
                  "notificationEndOffset": 15
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

| Config Field | Description | Default | Required | |-------------------------------|------------------------------------------------------------------------------------------|-----------------------|----------| | platform | Must always be CalendarScheduler. | "CalendarScheduler" | Yes | | caseInsensitiveEventsMatching | Enable for case insensitive events matching globally. | false | No | | unsafeEventNames | Enable unsafe events names globally. (Be careful as this may cause unexpected behavior.) | false | No | | debug | Enable for displaying debug messages. | false | No | | calendars | Array of watched calendars. | [] | No |

| Calendar Config Field | Description | Default | Required | |-------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------|--------------------|----------| | calendarName | A unique name for the calendar. Will be used as the accessory name and default sensor for any calendar events. | "calendar-name1" | Yes | | calendarUrl | The address of the calendar. Can be a webcal://, a http:// or an https:// URL. | "" | Yes | | calendarUpdateInterval | The polling interval the plugin uses to retrieve calendar updates in minutes. If not set, the plugin will update the calendar ones in 60 minutes. | 60 | No | | calendarUpdateButton | If set to true, then button for manual update available for this calendar accessory. | true | No | | calendarTriggerOnUpdates | If set to true, then every minute calendar sensor trigger update if any defined event is active. | true | No | | calendarTriggerOnAllEvents | If set to true, then calendar sensor trigger update if any event is active. | false | No | | caseInsensitiveEventsMatching | Enable for case insensitive events matching for this calendar. | false | No | | unsafeEventNames | Enable unsafe events names for this calendar. (Be careful as this may cause unexpected behavior.) | false | No | | calendarEvents | Array of watched calendar events. | [] | No |

| Calendar Event Config Field | Description | Default | Required | |-------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------|----------| | eventName | A unique name for the calendar event. Will be used as calendar sensor for matched calendar event. Note that this can either be an event name or more generally a regular expression. | "event-name1" | Yes | | eventTriggerOnUpdates | If set to true, then every minute sensor trigger update for active event. | true | No | | caseInsensitiveEventsMatching | Enable for case insensitive events matching for this event. | false | No | | unsafeEventNames | Enable unsafe events names for this event. (Be careful as this may cause unexpected behavior.) | false | No | | calendarEventNotifications | Array of calendar event notifications. | [] | No |

| Calendar Event Notification Config Field | Description | Default | Required | |------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------|----------| | notificationName | A unique name for the calendar event notification. notificationStartOffset or notificationEndOffset field is required to make it work. | "notification-name1" | Yes | | notificationStartOffset | Amount of time in minutes before the event start to trigger the notification. If positive, then notification will be triggered after the event start. If negative, then notification will be triggered before the event start. | undefined | No | | notificationEndOffset | Amount of time in minutes after the event end to trigger the notification. If positive then notification will be triggered after the event end. If negative, then notification will be triggered before the event end. | undefined | No |

Contributing

You can contribute to this homebridge plugin in following ways:

  • Report issues and help verify fixes as they are checked in.
  • Review the source code changes.
  • Contribute bug fixes.
  • Contribute changes to extend the capabilities
  • Pull requests are accepted.

See CONTRIBUTING