GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - EasyPi/docker-node-red: 🫟 A tool for wiring together hardware devices, APIs and online services

BranchesTags
Open more actions menu

Latest commit

 

History

70 Commits
70 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 
nginx.conf
nginx.conf
 
 

Repository files navigation

node-red

Build

ARCH IMAGE SIZE
amd64+arm64 Image Tag Image Size

Node-RED is a tool for wiring together hardware devices, APIs and online services in new and interesting ways.

Current Version: Latest Latest

directory tree

~/fig/node-red/
ā”œā”€ā”€ docker-compose.yml
└── data/
    ā”œā”€ā”€ bin/
    │   └── go-chromecast
    ā”œā”€ā”€ flows_cred.json
    ā”œā”€ā”€ flows.json
    ā”œā”€ā”€ lib/
    │   └── flows
    └── settings.js

Note

The node-red/data directory will be created after first running.

docker-compose.yml

services:
  node-red:
    image: easypi/node-red
    ports:
      - "1880:1880"
    volumes:
      - ./data:/data
      - /dev/input:/dev/input
    privileged: true
    restart: unless-stopped

settings.js

module.exports = {
    adminAuth: {
        type: "credentials",
        users: [{
            username: "admin",
            password: "$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN.",
            permissions: "*"
        }],
        tokens: function(token) {
            return new Promise(function(resolve) {
                if (token === "******") {
                    resolve({
                        username: "admin",
                        permissions: ["*"]
                    });
                } else {
                    resolve(null);
                }
            });
        },
        default: {
            permissions: "read"
        }
    },
}

Tip

Password hash can be generated by running node-red admin hash-pw https://nodered.org/docs/security

up and running

$ docker-compose up -d

$ docker-compose exec node-red node-red admin hash-pw
>>> Password: ******
... $2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN.

$ vim data/settings.js

$ docker-compose exec node-red bash
>>> cd /data
>>> apk add -U build-base
>>> npm install node-red-node-irc
>>> npm install node-red-node-daemon
>>> exit

$ docker-compose restart

$ curl -sSfH "Authorization: Bearer ******" http://localhost:1880/diagnostics

Tip

Install nodes from node-red-nodes.

About

🫟 A tool for wiring together hardware devices, APIs and online services

Topics

dockeriotnode-redraspberry-pi

Resources

Readme
Activity
Custom properties

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.