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

node-red-contrib-timerswitch

v1.4.0

Published

An easy, intuitive and precise node-red timer that allows you to turn something on/off multiple times a day and supports schedules as low as 1 second.

Downloads

1,097

Readme

node-red-contrib-timerswitch

This node was developed as a scheduler for time-sensitive projects like aquariums and terrariums but can be used for almost any project requiring a timer.

Features

  • A very easy and intuitive configuration interface. There are no bells and whistles that may confuse you
  • Allows for precise timing, turning something on/off at an exact time and for any number of seconds, minutes or hours
  • Gives you the ability to turn something on/off many times a day from a single node
  • Can be controlled by sending messages to this node

Configuration

This node has a very easy to understand interface. Just set the ON/OFF times in hours/minutes/seconds and you're good to go. More information about the configuration can be found in the info tab of the node.

Example: turns on at 8am and off at 9am.

Timer

The timer was designed to be accurate. It will come on/off at the exact time specified while other timers can be off by as much as a minute. It also allows you to set a schedule in seconds, something other times generally don't support or only as a work-around. This makes this timer especially suited for time-sensitive projects.

Example: turns on at 8:15 exactly, and turns off 15 seconds later.

Multiple schedules

This timer has the ability to turn something on/off multiple times a day. Examples could be an automated feeder, terrarium misting systems, garden watering systems and other devices that may need to be turned on/off more than once. Simply click the "add" button to add multiple schedules.

Example: turns on 3 times a day for 15 minutes:

FAQ

  • Why not simply use multiple nodes to control one device? Most of the time you can turn something on/off using multiple nodes, but this can cause problems in certain cases. Imagine you have multiple nodes, and you restart Node-Red. While starting up each node will send a message to say they are either on or off. Which one is correct? Is the device on or off? Sometimes there are ways around that, but this node does not have this problem. It will always know if a device needs to be on or off, and more so, it makes sure you don't mistakenly create overlapping or otherwise inaccurate schedules.

  • What do you mean with accurate? This timer was designed to turn on/off at exact times. Other timers often work using intervals where they check your schedule only once a minute or even less. This means when you want something to come on at 08:00am, it may actually not come on until 30 seconds later. This node does not have this problem, it will come on at exactly 08:00:00am. This may or may not be important to you.

  • Can you add feature X? You can always request additional features, but this node was not designed to have a lot of bells and whistles. It does a simple job and does it well without complicating things. If you need dawn/dusk schedules or other features like that other timers can provide this.

Installation

$ npm install node-red-contrib-timerswitch --save