root@RASPI-2:/home/pi# nodejs --version
v0.6.19
root@RASPI-2:/home/pi# node --version
v4.4.5
root@RASPI-2:/home/pi#
-
Questions about the release of v0.9
-
pi@raspberrypi ~ $ npm install pimatic --prefix pimatic-app --production
npm ERR! tar.unpack untar error /home/pi/.npm/pimatic/0.9.26/package.tgz
npm ERR! Linux 4.1.13+
npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “install” “pimatic” “–prefix” “pimatic-app” "–production"
npm ERR! node v4.4.5
npm ERR! npm v2.15.5
npm ERR! path /home/pi/pimatic-app/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall mkdirnpm ERR! Error: EACCES: permission denied, mkdir '/home/pi/pimatic-app/node_modules’
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, mkdir ‘/home/pi/pimatic-app/node_modules’]
npm ERR! errno: -13,
npm ERR! code: ‘EACCES’,
npm ERR! syscall: ‘mkdir’,
npm ERR! path: ‘/home/pi/pimatic-app/node_modules’,
npm ERR! fstream_type: ‘Directory’,
npm ERR! fstream_path: ‘/home/pi/pimatic-app/node_modules/pimatic’,
npm ERR! fstream_class: ‘DirWriter’,
npm ERR! fstream_stack:
npm ERR! [ ‘/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:171:25’,
npm ERR! ‘/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:47:53’,
npm ERR! ‘FSReqWrap.oncomplete (fs.js:82:15)’ ] }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/npm-debug.log/ I try a clean Install
-
@Barny I looks like you have installed the nodejs package via apt-get. The package comes with v0.6 of node (and npm v1). You have to remove the package:
sudo apt-get purge nodejs
Then try again.
-
@wuschel “Error: EACCES: permission denied, mkdir '/home/pi/pimatic-app/node_modules’”
Try again with
sudo npm install pimatic --prefix pimatic-app --production
. -
@sweetpi It´s working now. After removing node with apt I had to link the NPM and Node binaries to /usr/bin
-
Okay - Next Problem:
/pi/pimatic-app/node_modules/sqlite3/lib/binding/node-v46-linux-arm/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/home/pi/pimatic-app/node_modules/sqlite3/lib/binding/node-v46-linux-arm" 17:27:10.471 [pimatic, ppm] info: gyp ERR! cwd /home/pi/pimatic-app/node_modules/sqlite3 17:27:10.475 [pimatic, ppm] info: gyp ERR! node -v v4.4.5 17:27:10.477 [pimatic, ppm] info: gyp ERR! node-gyp -v v3.3.1 17:27:10.480 [pimatic, ppm] info: gyp ERR! not ok 17:27:10.496 [pimatic, ppm] info: node-pre-gyp ERR! build error 17:27:10.514 [pimatic, ppm] info: 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/sqlite3/lib/binding/node-v46-linux-arm/node_sqlite3.node --module_name=node_sqlite3 --module_path=/home/pi/pimatic-app/node_modules/sqlite3/lib/binding/node-v46-linux-arm' (1) 17:27:10.520 [pimatic, ppm] info: node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/pi/pimatic-app/node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/compile.js:83:29) 17:27:10.524 [pimatic, ppm] info: node-pre-gyp ERR! stack at emitTwo (events.js:87:13) 17:27:10.527 [pimatic, ppm] info: node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7) 17:27:10.529 [pimatic, ppm] info: node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:827:16) 17:27:10.535 [pimatic, ppm] info: node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) 17:27:10.540 [pimatic, ppm] info: node-pre-gyp ERR! System Linux 4.1.19-v7+ 17:27:10.543 [pimatic, ppm] info: node-pre-gyp ERR! command "/usr/local/bin/node" "/home/pi/pimatic-app/node_modules/sqlite3/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" 17:27:10.545 [pimatic, ppm] info: node-pre-gyp ERR! cwd /home/pi/pimatic-app/node_modules/sqlite3 17:27:10.550 [pimatic, ppm] info: node-pre-gyp ERR! node -v v4.4.5 17:27:10.553 [pimatic, ppm] info: node-pre-gyp ERR! node-pre-gyp -v v0.6.25 17:27:10.555 [pimatic, ppm] info: node-pre-gyp ERR! not ok 17:27:10.562 [pimatic, ppm] info: 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/sqlite3/lib/binding/node-v46-linux-arm/node_sqlite3.node --module_name=node_sqlite3 --module_path=/home/pi/pimatic-app/node_modules/sqlite3/lib/binding/node-v46-linux-arm' (1) 17:27:10.623 [pimatic, ppm] info: ERR! Linux 4.1.19-v7+ 17:27:10.631 [pimatic, ppm] info: ERR! argv "/usr/local/bin/node" "/home/pi/pimatic-app/node_modules/pimatic/ppm.js" "install" "sqlite3@3.1.3" 17:27:10.641 [pimatic, ppm] info: ERR! node v4.4.5 17:27:10.650 [pimatic, ppm] info: ERR! npm v2.15.6 17:27:10.653 [pimatic, ppm] info: ERR! code ELIFECYCLE 17:27:10.656 [pimatic, ppm] info: ERR! sqlite3@3.1.3 install: `node-pre-gyp install --fallback-to-build` 17:27:10.658 [pimatic, ppm] info: ERR! Exit status 1 17:27:10.664 [pimatic, ppm] info: ERR! 17:27:10.668 [pimatic, ppm] info: ERR! Failed at the sqlite3@3.1.3 install script 'node-pre-gyp install --fallback-to-build'. 17:27:10.671 [pimatic, ppm] info: ERR! This is most likely a problem with the sqlite3 package, 17:27:10.673 [pimatic, ppm] info: ERR! not with npm itself. 17:27:10.676 [pimatic, ppm] info: ERR! Tell the author that this fails on your system: 17:27:10.678 [pimatic, ppm] info: ERR! node-pre-gyp install --fallback-to-build 17:27:10.681 [pimatic, ppm] info: ERR! You can get information on how to open an issue for this project with: 17:27:10.683 [pimatic, ppm] info: ERR! npm bugs sqlite3 17:27:10.685 [pimatic, ppm] info: ERR! Or if that isn't available, you can get their info via: 17:27:10.690 [pimatic, ppm] info: ERR! 17:27:10.693 [pimatic, ppm] info: ERR! npm owner ls sqlite3 17:27:10.695 [pimatic, ppm] info: ERR! There is likely additional logging output above. 17:27:14.155 [pimatic, ppm] info: ERR! Please include the following file with any support request: 17:27:14.160 [pimatic, ppm] info: ERR! /home/pi/pimatic-app/npm-debug.log 17:27:14.254 [pimatic] error: Startup error: Error: Error running "./node_modules/pimatic/ppm.js install sqlite3@3.1.3": error This version of node/NAN/v8 requires a C++11 compiler 17:27:14.254 [pimatic] error:> at ChildProcess.<anonymous> (/home/pi/pimatic-app/node_modules/pimatic/lib/plugins.coffee:364:24) 17:27:14.254 [pimatic] error:> at emitTwo (events.js:87:13) 17:27:14.254 [pimatic] error:> at ChildProcess.emit (events.js:172:7) 17:27:14.254 [pimatic] error:> at maybeClose (internal/child_process.js:827:16) 17:27:14.254 [pimatic] error:> at Socket.<anonymous> (internal/child_process.js:319:11) 17:27:14.254 [pimatic] error:> at emitOne (events.js:77:13) 17:27:14.254 [pimatic] error:> at Socket.emit (events.js:169:7) 17:27:14.254 [pimatic] error:> at Pipe._onclose (net.js:477:12) 17:27:14.258 [pimatic] info: exiting...
-
17:30:16.812 [pimatic, ppm] ERR! Please include the following file with any support request:
17:30:16.841 [pimatic, ppm] ERR! /home/pi/pimatic-app/npm-debug.log
17:30:17.095 [pimatic] Startup error: Error: Error running “./node_modules/pimatic/ppm.js install sqlite3@3.1.3”: error This version of node/NAN/v8 requires a C++11 compiler
17:30:17.095 [pimatic]> at ChildProcess.<anonymous> (/home/pi/pimatic-app/node_modules/pimatic/lib/plugins.coffee:364:24)
17:30:17.095 [pimatic]> at emitTwo (events.js:87:13)
17:30:17.095 [pimatic]> at ChildProcess.emit (events.js:172:7)
17:30:17.095 [pimatic]> at maybeClose (internal/child_process.js:827:16)
17:30:17.095 [pimatic]> at Socket.<anonymous> (internal/child_process.js:319:11)
17:30:17.095 [pimatic]> at emitOne (events.js:77:13)
17:30:17.095 [pimatic]> at Socket.emit (events.js:169:7)
17:30:17.095 [pimatic]> at Pipe._onclose (net.js:477:12)
17:30:17.117 [pimatic] exiting…were can i upload the logfile?
-
@wuschel I think I have a similar problem
Startup error: Error: Error running “./node_modules/pimatic/ppm.js install sqlite3@3.1.3”: error This version of node/NAN/v8 requires a C++11 compiler
I have read something about updating GCC to GCC5
-
@Barny said in Questions about the release of v0.9:
@wuschel I think I have a similar problem
Startup error: Error: Error running “./node_modules/pimatic/ppm.js install sqlite3@3.1.3”: error This version of node/NAN/v8 requires a C++11 compiler
I have read something about updating GCC to GCC5
Yes, i read this
https://github.com/node-inspector/node-inspector/issues/776 -
You need at least gcc 4.9. If you still using raspbian wheezy, either update to jessie (recommended) or use this tutorial to install gcc 4.9 (however you have to make sure that your gcc binary is pointing to gcc4.9.)
-
with the new jessie
error with this “not found: git”pi@raspberrypi:~ $ npm install pimatic --prefix pimatic-app --production
npm ERR! git clone --template=/home/pi/.npm/_git-remotes/_templates --mirror https://github.com/sweetpi/jsonlint.git /home/pi/.npm/_git-remotes/https-github-com-sweetpi-jsonlint-git-fccf491e: undefined
npm ERR! git clone --template=/home/pi/.npm/_git-remotes/_templates --mirror https://github.com/sweetpi/jsonlint.git /home/pi/.npm/_git-remotes/https-github-com-sweetpi-jsonlint-git-fccf491e: undefined
npm ERR! Linux 4.4.11+
npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “install” “pimatic” “–prefix” “pimatic-app” "–production"
npm ERR! node v4.4.5
npm ERR! npm v2.15.5
npm ERR! code ENOGITnpm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/npm-debug.log
pi@raspberrypi:~ $ -
I have updated my pimatic until step 5 of the procedure in the announcement. But then I can’t start it using the link
pimatic.js
. Also in myusr/local/lib/node_modules
there is only one entry,npm
.
So how to start pimatic 0.9? -
Hi all,
Thank you for the new version
The installation went smoothly.
The only problem is autostart pimatic…(starts only with pimatic.js start)pi@pi:~ $ wget https://raw.github.com/pimatic/pimatic/master/install/pimatic-init-d
–2016-06-19 21:58:18-- https://raw.github.com/pimatic/pimatic/master/install/pimatic-init-d
Resolving raw.github.com (raw.github.com)… 185.31.19.133
Connecting to raw.github.com (raw.github.com)|185.31.19.133|:443… connected.
HTTP request sent, awaiting response… 301 Moved Permanently
Location: https://raw.githubusercontent.com/pimatic/pimatic/master/install/pimatic-init-d [following]
–2016-06-19 21:58:19-- https://raw.githubusercontent.com/pimatic/pimatic/master/install/pimatic-init-d
Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 185.31.19.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.31.19.133|:443… connected.
HTTP request sent, awaiting response… 404 Not Found
2016-06-19 21:58:19 ERROR 404: Not Found. -
@wuschel said in Questions about the release of v0.9:
error with this “not found: git”
You need to install git:
sudo apt-get install git
It is required as pimatic (and some plugins) use some packages residing in a git repository rather than being deployed at NpmJS. We’ll add this as a requirement to the installation guide.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@Andi-Tudor said in Questions about the release of v0.9:
Hi all,
Thank you for the new version
The installation went smoothly.
The only problem is autostart pimatic…(starts only with pimatic.js start)pi@pi:~ $ wget https://raw.github.com/pimatic/pimatic/master/install/pimatic-init-d
–2016-06-19 21:58:18-- https://raw.github.com/pimatic/pimatic/master/install/pimatic-init-d
Resolving raw.github.com (raw.github.com)… 185.31.19.133
Connecting to raw.github.com (raw.github.com)|185.31.19.133|:443… connected.
HTTP request sent, awaiting response… 301 Moved Permanently
Location: https://raw.githubusercontent.com/pimatic/pimatic/master/install/pimatic-init-d [following]
–2016-06-19 21:58:19-- https://raw.githubusercontent.com/pimatic/pimatic/master/install/pimatic-init-d
Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 185.31.19.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.31.19.133|:443… connected.
HTTP request sent, awaiting response… 404 Not Found
2016-06-19 21:58:19 ERROR 404: Not Found.I have the same issue, foudn the file on github, but it doesn’t work, comes with an error that some things are missing… Will try to find what the error is
-
@Cryonic90 said in Questions about the release of v0.9:
HTTP request sent, awaiting response… 404 Not Found
For some reason there is no master at the moment. Use the following link instead: https://raw.githubusercontent.com/pimatic/pimatic/v0.9.x/install/pimatic-init-d
EDIT: Master has been recovered. So, the orginal link should work now.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
Thank you. it works
-
Hi I have the following error output:
npm ERR! Linux 3.10.96-148
npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “install” “pimatic” “–prefix” “pimatic-app” "–production"
npm ERR! node v4.4.5
npm ERR! npm v2.15.5
npm ERR! code EPEERINVALIDnpm ERR! peerinvalid The package pimatic@0.9.26 does not satisfy its siblings’ peerDependencies requirements!
npm ERR! peerinvalid Peer pimatic-calendar@0.8.0 wants pimatic@0.8.*
npm ERR! peerinvalid Peer pimatic-cron@0.8.8 wants pimatic@>=0.8.0 <1.0.0
npm ERR! peerinvalid Peer pimatic-dewpoint@0.8.4 wants pimatic@>=0.8.0 <1.0.0
npm ERR! peerinvalid Peer pimatic-gpio@0.8.15 wants pimatic@>=0.8.0 <1.0.0
npm ERR! peerinvalid Peer pimatic-ifttt@0.1.1 wants pimatic@0.8.*
npm ERR! peerinvalid Peer pimatic-lcd@0.8.3 wants pimatic@0.8.*
npm ERR! peerinvalid Peer pimatic-links@0.8.6 wants pimatic@>=0.8.0 <1.0.0
npm ERR! peerinvalid Peer pimatic-log-reader@0.8.9 wants pimatic@>=0.8.0 <1.0.0
npm ERR! peerinvalid Peer pimatic-max@0.8.17 wants pimatic@>=0.8.31 <1.0.0
npm ERR! peerinvalid Peer pimatic-mobile-frontend@0.8.83 wants pimatic@0.8.*
npm ERR! peerinvalid Peer pimatic-mqtt@0.8.12 wants pimatic@>=0.8.0 <1.0.0
npm ERR! peerinvalid Peer pimatic-mysensors@0.8.34 wants pimatic@>=0.8.0 <1.0.0
npm ERR! peerinvalid Peer pimatic-ping@0.8.14 wants pimatic@0.8.*
npm ERR! peerinvalid Peer pimatic-pushover@0.8.5 wants pimatic@0.8.*
npm ERR! peerinvalid Peer pimatic-shell-execute@0.8.22 wants pimatic@0.8.*
npm ERR! peerinvalid Peer pimatic-sysinfo@0.8.14 wants pimatic@0.8.*npm ERR! Please include the following file with any support request:
npm ERR! /home/odroid/npm-debug.logCan someone please help me?
-
I can not discover Homeduino rfdevices (nor through debug messages).
I manually added all rfdevices (from pimatic 0.8.107). The only way it works
The only devices discovered:
pimatic-ping: Scanning 192.168.1.220/24
pimatic-mysensors: Searching for nodes
pimatic-milight-reloaded: Scanning 192.168.1.0/24 -
@Andi-Tudor
in the announcement threat on the bottom you can read about this. You need to set the following on the config.json"debug": true, "logLevel": "debug",
So you can see the debug messages again.
A discovery for Homeduino rf devices is not yet implemented.
But if you have your debug data you are now able to quickly create a new device on the fly with the device editor.pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !