I have done this now. Now I don't have an error with the CP command but when I do node-v I get: segmentation fault.you have to stop node-red first before you can issue that command.
sudo ps -ef | grep node
sudo /etc/init.d/nodered stop
node -v
(VERSIE 0.10.4 OID ZOU ER MOETEN STAAN)
wget https://nodejs.org/dist/v5.3.0/node-v5. ... v7l.tar.gz
tar -xvf node-v5.3.0-linux-armv7l.tar.gz
cd node-v5.3.0-linux-armv7l
sudo cp -R * /usr/local/
node -v
(VERSIE 5.3.0 ZOU ER MOETEN STAAN)
Nefit Easy™
Moderator: leecollings
-
- Posts: 6
- Joined: Tuesday 08 December 2015 22:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Nefit Easy™ client library (How to install on the Pi)
-
- Posts: 251
- Joined: Friday 12 July 2013 13:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Nefit Easy™ client library (How to install on the Pi)
I published the node on NPMjs so for installation use:
Code: Select all
sudo npm install -g node-red-contrib-nefit-easy
-
- Posts: 251
- Joined: Friday 12 July 2013 13:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Nefit Easy™ client library (How to install on the Pi)
Doler wrote:I have the same problem, 7 minutes after a restart of red-noderostyk wrote:@pepijn
i got once per hour a error with crash of node-red:looks like connection are closed (dropped by nefit easy) after a 40-50 minutes.Code: Select all
Error: read ECONNRESET at exports._errnoException (util.js:870:11) at TLSWrap.onread (net.js:544:26)
i will report after clean reinstall (probably caused by mine changes in a code)MarkCode: Select all
6 Jan 17:26:26 - [red] Uncaught Exception: 6 Jan 17:26:26 - Error: read ECONNRESET at exports._errnoException (util.js:855:11) at TLSWrap.onread (net.js:544:26)
Should be fixed in the new version:
Upgrade:
Code: Select all
sudo npm un -g node-red-contrib-nefit-easy
sudo npm i -g node-red-contrib-nefit-easy
sudo service nodered restart
-
- Posts: 142
- Joined: Friday 31 July 2015 21:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Sint-Oedenrode, Netherlands
- Contact:
Re: Nefit Easy™ client library (How to install on the Pi)
Thanks for the solution but you have to help me once more before I can test. Before I saw your message I decided to do a new install on a saved image since I felt a little uncertain on all try-and-error of last few days.pepijn wrote: Should be fixed in the new version:
Upgrade:Code: Select all
sudo npm u -g node-red-contrib-nefit-easy sudo npm i -g node-red-contrib-nefit-easy sudo service nodered restart
So I started with updating nodejs:
Code: Select all
sudo ps -ef | grep node
sudo service nodered stop
node -v
wget https://nodejs.org/dist/v5.3.0/node-v5.3.0-linux-armv7l.tar.gz
tar -xvf node-v5.3.0-linux-armv7l.tar.gz
cd node-v5.3.0-linux-armv7l
sudo cp -R * /usr/local/
node -v
sudo service nodered start
Code: Select all
sudo npm cache clean
sudo npm install -g --unsafe-perm node-red
Code: Select all
sudo npm i nefit-easy-client -g
Code: Select all
sudo npm i -g node-red-contrib-nefit-easy
sudo service nodered restart
What did I forget? How can I check what is missing?
Thanks, Mark
Mark: Domoticz Beta on Raspberry Pi 4 running Debian Bookworm - Z-Stick 7 - RFXCom - P1 - MySensors - SolarEdge - Dahua - Philips Hue - Docker - Zigbee2mqtt (plugin) - Zwave-js-ui - dzVents - Nodered
-
- Posts: 251
- Joined: Friday 12 July 2013 13:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Nefit Easy™ client library (How to install on the Pi)
Try to remove and reinstall node-red-contrib-nefit-easy. There was an issue with earlier versions.Doler wrote:Thanks for the solution but you have to help me once more before I can test. Before I saw your message I decided to do a new install on a saved image since I felt a little uncertain on all try-and-error of last few days.pepijn wrote: Should be fixed in the new version:
Upgrade:Code: Select all
sudo npm u -g node-red-contrib-nefit-easy sudo npm i -g node-red-contrib-nefit-easy sudo service nodered restart
So I started with updating nodejs:Then updated node-RED:Code: Select all
sudo ps -ef | grep node sudo service nodered stop node -v wget https://nodejs.org/dist/v5.3.0/node-v5.3.0-linux-armv7l.tar.gz tar -xvf node-v5.3.0-linux-armv7l.tar.gz cd node-v5.3.0-linux-armv7l sudo cp -R * /usr/local/ node -v sudo service nodered start
Installed nefit-easy-client:Code: Select all
sudo npm cache clean sudo npm install -g --unsafe-perm node-red
Then installed nefit-easy node:Code: Select all
sudo npm i nefit-easy-client -g
Imported your example script and added necessary nefit easy and device data. After deploying the script the only debug messages I get is "Error: REQUEST_TIMEOUT".Code: Select all
sudo npm i -g node-red-contrib-nefit-easy sudo service nodered restart
What did I forget? How can I check what is missing?
Thanks, Mark
-
- Posts: 142
- Joined: Friday 31 July 2015 21:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Sint-Oedenrode, Netherlands
- Contact:
Re: Nefit Easy™ client library (How to install on the Pi)
Did that and it's looking far better now (happy that it wasn't me ). Still getting occasional errors 'REQUEST_TIMEOUT' but also success messages. Hopefully that can be fixed too. In the mean time I keep it up and see if it will stay connected.pepijn wrote: Try to remove and reinstall node-red-contrib-nefit-easy. There was an issue with earlier versions.
Thanks again, Mark
Mark: Domoticz Beta on Raspberry Pi 4 running Debian Bookworm - Z-Stick 7 - RFXCom - P1 - MySensors - SolarEdge - Dahua - Philips Hue - Docker - Zigbee2mqtt (plugin) - Zwave-js-ui - dzVents - Nodered
-
- Posts: 251
- Joined: Friday 12 July 2013 13:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Nefit Easy™ client library (How to install on the Pi)
The new error handling in the library generate these errors. Right now I use a static timeout setting, this will be modified in a future version.
- mvveelen
- Posts: 678
- Joined: Friday 31 October 2014 10:22
- Target OS: NAS (Synology & others)
- Domoticz version: Beta
- Location: Hoorn, The Netherlands
- Contact:
Re: Nefit Easy™ client library (How to install on the Pi)
Hi guys, just following this thread and hoping there will be something I could use on my Synology NAS. I'm not using Domoticz anymore on the RPi, but really want to integrate my Nefit Easy in Domoticz. Wishful thinking perhaps, but a guy can dream right ?
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
-
- Posts: 251
- Joined: Friday 12 July 2013 13:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Nefit Easy™ client library (How to install on the Pi)
What about my suggestion on Tweakers? Run Node-RED on your Pi? Maybe there's also a nodejs package for Synologymvveelen wrote:Hi guys, just following this thread and hoping there will be something I could use on my Synology NAS. I'm not using Domoticz anymore on the RPi, but really want to integrate my Nefit Easy in Domoticz. Wishful thinking perhaps, but a guy can dream right ?
https://www.synology.com/en-us/dsm/app_packages/Node_js
-
- Posts: 179
- Joined: Friday 12 July 2013 13:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta Ch
- Location: The Netherlands
- Contact:
Re: Nefit Easy™ client library (How to install on the Pi)
Pepijn.
Got the uninstall working by adding the letter n. npm version 3.3.12
sudo npm un -g node-red-contrib-nefit-easy
Got the uninstall working by adding the letter n. npm version 3.3.12
sudo npm un -g node-red-contrib-nefit-easy
-
- Posts: 251
- Joined: Friday 12 July 2013 13:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Nefit Easy™ client library (How to install on the Pi)
Oeps... Thanks for correcting my typoHolland wrote:Pepijn.
Got the uninstall working by adding the letter n. npm version 3.3.12
sudo npm un -g node-red-contrib-nefit-easy
- mvveelen
- Posts: 678
- Joined: Friday 31 October 2014 10:22
- Target OS: NAS (Synology & others)
- Domoticz version: Beta
- Location: Hoorn, The Netherlands
- Contact:
Re: Nefit Easy™ client library (How to install on the Pi)
There isn't a package with the right version, but I installed it manually and can use the deprecated script. So maybe I'm nearly there already ?pepijn wrote:What about my suggestion on Tweakers? Run Node-RED on your Pi? Maybe there's also a nodejs package for Synologymvveelen wrote:Hi guys, just following this thread and hoping there will be something I could use on my Synology NAS. I'm not using Domoticz anymore on the RPi, but really want to integrate my Nefit Easy in Domoticz. Wishful thinking perhaps, but a guy can dream right ?
https://www.synology.com/en-us/dsm/app_packages/Node_js
This "Node-RED" is abracadabra for me though. Is this necessary for the newer scripts to work with Domoticz? I'd love to try it.....
Last edited by mvveelen on Thursday 07 January 2016 22:34, edited 1 time in total.
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
-
- Posts: 179
- Joined: Friday 12 July 2013 13:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta Ch
- Location: The Netherlands
- Contact:
Re: Nefit Easy™ client library (How to install on the Pi)
Just wondering what is the svalue for flowtemp. I tried both flowtemp and actualSupplyTemperature, but that didn't work
domoticz_msg.payload.svalue = "" + NefitJSON['flowtemp'];
domoticz_msg.payload.svalue = "" + NefitJSON['flowtemp'];
-
- Posts: 9
- Joined: Monday 04 January 2016 16:58
- Target OS: Windows
- Domoticz version: 2.4028
- Contact:
Re: Nefit Easy™ client library (How to install on the Pi)
in current realisation:Holland wrote:Just wondering what is the svalue for flowtemp. I tried both flowtemp and actualSupplyTemperature, but that didn't work
domoticz_msg.payload.svalue = "" + NefitJSON['flowtemp'];
you will receive json code like this:
Code: Select all
{ "topic": "nefit-flowtemp", "payload": { "id": "/heatingCircuits/hc1/actualSupplyTemperature", "type": "floatValue", "recordable": 0, "writeable": 0, "value": 36, "unitOfMeasure": "C", "minValue": 0, "maxValue": 100 }, "_msgid": "830e9319.7cf17" }
Code: Select all
"" + NefitJSON['value']]
in mine previus post i suggest to edit a nefit-easy-commands to receive it in more "human-friendly format" what we have for example for pressure
-
- Posts: 251
- Joined: Friday 12 July 2013 13:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Nefit Easy™ client library (How to install on the Pi)
This is just the full output from the boiler. Off course I can minimize the amount of data displayed in the jsonrostyk wrote:in current realisation:Holland wrote:Just wondering what is the svalue for flowtemp. I tried both flowtemp and actualSupplyTemperature, but that didn't work
domoticz_msg.payload.svalue = "" + NefitJSON['flowtemp'];
you will receive json code like this:so just use:Code: Select all
{ "topic": "nefit-flowtemp", "payload": { "id": "/heatingCircuits/hc1/actualSupplyTemperature", "type": "floatValue", "recordable": 0, "writeable": 0, "value": 36, "unitOfMeasure": "C", "minValue": 0, "maxValue": 100 }, "_msgid": "830e9319.7cf17" }
Code: Select all
"" + NefitJSON['value']]
in mine previus post i suggest to edit a nefit-easy-commands to receive it in more "human-friendly format" what we have for example for pressure
-
- Posts: 251
- Joined: Friday 12 July 2013 13:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Nefit Easy™ client library (How to install on the Pi)
The newer 'scripts' are exactly the same as the depreciated one, only split into some parts.mvveelen wrote:There isn't a package with the right version, but I installed it manually and can use the deprecated script. So maybe I'm nearly there already ?pepijn wrote:What about my suggestion on Tweakers? Run Node-RED on your Pi? Maybe there's also a nodejs package for Synologymvveelen wrote:Hi guys, just following this thread and hoping there will be something I could use on my Synology NAS. I'm not using Domoticz anymore on the RPi, but really want to integrate my Nefit Easy in Domoticz. Wishful thinking perhaps, but a guy can dream right ?
https://www.synology.com/en-us/dsm/app_packages/Node_js
This "Node-RED" is abracadabra for me though. Is this necessary for the newer scripts to work with Domoticz? I'd love to try it.....
You need something to translate between the script and Domoticz. I use Node-RED for that but it can also be done in other ways like perl or lua
-
- Posts: 251
- Joined: Friday 12 July 2013 13:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Nefit Easy™ client library (How to install on the Pi)
Robert added a supplyTemperature command to the library, I will implement this in the next version.pepijn wrote:This is just the full output from the boiler. Off course I can minimize the amount of data displayed in the jsonrostyk wrote:in current realisation:Holland wrote:Just wondering what is the svalue for flowtemp. I tried both flowtemp and actualSupplyTemperature, but that didn't work
domoticz_msg.payload.svalue = "" + NefitJSON['flowtemp'];
you will receive json code like this:so just use:Code: Select all
{ "topic": "nefit-flowtemp", "payload": { "id": "/heatingCircuits/hc1/actualSupplyTemperature", "type": "floatValue", "recordable": 0, "writeable": 0, "value": 36, "unitOfMeasure": "C", "minValue": 0, "maxValue": 100 }, "_msgid": "830e9319.7cf17" }
Code: Select all
"" + NefitJSON['value']]
in mine previus post i suggest to edit a nefit-easy-commands to receive it in more "human-friendly format" what we have for example for pressure
-
- Posts: 9
- Joined: Monday 04 January 2016 16:58
- Target OS: Windows
- Domoticz version: 2.4028
- Contact:
Re: Nefit Easy™ client library (How to install on the Pi)
I still have feeling that for every "nefit-easy node" we execute full authorisation session from beginning. thats not good because we overuse connections (which are limited up to five, according to Nefit documentation).
upd: thats good because for that purpose i modify status.js command include code for flow temperature just five minutes ago
upd: thats good because for that purpose i modify status.js command include code for flow temperature just five minutes ago
-
- Posts: 251
- Joined: Friday 12 July 2013 13:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Nefit Easy™ client library (How to install on the Pi)
As said before I'm working in session pooling. This is not that easyrostyk wrote:I still have feeling that for every "nefit-easy node" we execute full authorisation session from beginning. thats not good because we overuse connections (which are limited up to five, according to Nefit documentation).
upd: thats good because for that purpose i modify status.js command include code for flow temperature just five minutes ago
The connection overuse you are talking about has nothing todo with the limit in Nefits documentation. The session is closed after every command so the number of concurrent sessions does not grow.
I do not advice to change Robert's library files because it's used as a dependency. Everything you do can be done within the nefit-easy.js (you are free to issue a pull request to add your modifications to the node)
-
- Posts: 179
- Joined: Friday 12 July 2013 13:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta Ch
- Location: The Netherlands
- Contact:
Re: Nefit Easy™ client library (How to install on the Pi)
Thanks Rostyk,
Btw I have created 6 sessions concurrent sessions and now I'm getting these;
-1-2016 01:06:5585298a82.9f76fmsg : errorError: REQUEST_TIMEOUT
8-1-2016 01:06:5785298a82.9f76fmsg : errorError: REQUEST_TIMEOUT
8-1-2016 01:07:13502a77ba.9da608msg : errorError: REQUEST_TIMEOUT
8-1-2016 01:07:13e193b188.2daddmsg : errorError: REQUEST_TIMEOUT
8-1-2016 01:07:1385298a82.9f76fmsg : errorError: REQUEST_TIMEOUT
8-1-2016 01:07:17502a77ba.9da608msg : errorError: REQUEST_TIMEOUT
8-1-2016 01:07:2585298a82.9f76fmsg : errorError: REQUEST_TIMEOUT
8-1-2016 01:07:2785298a82.9f76fmsg : errorError: REQUEST_TIMEOUT
I have removed the new sessions I created, hopefully the connection comes back up.
Btw I have created 6 sessions concurrent sessions and now I'm getting these;
-1-2016 01:06:5585298a82.9f76fmsg : errorError: REQUEST_TIMEOUT
8-1-2016 01:06:5785298a82.9f76fmsg : errorError: REQUEST_TIMEOUT
8-1-2016 01:07:13502a77ba.9da608msg : errorError: REQUEST_TIMEOUT
8-1-2016 01:07:13e193b188.2daddmsg : errorError: REQUEST_TIMEOUT
8-1-2016 01:07:1385298a82.9f76fmsg : errorError: REQUEST_TIMEOUT
8-1-2016 01:07:17502a77ba.9da608msg : errorError: REQUEST_TIMEOUT
8-1-2016 01:07:2585298a82.9f76fmsg : errorError: REQUEST_TIMEOUT
8-1-2016 01:07:2785298a82.9f76fmsg : errorError: REQUEST_TIMEOUT
I have removed the new sessions I created, hopefully the connection comes back up.
Who is online
Users browsing this forum: No registered users and 1 guest