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

@hj91/node-red-contrib-stop-watch

v1.0.1

Published

A Node-RED node that functions as a stopwatch, capable of starting, stopping, and resetting based on incoming messages.

Downloads

99

Readme

node-red-contrib-stop-watch

A Node-RED node that functions as a stopwatch, capable of starting, stopping, and resetting based on incoming messages. The time is displayed in the format hh:mm:ss.

Install

To install this node, run the following command in your Node-RED user directory (typically ~/.node-red):

npm install node-red-contrib-stop-watch

Usage

After installing, you can find the node in the "Bufferstack.IO" category within the Node-RED editor.

Configuration

  • Name: The name of the node, which can be used to label it in your flows.

Messages

The node responds to messages with the following topics:

  • start: Starts the stopwatch when the payload is true.
  • stop: Stops the stopwatch when the payload is true.
  • reset: Resets the stopwatch to 00:00:00 when the payload is true.

Output

The node outputs the current stopwatch time as a string in the format hh:mm:ss every second while running.

Potential Use Scenarios

  • Cycle Time Measurement in Manufacturing: Track the time taken for each cycle in a manufacturing process to identify bottlenecks and optimize production efficiency.
  • Task Duration Tracking in Project Management: Monitor the time spent on tasks and activities to enhance productivity and ensure project timelines are met.
  • Automation Processes: Use as part of automated workflows to measure and respond to the duration of various processes, enhancing control and precision in operations.
  • Cooking and Baking: Keep track of cooking and baking times in automated kitchen setups, ensuring consistency and quality in culinary tasks.
  • Healthcare Applications: Measure and track time-sensitive medical procedures or treatment durations to ensure adherence to protocols and improve patient care.
  • Laboratory Experiments: Monitor and record the duration of various steps in scientific experiments to ensure accuracy and reproducibility.

Example Flow

Here's an example flow demonstrating how to use the stopwatch node:

[{"id":"a1","type":"inject","z":"1","name":"Start","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"payload":"true","payloadType":"bool","topic":"start","x":150,"y":60,"wires":[["b1"]]},{"id":"a2","type":"inject","z":"1","name":"Stop","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"payload":"true","payloadType":"bool","topic":"stop","x":150,"y":120,"wires":[["b1"]]},{"id":"a3","type":"inject","z":"1","name":"Reset","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"payload":"true","payloadType":"bool","topic":"reset","x":150,"y":180,"wires":[["b1"]]},{"id":"b1","type":"stopwatch","z":"1","name":"Stopwatch","x":340,"y":120,"wires":[["debug1"]]},{"id":"debug1","type":"debug","z":"1","name":"Debug","active":true,"console":"false","complete":"payload","x":510,"y":120,"wires":[]}]

License

This project is licensed under the GPL-3.0 License. See the LICENSE file for details.

Author

Created by Harshad Joshi.

Links