These are chat archives for nebrius/raspi-io

2nd
Apr 2018
Bryan Hughes
@nebrius
Apr 02 2018 03:42
@enginebeat just to confirm, you got that error message on your Raspberry Pi 3 Model B+, correct? If so, that’s expected, but is something I need to fix. I didn’t even realize there was a new Raspberry Pi version out until today (I’m bad about keeping up with the news), so I need to add it to the list at https://github.com/nebrius/raspi-board/blob/master/src/index.ts#L44
Luis
@enginebeat
Apr 02 2018 09:37
That is correct.
Luis
@enginebeat
Apr 02 2018 14:00
Hi All,
This is working fine for me now, but every time I stop the server I get this message: " 2018-04-02 14:00:10 sigHandler: Unhandled signal 2, terminating"
Is this because of the 2 outputs I initialized with init(), and how would you normally handle this issue?
Thank you.
Bryan Hughes
@nebrius
Apr 02 2018 15:56
Looking at your code, I don’t see an obvious reason why that’s the case, but a few things to note, looking closer at your code.
That said, let’s look at the error message a little closer. “Unhandled signal 2” means that Node.js received a UNIX IPC Signal https://en.wikipedia.org/wiki/Signal_(IPC). Signal 2 is otherwise known as SIGINT, and is what happens when you hit ctrl+c in your terminal. Were you doing anything when you saw that message?
Brian Cooke
@fivdi
Apr 02 2018 16:30
Hey @nebrius how is life treating you in San Fransisco? Good, I hope.
Bryan Hughes
@nebrius
Apr 02 2018 16:32
@fivdi life is good these days. Work is well, and I’ve got some fun projects in the works :)
How about yourself?
Brian Cooke
@fivdi
Apr 02 2018 16:32
The raspi suite of modules use the pigpio module for features like digital I/O and PWM. The pigpio module is a wrapper for the pigpio C library. When initialized, the pigpio C library registers a SIGINT handler. If ctrl+c is hit to terminale an application this SIGINT handler terminates the pigpio C library gracefully and prints the message "2018-04-02 14:00:10 sigHandler: Unhandled signal 2, terminating". The message is fairly harmless and can be ignored.
Not too bad on my side either :smile: all is ok here
I need to update stuff to make sure it works well with Node 10.
You'll need to update to the latest versions of pigpio and i2c-bus in the not too distant future to avoid warnings with Node 10. But I'll have to update to the latest version of NAN first.
Bryan Hughes
@nebrius
Apr 02 2018 16:37
Sounds good. Would you mind pinging me here once they’re out?
Brian Cooke
@fivdi
Apr 02 2018 16:37
Will do.