Closed spants closed 3 years ago
Do you have your screen working with Hzeller library directly? we recommend you first get that working - so you know your correct config and that the wiring is all correct first. Then get it working with node-red and this library.
Yes - works fine with Hzeller library demos and also the python app from Infopanel. Only the nodered apps are not working
Can you give any further information on errors or debug messages you receive when trying to use the nodes?
Thanks for looking at this: I just did the upgrade today - here are the messages and my nodered details
2020-02-28T10:11:58.929Z Install : node-red-contrib-easybotics-led-matrix 1.4.0
2020-02-28T10:11:58.951Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-easybotics-led-matrix@1.4.0
2020-02-28T10:12:13.006Z [err] npm
2020-02-28T10:12:13.007Z [err] WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
2020-02-28T10:12:19.783Z [out]
2020-02-28T10:12:19.783Z [out] > easybotics-rpi-rgb-led-matrix@0.4.1 install /root/.node-red/node_modules/easybotics-rpi-rgb-led-matrix
2020-02-28T10:12:19.783Z [out] > node-gyp rebuild
2020-02-28T10:12:19.783Z [out]
2020-02-28T10:12:22.892Z [out] make: Entering directory '/root/.node-red/node_modules/easybotics-rpi-rgb-led-matrix/build'
2020-02-28T10:12:22.896Z [out] CXX(target) Release/obj.target/rpi-rgb-led-matrix/external/matrix/lib/transformer.o
2020-02-28T10:12:25.784Z [out] CXX(target) Release/obj.target/rpi-rgb-led-matrix/external/matrix/lib/thread.o
2020-02-28T10:12:26.213Z [out] CXX(target) Release/obj.target/rpi-rgb-led-matrix/external/matrix/lib/pixel-mapper.o
2020-02-28T10:12:29.365Z [out] CXX(target) Release/obj.target/rpi-rgb-led-matrix/external/matrix/lib/options-initialize.o
2020-02-28T10:12:31.866Z [out] CXX(target) Release/obj.target/rpi-rgb-led-matrix/external/matrix/lib/multiplex-mappers.o
2020-02-28T10:12:33.812Z [out] CXX(target) Release/obj.target/rpi-rgb-led-matrix/external/matrix/lib/led-matrix-c.o
2020-02-28T10:12:35.545Z [out] CXX(target) Release/obj.target/rpi-rgb-led-matrix/external/matrix/lib/led-matrix.o
2020-02-28T10:12:39.101Z [out] CXX(target) Release/obj.target/rpi-rgb-led-matrix/external/matrix/lib/graphics.o
2020-02-28T10:12:40.717Z [out] CXX(target) Release/obj.target/rpi-rgb-led-matrix/external/matrix/lib/gpio.o
2020-02-28T10:12:41.335Z [err] ../external/matrix/lib/gpio.cc: In function ‘uint32_t rgb_matrix::mmap_bcm_register(off_t)’:
2020-02-28T10:12:41.335Z [err] ../external/matrix/lib/gpio.cc:303:21: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘off_t’ {aka ‘long long int’} [-Wformat=]
2020-02-28T10:12:41.335Z [err] fprintf(stderr, "MMapping from base 0x%lx, offset 0x%lx\n",
2020-02-28T10:12:41.335Z [err] ^ ::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo ::Callback = void ()(const v8::WeakCallbackInfo ::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo ::Callback = void ()(const v8::WeakCallbackInfo ::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo ::Callback = void ( ::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo ::Callback = void ( Node Red details:
root@DietPi:~# node-red
28 Feb 10:09:54 - [info] 28 Feb 10:09:54 - [info] Node-RED version: v1.0.3
28 Feb 10:09:54 - [info] Node.js version: v8.17.0
28 Feb 10:09:54 - [info] Linux 4.19.97-v7+ arm LE
28 Feb 10:09:55 - [info] Loading palette nodes
28 Feb 10:09:58 - [info] Settings file : /root/.node-red/settings.js
28 Feb 10:09:58 - [info] Context store : 'default' [module=memory]
28 Feb 10:09:58 - [info] User directory : /root/.node-red
28 Feb 10:09:58 - [warn] Projects disabled : editorTheme.projects.enabled=false
28 Feb 10:09:58 - [info] Flows file : /root/.node-red/flows_DietPi.json Note: I used this command to downgrade Node to version 8
npm i -g --unsafe-perm n && n 8~~~~~~~~~
2020-02-28T10:12:41.335Z [err] base, register_offset);
2020-02-28T10:12:41.335Z [err] ~~~~
2020-02-28T10:12:41.335Z [err] ../external/matrix/lib/gpio.cc:303:21: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘off_t’ {aka ‘long long int’} [-Wformat=]
2020-02-28T10:12:42.811Z [out] CXX(target) Release/obj.target/rpi-rgb-led-matrix/external/matrix/lib/framebuffer.o
2020-02-28T10:12:46.547Z [out] CXX(target) Release/obj.target/rpi-rgb-led-matrix/external/matrix/lib/content-streamer.o
2020-02-28T10:12:48.292Z [out] CXX(target) Release/obj.target/rpi-rgb-led-matrix/external/matrix/lib/bdf-font.o
2020-02-28T10:12:50.448Z [out] CC(target) Release/obj.target/rpi-rgb-led-matrix/external/matrix/lib/hardware-mapping.o
2020-02-28T10:12:51.157Z [out] AR(target) Release/obj.target/rpi-rgb-led-matrix.a
2020-02-28T10:12:51.205Z [out] COPY Release/rpi-rgb-led-matrix.a
2020-02-28T10:12:51.235Z [out] CXX(target) Release/obj.target/node-rpi-rgb-led-matrix/src/base.o
2020-02-28T10:12:53.269Z [err] In file included from /root/.cache/node-gyp/8.17.0/include/node/node.h:63,
2020-02-28T10:12:53.269Z [err] from ../../nan/nan.h:54,
2020-02-28T10:12:53.269Z [err] from ../src/base.cc:9:
2020-02-28T10:12:53.269Z [err] /root/.cache/node-gyp/8.17.0/include/node/v8.h: In static member function ‘static void v8::V8::SetAllowCodeGenerationFromStringsCallback(v8::DeprecatedAllowCodeGenerationFromStringsCallback)’:
2020-02-28T10:12:53.269Z [err] /root/.cache/node-gyp/8.17.0/include/node/v8.h:10304:19: warning: cast between incompatible function types from ‘v8::DeprecatedAllowCodeGenerationFromStringsCallback’ {aka ‘bool ()(v8::Local~~~~
2020-02-28T10:12:54.167Z [err] ../src/base.cc:17:1: note: in expansion of macro ‘NODE_MODULE’
2020-02-28T10:12:54.167Z [err] NODE_MODULE(node_rpi_rgb_led_matrix, init);
2020-02-28T10:12:54.167Z [err] ^~~
2020-02-28T10:12:54.281Z [err] In file included from /root/.cache/node-gyp/8.17.0/include/node/node.h:63,
2020-02-28T10:12:54.281Z [err] from ../../nan/nan.h:54,
2020-02-28T10:12:54.281Z [err] from ../src/base.cc:9:
2020-02-28T10:12:54.281Z [err] /root/.cache/node-gyp/8.17.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase~~~~~~~
2020-02-28T10:12:54.327Z [err] /root/.cache/node-gyp/8.17.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase~~~~~~~
2020-02-28T10:12:58.203Z [err] /root/.cache/node-gyp/8.17.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBasenpm fund
for details
2020-02-28T10:13:07.167Z [out] Welcome to Node-RED
Should we be installing Hzeller first then node-red?
If this is still an issue, could you paste your flows file? (from your logs it looks like that's in /root/.node-red-/flows_DietPi.json)
I gave up and use something else = but I would love to get it running when I have time.
I'm planning a larger project and before taking the investment I'd like to confirm the following installation steps:
npm i -g --unsafe-perm n && n 8
d=/boot/config.txt && sudo sed "/.*dtparam=audio=on*./c\dtparam=audio=off" $d > tmp && sudo cp -f tmp $d
node-rpi-rgb-led-matrix
Latest?Did I miss any step here guys or is this correct and should run?
@moffi9426 did you get it running with these installation steps?
I got stuck at letting it run as root, since sudo npm config set unsafe-perm true
is not supported anymore in the npm 8 and earlier versions won't work with the internal package manager of node red, which always leads to some errors...
Using DietPi and I managed to get NodeRed to use node8 - but what else needs to be configured for this to work? I have installed the nodes (although warnings were shown in the compilation) and https://github.com/hzeller/rpi-rgb-led-matrix and can use InfoPanel (https://github.com/partofthething/infopanel) so I know that I am almost there!
Are there specific directories that that hzeller driver needs to be in? Is anything else required?
I just get a blank screen Many thanks!