MyController+Domoticz at same time?
-
pi@raspberrypi ~ $ sudo npm -g install node-red-node-serialport@0.0.5 npm WARN lifecycle serialport@1.7.4~install: cannot run in wd %s %s (wd=%s) serialport@1.7.4 node-pre-gyp install --fallback-to-build /usr/local/lib/node_modules/node-red-node-serialport/node_modules/serialport /usr/local/lib └─┬ node-red-node-serialport@0.0.5 └─┬ serialport@1.7.4 ├── async@0.9.0 ├── bindings@1.2.1 ├─┬ debug@2.2.0 │ └── ms@0.7.1 ├── nan@1.8.4 ├─┬ node-pre-gyp@0.6.7 │ ├─┬ mkdirp@0.5.0 │ │ └── minimist@0.0.8 │ ├─┬ nopt@3.0.1 │ │ └── abbrev@1.0.5 │ ├─┬ npmlog@1.2.0 │ │ ├── ansi@0.3.0 │ │ ├─┬ are-we-there-yet@1.0.4 │ │ │ ├── delegates@0.1.0 │ │ │ └─┬ readable-stream@1.1.13 │ │ │ ├── core-util-is@1.0.1 │ │ │ ├── inherits@2.0.1 │ │ │ ├── isarray@0.0.1 │ │ │ └── string_decoder@0.10.31 │ │ └─┬ gauge@1.2.0 │ │ ├── has-unicode@1.0.0 │ │ ├─┬ lodash.pad@3.1.0 │ │ │ ├── lodash._basetostring@3.0.0 │ │ │ └─┬ lodash._createpadding@3.6.0 │ │ │ └── lodash.repeat@3.0.0 │ │ ├─┬ lodash.padleft@3.1.1 │ │ │ ├── lodash._basetostring@3.0.0 │ │ │ └─┬ lodash._createpadding@3.6.0 │ │ │ └── lodash.repeat@3.0.0 │ │ └─┬ lodash.padright@3.1.1 │ │ ├── lodash._basetostring@3.0.0 │ │ └─┬ lodash._createpadding@3.6.0 │ │ └── lodash.repeat@3.0.0 │ ├─┬ rc@1.0.1 │ │ ├── deep-extend@0.2.11 │ │ ├── ini@1.3.3 │ │ ├── minimist@0.0.10 │ │ └── strip-json-comments@0.1.3 │ ├─┬ request@2.55.0 │ │ ├── aws-sign2@0.5.0 │ │ ├─┬ bl@0.9.4 │ │ │ └─┬ readable-stream@1.0.33 │ │ │ ├── core-util-is@1.0.1 │ │ │ ├── inherits@2.0.1 │ │ │ ├── isarray@0.0.1 │ │ │ └── string_decoder@0.10.31 │ │ ├── caseless@0.9.0 │ │ ├─┬ combined-stream@0.0.7 │ │ │ └── delayed-stream@0.0.5 │ │ ├── forever-agent@0.6.1 │ │ ├─┬ form-data@0.2.0 │ │ │ └── async@0.9.0 │ │ ├─┬ har-validator@1.7.0 │ │ │ ├── bluebird@2.9.25 │ │ │ ├─┬ chalk@1.0.0 │ │ │ │ ├── ansi-styles@2.0.1 │ │ │ │ ├── escape-string-regexp@1.0.3 │ │ │ │ ├─┬ has-ansi@1.0.3 │ │ │ │ │ ├── ansi-regex@1.1.1 │ │ │ │ │ └── get-stdin@4.0.1 │ │ │ │ ├─┬ strip-ansi@2.0.1 │ │ │ │ │ └── ansi-regex@1.1.1 │ │ │ │ └── supports-color@1.3.1 │ │ │ ├─┬ commander@2.8.1 │ │ │ │ └── graceful-readlink@1.0.1 │ │ │ └─┬ is-my-json-valid@2.10.1 │ │ │ ├── generate-function@2.0.0 │ │ │ ├─┬ generate-object-property@1.1.1 │ │ │ │ └── is-property@1.0.2 │ │ │ ├── jsonpointer@1.1.0 │ │ │ └── xtend@4.0.0 │ │ ├─┬ hawk@2.3.1 │ │ │ ├── boom@2.7.1 │ │ │ ├── cryptiles@2.0.4 │ │ │ ├── hoek@2.13.0 │ │ │ └── sntp@1.0.9 │ │ ├─┬ http-signature@0.10.1 │ │ │ ├── asn1@0.1.11 │ │ │ ├── assert-plus@0.1.5 │ │ │ └── ctype@0.5.3 │ │ ├── isstream@0.1.2 │ │ ├── json-stringify-safe@5.0.0 │ │ ├─┬ mime-types@2.0.10 │ │ │ └── mime-db@1.8.0 │ │ ├── node-uuid@1.4.3 │ │ ├── oauth-sign@0.6.0 │ │ ├── qs@2.4.1 │ │ ├── stringstream@0.0.4 │ │ ├── tough-cookie@1.1.0 │ │ └── tunnel-agent@0.4.0 │ ├─┬ rimraf@2.3.3 │ │ └─┬ glob@4.5.3 │ │ ├─┬ inflight@1.0.4 │ │ │ └── wrappy@1.0.1 │ │ ├── inherits@2.0.1 │ │ ├─┬ minimatch@2.0.7 │ │ │ └─┬ brace-expansion@1.1.0 │ │ │ ├── balanced-match@0.2.0 │ │ │ └── concat-map@0.0.1 │ │ └─┬ once@1.3.1 │ │ └── wrappy@1.0.1 │ ├── semver@4.3.3 │ ├─┬ tar@2.1.0 │ │ ├── block-stream@0.0.7 │ │ ├─┬ fstream@1.0.4 │ │ │ └── graceful-fs@3.0.6 │ │ └── inherits@2.0.1 │ └─┬ tar-pack@2.0.0 │ ├── debug@0.7.4 │ ├─┬ fstream@0.1.31 │ │ ├── graceful-fs@3.0.6 │ │ └── inherits@2.0.1 │ ├─┬ fstream-ignore@0.0.7 │ │ ├── inherits@2.0.1 │ │ └─┬ minimatch@0.2.14 │ │ ├── lru-cache@2.6.2 │ │ └── sigmund@1.0.0 │ ├── graceful-fs@1.2.3 │ ├── once@1.1.1 │ ├─┬ readable-stream@1.0.33 │ │ ├── core-util-is@1.0.1 │ │ ├── inherits@2.0.1 │ │ ├── isarray@0.0.1 │ │ └── string_decoder@0.10.31 │ ├── rimraf@2.2.8 │ ├─┬ tar@0.1.20 │ │ ├── block-stream@0.0.7 │ │ └── inherits@2.0.1 │ └── uid-number@0.0.3 ├─┬ optimist@0.6.1 │ ├── minimist@0.0.10 │ └── wordwrap@0.0.3 └── sf@0.1.7 -
Sorry, I don't understand why it doen'twork. This is beyond my capabilities.
May be you should erase all directories name serial and node-serial in /usr/lib/node_modules/node-red/node_modules and your local node_modules in case of conflits with previous attempts -
Thanks a lot for your help @fets
I got it working, finally! Not sure exactly what I did to get it working (I tried literally hundreds of things) but if someone has a similar problem, this might help:- Don't ever use npm -g. It is discouraged by the npm people, it is really broken when run with sudo and it is probably not what you want anyway.
- For the node-red shipped with Domoticz's Raspberry pi image, run npm as the pi user when standing in the /usr/lib/node_modules/node-red folder
- npm rebuild seems to be useful
- npm ls is useful for troubleshooting. It shouldn't report any errors if everything is alright, but things seem to seldom be alright.
- Have a lot of patience, npm is seriously slow on a Raspberry Pi
Anyway, now I have Serial as input and output block in nodered. :sparkles:
-
You'll also probably want node-red-contrib-mysensors and a few other modules on flows.nodered.org
I use TOR extensively for being able to nicely manage and manipulate data on my network securely. The trick is a few things:
TOR: Providing a Hidden Service to SSH and HTTPS
Node-Red: Self-signed certs, HTTPS, and user authentication turned on.
Mosquitto: Providing MQTTSSL. node-red-contrib-mqttssl provides support for thatBut hek was gracious to make a "Controller>Node-Red" subforum, so come join me there!
Edit: also, because npm is sometimes really braindead sometimes, try using -debug with whatever you're doing. It will many a times make it work where without debut will just hang forever.
-
Thanks a lot for your help @fets
I got it working, finally! Not sure exactly what I did to get it working (I tried literally hundreds of things) but if someone has a similar problem, this might help:- Don't ever use npm -g. It is discouraged by the npm people, it is really broken when run with sudo and it is probably not what you want anyway.
- For the node-red shipped with Domoticz's Raspberry pi image, run npm as the pi user when standing in the /usr/lib/node_modules/node-red folder
- npm rebuild seems to be useful
- npm ls is useful for troubleshooting. It shouldn't report any errors if everything is alright, but things seem to seldom be alright.
- Have a lot of patience, npm is seriously slow on a Raspberry Pi
Anyway, now I have Serial as input and output block in nodered. :sparkles:
-
@mfalkvidd do you have both MyController and Domoticz on the same Raspberry Pi?
I will start from the Domoticz Raspberry Pi image and then try to install MyController.
I use a ESP8266 gateway. Do you have any tips before i start? -
I tried both on a ethernet gw, but both freeze after some minutes. This has worked before but when domoticz included the gateway ping it begun. Im.now using domoticz and ethenret and build a serial gw and run with mysc for ota updates.
-
@mfalkvidd i have the new Raspberry pi 2.
The installation was simple.
But i now i only have my gateway in MyController. Using Domoticz for my z-wave.@sundberg84 ok.
Are you using MYSbootloader or Dualoptiboot? -
@ErrK MYSBootloader, i showed Tekka this so he is aware of the problem.
-
@ErrK MYSBootloader, i showed Tekka this so he is aware of the problem.
@sundberg84 ok.
I will try with MYSBootloader.
Need to figure out how to do it on osx.
Have only find the tutorial for windows yet. -
Currently we are working for MyController 0.0.3 version. almost done. we will release it soon. It has many changes in front end(Enterprise level) and back end.
If you want to try, please compile yourself from development branch https://github.com/mycontroller-org/mycontroller or let me know I will post compiled image.
It will be helpful for MyController if you report any issue on this 0.0.3 version, we can fix it before release
beta testers required...
If you want MyController in your language send request here https://www.transifex.com/mycontrollerorg/gui-angularjs/
-
I tried both on a ethernet gw, but both freeze after some minutes. This has worked before but when domoticz included the gateway ping it begun. Im.now using domoticz and ethenret and build a serial gw and run with mysc for ota updates.
@sundberg84 said:
I tried both on a ethernet gw, but both freeze after some minutes. This has worked before but when domoticz included the gateway ping it begun. Im.now using domoticz and ethenret and build a serial gw and run with mysc for ota updates.
Can you describe this a little more? I have been experimenting with Domoticz as a secondary controller (on a Raspberry Pi using Node-Red) but my Ethernet Gateway has been crashing fairly regularly (about once a every other day on average). I'm not totally sure where the problem is occurring but it seems to be related to my Pi setup. If I shut the Pi down the Ethernet Gateway seems to stay alive longer (I haven't had too much time to test this theory though because I'm testing a sensor with the Pi). I also recently updated to 1.5.1 so I'm not sure if that has anything to do with it. Previously I was on 1.4.1 and the gateway ran for months without any issues. Just thought I'd reach out to you since it seems you may have had a similar issue. Thanks!
-
@petewill My Domoticz crashed 30sec after i connect Myscontroller to same ethernet gateway. Also Myscontroller seems to crash and when i disconnect Myscontroller, Domoticz resets the connection and reconnects itself with a error in the log.
-
@petewill My Domoticz crashed 30sec after i connect Myscontroller to same ethernet gateway. Also Myscontroller seems to crash and when i disconnect Myscontroller, Domoticz resets the connection and reconnects itself with a error in the log.