This is the source for Docker container: nieleyde/rpi-nodered https://registry.hub.docker.com/u/nieleyde/rpi-nodered/
rpi-nodered's Introduction
rpi-nodered's People
Forkers
sacbhale ericbenoit74 audumla oliverlorenz openwebcraft kraeml fox-rck jakobengdahl tonyyates arvind-india kronprpi-nodered's Issues
0.10.10 build for rpi crashes for immediately when running on rpi2; rpi2 version works
The briefest crash message is
/usr/local/bin/node-red-pi: line 43: 15 Trace/breakpoint trap /usr/bin/env node $OPTIONS $SCRIPT_PATH/../red.js $ARGS
but the actual crash dump is very long and can be found here
https://gist.github.com/44ca58a825df1dfc1576
and the short version is here
$ docker run -p 1880:1880 --privileged -it nieleyde/rpi-nodered
abort: m??$0??0????%:????:??$
==== Stack trace ============================================
Security context: 0x2b234659 <JS Object>#0#
1: parseTemplate [/usr/local/lib/node_modules/node-red/node_modules/mustache/mustache.js:~95] (this=0x2b234701 <JS Global Object>#1#,template=0x2d698165 <Very long string[8396]>#2#,tags=0x2b208091 <undefined>)
2: parse [/usr/local/lib/node_modules/node-red/node_modules/mustache/mustache.js:440] (this=0x2d6657b5 <a Writer>#3#,template=0x2d698165 <Very long string[8396]>#2#,tags=0x2b208091 <undefined>)
3: parse [/usr/local/lib/node_modules/node-red/node_modules/mustache/mustache.js:579] (this=0x2d659e85 <an Object>#4#,template=0x2d698165 <Very long string[8396]>#2#,tags=0x2b208091 <undefined>)
4: arguments adaptor frame: 1->2
5: init [/usr/local/lib/node_modules/node-red/red/api/ui.js:43] (this=0x2d6680c9 <an Object>#5#,_settings=0x2d70e891 <an Object>#6#)
6: init [/usr/local/lib/node_modules/node-red/red/api/index.js:45] (this=0x2d697885 <an Object>#7#,adminApp=0x2d782c31 <JS Function app>#8#,storage=0x2d70e8d9 <an Object>#9#)
7: /* anonymous */ [/usr/local/lib/node_modules/node-red/red/server.js:51] (this=0x2b234701 <JS Global Object>#1#)
8: arguments adaptor frame: 1->0
9: tryCatchReject(aka tryCatchReject) [/usr/local/lib/node_modules/node-red/node_modules/when/lib/makePromise.js:845] (this=0x2b208091 <undefined>,f=0x2d630379 <JS Function>#10#,x=0x2b208091 <undefined>,thisArg=0x2b208091 <undefined>,next=0x2d63039d <a Pending>#11#)
10: runContinuation1(aka runContinuation1) [/usr/local/lib/node_modules/node-red/node_modules/when/lib/makePromise.js:804] (this=0x2b208091 <undefined>,f=0x2d630379 <JS Function>#10#,h=0x2d6327b1 <a Fulfilled>#12#,receiver=0x2b208091 <undefined>,next=0x2d63039d <a Pending>#11#)
11: when [/usr/local/lib/node_modules/node-red/node_modules/when/lib/makePromise.js:592] (this=0x2d6327b1 <a Fulfilled>#12#,cont=0x2d630409 <an Object>#13#)
12: run [/usr/local/lib/node_modules/node-red/node_modules/when/lib/makePromise.js:702] (this=0x2d6327c1 <a ContinuationTask>#14#)
13: _drain [/usr/local/lib/node_modules/node-red/node_modules/when/lib/Scheduler.js:62] (this=0x478ad051 <a Scheduler>#15#)
14: /* anonymous */(aka /* anonymous */) [/usr/local/lib/node_modules/node-red/node_modules/when/lib/Scheduler.js:27] (this=0x2b208091 <undefined>)
15: _tickCallback [node.js:442] (this=0x4785da21 <a process>#16#)
documentation for how to extend this image with your own nodes and flows
So I'm sorting how to take this image (rpi2-nodered) and extend it with a customized configuration - a separate settings file, a separate flows file, and some set of additional nodes. I think it can all be done within Docker without changing the core image.
The simplest thing I figured out was how to persist the flows file between runs. To do this simply create a directory on the system and then mount it as a volume, like so
mkdir /home/pi/node-red
docker run -v /home/pi/node-red:/root/.node-red -p 1880:1880 -d nieleyde/rpi2-nodered flows.json
Node-RED will pick up additional nodes from that home directory, so at least in theory you should be able to create a data volume container with a set of added nodes as well and then mount it appropriately.
I'll find an appropriate issue in the main node-red discussion of running under Docker to complete this thought, but just thought I'd share a success here.
build breaks on node.js 0.10.36 install in pacman "Unrecognized archive format"
Step 8 : RUN pacman -U http://rollback.archlinuxarm.org/2015/02/15/armv6h/community/nodejs-0.10.36-3-armv6h.pkg.tar.xz --noconfirm
---> Running in a9564fa023b9
error: could not open file /var/cache/pacman/pkg/nodejs-0.10.36-3-armv6h.pkg.tar.xz: Unrecognized archive format
error: '/var/cache/pacman/pkg/nodejs-0.10.36-3-armv6h.pkg.tar.xz': cannot open package file
Update sources to current Node-RED 0.10.10 build?
Your notes on dockerhub say
06/26/2015 upgraded to node-red 10.10 and to resin/rpi-raspian image
Is it possible to get these sources? Thanks!
Please add crontab to container
One of the features of the inject node is "specific time". There is a note that cron is necessary, but its unfortunatelly not installed.
Note from the Node: "Interval between times" and "at a specific time" uses cron.
branch to support node.js 0.12.x at https://github.com/vielmetti/rpi-nodered
I'm working to get a node.js 0.12 / node-red 0.10 release up in Docker to support testing. The source is https://github.com/vielmetti/rpi-nodered and once my very slow internet connection uploads some big files I'll have it up on Dockerhub.
This branch is almost exclusively for testing at this point because the current build on x86 is known to be broken & thus it's completely unsuited for anything real. However it does build! So there's that. Changes are minimal for now though when I get enough confidence in stability I'm going to load up some more Pi-specific nodes and (especially) get the BLE support back into the image to support the TI Sensortag and Sensortag 2.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.