Page 20 of 37

Re: Nefit Easy™

Posted: Thursday 24 March 2016 18:02
by Heursqem
pepijn wrote:
Heursqem wrote:so, got all working fine
Used the nefit-easy-http-server and within Domoticz condigured hardware as "Nefit Easy HTTP server over LAN interface"

Domoticz created 6 standard/default devices for me

How can I add devices using the listed endpoints below?
pepijn wrote:
https://github.com/robertklep/nefit-eas ... -endpoints

This is the list of supported endpoints.
which endpoints do you want to use?
already found a solution
think I can manage with lua scripting

Re: Nefit Easy™

Posted: Thursday 24 March 2016 21:59
by Holland
@Henk

Have a look to this post ;viewtopic.php?f=17&t=9653&start=280#p76926

To add a little color to PM2 thingy. I had myself some issues to let it autostart. (used the work perfectly)

Only if you are using Jessie (check via hostnamectl) the following workaround solves the autostart issue;

1. Delete the pm2*.sh file in /etc/init.d
2. sudo pm2 startup systemd –u pi
3. pm2 start nefiteasyhttpserver.sh
4. pm2 save

Then reboot the machine to check if it works


* credits to this guy: http://tech.scargill.net/pm2-node-red-and-the-rock/

Re: Nefit Easy™

Posted: Saturday 26 March 2016 6:50
by Henk
Hi Holland,

Many thanks for your reaction. Brings me no luck though. Tried these setting before you wrote this supply and tried it again but no auto startup from the nefit server after sudo reboot. All the steps finally give a positive feedback.

Took a look in the pm2 logs and there are some errors:

/home/pi/nefiteasyhttpserver.sh: line 1: $'\r': command not found
/home/pi/nefiteasyhttpserver.sh: line 3: $'\r': command not found
/home/pi/nefiteasyhttpserver.sh: line 1: $'\r': command not found
/home/pi/nefiteasyhttpserver.sh: line 3: $'\r': command not found
/home/pi/nefiteasyhttpserver.sh: line 1: $'\r': command not found
/home/pi/nefiteasyhttpserver.sh: line 3: $'\r': command not found
/home/pi/nefiteasyhttpserver.sh: line 1: $'\r': command not found
/home/pi/nefiteasyhttpserver.sh: line 3: $'\r': command not found
/home/pi/nefiteasyhttpserver.sh: line 1: $'\r': command not found
/home/pi/nefiteasyhttpserver.sh: line 3: $'\r': command not found
/home/pi/nefiteasyhttpserver.sh: line 1: $'\r': command not found
/home/pi/nefiteasyhttpserver.sh: line 3: $'\r': command not found
/home/pi/nefiteasyhttpserver.sh: line 1: $'\r': command not found
/home/pi/nefiteasyhttpserver.sh: line 3: $'\r': command not found
/home/pi/nefiteasyhttpserver.sh: line 1: $'\r': command not found
/home/pi/nefiteasyhttpserver.sh: line 3: $'\r': command not found

My script, when starting manual is working fine:

#!/bin/bash

/usr/local/bin/easy-server --serial=******** --access-key=******** --password=******** > /dev/null

So any idea what is going wrong? Can break lines in the script mess things up?
Holland wrote:@Henk

Have a look to this post ;viewtopic.php?f=17&t=9653&start=280#p76926

To add a little color to PM2 thingy. I had myself some issues to let it autostart. (used the work perfectly)

Only if you are using Jessie (check via hostnamectl) the following workaround solves the autostart issue;

1. Delete the pm2*.sh file in /etc/init.d
2. sudo pm2 startup systemd –u pi
3. pm2 start nefiteasyhttpserver.sh
4. pm2 save

Then reboot the machine to check if it works


* credits to this guy: http://tech.scargill.net/pm2-node-red-and-the-rock/

Re: Nefit Easy™

Posted: Saturday 26 March 2016 12:57
by Holland
Indeed, I would think that nefiteasyhttpserver.sh is created in a windows tekst editor.

Recreate the file with nano, and copy past the 2 lines:

Code: Select all

sudo nano nefiteasyhttpserver.sh

Re: Nefit Easy™

