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-andinox1

v0.1.0

Published

A Node-RED filter-node that handles messages from the Andino X1 Board.

Downloads

30

Readme

Node Red Messages from the Andino X1 Board

A Node-RED node that handles messages from the Andino X1 Board.

Andino X1 - Raspberry Pi on DIN Rail


How to Install

1.) Some preperation

First of all you need Git

sudo apt -y install git

Enable the communication to the Arduino via /dev/ttyAMA0. Please see here

2.) Node Red for Raspberry Pi

2.1) Useful extensions

To save write cycles on your SD Card you can install Log2Ram which stores the Log Files in memory.

sudo apt -y install git
git clone https://github.com/azlux/log2ram.git
cd log2ram
chmod +x install.sh
sudo ./install.sh
sudo reboot now 

check if its running

df -h
log2ram          40M  452K   40M   2% /var/log

After that you can install Node Red First Node.js

bash <(curl -sL https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered) 

run Node Red from terminal

node-red-pi

To run Nore-Red in background on boot:

 sudo systemctl enable nodered.service

3.) Node for Andino X1

Run the following command in your Node-RED user directory - typically ~/.node-red

npm install node-red-contrib-andinox1

What this Node does is 1.) Convert the Serial Message vom the Arduino Controller to an Payload Object so that you can access payload.Counter1 for instance. 2.) Convert a Boolean to a Relay-Message for the Microcontroller (see the Example)

From the Controller

msg.payload : string[23]
":0664{0026,0016}{1,0}↵"

After the Andino Node

msg.payload : Object
{ Counter1: 38, Counter2: 22, Pin1: 1, Pin2: 0 }

Usage

Wire the ttyAMA0 to the input and set the filter to Events. Wire the output to ttyAMA0, configure Relais1 or Relais2 and send true/false 0/1 to set the relais.

Example


Flow

Node Red Example


Dashboard

Node Red Dashboard


Properties

Node Red - Andino X1 Properies


Output Payload

Node Red - Andino X1 Payload


Serial Settings

Node Red - Andino X1 Serial Settings

Some infos and Samples about Node Red

https://randomnerdtutorials.com/getting-started-with-node-red-on-raspberry-pi/

Author