Node Red and WhatsApp

I found this Node online # node-red-contrib-whatsappbot
, but how to add it to our Home Assistant - Node Red?
I’m running HA on a Raspberry pi.
https://flows.nodered.org/node/node-red-contrib-whatsappbot

open node-red. right top hamburger icon. manage palette - install and search:

1 Like

Tried it multiple times,. with restart. but it won’t install. :roll_eyes:

do you use any adblocker/pihole/etc. in your network? I tend to have issues when I have them between.

I can install fine thus…

Disabled the adblockers, but no luck.

-----------------------------------------------------------
2020-08-18T17:27:23.014Z Install : node-red-contrib-whatsappbot 0.1.1

2020-08-18T17:28:25.170Z [out] Chromium (782078) downloaded to /config/node-red/node_modules/@open-wa/wa-automate/node_modules/puppeteer/.local-chromium/linux-782078
2020-08-18T17:28:25.353Z [out] 
2020-08-18T17:28:25.353Z [out] > [email protected] install /config/node-red/node_modules/sharp
2020-08-18T17:28:25.353Z [out] > (node install/libvips && node install/dll-copy && prebuild-install --runtime=napi) || (node-gyp rebuild && node install/dll-copy)
2020-08-18T17:28:25.353Z [out] 
2020-08-18T17:28:31.235Z [err] info
2020-08-18T17:28:31.242Z [err]  
2020-08-18T17:28:31.245Z [err] sharp
2020-08-18T17:28:31.246Z [err]  Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.9.1/libvips-8.9.1-linuxmusl-armv7.tar.gz
2020-08-18T17:28:31.738Z [err] ERR!
2020-08-18T17:28:31.738Z [err]  sharp
2020-08-18T17:28:31.739Z [err]  Prebuilt libvips 8.9.1 binaries are not yet available for linuxmusl-armv7
2020-08-18T17:28:31.739Z [err] info
2020-08-18T17:28:31.740Z [err]  
2020-08-18T17:28:31.740Z [err] sharp Attempting to build from source via node-gyp but this may fail due to the above error
2020-08-18T17:28:31.741Z [err] info
2020-08-18T17:28:31.741Z [err]  sharp
2020-08-18T17:28:31.742Z [err]  Please see https://sharp.pixelplumbing.com/install for required dependencies
2020-08-18T17:28:44.764Z [err] gyp
2020-08-18T17:28:44.767Z [err]  
2020-08-18T17:28:44.768Z [err] ERR! build error 
2020-08-18T17:28:44.773Z [err] gyp
2020-08-18T17:28:44.774Z [err]  
2020-08-18T17:28:44.775Z [err] ERR!
2020-08-18T17:28:44.777Z [err]  
2020-08-18T17:28:44.778Z [err] stack Error: not found: make
2020-08-18T17:28:44.779Z [err] gyp ERR! 
2020-08-18T17:28:44.780Z [err] stack     at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:13:12)
2020-08-18T17:28:44.780Z [err] gyp 
2020-08-18T17:28:44.780Z [err] ERR! stack
2020-08-18T17:28:44.781Z [err]      at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:19)
2020-08-18T17:28:44.781Z [err] gyp 
2020-08-18T17:28:44.782Z [err] ERR! stack     at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29)
2020-08-18T17:28:44.782Z [err] gyp ERR! stack
2020-08-18T17:28:44.783Z [err]      at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16
2020-08-18T17:28:44.783Z [err] gyp ERR!
2020-08-18T17:28:44.784Z [err]  stack     at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5
2020-08-18T17:28:44.784Z [err] gyp
2020-08-18T17:28:44.785Z [err]  ERR! stack
2020-08-18T17:28:44.785Z [err]      at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
2020-08-18T17:28:44.785Z [err] gyp ERR! stack
2020-08-18T17:28:44.786Z [err]      at FSReqCallback.oncomplete (fs.js:167:21)
2020-08-18T17:28:44.788Z [err] gyp
2020-08-18T17:28:44.790Z [err]  ERR! System Linux 4.19.106-v7
2020-08-18T17:28:44.791Z [err] gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-08-18T17:28:44.791Z [err] gyp ERR!
2020-08-18T17:28:44.791Z [err]  cwd /config/node-red/node_modules/sharp
2020-08-18T17:28:44.791Z [err] gyp 
2020-08-18T17:28:44.793Z [err] ERR! node -v v12.17.0
2020-08-18T17:28:44.794Z [err] gyp ERR! node-gyp -v v5.1.0
2020-08-18T17:28:44.795Z [err] gyp ERR! not ok 
2020-08-18T17:28:53.084Z [err] npm WARN notsup Unsupported engine for @open-wa/[email protected]: wanted: {"node":">=12.18.3"} (current: {"node":"12.17.0","npm":"6.14.4"})
2020-08-18T17:28:53.084Z [err] npm WARN notsup Not compatible with your version of node/npm: @open-wa/[email protected]
2020-08-18T17:28:53.084Z [err] 
2020-08-18T17:28:53.157Z [err] npm
2020-08-18T17:28:53.160Z [err]  
2020-08-18T17:28:53.161Z [err] ERR! code ELIFECYCLE
2020-08-18T17:28:53.162Z [err] npm
2020-08-18T17:28:53.162Z [err]  ERR! errno
2020-08-18T17:28:53.163Z [err]  1
2020-08-18T17:28:53.164Z [err] npm
2020-08-18T17:28:53.166Z [err]  ERR! [email protected] install: `(node install/libvips && node install/dll-copy && prebuild-install --runtime=napi) || (node-gyp rebuild && node install/dll-copy)`
2020-08-18T17:28:53.166Z [err] npm ERR! Exit status 1
2020-08-18T17:28:53.166Z [err] npm ERR!
2020-08-18T17:28:53.167Z [err]  
2020-08-18T17:28:53.167Z [err] npm ERR!
2020-08-18T17:28:53.168Z [err]  Failed at the [email protected] install script.
2020-08-18T17:28:53.168Z [err] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-08-18T17:28:53.330Z [err] 
2020-08-18T17:28:53.335Z [err] npm ERR! A complete log of this run can be found in:
2020-08-18T17:28:53.335Z [err] npm ERR!     /root/.npm/_logs/2020-08-18T17_28_53_258Z-debug.log
2020-08-18T17:28:53.380Z rc=1

Is all uptodate? Hass, supervisor, os, addon?

Whats in last line log file?

No Idea how to open

Me neither, but you can install the portainer addon to look “in the node-red container”…?

installed but I cannot get it to work

Hello all,

I am the maintainer of open-wa (https://docs.openwa.dev/) which is the library that node-red-contrib-whatsappbot is built upon.

I would appreciate if you can participate in this github discussion to show a need for an open-wa add on as part of the official home assistant add on repository:

https://github.com/hassio-addons/repository/discussions/220

Thanks