Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 16 22:40

    monteslu on master

    Added support for odroid-io Merge pull request #36 from rac… (compare)

  • Sep 16 22:40
    monteslu closed #36
  • Sep 16 22:40

    monteslu on master

    Update gpio.js Update gpio.html Update gpio.js and 1 more (compare)

  • Sep 16 22:40
    monteslu closed #38
  • Apr 15 14:54
    monteslu commented #37
  • Apr 15 14:54
    monteslu commented #37
  • Apr 15 10:00
    Laca81 commented #37
  • Apr 15 09:59
    Laca81 commented #37
  • Mar 24 20:55
    Petapton opened #38
  • Mar 21 23:05
    T3rorx commented #37
  • Mar 21 15:10
    monteslu commented #37
  • Mar 21 14:55
    T3rorx commented #37
  • Mar 21 00:16
    monteslu commented #37
  • Mar 20 23:05
    T3rorx commented #37
  • Mar 07 08:29
    pleemans67 commented #37
  • Mar 07 08:26
    pleemans67 opened #37
  • Feb 16 12:38
    Ib2cool commented #20
  • Dec 20 2018 21:36
    PiroozMB commented #2
  • Nov 29 2018 03:05
    racerxdl opened #36
  • Oct 07 2018 10:02
    Ch3fk0ch88 commented #35
Luis Montes
@monteslu
cool!
nicnet
@nicnet
@monteslu Having some stability problems - I can't maintain a connection for very long, before it craps out, and I have to reset everything.
I was reading this old thread rwaldron/johnny-five#627 and it mentioned "TCP ... however it is also quite problematic under reasonable message load because of the FIFO implementation on the bridge. This is a known problem"
I wonder if this is the problem I'm running in to.
So there is also this UDP transparent bridge https://gist.github.com/ajfisher/5fe60fe7d8c49b3223f0
Will this work with node-red-contrib-gpio, using the UDP broadcast settings of the nodebot config?
Luis Montes
@monteslu
definitely worth giving udp a shot
ajfisher seems to like it a lot more than tcp
nicnet
@nicnet

Having similar problem with UDP - nodebot stays on yellow "connecting".
Here's the definition:
"id":"2ccd99cb.043aa6",
"type":"nodebot",
"z":"3596b182.73a88e",
"name":"",
"username":"",
"password":"",
"boardType":"firmata",
"serialportName":"/dev/ttyUSB0",
"connectionType":"udp",
"mqttServer":"",
"socketServer":"",
"pubTopic":"",
"subTopic":"",
"tcpHost":"192.168.4.1",
"tcpPort":"1025",
"sparkId":"",
"sparkToken":"",
"beanId":"",
"impId":"",
"meshbluServer":"https://meshblu.octoblu.com",
"uuid":"",
"token":"",
"sendUuid":""
Probably not a problem, but the definition could be changed so it was UCP host and port, rather than TCP host and port.
Could there be similar bug here as well? At least the symptoms are the same (not getting further than "connecting")?

Thanks for your help!

nicnet
@nicnet

@monteslu Forgot to add, it works perfectly fine with node example script:

https://gist.github.com/ajfisher/5fe60fe7d8c49b3223f0#file-test-js

Luis Montes
@monteslu
@nicnet had to updated udp-serial and node-red-contrib-gpio
works super fast now over udp
nicnet
@nicnet

@monteslu Confirmed - as you say, really quick now. And rock solid stable.
This is now really usable - thanks a lot!

Now I just need to re-configure the UDP bridge with static IP in station mode, rather than softAP. Have you managed this with ajfisher's UDP bridge?
When I try to reconfigure it, it just crashes, and I need to reflash. So currently stuck in softAP mode with only 192.168.4.1 as IP - not very flexible ...

Luis Montes
@monteslu
I haven't used the udp bridge (i fixed node-red-contrib-gpio it with a local upd server relay), but if it's anything like the TCP bridge, you can use AT commands to setup the IP after you connect to it
victorim
@victorim

Hi, I'm wondering if anyone can help me. I'm incredibly new to this stuff so please excuse me if I seem like I've no idea what I'm talking about! I'm using johnny-five with node-red an arduino nano to try to turn pin 9 on when I click an input node.
I entered this into my johnny5 node.

var five = require("johnny-five");
var board = new five.Board();

board.on("ready", function() {
this.pinMode(9, five.Pin.OUTPUT);
this.digitalWrite(9, 1);
});

but when I try to deploy the flow, node red stops working and I get this:

