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?
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
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?
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
@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 ?
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.
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
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.
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
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?
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
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?