Node-red-contrib-mcp23017chip

@zenofmud
Thanks :slight_smile: found it here:
/home/openhabian/.node-red/node_modules/node-red-contrib-mcp23017chip


Also found this... :

changing "i2c-bus": "~1.2.2" to "i2c-bus": "~5.2.1" and installing it locally via npm i /path/to/mcp23017chip did the thing. All is working good now

It's at the package.json file 31. line.


Although I'm not sure if this part is a must?
... in the .../.node-red/setting.js file add the line as follows:

functionGlobalContext: {
i2c:require('i2c-bus')
// os:require('os'),
// jfive:require("johnny-five"),
// j5board:require("johnny-five").Board({repl:false})
},

How do I apply changes?

  • enough to restart NR?