Posted: Saturday 26 March 2016 16:24
by Henk
Could not imagine me creating the file in Windows, but to be sure I recreated the file. Same problems though. Any ideas?
Holland wrote:Indeed, I would think that nefiteasyhttpserver.sh is created in a windows tekst editor.

Recreate the file with nano, and copy past the 2 lines:

Code: Select all

sudo nano nefiteasyhttpserver.sh

Re: Nefit Easy™

Posted: Saturday 26 March 2016 22:13
by Holland
After you do:

pm2 start nefiteasyhttpserver.sh

and issue

pm2 list

what do you see?

See below what my pm2 returns what I issue pm2 list
┌─────────────────────┬────┬──────┬─────┬────────┬─────────┬────────┬─────────────┬──────────┐
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ memory │ watching │
├─────────────────────┼────┼──────┼─────┼────────┼─────────┼────────┼─────────────┼──────────┤
│ server │ 0 │ fork │ 610 │ online │ 0 │ 36h │ 32.324 MB │ disabled │
│ nefiteasyhttpserver │ 1 │ fork │ 617 │ online │ 0 │ 36h │ 2.309 MB │ disabled │
└─────────────────────┴────┴──────┴─────┴────────┴─────────┴────────┴─────────────┴──────────┘

Re: Nefit Easy™

Posted: Sunday 27 March 2016 8:42
by Henk
Yeah Holland,

that's the same over here for what I can see. The only thing that is different is the server line. Are you running something else that is important for my situation?

┌─────────────────────┬────┬──────┬─────┬────────┬─────────┬────────┬─────────── ─┬──────────┐
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ memory │ watching │
├─────────────────────┼────┼──────┼─────┼────────┼─────────┼────────┼─────────── ─┼──────────┤
│ nefiteasyhttpserver │ 0 │ fork │ 624 │ online │ 0 │ 15h │ 2.578 MB │ disabled │
└─────────────────────┴────┴──────┴─────┴────────┴─────────┴────────┴───────────

Re: Nefit Easy™

Posted: Sunday 27 March 2016 11:56
by Holland
The server app is for my Sonos implementation

Re: Nefit Easy™

Posted: Sunday 27 March 2016 13:36
by Henk
Hm,

cleared the logs for nefit easy server as shown above. This because there is no date and time stamp there with them.

Then did a sudo reboot and found in the pm2 log that the starting of the nefit server is not executed at all, and a new error log is not created. So nothing is going wrong I think. For the program it is, from my point of view it's not working as it should do.

Last part of the PM2.log:

2016-03-27 13:25:06: pm2 has been killed by signal, dumping process list before exit...
2016-03-27 13:25:06: Stopping app:nefiteasyhttpserver id:0
2016-03-27 13:25:06: App [nefiteasyhttpserver] with id [0] and pid [624], exited with code [0] via signal [SIGTERM]
2016-03-27 13:25:06: [PM2] Exited peacefully

My dump.pm2 is looking like this:

[{"name":"nefiteasyhttpserver","vizion":true,"pmx":true,"automation":true,"autorestart":true,"treekill":true,"exec_mode":"fork_mode","node_args":[],"pm_exec_path":"/home/pi/nefiteasyhttpserver.sh","env":{"_":"/usr/local/bin/pm2","SSH_CONNECTION":"192.168.178.18 60194 192.168.178.43 22","LOGNAME":"pi","HOME":"/home/pi","SHLVL":"1","LANG":"en_GB.UTF-8","PWD":"/home/pi","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games","MAIL":"/var/mail/pi","LS_COLORS":"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:","USER":"pi","SSH_TTY":"/dev/pts/0","SSH_CLIENT":"192.168.178.18 60194 22","SHELL":"/bin/bash","TERM":"xterm","pm_cwd":"/home/pi","nefiteasyhttpserver":{}},"pm_cwd":"/home/pi","exec_interpreter":"bash","pm_out_log_path":"/home/pi/.pm2/logs/nefiteasyhttpserver-out-0.log","pm_err_log_path":"/home/pi/.pm2/logs/nefiteasyhttpserver-error-0.log","pm_pid_path":"/home/pi/.pm2/pids/nefiteasyhttpserver-0.pid","NODE_APP_INSTANCE":0,"vizion_running":false,"TERM":"xterm","SHELL":"/bin/bash","SSH_CLIENT":"192.168.178.18 60194 22","SSH_TTY":"/dev/pts/0","USER":"pi","LS_COLORS":"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:","MAIL":"/var/mail/pi","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games","PWD":"/home/pi","LANG":"en_GB.UTF-8","SHLVL":"1","HOME":"/home/pi","LOGNAME":"pi","SSH_CONNECTION":"192.168.178.18 60194 192.168.178.43 22","_":"/usr/local/bin/pm2","status":"online","pm_uptime":1459006247355,"axm_actions":[],"axm_monitor":{},"axm_options":{},"axm_dynamic":{},"created_at":1459006247356,"restart_time":0,"unstable_restarts":0,"started_inside":false,"command":{"locked":false,"metadata":{},"started_at":null,"finished_at":null,"error":null},"versioning":null}]

Any ideas?

Re: Nefit Easy™

Posted: Thursday 31 March 2016 18:35
by knights
@pepijn or anyone else: is the return temperature also available from the Nefit? I checked the list of endpoints but I could not find anything similar. Can you confirm that this is not possible? Or perhaps the delta T of the water ?

Re: Nefit Easy™

Posted: Saturday 02 April 2016 10:29
by Douwe
I'm using Domoticz 3.5033 on the Pi. nefiteasyserver is running (PM2). Get the following log:

2016-04-02 10:14:30.852 Error: nefit thermostaat hardware (7) thread seems to have ended unexpectedly
2016-04-02 10:14:33.575 (Youless) YouLess Meter (Youless)
2016-04-02 10:14:43.590 (Youless) YouLess Meter (Youless)
2016-04-02 10:14:44.706 Hardware Monitor: Fetching data (System sensors)
2016-04-02 10:14:53.603 (Youless) YouLess Meter (Youless)
2016-04-02 10:15:01.171 Error: nefit thermostaat hardware (7) thread seems to have ended unexpectedly
2016-04-02 10:15:03.616 (Youless) YouLess Meter (Youless)

reboot domoticz and or Pi doesn't help anymore. (yes sudo apt-get update/upgrade)

any suggestion?

Nefit Easy™

Posted: Saturday 02 April 2016 11:46
by Marcel
My easy is woking but receive continous errors, anyone have a clue?


Verzonden vanaf mijn iPhone met TapatalkImage

Re: Nefit Easy™

Posted: Monday 04 April 2016 19:00
by SweetPants
Occasionally I also see the "Error: NefitEasy: Invalid data received (main)!" error, but not as often as you do.
I think this is due to communication problems with the backend.

Re: Nefit Easy™

Posted: Wednesday 06 April 2016 12:21
by Henk
Fixed my startup problem after reboot!
I had to modify the /etc/init.d/pm2-init.sh file
export PM2_HOME="/root/.pm2" altered to: export PM2_HOME="/home/pi/.pm2"
Henk wrote:Hm,

cleared the logs for nefit easy server as shown above. This because there is no date and time stamp there with them.

Then did a sudo reboot and found in the pm2 log that the starting of the nefit server is not executed at all, and a new error log is not created. So nothing is going wrong I think. For the program it is, from my point of view it's not working as it should do.

Last part of the PM2.log:

2016-03-27 13:25:06: pm2 has been killed by signal, dumping process list before exit...
2016-03-27 13:25:06: Stopping app:nefiteasyhttpserver id:0
2016-03-27 13:25:06: App [nefiteasyhttpserver] with id [0] and pid [624], exited with code [0] via signal [SIGTERM]
2016-03-27 13:25:06: [PM2] Exited peacefully

My dump.pm2 is looking like this:

