├── cr...@1.1.0 (moment-...@0.3.1)
└── node-red-nod...@0.1.0 (seria...@2.0.6)
node-red-nod...@0.1.1 node_modules/node-red-node-beaglebone
There are some BBB specific nodes now available in our node-red-nodes project on Github.
These give you direct access to the I/O pins in the simplest possible manner. The easiest way to install them is direct from npm.
For Debian Jessie based builds with kernel 4.x run the following commands in the root directory of your Node-RED install. This is usually ~/.node-red
mkdir -p ~/.node-red
cd ~/.node-red
npm install node-red-node-beaglebone
For previous versions of Debian (eg Wheezy) - use the older version of this node.
mkdir -p ~/.node-red
cd ~/.node-red
npm install node-red-nod...@0.0.8
sudo npm install -g --unsafe-perm node-redGreat, glad we got it sorted. But do shot if any tweaks needed, out of van be clearer.
sudo npm install -g --unsafe-perm node-red-node-beagleboneand replace it by:sudo npm install -g --unsafe-perm octalbonescript
The node node-red-node-beaglebone is not replaceable by octalbonescript.
The node would need to be modified to use octalbonescript rather than Bonescript But this has not yet been done
Errr yes it has... And v0.1.1 drags in the octalbonescript prereq also so you don't have to.
In the file attached, can you tell me what I am doing wrong ?
Michel
// octalbonescript:require('octalbonescript'),By uncommenting that line, make sure it doesn't have a trailing comma if it is the last line in the enclosing { } block - that would cause the parse error you are seeing.
--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
e
As root I run
node-red-pi
get the following output:root@beaglebone:~/.node-red/node_modules# sudo node-red-pi
Welcome to Node-RED
===================
5 Mar 01:01:40 - [info] Node-RED version: v0.13.3
5 Mar 01:01:40 - [info] Node.js version: v0.10.41
5 Mar 01:01:40 - [info] Linux 3.8.13-bone79 arm LE
5 Mar 01:01:40 - [info] Loading palette nodes
Error reading directory /sys/devices/platform/ocp
5 Mar 01:01:53 - [warn] ------------------------------------------
5 Mar 01:01:53 - [warn] Failed to register 2 node types
5 Mar 01:01:53 - [warn] Run with -v for details
5 Mar 01:01:53 - [warn] ------------------------------------------
5 Mar 01:01:53 - [info] Settings file : /root/.node-red/settings.js
5 Mar 01:01:53 - [info] User directory : /root/.node-red
5 Mar 01:01:53 - [info] Flows file : /root/.node-red/flows_beaglebone.json
5 Mar 01:01:53 - [info] Server now running at http://127.0.0.1:1880/
5 Mar 01:01:53 - [info] Starting flows
5 Mar 01:01:53 - [info] Started flows
My flow to send a generic e-mail from inject node works well.
The beaglebone nodes do not show up in the panel. I've been at this for two days and cannot figure out what is wrong.
I also tried installing node_red_contrib_gpio, same results: no beaglebone nodes in panel.
I've tried from user debian and sudo - same thing, no beaglebone nodes.
any guidance would be greatly appreciated. Any further information will be provided with pleasure.
Best regards,
John
root@beaglebone:~/.node-red/node_modules# node-red-pi -vUPDATED to add output with -v option
make: Entering directory '/usr/lib/node_modules/node-red-node-beaglebone/node_modules/octalbonescript/node_modules/i2c/build'
CXX(target) Release/obj.target/i2c/src/i2c.o
../src/i2c.cc: In function 'void setAddress(int8_t)':
../src/i2c.cc:21:28: error: 'New' is not a member of 'v8::String'
Exception::TypeError(String::New("Failed to set address"))
^
../src/i2c.cc:22:5: error: 'ThrowException' was not declared in this scope
);
^
../src/i2c.cc: At global scope:
../src/i2c.cc:26:32: error: 'Arguments' does not name a type
Handle<Value> SetAddress(const Arguments& args) {
^
In file included from /root/.node-gyp/4.4.0/include/node/node.h:42:0,
from ../src/i2c.cc:1:
/root/.node-gyp/4.4.0/include/node/v8.h: In function 'v8::Handle<v8::Value> SetAddress(const int&)':
/root/.node-gyp/4.4.0/include/node/v8.h:885:13: error: 'v8::HandleScope::HandleScope()' is protected
V8_INLINE HandleScope() {}
^
../src/i2c.cc:27:15: error: within this context
HandleScope scope;
^
../src/i2c.cc:29:16: error: invalid types 'const int[int]' for array subscript
addr = args[0]->Int32Value();
^
../src/i2c.cc:32:16: error: 'class v8::HandleScope' has no member named 'Close'
return scope.Close(Undefined());
^
../src/i2c.cc:32:32: error: too few arguments to function 'v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)'
return scope.Close(Undefined());
^
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
For more options, visit https://groups.google.com/d/optout.
It seems i2c only works with node <=0.12.* and although a patch has been submitted the maintainer won't accept the PR because it doesn't fix the "underlying issue" - which would require a complete rewrite. So it looks like the BBB is restricted to node 0.12.* for the foreseeable future
Which version is built into that Debian 8.3 image ?
Does that system have a /lib/firmware directory?
If so, what does it contain?
Thanks
Max
ADAFRUIT-SPI0-00A0.dtbo cape-univ-hdmi-00A0.dtbo PyBBIO-gpio0_20-00A0.dtbo PyBBIO-gpio2_12-00A0.dtbo
ADAFRUIT-SPI1-00A0.dtbo carl9170-1.fw PyBBIO-gpio0_2-00A0.dtbo PyBBIO-gpio2_13-00A0.dtbo
ADAFRUIT-UART1-00A0.dtbo dev-USB-PWR-CTL-00A1.dtbo PyBBIO-gpio0_22-00A0.dtbo PyBBIO-gpio2_14-00A0.dtbo
ADAFRUIT-UART2-00A0.dtbo htc_9271.fw PyBBIO-gpio0_23-00A0.dtbo PyBBIO-gpio2_15-00A0.dtbo
ADAFRUIT-UART4-00A0.dtbo LICENCE.atheros_firmware PyBBIO-gpio0_26-00A0.dtbo PyBBIO-gpio2_16-00A0.dtbo
ADAFRUIT-UART5-00A0.dtbo LICENCE.broadcom_bcm43xx PyBBIO-gpio0_27-00A0.dtbo PyBBIO-gpio2_17-00A0.dtbo
BB-ADC-00A0.dtbo LICENCE.rtlwifi_firmware.txt PyBBIO-gpio0_30-00A0.dtbo PyBBIO-gpio2_2-00A0.dtbo
BB-BBBMINI-00A0.dtbo LICENCE.ti-connectivity PyBBIO-gpio0_3-00A0.dtbo PyBBIO-gpio2_22-00A0.dtbo
BB-BONE-AUDI-02-00A0.dtbo mt7601u.bin PyBBIO-gpio0_31-00A0.dtbo PyBBIO-gpio2_23-00A0.dtbo
BB-BONE-BACONE-00A0.dtbo OBS_UNIV-00A0.dtbo PyBBIO-gpio0_4-00A0.dtbo PyBBIO-gpio2_24-00A0.dtbo
BB-BONE-CRYPTO-00A0.dtbo OBS_UNIV-00A0.dts PyBBIO-gpio0_5-00A0.dtbo PyBBIO-gpio2_25-00A0.dtbo
BB-BONE-DVID-01-00A3.dtbo PyBBIO-ADC-00A0.dtbo PyBBIO-gpio0_7-00A0.dtbo PyBBIO-gpio2_3-00A0.dtbo
BB-BONE-LCD3-01-00A2.dtbo PyBBIO-AIN0-00A0.dtbo PyBBIO-gpio0_8-00A0.dtbo PyBBIO-gpio2_4-00A0.dtbo
BB-BONE-LCD4-01-00A1.dtbo PyBBIO-AIN1-00A0.dtbo PyBBIO-gpio0_9-00A0.dtbo PyBBIO-gpio2_5-00A0.dtbo
BB-BONE-LCD7-01-00A3.dtbo PyBBIO-AIN2-00A0.dtbo PyBBIO-gpio1_0-00A0.dtbo PyBBIO-gpio2_6-00A0.dtbo
BB-BONE-REPLICAP-00B1.dtbo PyBBIO-AIN3-00A0.dtbo PyBBIO-gpio1_1-00A0.dtbo PyBBIO-gpio2_7-00A0.dtbo
BB-BONE-SERL-03-00A1.dtbo PyBBIO-AIN4-00A0.dtbo PyBBIO-gpio1_12-00A0.dtbo PyBBIO-gpio2_8-00A0.dtbo
BB-CAN1-00A0.dtbo PyBBIO-AIN5-00A0.dtbo PyBBIO-gpio1_13-00A0.dtbo PyBBIO-gpio2_9-00A0.dtbo
BB-I2C1-00A0.dtbo PyBBIO-AIN6-00A0.dtbo PyBBIO-gpio1_14-00A0.dtbo PyBBIO-gpio3_14-00A0.dtbo
BB-I2C1-PCA9685-00A0.dtbo PyBBIO-AIN7-00A0.dtbo PyBBIO-gpio1_15-00A0.dtbo PyBBIO-gpio3_15-00A0.dtbo
BB-I2C2-0A00.dtbo PyBBIO-ecap0-00A0.dtbo PyBBIO-gpio1_16-00A0.dtbo PyBBIO-gpio3_16-00A0.dtbo
BB-RELAY-4PORT-00A0.dtbo PyBBIO-ecap1-00A0.dtbo PyBBIO-gpio1_17-00A0.dtbo PyBBIO-gpio3_17-00A0.dtbo
BB-RTC-01-00A0.dtbo PyBBIO-ehrpwm1-00A0.dtbo PyBBIO-gpio1_18-00A0.dtbo PyBBIO-gpio3_19-00A0.dtbo
BB-SPI0-MCP3008-00A0.dtbo PyBBIO-ehrpwm2-00A0.dtbo PyBBIO-gpio1_19-00A0.dtbo PyBBIO-gpio3_21-00A0.dtbo
BB-SPIDEV0-00A0.dtbo PyBBIO-epwmss0-00A0.dtbo PyBBIO-gpio1_2-00A0.dtbo PyBBIO-usr0-00A0.dtbo
BB-SPIDEV1-00A0.dtbo PyBBIO-epwmss1-00A0.dtbo PyBBIO-gpio1_28-00A0.dtbo PyBBIO-usr1-00A0.dtbo
BB-SPIDEV1A1-00A0.dtbo PyBBIO-epwmss2-00A0.dtbo PyBBIO-gpio1_29-00A0.dtbo PyBBIO-usr2-00A0.dtbo
BB-UART1-00A0.dtbo PyBBIO-eqep0-00A0.dtbo PyBBIO-gpio1_30-00A0.dtbo PyBBIO-usr3-00A0.dtbo
BB-UART2-00A0.dtbo PyBBIO-eqep1-00A0.dtbo PyBBIO-gpio1_3-00A0.dtbo rtlwifi
BB-UART4-00A0.dtbo PyBBIO-eqep2-00A0.dtbo PyBBIO-gpio1_31-00A0.dtbo ti-connectivity
BB-UART5-00A0.dtbo PyBBIO-eqep2b-00A0.dtbo PyBBIO-gpio1_4-00A0.dtbo univ-all-00A0.dtbo
brcm PyBBIO-gpio0_10-00A0.dtbo PyBBIO-gpio1_5-00A0.dtbo univ-emmc-00A0.dtbo
cape-CBB-Serial-r01.dtbo PyBBIO-gpio0_11-00A0.dtbo PyBBIO-gpio1_6-00A0.dtbo univ-hdmi-00A0.dtbo
cape-univ-audio-00A0.dtbo PyBBIO-gpio0_12-00A0.dtbo PyBBIO-gpio1_7-00A0.dtbo univ-nhdmi-00A0.dtbo
cape-univ-emmc-00A0.dtbo PyBBIO-gpio0_13-00A0.dtbo PyBBIO-gpio2_10-00A0.dtbo
cape-universal-00A0.dtbo PyBBIO-gpio0_14-00A0.dtbo PyBBIO-gpio2_1-00A0.dtbo
cape-universaln-00A0.dtbo PyBBIO-gpio0_15-00A0.dtbo PyBBIO-gpio2_11-00A0.dtbo
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/t_mw1led9Eo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/96cb9985-5429-4a63-9520-079b81d504d1%40googlegroups.com.
Albertoas I mentioned in your other thread - the latest version of Debian from beaglebone (9.3) comes with some GPIO nodes pre-installed and working. Given that Wheezy went out of support over a year ago I would suggest upgrading to it anyway...
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/t_mw1led9Eo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CACXWFwLdMGu%3DvvgmLgbwEYVZP9h%3De-PeMoFuLwi-oAE2v%3DrN1Q%40mail.gmail.com.
Michel.Which BBB version are you using ?Hello Alberto,I confirm Dave's message. I installed Debian 9.3 on my old BBB version A5C. GPIO works fine (at least that's what I tested). I have other issues with this Debian version on the BBB but probably not related to Node-red.
2018-02-20 19:05 GMT+01:00 Dave C-J <dce...@gmail.com>:
Albertoas I mentioned in your other thread - the latest version of Debian from beaglebone (9.3) comes with some GPIO nodes pre-installed and working. Given that Wheezy went out of support over a year ago I would suggest upgrading to it anyway...
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/t_mw1led9Eo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/ba268c57-2054-40eb-8402-399975291899%40googlegroups.com.