Giter Site home page Giter Site logo

openwrt-node-red's Introduction

openwrt-node-red

platform

A packaging up of Node-RED for OpenWRT.

The dist directory contains the .ipk file you need to download and install. For example

opkg install node-red_1.0.6.ipk

Build scripts

The scripts can help you to recreate this yourself.

  • buildNR.sh - installs node.js and then Node-RED from npm and then several extra nodes into /etc/node-red. This is where you can add your customised nodes.
  • ipk-pack.sh - removes un-needed cruft, creates needed control files, and then creates the .ipk file
  • packit - a helper script that can be run on your host machine to automate the packaging by copying the necessary files to the target device, then calling ipk-pack, and then copying the created file back to your host.

Other files

  • flows.json, flows_cred.json - Default flow file to load - Customise this if you want to start with something special.
  • node-red - the init.d script that starts and stops Node-RED as a service.

OpenWRT admin menu - Luci files

OpenWRT uses Luci as it's admin web UI. The files in the luci directory can be used to add Node-RED to the admin menu so you can easily see the log (usually at /var/log/node-red.log).

The addluci.sh script will copy them into the correct place (as of Oct 2018), you will need to restart luci (or reboot).

The status.lua file currently just copies over the existing one. This may cause problems in the future if the order of items in the default file changes. There doesn't seem to be a good way to contribute an entry dynamically on install. Thus we don't automatically install these files for you. You may need to merge them manually.

openwrt-node-red's People

Contributors

dceejay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openwrt-node-red's Issues

Can't find npm but it it is installed

I'm trying to install it on an Arduino Yùn (AR9331). I've installed node and npm but the package can't find it.

Installing node-red (0.20.5) to root...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for node-red:
 * 	node-npm * 
 * opkg_install_cmd: Cannot install package node-red.```

Illegal Instruction

I installed the node-red, but when i start the node-red in the command line with the "node-red" command, the node-red does not start and pops up this message: "Illegal Instruction". What is the process to resolve this issue?

Error when install with image buider

Hi,

We can't install the package properly using image builder:

Finalizing root filesystem...
~/openwrt-imagebuilder-bcm27xx-bcm2711.Linux-x86_64/staging_dir/host/bin/sed: can't read /usr/lib/lua/luci/dispatcher.lua: No such file or directory
./usr/lib/opkg/info/node-red.postinst: line 1: /etc/init.d/node-red: No such file or directory
./usr/lib/opkg/info/node-red.postinst: line 2: /etc/init.d/node-red: No such file or directory

It may due to absolute path: with the image builder it should be relative as now /etc/init.d/node-red is ${IMAGE_BUILDER_PATH}/build_dir/target-${ARCH}/root-${TARGET}/etc/init.d/node-red

It doesn't stop the build tho... I'll try the build and come back to tell if the error if critical or not.

Install not working with OpenWrt 19.07.1

root@OpenWrt:~# opkg install node-red_1.0.3.ipk
Collected errors:

  • pkg_init_from_file: Malformed package file node-red_1.0.3.ipk.

Model: TP-Link Archer C2600
Firmware Version: OpenWrt 19.07.1 r10911-c155900f66 / LuCI openwrt-19.07 branch git-20.029.45734-adbbd5c

NodeRED Prerequisites

Hi Dceejay,

This is not an issue per say. I'm a noob seeking a little informtion.
I use the Teltonika RUTX11 product. I am able to load the latest version of your NodeRED (v1.3.1). I believe this can run on any ARM processor, with a UI based off Lua?
Last year, Teltonika updated thier system to run on Vue.js 2.6.12. Unfortunately, I am not able to use this code with the new changes.
I wanted to know if it is still possible to have this node red code ported across to new implementation. I'm curious to know what is required and will everything have to be re written from scratch?

Regards,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.