1485359910665 Error Error Resource temporarily unavailable Cannot lock port
25 Jan 15:58:30 - [red] Uncaught Exception:
25 Jan 15:58:30 - TypeError: Uncaught, unspecified "error" event.
at TypeError (<anonymous>)
at Board.EventEmitter.emit (events.js:74:15)
at Board.log (/home/victoria/.node-red/node_modules/johnny-five/lib/board.js:630:8)
at Board.(anonymous function) [as error] (/home/victoria/.node-red/node_modules/johnny-five/lib/board.js:641:14)
at Board.finalizeAndBroadcast (/home/victoria/.node-red/node_modules/johnny-five/lib/board.js:369:12)
at Board.<anonymous> (/home/victoria/.node-red/node_modules/johnny-five/lib/board.js:147:18)
at Board.<anonymous> (/home/victoria/.node-red/node_modules/johnny-five/node_modules/firmata/lib/firmata.js:569:7)
at SerialPort.EventEmitter.emit (events.js:95:17)
at SerialPort._error (/home/victoria/.node-red/node_modules/serialport/lib/serialport.js:150:10)
at SerialPort.<anonymous> (/home/victoria/.node-red/node_modules/serialport/lib/serialport.js:172:19)

The only way to be able to start node red again is by going into my flows file and deleting the johnny5 node.

Anybody know what's going on?

Luis Montes
@monteslu
I can try and reproduce. Can you get me version on node-red you're using and version of node?
also what does your flow look like
there was some recent changes to node-serialport that I think might be causing problems
victorim
@victorim
Sure, one second. My flow is just input -> johnny5 as described above -> debug
Node-RED version: v0.14.6
victoria@victoria-ThinkPad-W540:~/.node-red/node_modules$ node -v
v0.10.25
Luis Montes
@monteslu
cool. give me a few and I can try and reproduce
oh, and which board?
victorim
@victorim
Arduino nano 328
Luis Montes
@monteslu
cool. same as an uno.
one more thing, which OS?
victorim
@victorim
Ubuntu 14.04
Luis Montes
@monteslu
cool
Luis Montes
@monteslu
ok, I think I know what's going on. I should have a fix soon
victorim
@victorim
Brilliant, thank you!
victorim
@victorim
Hi Luis, did you have any luck with a fix?
Luis Montes
@monteslu
@victorim this took a little longer than i thought, but it should be fixed now
I just published version 0.9.2
give it a spin
victorim
@victorim
It worked! Thank you very much :)
Luis Montes
@monteslu
no prob
matteoprox89
@matteoprox89
hi there
HoYinChung
@HoYinChung

hi luis,
I got the similar problem to virtorim.
this is my code in johnny5 node
var five = require("johnny-five");
var board = new five.Board();

board.on("ready", function() {
var random = Math.random().toString(36).replace(/[^a-z]+/g, "").substr(0, 4).toUpperCase();

// Controller: PCF8574A (Generic I2C)
// Locate the controller chip model number on the chip itself.
var l = new five.LCD({
controller: "PCF8574A"
});

l.useChar("heart");
l.cursor(0, 0).print("hello :heart:");
l.blink();
l.cursor(1, 0).print("Blinking? ");
l.cursor(0, 10).print(random);

setTimeout(function() {
process.exit(0);
}, 3000);

});

Errors:
10 Aug 08:55:32 - Error: Uncaught, unspecified "error" event. ([object Object])
at Board.emit (events.js:163:17)
at Board.log (/root/.node-red/node_modules/johnny-five/lib/board.js:635:8)
at Board.(anonymous function) [as error] (/root/.node-red/node_modules/johnny-five/lib/board.js:646:14)
at Board.finalizeAndBroadcast (/root/.node-red/node_modules/johnny-five/lib/board.js:369:12)
at Board.<anonymous> (/root/.node-red/node_modules/johnny-five/lib/board.js:147:18)
at Board.<anonymous> (/root/.node-red/node_modules/johnny-five/node_modules/firmata/lib/firmata.js:576:7)
at emitOne (events.js:96:13)
at SerialPort.emit (events.js:188:7)
at SerialPort._error (/root/.node-red/node_modules/serialport/lib/serialport.js:150:10)
at SerialPort.<anonymous> (/root/.node-red/node_modules/serialport/lib/serialport.js:172:19)
After That when I reopen node -red:
1502355383404 Device or Firmware Error A timeout occurred while connecting to the Board.

