Hello,
I am new here.
I want to setup the NefInstall nefit-easy-server.
So i follow the setps @ www.domoticz.com/wiki/NefitEasy.
When i make step npm install pm2 -g then i get the following output:
pi@raspberrypi:~ $ npm install pm2 -g
npm WARN engine [email protected]: wanted: {"node":">=0.12"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm ERR! error rolling back Error: EACCES, unlink '/usr/local/bin/pm2'
npm ERR! error rolling back [email protected] { [Error: EACCES, unlink '/usr/local/bin/pm2'] errno: 3, code: 'EACCES', path: '/usr/local/bin/pm2' }
npm ERR! Error: EACCES, unlink '/usr/local/bin/pm2'
npm ERR! { [Error: EACCES, unlink '/usr/local/bin/pm2'] errno: 3, code: 'EACCES', path: '/usr/local/bin/pm2' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Linux 4.9.35+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "pm2" "-g"
npm ERR! cwd /home/pi
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! path /usr/local/bin/pm2
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, unlink '/usr/local/bin/pm2'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/npm-debug.log
npm ERR! not ok code 0
Can someone help me?
Greetings,
Martijn.
Nefit easy
Moderator: leecollings
-
- Posts: 22
- Joined: Saturday 30 December 2017 14:32
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Nefit easy
Enter this command:
Node -v
What version does it report?
Sent from my iPad using Tapatalk
Node -v
What version does it report?
Sent from my iPad using Tapatalk
-
- Posts: 4
- Joined: Saturday 03 March 2018 17:24
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Nefit easy
Hi,
pi@raspberrypi:~ $ node -v
v0.10.29
Greetings,
Martijn.
pi@raspberrypi:~ $ node -v
v0.10.29
Greetings,
Martijn.
-
- Posts: 22
- Joined: Saturday 30 December 2017 14:32
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Nefit easy
Looks like you are way behind.
See this.
http://thisdavej.com/upgrading-to-more- ... pberry-pi/
Sent from my iPad using Tapatalk
See this.
http://thisdavej.com/upgrading-to-more- ... pberry-pi/
Sent from my iPad using Tapatalk
-
- Posts: 22
- Joined: Saturday 30 December 2017 14:32
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Nefit easy
By the way. Keep an eye on your Pi’s CPU usage once you get the easy server running. Mine kept using 25% Disabled it for now until I have some time to further troubleshoot.
Sent from my iPad using Tapatalk
Sent from my iPad using Tapatalk
-
- Posts: 4
- Joined: Saturday 03 March 2018 17:24
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Nefit easy
Hi,
touch nefiteasyhttpserver.sh
Is not working is used sudo nano nefiteasyhttpserver.sh
Then i can change nefiteasyhttpserver.sh
pi@raspberrypi:~ $ chmod 755 nefiteasyhttpserver.sh
chmod: changing permissions of ‘nefiteasyhttpserver.sh’: Operation not permitted
Greetings,
Martijn.
touch nefiteasyhttpserver.sh
Is not working is used sudo nano nefiteasyhttpserver.sh
Then i can change nefiteasyhttpserver.sh
pi@raspberrypi:~ $ chmod 755 nefiteasyhttpserver.sh
chmod: changing permissions of ‘nefiteasyhttpserver.sh’: Operation not permitted
Greetings,
Martijn.
-
- Posts: 94
- Joined: Monday 30 November 2015 16:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Nefit easy
cause you are logged in as Pi, it you need the command sudo, so make it:
sudo chmod 755 nefiteasyhttpserver.sh
sudo chmod 755 nefiteasyhttpserver.sh
-
- Posts: 4
- Joined: Saturday 03 March 2018 17:24
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Nefit easy
Thanks, but why chmod 755?
-
- Posts: 30
- Joined: Friday 03 October 2014 22:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Contact:
Re: Nefit easy
Martijn, try this:
====
Nefit Easy
https://www.domoticz.com/wiki/NefitEasy
sudo apt-get install nodejs
cd ~
wget https://nodejs.org/dist/v4.4.5/node-v4. ... v6l.tar.gz
tar -xvf node-v4.4.5-linux-armv6l.tar.gz
cd node-v4.4.5-linux-armv6l
sudo cp -R * /usr/local/
node –v
cd ~
git clone https://github.com/robertklep/nefit-easy-http-server
cd nefit-easy-http-server
sudo npm i nefit-easy-http-server -g
cd ~
sudo npm install robertklep/nefit-easy-client -g
export NEFIT_SERIAL_NUMBER= yourNEFITserialnumber
export NEFIT_ACCESS_KEY= yourNEFITaccesskey
export NEFIT_PASSWORD= yourNEFITpassword
sudo npm install pm2 -g
sudo pm2 startup
Create start script
sudo touch /home/pi/nefiteasyhttpserver.sh
sudo nano /home/pi/nefiteasyhttpserver.sh
#!/bin/bash
/usr/local/bin/easy-server --serial=yourNEFITserialnumber --access-key=yourNEFITaccesskey --password=yourNEFITpassword --host=127.0.0.1 >/dev/null
sudo chmod 755 /home/pi/nefiteasyhttpserver.s
Start script
sudo pm2 start /home/pi/nefiteasyhttpserver.sh
sudo pm2 save
sudo easy --serial=yourNEFITserialnumber --access-key=yourNEFITaccesskey --password=yourNEFITpassword status
sudo easy --serial=yourNEFITserialnumber --access-key=yourNEFITaccesskey --password=yourNEFITpassword pressure
sudo nano /etc/init.d/rc.local
pm2 start nefiteasyhttpserver.sh
sudo reboot
====
My 'howto' for our Nefit Easy and Domoticz server running on a Raspberry Pi v3
====
Nefit Easy
https://www.domoticz.com/wiki/NefitEasy
sudo apt-get install nodejs
cd ~
wget https://nodejs.org/dist/v4.4.5/node-v4. ... v6l.tar.gz
tar -xvf node-v4.4.5-linux-armv6l.tar.gz
cd node-v4.4.5-linux-armv6l
sudo cp -R * /usr/local/
node –v
cd ~
git clone https://github.com/robertklep/nefit-easy-http-server
cd nefit-easy-http-server
sudo npm i nefit-easy-http-server -g
cd ~
sudo npm install robertklep/nefit-easy-client -g
export NEFIT_SERIAL_NUMBER= yourNEFITserialnumber
export NEFIT_ACCESS_KEY= yourNEFITaccesskey
export NEFIT_PASSWORD= yourNEFITpassword
sudo npm install pm2 -g
sudo pm2 startup
Create start script
sudo touch /home/pi/nefiteasyhttpserver.sh
sudo nano /home/pi/nefiteasyhttpserver.sh
#!/bin/bash
/usr/local/bin/easy-server --serial=yourNEFITserialnumber --access-key=yourNEFITaccesskey --password=yourNEFITpassword --host=127.0.0.1 >/dev/null
sudo chmod 755 /home/pi/nefiteasyhttpserver.s
Start script
sudo pm2 start /home/pi/nefiteasyhttpserver.sh
sudo pm2 save
sudo easy --serial=yourNEFITserialnumber --access-key=yourNEFITaccesskey --password=yourNEFITpassword status
sudo easy --serial=yourNEFITserialnumber --access-key=yourNEFITaccesskey --password=yourNEFITpassword pressure
sudo nano /etc/init.d/rc.local
pm2 start nefiteasyhttpserver.sh
sudo reboot
====
My 'howto' for our Nefit Easy and Domoticz server running on a Raspberry Pi v3
Who is online
Users browsing this forum: No registered users and 1 guest