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

@bithead/node-red-ays-agent

v1.1.3

Published

Send sample values from HW/SW agents to the At Your Service Agent Service.

Downloads

23

Readme

Node-RED ays-agent

This provides an interface to the At Your Service agent from within Node-RED. This is accomplished by adding an ays-agent subflow and adding two global environment variables.

Installation

Please note: The agent has only been tested on Node-RED v3.1.6.

Install the Subflow

There are two ways to install the ays-agent subflow.

1. Node-RED

  • Open Node-RED
  • Top right menu button > Settings > Palette > (tab) Install
  • Search for the bithead/node-red-ays-agent module
  • Install

2. NPM

  • Open a terminal
  • Change directory to the Node-RED config directory (e.g. cd ~/.node-red)
  • Install module using NPM npm install @bithead/node-red-ays-agent

Usage

Drag the ays-agent node into your flow. It should be located in the network category.

Connect any of your HW/SW systems to the ays-agent input. The input must be a numeric value.

Parameters:

  • Config global configuration that can be used by an ays-agent node instance
    • Server the location to the AYS Agent Service endpoint
    • Org Secret the respective secret for the organization node sending samples to
    • Parent (optional) the path to the parent node. Set this value if you intend to use the same parent for all agents.
  • Parent Node the path to the parent node. Your child lives under this node. Leave this empty to use the Config.Parent Node value. Otherwise, it will override the value.
  • Child Node The name of the child node. Please use the character range [a-z0-9], or the hyphen (-) character, where the first character in the name is a letter. e.g. my-node-01
  • Monitor Name (optional) The name of the monitor. If none is provided, node-red is used.
  • Threshold (optional) Trigger a threshold if a value falls outside of specified range. Refer to the ays-agent API docs for a list of supported threshold formats.
  • Heartbeat (optional) The default is set for 5 minutes. If you don't want to monitor the node, set the heartbeat value to 0.
  • Template (optional) Adopt a template located at the specified node path.

Debugging

The ays-agent subflow emits node.errors messages (which can be seen in the Debug panel) and provides node status messages hints that display under the ays-agent subflow instance. If an node status is displayed, please open the Debug menu for more information.

The most common problems are:

  • A required parameter is not provided
  • Connection to the AYS server failed

Help

Do you need help configuring the agent? Do you have a feature suggestion? If so, please call me at 253-329-1280.