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

smithtek-node-red-duty-standby

v0.1.0

Published

NodeRED nodes to manage duty cycles of pumps.

Downloads

4

Readme

Node-RED SmithTek Node

This is a Node-RED node used to interact with the SmithTek service.

Installation --

npm install smithtek-node-red-duty-standby or install using pallete manager

The smithtek-nodered node for Node-RED is available as an npm package. We recommend you to read Node-RED documentation if you have any doubts installing nodes in the platform.

Usage

There are 4 different nodes: One for controlling the pumps, and 3 for formatting input msg.payload into the command format for that controller.

Smithtek Duty/Standby Controller

This Node will control two pumps, turning on and off the pumps in a 2 to 1 ratio, with the ability to specify the primary pump. The controller will attempt to start a pump and if it doesn't receive a sense flow signal in the specified time out, will attempt to switch pumps.

These are the properties you should configure, by double clicking the node:

  • Flow Sense Delay: This amount of time to wait for the flow sense signal before switching pumps.
  • Primary Pump: Which pump is primary (will run twice and then run the secondary once)

Commands

There are three commands that this node takes as input.

  • startStop: This is the command to start and stop the pump. It has the format of:
{
  payload: {
    cmd:"startStop",
    value: true/false or 1/0
  }
}
  • senseFlow: This is the command to indicate that flow has been sensed. True indicates flow has been detected. It has the format of:
{
  payload:{
    cmd:"senseFlow",
    flow: true/false or 1/0
  }
}
  • pumpTrip: This is the command to lock/clear a pump. True will lock the pump, False will clear the lock. It has the format of:
{
  payload:{
    cmd:"pumpTrip",
    value:{
      pump: 1 or 2,
      trip: true/false or 1/0
    }
  }
}

Outputs

  • pump 1: Output to control pump 1
  • pump 2: Output to control pump 2
  • no flow 1: True indicates no flow detected while running pump 1
  • no flow 2: True indicates no flow detected while running pump 2

SmithTek startStop Formatter

This node is used to format the msg.payload on the input into the startStop command above. The incoming payload will become the value on the command.

SmithTek senseFlow Formatter

This node is used to format the msg.payload on the input into the senseFlow command above. The incoming payload will become the flow on the command.

SmithTek pumpTrip Formatter

This node is used to format the msg.payload on the input into the pumpTrip command above. The incoming payload will become the value.trip on the command.

These are the properties you should configure, by double clicking the node:

  • Pump Number: Which pump is this for, it will become the value.pump in the output command.

Development

If you want to modify this extension, you just have to run npm install or yarn install to fetch and install the dependencies.

To install the development version and use it on your Node-RED instance, you can execute npm link on this folder and then execute npm link smithtek-nodered in your ~/.nodered folder.

License

Copyright (c) 2020 www.smithtek.com.au Licenced under the terms of the GPLv3

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DAMIEN CLARK BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Acknowledgements

We would like to thank the following people for their hard word, time and effort. For without them this node would not be possible � sensorhub.tech � Nick O'Leary and Dave Conway-Jones for creating Node-Red