Re: Nefit Easy™
Posted: Monday 22 February 2016 22:28
@pepijn: is it also possible to pull the amount of m3 of gas and put this in a meter of somekind. Would love yo pull this data and put it into a chart.
Yes it is, i'am working on that but have two issues:knights wrote:@pepijn: is it also possible to pull the amount of m3 of gas and put this in a meter of somekind. Would love yo pull this data and put it into a chart.
Nefit easy server binds to the localhost by default. So you need to add the --host parameter as described in the documentation.Holland wrote:Question related to the nefit http server functionality of Domoticz. I tried to use another Domoticz server (in my case 10.58.60.84 and port 3000) as the remote server and it didn't work. Whereas locally, using 127.0.0.1 port 3000, it works without a problem. So a bit strange. Is this a known limitation?
will follow this thread for any new developments then. I am very happy with getting readouts from the nefit btw! Good luck with the project.pepijn wrote:Yes it is, i'am working on that but have two issues:knights wrote:@pepijn: is it also possible to pull the amount of m3 of gas and put this in a meter of somekind. Would love yo pull this data and put it into a chart.
1) time
2) the easy has 2 gas recordings yearly total and daily split by usage type (heating/hot water) i want to use the split data but this a day behind and only showing daily usage.
Code: Select all
#!/bin/bash
NEFIT_SERIAL_NUMBER=1234
NEFIT_ACCESS_KEY=abcd
NEFIT_PASSWORD=xyz
echo "running Easy Server"
/usr/local/bin/easy-server --serial=$NEFIT_SERIAL_NUMBER --access-key=$NEFIT_ACCESS_KEY --password=$NEFIT_PASSWORD >/tmp/easiest.log
Code: Select all
@reboot /home/pi/scripts/easiest > /tmp/cron.log 2> /tmp/cron.err
Code: Select all
/usr/local/lib/node_modules/nefit-easy-http-server/lib/cli/index.js:32
return client.connect().then(() => {
^
SyntaxError: Unexpected token )
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/usr/local/lib/node_modules/nefit-easy-http-server/bin/easy-server:3:1)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
I too just switched to Jessie and followed the instructions on http://nodered.org/docs/hardware/raspberrypi.html, scroll down to chapter "Adding Autostart capability using SystemD" and follow instructions there to install the service and make it auto-start (not using cron).Niels wrote:Hi all,
I reinstalled my Rpi with Jessie and updated node(v5.6.0) and NPM(v3.6.0), but can't the get Easy-server started up from a cronfile. My Linux-knowledge is (still) limited...I hope someone can help me out:
The script Sweetpants created (sligthly adapted, located in /home/pi/scripts) is working fine:It doesn't matter if I'm running this script as 'pi' or as root: it works just fine.Code: Select all
#!/bin/bash NEFIT_SERIAL_NUMBER=1234 NEFIT_ACCESS_KEY=abcd NEFIT_PASSWORD=xyz echo "running Easy Server" /usr/local/bin/easy-server --serial=$NEFIT_SERIAL_NUMBER --access-key=$NEFIT_ACCESS_KEY --password=$NEFIT_PASSWORD >/tmp/easiest.log
But:when I try to fire the script from a cron-file with this content:...there is something going wrong: the output in cron.err:Code: Select all
@reboot /home/pi/scripts/easiest > /tmp/cron.log 2> /tmp/cron.err
Any idea on how to fix this?Code: Select all
/usr/local/lib/node_modules/nefit-easy-http-server/lib/cli/index.js:32 return client.connect().then(() => { ^ SyntaxError: Unexpected token ) at Module._compile (module.js:439:25) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (/usr/local/lib/node_modules/nefit-easy-http-server/bin/easy-server:3:1) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32)
Cheers,
Niels
pm2 start nefiteasyhttpserver.sh toevoegen aan /etc/rc.local (vóór de regel met exit 0)?Niels wrote:PM2 seems to do the job. Next step is to auto-start PM2 at reboot...suggestions appreciated!
Please keep it in EnglishDoler wrote:pm2 start nefiteasyhttpserver.sh toevoegen aan /etc/rc.local (vóór de regel met exit 0)?Niels wrote:PM2 seems to do the job. Next step is to auto-start PM2 at reboot...suggestions appreciated!
Code: Select all
pm2 startup
Code: Select all
sudo pm2 startup
Code: Select all
sudo pm2 save
Thanks. Got it working nowNefit easy server binds to the localhost by default. So you need to add the --host parameter as described in the documentation.
https://github.com/robertklep/nefit-eas ... /README.md
So not strange but as designed
Did you install the armv7 binaries instead of the armv6 needed for the 1st generation Pi'sHenk wrote:Hi,
I have got my Rasberry Pi 0 running with Raspbian and Domoticz. All latest versions and working fine. But I can't get this installation for Nefit Easy get to work. I'll gues it is going wrong in the first stage. Tough I managed to install node v5.3.0 I get a 'Segmentation fault' as a reaction to the command node -v. When i ignore this fault and move on to installing the nefit client, I also get the samen notification on npm install. Any ideas of what is going wrong?