Please check that you've properly flashed the board with the correct firmware.
See: https://github.com/rwaldron/johnny-five/wiki/Getting-Started#trouble-shooting

If connecting to a Leonardo or Leonardo clone, press the 'Reset' button on the board, wait approximately 11 seconds for complete reset, then run your program again.

10 Aug 08:56:23 - [error] [nodebot:Arduino Uno] A timeout occurred while connecting to the Board.

Since I would like to control the lcd via I2C, I simply trying using the gpio output node and choose i2c write request. I inject a string to it and nth shown on the lcd. Instead it disconnect all my other arduino output node. Is there a solution to it?
I am using Arduino Uno with Firmata installed, LCD 1602A with a i2c module PCF8574AT
Really need help Thanks!

HoYinChung
@HoYinChung

@HoYinChung root@orangepilite:~/johnnyFiveExample# ls
lcd-i2c-PCF8574.js
root@orangepilite:~/johnnyFiveExample# node lcd-i2c-PCF8574.js
module.js:471
throw err;
^

Error: Cannot find module 'johnny-five'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/root/johnnyFiveExample/lcd-i2c-PCF8574.js:1:74)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
I also got this problem when I use command line to run the js

HoYinChung
@HoYinChung
is johnny five gpio node i2c write request support the i2c with PCF8574AT, i found that I type the wrong address, but after i correct it still nth shown. Is there a fix that i could do?
"TypeError: Cannot read property 'i2cConfig' of undefined" the error i got after I type address "63"(0x3F) for the i2c address
HoYinChung
@HoYinChung
I2C is not enabled for this board. To enable, call the i2cConfig() method. =[
HoYinChung
@HoYinChung

any body know how to solve that? =[

is johnny five gpio node i2c write request support the i2c with PCF8574AT, i found that I type the wrong address, but after i correct it still nth shown. Is there a fix that i could do?
"TypeError: Cannot read property 'i2cConfig' of undefined" the error i got after I type address "63"(0x3F) for the i2c address

Ramin
@transfluxus
hi, is there also a gitter for general node-red usage
donhermi
@donhermi
Is installing on the raspberry still working?

pi@raspberrypi:~/.node-red $ npm install node-red-contrib-gpio
npm WARN engine serialport@6.2.2: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine mqtt@2.18.8: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine serialport@6.0.5: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/home/pi/.node-red/node_modules/node-red-contrib-gpio/node_modules/lodash'
npm ERR! error rolling back node-red-contrib-gpio@0.14.0 { [Error: ENOTEMPTY, rmdir '/home/pi/.node-red/node_modules/node-red-contrib-gpio/node_modules/lodash']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/home/pi/.node-red/node_modules/node-red-contrib-gpio/node_modules/lodash' }
npm ERR! Error: Method Not Allowed
npm ERR! at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
npm ERR! at /usr/share/npm/lib/cache/add-named.js:203:12
npm ERR! at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
npm ERR! at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 4.9.35-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "node-red-contrib-gpio"
npm ERR! cwd /home/pi/.node-red
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code E405
npm ERR! Error: ENOENT, lstat '/home/pi/.node-red/node_modules/node-red-contrib-gpio/node_modules/mqtt/dist/mqtt.js'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 4.9.35-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "node-red-contrib-gpio"
npm ERR! cwd /home/pi/.node-red
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! path /home/pi/.node-red/node_modules/node-red-contrib-gpio/node_modules/mqtt/dist/mqtt.js
npm ERR! fstream_path /home/pi/.node-red/node_modules/node-red-contrib-gpio/node_modules/mqtt/dist/mqtt.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOENT, lstat '/home/pi/.node-red/node_modules/node-red-contrib-gpio/node_modules/firmata/node_modules/browser-serialport/test/serialport-basic.js'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 4.9.35-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "node-red-contrib-gpio"
npm ERR! cwd /home/pi/.node-red
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! path /home/pi/.node-red/node_modules/node-red-contrib-gpio/node_modules/firmata/node_modules/browser-serialport/test/serialport-basic.js
npm ERR! fstream_path /home/pi/.node-red/node_modules/node-red-contrib-gpio/node_modules/firmata/node_modules/browser-serialport/test/serialport-basic.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOENT, lstat '/home/pi/.node-red/node_modules/node-red-contrib-gpio/node_modules/johnny-five/lib/imu.js'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 4.9.35-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "node-red-contrib-gpio"
npm ERR! cwd /home/pi/.node-red
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! path /home/pi/.node-red/node_modules/node-red-contrib-gpio/nod