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-eggtimer-plugin

v1.0.34

Published

Egg Timers for Homebridge: https://github.com/nfarina/homebridge

Downloads

21

Readme

node npm npm version Node.js CI

verified-by-homebridge

Homebridge Egg Timer Plugin

Example config.json:

    "accessories": [
        {
            "name": "Timer Bulb 1",
            "interval": 60000,
            "stateful": false,
            "occupancySensor": false,
            "accessory": "EggTimerBulb",
        },
    ]

This plugin will create a fake bulb that provides an everyday egg-timer for automations. Brightness is used as an indicator of the time remaining and can be adjusted after the time has started. When turned, the brightness will be decremented at set intervals (per minute by default). HomeKit automations can be triggered based on the timer commencing (bulb on) and on completion (bulb off).

Unlike homebridge-delay-switch, the timer length is provided each time - similar to a real-world egg timer.

This was created originally created to help with kids' bedtime routines, where nightlights would be turned off automatically after an allowed amount of reading time (call me crazy, its 2023).

Other example usages found since:

  • Automating a desk heater for bursts of heat in the winter.
  • Running our air-con for a while and having it turn off automatically.

Parameters

| Parameter | Description | Default | | --------- | ----- | ------- | | interval| How often to decrement the brightness. | 60000 (1 minute) | | stateful| Persist the timer state between restarts. | false | | occupancySensor| Add an occupancy sensor that reflects the timer's current state. | false |

Development

The below config.json can be placed in ~/.homebridge/config.json, or extend local ones. Then use pnpm link; pnpm debug to validate.

{
    "bridge": {
        "pin": "123-45-679",
        "port": 51761,
        "name": "Homebridge Test",
        "username": "0E:BD:3C:CC:A7:E1"
    },
    "accessories": [
        {
            "name": "Simple",
            "interval": 5000,
            "occupancySensor": false,
            "accessory": "EggTimerBulb"
        },
        {
            "name": "Occupancy",
            "interval": 1000,
            "occupancySensor": true,
            "accessory": "EggTimerBulb"
        },
        {
            "name": "Stateful",
            "interval": 10000,
            "accessory": "EggTimerBulb",
            "stateful": true
        },
        {
            "name": "StatefulOccupancy",
            "interval": 1000,
            "occupancySensor": true,
            "accessory": "EggTimerBulb",
            "stateful": true
        }
    ]
}