Yes, code tags please.
Try to install it manually:
cd pimatic-app/node_modules
sudo rm sqlite3
sudo npm install sqlite3
If install still fails, then try with
sudo npm install sqlite3@2.2.7
[Solved] can't start pimatic, error during first start (sqlite3 installation)
Yes, code tags please.
Try to install it manually:
cd pimatic-app/node_modules
sudo rm sqlite3
sudo npm install sqlite3
If install still fails, then try with
sudo npm install sqlite3@2.2.7
I have changed my initial posting, sorry.
Memory could be really the issue:
Tasks: 136 total, 4 running, 132 sleeping, 0 stopped, 0 zombie
%Cpu(s): 73,2 us, 26,5 sy, 0,0 ni, 0,0 id, 0,0 wa, 0,0 hi, 0,3 si, 0,0 st
KiB Mem: 185872 total, 171448 used, 14424 free, 336 buffers
KiB Swap: 102396 total, 102260 used, 136 free, 24720 cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
25229 pi 20 0 88832 79m 8024 R 53,0 43,5 2:10.18 cc1
I will do some tries and observe the Memory.
Edit: Could solve faster than expected. Just stopped two background jobs (pilight-daemon & fail2ban) and pimatic is now running on the A+. Thanks again!
Consider to add more swap space to your pi. The pi will be very slow, if swapping, but keeps running instead of going oom.
Hi,
I can’t seem to run this script after “cd /home/pi” to install pimatic on Raspberry Pi. Please help.
cd /home/pi
mkdir pimatic-app
npm install pimatic --prefix pimatic-app --production
to install the pimatic framework.
Copy the default config file:
cd pimatic-app
cp ./node_modules/pimatic/config_default.json ./config.json
@Jey-Kasi what error do you get? Do you have node and npm installed?
Pimatic, smart home made by smart folks, for the rest of us!
@Jey-Kasi said:
npm install pimatic --prefix pimatic-app --production
what happens when you do
npm install pimatic --prefix pimatic-app --production
any error(s)?
Pimatic, smart home made by smart folks, for the rest of us!
@Jey-Kasi what do you get when you do
which npm
Pimatic, smart home made by smart folks, for the rest of us!
npm v0.10.24-linux-arm
I ran this command “/usr/bin/env node --version” but i get an error message. I did see the Node.js installation run and I do see the files in /home/pi
@Jey-Kasi well I am surprised, I was expecting the path of the npm binary. Can you paste the error you are getting now?
Pimatic, smart home made by smart folks, for the rest of us!
@Jey-Kasi what flavour of linux are you running on your PI?
Pimatic, smart home made by smart folks, for the rest of us!
I’m running RASPBIAN Linux Raspberrypi 3.12.28+
I’m running VNC viewer to program the RPi so I’m unable to copy and paste. Let me see if I can take a snapshot.
Question: where can i get a gcc compiler from ?
@Jey-Kasi I think apt-get install gcc
or apt-get install g++
will do the trick.
Are you sure you’ve run sudo apt-get install build-essential
earlier?
Pimatic, smart home made by smart folks, for the rest of us!
@sebastienvg said:
"sudo apt-get install build-essential
I ran the above again and got a confirmation “done”
Then I ran apt-get install gcc or apt-get install g++ and to the error below
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
@Jey-Kasi add sudo on front (professional deformation I always connect as root)
Pimatic, smart home made by smart folks, for the rest of us!
got that to work but still can’t run from this step on
cd /home/pi
mkdir pimatic-app
error message -> mkdir: cannot create directory ‘pimatic-app’: File exists
npm install pimatic --prefix pimatic-app --production
error message -> bash: npm: command not found
Is there another way to go about? Thanks!
Pimatic, smart home made by smart folks, for the rest of us!
I ran this line below and sown it install
sudo apt-get install nodejs npm
then ran
npm install pimatic --prefix pimatic-app --production
still got an error message -> bash: npm: command not found