Glad I haven’t updated yst.
-
Node-red for pimatic available
-
@Jos-Hendriks said in Node-red for pimatic available:
Well that ia up the maintainer op node-red-dashboard to fix
Well, it can be fixed with a minor change in the plugin code. I’ll file a PR tomorrow.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
Unfortunately, I am not able to update to version 1.0.5.
Any idea? I have “nopt” installed.
The error messages:
module.js:327
throw err;
^
Error: Cannot find module 'npm/node_modules/nopt’
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/pi/pimatic-app/node_modules/pimatic/ppm.js:32:12)
at Module._compile (module.js:409:26)
at Object.Module._extensions…js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
module.js:327
throw err;
^
Error: Cannot find module 'npm/node_modules/nopt’
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/pi/pimatic-app/node_modules/pimatic/ppm.js:32:12)
at Module._compile (module.js:409:26)
at Object.Module._extensions…js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10) -
would it be possible to set the port in the settings of the plugins?
i always can’t start pimatic after install/update pimatic-node-red, because i have to change the port manually…Mit freundlichen Grüßen
Chris -
@Dee said in Node-red for pimatic available:
Unfortunately, I am not able to update to version 1.0.5.
Any idea? I have “nopt” installed.
The error messages:
module.js:327
throw err;
^
Error: Cannot find module ‘npm/node_modules/nopt’
…This is a log of the the upgrade? Maybe you can do a fresh install of the plugin?
I must say that I never do uprgades myself. Always a fresh install. I run pimatic on docker which means I just create a new docker image which I can then deploy on my raspberry.
Every now and then I blog about pimatic at http://www.hendriks.software/tag/pimatic
-
@chris said in Node-red for pimatic available:
would it be possible to set the port in the settings of the plugins?
…Sure, I created an issue in github to fix that.
Every now and then I blog about pimatic at http://www.hendriks.software/tag/pimatic
-
Hi, I am running Pimatic for a long time now and I also use node-red for combining various inputs and output and it is a great system combining both would be even better!
Is there a way to use the pimatic nodes and dashboard within my current install of node-red. I prefer not to install node-red as a “container” within my pimatic setup. -
@mwittig said in Node-red for pimatic available:
Well, it can be fixed with a minor change in the plugin code. I’ll file a PR tomorrow.
Finally, I have filed my PR fixing the dashboard-link issue and also adding a few other things.
https://github.com/joshendriks/pimatic-node-red/issues/17
https://github.com/joshendriks/pimatic-node-red/issues/15
https://github.com/joshendriks/pimatic-node-red/pull/16"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@dynamite said in Node-red for pimatic available:
Hi, I am running Pimatic for a long time now and I also use node-red for combining various inputs and output and it is a great system combining both would be even better!
Is there a way to use the pimatic nodes and dashboard within my current install of node-red. I prefer not to install node-red as a “container” within my pimatic setup.The dashboard: Yes. It is just a node-red plugin. It is not specifically made for pimatic.
The pimatic nodes: No. These are hooked directly onto the pimatic framework events. I found this to be the best option to integrate pimatic and node-red. The choice came with the drawback of running node-red as a “container” in pimatic.Every now and then I blog about pimatic at http://www.hendriks.software/tag/pimatic
-
@Jos-Hendriks Any changes that you can “upgrade” this pimatic plugin to be an “official” plugin for node-red?
-
Is this warning normal while updating?
npm WARN engine pimatic-node-red@1.0.5: wanted: {“node”:">4.x.x",“npm”:">2.x.x"} (current: {“node”:“4.4.7”,“npm”:“2.15.12”})
pimatic + MySensors + Homeduino + z-way
https://github.com/n3roGit/MySensors_n3ro -
@Jos-Hendriks said in Node-red for pimatic available:
The pimatic nodes: No. These are hooked directly onto the pimatic framework events. I found this to be the best option to integrate pimatic and node-red. The choice came with the drawback of running node-red as a “container” in pimatic.
I think it would be possible to develop a variant of the nodes types which use a websocket to connect to pimatic instance. It should be possible to get all events via a websocket.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@mwittig @Jos-Hendriks basically websockets are already part of the node red connections. But Then it would be more related to how to progress / filter the message in node red?
-
@Jos-Hendriks Yes, it’s the error log that I get during the upgrade. I am trying to do a fresh install. So, hopefully that will fix it. Will look into docker, I didn’t know about that.
-
@dynamite said in Node-red for pimatic available:
@Jos-Hendriks Any changes that you can “upgrade” this pimatic plugin to be an “official” plugin for node-red?
No, this definetly is a plugin fo pimatic. We could, however, create a node-red-pimatic plugin. In fact I think we should. Both would have their purpose.
pimatic-node-red, as we have it now, is good for people who know pimatic and are unfamiliar with node-red. But for people like yourself, it makes sense to not have node-red running as part of pimatic.Every now and then I blog about pimatic at http://www.hendriks.software/tag/pimatic
-
Version 1.0.6 is available. The dashboard link now works and the port is configurable. Thanks @mwittig!
Every now and then I blog about pimatic at http://www.hendriks.software/tag/pimatic
-
Thanks.
Works…
Mit freundlichen Grüßen
Chris -
@mwittig
The test setup looks now like this:
I still do get the error when hitting deploy…
The parameter device is now receiving the pimatic true / false message for my light switch.
The device action I do not have in a running state yetBut now I try it again but no response…?
-
For follow-up posts regarding “node-red-contrib-pimatic”, a plugin for node-red see https://forum.pimatic.org/topic/3201/node-red-contrib-pimatic
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law