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-advanced-timer

v1.1.1

Published

homebridge advanced timer, with homekit and iOS shortcut, you could do much more things.

Downloads

38

Readme

homebridge-advanced-timer

1) Description

advanced timer, get full use of iOS automation.

features

  • controled by a Homekit switch, easy to control.
  • setting up interval plan, and can loop infinite or loop certain cycles.

limitations

  • after homebridge restart, can only start from the loop beginning
  • ......

examples

  • every 30 mins, heat your room for 10 mins.
  • check home temperature every 5 mins, and change heater target temperature.
  • ......

2) Configure

trigger mode

note: trigger plan(intervals): 2,6

config.json field

| field name | type | required | default | range | description | | :------------------------: | :----: | :------: | :-------------: | :---------: | ------------------------------------------------------------ | | accessory | string | yes | 'advanced_timer' | 'advanced_timer' | MUST BE 'advanced_timer' | | name | string | yes | 'AdvancedTimer' | --- | device name shows in HomeKit. we don't need it, but homebridge need it. | | intervals | string | yes | --- | --- | Comma-separated trigger plan, every interval(in second), if pulse trigger mode is selected, all interval value should longer than trigger_duration below. | | repeat | int | no | 0 | 0 to 86400 | How many trigger plan cycles repeat, 0 for infinite loop. | | enable_name | string | no | 'Enable' | --- | Timer enable switch name shows in HomeKit | | trigger_name | string | no | 'Trigger' | --- | Timer trigger indicator name shows in HomeKit. | | trigger_type | int | no | 1 | 0, 1 | like electronic, trigger type has two different type:0: Pulse1: TTL | | pulse_trigger_duration | int | no | 3 | 1 to 3 | Each time a trigger signal last duration, in second,only works in Pulse trigger type | | start_delay(unit: second) | int | no | 0 | 0 to 86400 | After timer enable status set to enable, delay before trigger plan starts, only works in TTL trigger type. | | stop_delay(unit: second) | int | no | 0 | 0 to 86400 | Delay after trigger plan stops or after timer enable status set to disable, only works in TTL trigger type. | | enable_status_when_start | int | no | 2 | 0, 1, 2 | Enable status after Homebridge start.0: OFF,1: ON,2: Last Status. | | trigger_status_when_start | int | no | 2 | 0, 1, 2 | Enable status after Homebridge start.0: OFF,1: ON,2: Last Status. | | trigger_status_while_enabled | int | no | 0 | 0, 1, 2 | Trigger status while service enabled.0: Not Triggered,1: Triggered,2: Last Status. | | trigger_status_while_disabled | int | no | 0 | 0, 1, 2 | Trigger status while service disabled.0: Not Triggered,1: Triggered,2: Last Status. |

example of config.json file

"accessories": [
    {
        "name": "heater_timer",
        
        // trigger plan:
        // trigger after 5s then trigger after 10s, means trigger at 5s and 15s
        "intervals": "5,10",
        
        // repeat trigger plan for 4 times
        "repeat": 4,
        "enable_name": "Enable",
        "trigger_name": "Trigger",
        "enabled_status_after_restart": 2,
        "trigger_duration": 3,
        "accessory": "advanced_timer"
    }
]

3) How to contribute

everyone is welcome to contribute to this plugin. PR/issue/debug all are welcome.

or you can send me an e-mail: [email protected]