Happy birthday, the PH device is your present 😬
-
Mysensor PH meter
-
@sweebee said:
Happy birthday, the PH device is your present 😬
just tried to test. got some huge error using npm install https://github.com/DheerajKhajuria/pimatic-mysensors.git
-
@stingone what error do you get?
-
serialport@2.0.6 install /home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport > node-pre-gyp install --fallback-to-build gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.24" gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/.node-gyp" make: Map '/home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/build' wordt binnengegaan make: *** Er is geen regel om doel '../.node-gyp/0.10.24/common.gypi' te maken, nodig voor 'Makefile'. Gestopt. make: Map '/home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/build' wordt verlaten gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12) gyp ERR! System Linux 4.1.19-v7+ gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/build/Release/node-v11-linux-arm/serialport.node" "--module_name=serialport" "--module_path=/home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/build/Release/node-v11-linux-arm" gyp ERR! cwd /home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport gyp ERR! node -v v0.10.24 gyp ERR! node-gyp -v v3.3.1 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/build/Release/node-v11-linux-arm/serialport.node --module_name=serialport --module_path=/home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/build/Release/node-v11-linux-arm' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) node-pre-gyp ERR! stack at maybeClose (child_process.js:735:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:802:5) node-pre-gyp ERR! System Linux 4.1.19-v7+ node-pre-gyp ERR! command "node" "/home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport node-pre-gyp ERR! node -v v0.10.24 node-pre-gyp ERR! node-pre-gyp -v v0.6.18 node-pre-gyp ERR! not ok Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/build/Release/node-v11-linux-arm/serialport.node --module_name=serialport --module_path=/home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/build/Release/node-v11-linux-arm' (1) npm ERR! Linux 4.1.19-v7+ npm ERR! argv "node" "/usr/local/bin/npm" "install" "https://github.com/DheerajKhajuria/pimatic-mysensors.git" npm ERR! node v0.10.24 npm ERR! npm v2.15.3 npm ERR! code ELIFECYCLE npm ERR! serialport@2.0.6 install: `node-pre-gyp install --fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the serialport@2.0.6 install script 'node-pre-gyp install --fallback-to-build'. npm ERR! This is most likely a problem with the serialport package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-pre-gyp install --fallback-to-build npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs serialport npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm ERR! npm owner ls serialport npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /home/pi/pimatic-app/npm-debug.log
-
@stingone try sudo:
sudo npm install https://github.com/DheerajKhajuria/pimatic-mysensors.git
-
@sweebee said:
@stingone try sudo:
sudo npm install https://github.com/DheerajKhajuria/pimatic-mysensors.git
The install is working. tried to add the device to the config also no errors, however its not showing up in my list of devices…
Looking in the log shows
warn [pimatic]: no plugin found for device "phmeter" of class "MySensorsPH"!
-
@stingone look like the plugin couldn’t load. try to remove the plugin completely and reinstall it.
an alternative way:
cd /home/pi/pimatic-app/node_modules/ rm -r pimatic-mysensors git clone -b development https://github.com/DheerajKhajuria/pimatic-mysensors.git cd pimatic-mysensors npm install
-
Ah wait a sec, by default its installing the master, not the dev version.
use:
sudo npm install https://github.com/DheerajKhajuria/pimatic-mysensors.git#development
-
@sweebee said:
Ah wait a sec, by default its installing the master, not the dev version.
use:
sudo npm install https://github.com/DheerajKhajuria/pimatic-mysensors.git#development
Lol… just reinstalled the master with some error
npm ERR! Linux 4.1.19-v7+ npm ERR! argv "node" "/usr/local/bin/npm" "install" npm ERR! node v0.10.24 npm ERR! npm v2.15.3 npm ERR! code ELIFECYCLE npm ERR! serialport@2.0.6 install: `node-pre-gyp install --fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the serialport@2.0.6 install script 'node-pre-gyp install --f allback-to-build'. npm ERR! This is most likely a problem with the serialport package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-pre-gyp install --fallback-to-build npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs serialport npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm ERR! npm owner ls serialport npm ERR! There is likely additional logging output above.
-
You can also try to install without sudo, there are some strange errors if you use sudo sometimes
-
@Cryonic90 chatted with him, seems his node installation didn’t accept serialport 2.0.6. An older version worked.
But on my pimatic installation it works fine (pimatic 0.8 node v0.10.24)
-
Good glad its solved now!
-
-
@sweebee thanks for the new devices i will change the sketch for autodetect in newer version.
-
I’m also very interested in the hardware part, please share your device
Like my projects and help? Consider donating electroneum etnjwAKGPqF6omQWRmpp9u2BPyVDG9VuyRQjNJ1S8yfBdfR9qeUQ46kRy8KS2CNqbpNLRrsgmNW6F2TMzxmZgPrh6KctrkrYbm
-
Ah, scanned that topic for pictures that’s why I couldn’t find it. Thanks.
Unfortunately the probe doesn’t look to be designed for long (permanent) submission in a pressure tube.Like my projects and help? Consider donating electroneum etnjwAKGPqF6omQWRmpp9u2BPyVDG9VuyRQjNJ1S8yfBdfR9qeUQ46kRy8KS2CNqbpNLRrsgmNW6F2TMzxmZgPrh6KctrkrYbm
-
@koffienl said:
Ah, scanned that topic for pictures that’s why I couldn’t find it. Thanks.
Unfortunately the probe doesn’t look to be designed for long (permanent) submission in a pressure tube.Depends on the ph solution. The can last for about 2 years (permanent) in a aquarium. These are the industrial ones.
-
Here’s some information. However i have read forums where they have still been working after 2 year.
SEN0169( black) is for industry purpose which allows the probe could stay in solution for a long time, generally speaking, it could lasts for half a year or more, depending on the solutions, e.g. tempreture, pH, turbidity etc . You could clean the probe by clean water or better with KCL 5N solution when you find its reading is not stable or inaccurate.
-
I want to insert such a sensor (permanent) into de plumbing for my pool. Two year sounds as the least I would want, half a year is to expensive and to much work to replace or insert/remove periodically.
Like my projects and help? Consider donating electroneum etnjwAKGPqF6omQWRmpp9u2BPyVDG9VuyRQjNJ1S8yfBdfR9qeUQ46kRy8KS2CNqbpNLRrsgmNW6F2TMzxmZgPrh6KctrkrYbm