[{"name":"nefiteasyhttpserver","vizion":true,"pmx":true,"automation":true,"autorestart":true,"treekill":true,"exec_mode":"fork_mode","node_args":[],"pm_exec_path":"/home/pi/nefiteasyhttpserver.sh","env":{"_":"/usr/local/bin/pm2","SSH_CONNECTION":"192.168.178.18 60194 192.168.178.43 22","LOGNAME":"pi","HOME":"/home/pi","SHLVL":"1","LANG":"en_GB.UTF-8","PWD":"/home/pi","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games","MAIL":"/var/mail/pi","LS_COLORS":"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:","USER":"pi","SSH_TTY":"/dev/pts/0","SSH_CLIENT":"192.168.178.18 60194 22","SHELL":"/bin/bash","TERM":"xterm","pm_cwd":"/home/pi","nefiteasyhttpserver":{}},"pm_cwd":"/home/pi","exec_interpreter":"bash","pm_out_log_path":"/home/pi/.pm2/logs/nefiteasyhttpserver-out-0.log","pm_err_log_path":"/home/pi/.pm2/logs/nefiteasyhttpserver-error-0.log","pm_pid_path":"/home/pi/.pm2/pids/nefiteasyhttpserver-0.pid","NODE_APP_INSTANCE":0,"vizion_running":false,"TERM":"xterm","SHELL":"/bin/bash","SSH_CLIENT":"192.168.178.18 60194 22","SSH_TTY":"/dev/pts/0","USER":"pi","LS_COLORS":"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:","MAIL":"/var/mail/pi","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games","PWD":"/home/pi","LANG":"en_GB.UTF-8","SHLVL":"1","HOME":"/home/pi","LOGNAME":"pi","SSH_CONNECTION":"192.168.178.18 60194 192.168.178.43 22","_":"/usr/local/bin/pm2","status":"online","pm_uptime":1459006247355,"axm_actions":[],"axm_monitor":{},"axm_options":{},"axm_dynamic":{},"created_at":1459006247356,"restart_time":0,"unstable_restarts":0,"started_inside":false,"command":{"locked":false,"metadata":{},"started_at":null,"finished_at":null,"error":null},"versioning":null}]

Any ideas?

Re: Nefit Easy™

Posted: Thursday 07 April 2016 18:20
by knights
Is there anyone who has some time and expertise and can look into the gas usage? Or can anybody show me in the direction to make this happen?

I did some research and you need to get the records from /ecus/rrc/recordings/gasusagePointer , which you translate to pagenumbers with help of <page>=ceil(<records>/32. Then you can use the /ecus/rrc/recordings/gasusage?page=<page> to get the daily usage. HW is water and CH is central heating.

Re: Nefit Easy™

Posted: Thursday 07 April 2016 22:16
by pepijn
This is the way to read the usage. The 'issue' is that it only shows yesterday's usage not the current usage. But if you don't mind to shift a day you could use the json api to publish the data into domoticz


Verzonden vanaf mijn iPhone met Tapatalk

Re: Nefit Easy™

Posted: Friday 08 April 2016 16:14
by knights
You mean that it only shows the total usage untill yesterday ?

I would not mind having the usage being a day wrong. Is there anything you can do from your end to make this happen? :)

Re: Nefit Easy™

Posted: Saturday 23 April 2016 16:12
by mvveelen
The easy-server on my Synology has been running fine for week, for months actually. Last week it suddenly crashed and when I restarted the Synology, everything was fine again.

Now I'm wondering: are there updates released once in a while for this easy-server? Or is it still the first one that was released and is it not likely to be updated?

Re: Nefit Easy™

Posted: Saturday 30 April 2016 20:10
by mvveelen
After updating to the latest DSM5.2 on my Synology, the easy-server stopped working. When I restart the Synology, it won't start.
When I start it from the command line, it works. Until I close my Mac.
I made a new script which should start the server when the Synology starts, but it doesn't work anymore.

Someone who knows what to do?

edit: solved. Just had to find my own posts in this topic to solve it :oops:

Re: Nefit Easy™

Posted: Tuesday 03 May 2016 13:57
by knights
On a Dutch forum I found someone who got their gas usage working in Domoticz. The thing only is that he is using the Synology method to get his readings.

He shared me his source and gave me permission to share it with you. Below the link to the file, especially the push2domoticz.php is interesting.

Can someone look into his source and check if there is a way to use his coding for the nefiteasyhttpserver and domoticz?

https://martenhammann.stackstorage.com/ ... YDmH6YqS7K