Nefit Easy™

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

peerke72
Posts: 13
Joined: Sunday 17 June 2018 17:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nefit Easy™

Post by peerke72 »

Robert Klep released a new beta version.

This seems to make cpu consumption and memory consumption stable again.
It's still a beta version but it works a lot better for me.

More details can be found on: https://github.com/robertklep/nefit-eas ... -414141929

edit1: 21-8-2018, version 5.02 is now final and released, so @all please check if it solves also your problems.

edit2: 26-8-2018, i'm running the new version about week now and it's still running stable
jurgen
Posts: 30
Joined: Friday 02 October 2015 19:09
Target OS: NAS (Synology & others)
Domoticz version: stable
Contact:

Re: Nefit Easy™

Post by jurgen »

Hi All,

Previously i had some issues with Nefit on my synology with version DSM 6.1.7-15284 Update 2 while my old DSM version 6.0.2 has no issues.

XMPP Authentication failure, so i decided to update nefit with npm update neftit-easy-http-server -g but it get's worse.

After that Nefit won't even start anymore.

Then updated NODE JS and NPM to the following versions

node -v v8.9.4
npm -v 5.6.0

but without any luck.

Then i decided to remove everything, NPM,node and nefit and rebooted the NAS.

Then i installted node js 8.9.4 and NPM 5.6.0 and installed nefit again. The installation seems fine, but nefit won't start.

-ash: ./easy-server: No such file or directory

So i went to /usr/local/bin and saw that the symbolic link was not removed during the uninstallation process. Normally this is not a problem but the link linked to something does not exist anymore.

root@DS411:/usr/local/bin# ls -l
total 12
lrwxrwxrwx 1 root root 58 Sep 14 15:25 easy-server -> ../lib/node_modules/nefit-easy-http-server/bin/easy-server

So i removed the symbolic link and created a new one.

root@DS411:/usr/local/bin# ln -s /volume1/@appstore/Node.js_v8/usr/local/bin/easy-server easy-server

and Nefit is started again!

root@DS411:/usr/local/etc/rc.d# netstat -a|grep 3000
tcp 0 0 localhost:3000 0.0.0.0:* LISTEN

Hopefully this will help other people.


For further information see my old tutorial:
https://www.domoticz.com/wiki/Synology# ... _DSM_6.0.2
JoeneH
Posts: 23
Joined: Saturday 24 February 2018 13:43
Target OS: NAS (Synology & others)
Domoticz version: v4.9700
Location: NL
Contact:

Re: Nefit Easy™

Post by JoeneH »

Thanks @jurgen,

early June I had similar problems.
I also found the 'old' link, removed it and was able to get the easy-server running again.

However, I used to use pm2, as suggested in https://www.domoticz.com/wiki/NefitEasy

Now I don't have pm2 any more and noticed it isn't needed any more.

However, I don't understand how to create a startup script, as in, what should be written down in the easy-server.sh file.
Is what is written at the end of the wiki page https://www.domoticz.com/wiki/Synology# ... _DSM_6.0.2 the content for the script?
If so, what and where exactly should I change in this script for it to work? I have a very limited understanding of all those languages. I understand I have to put in the details of serial number, access key password, in the ENTERSERIAL, ENTERKEY and ENTERPASSWORD parts.
But do I remove all or some of the #?
Do I have to make other changes?
smaus
Posts: 84
Joined: Sunday 18 February 2018 9:32
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Nefit Easy™

Post by smaus »

Hi All,

When i try to run the nefit server i get a error, can someone help me.


easy-server --serial=serialnumber --access-key=enteryourkey --password=enteryourpassword

module.js:540
throw err;
^

Error: Cannot find module 'node-xmpp-core'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/usr/local/lib/node_modules/nefit-easy-http-server/node_modules/nefit-easy-commands/node_modules/nefit-easy-core/lib/scram-auth-mechanism.js:4:19)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/usr/local/lib/node_modules/nefit-easy-http-server/node_modules/nefit-easy-commands/node_modules/nefit-easy-core/lib/index.js:10:20)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:
jurgen
Posts: 30
Joined: Friday 02 October 2015 19:09
Target OS: NAS (Synology & others)
Domoticz version: stable
Contact:

Re: Nefit Easy™

Post by jurgen »

JoeneH wrote: Friday 26 October 2018 18:02 Thanks @jurgen,

early June I had similar problems.
I also found the 'old' link, removed it and was able to get the easy-server running again.

However, I used to use pm2, as suggested in https://www.domoticz.com/wiki/NefitEasy

Now I don't have pm2 any more and noticed it isn't needed any more.

However, I don't understand how to create a startup script, as in, what should be written down in the easy-server.sh file.
Is what is written at the end of the wiki page https://www.domoticz.com/wiki/Synology# ... _DSM_6.0.2 the content for the script?
If so, what and where exactly should I change in this script for it to work? I have a very limited understanding of all those languages. I understand I have to put in the details of serial number, access key password, in the ENTERSERIAL, ENTERKEY and ENTERPASSWORD parts.
But do I remove all or some of the #?
Do I have to make other changes?
Hi Joeneh,

The link to wiki for synology with nefiteasy, i wrote that tutorial a while ago to put some pieces together for myself and other people who need that.
The following values needs to be edited:

NEFIT_SERIAL_NUMBER=SERIALNUMBERINVULLEN
NEFIT_ACCESS_KEY=ACCESSKEYINVULLEN
NEFIT_PASSWORD=WACHTWOORDINVULLEN

Place the script in the following directory:
/usr/local/etc/rc.d

Name it:
easy-server.sh

Edit the permissions:
chmod 755 easy-server.sh

for testing purposes you could start the script
./easy-server.sh


#! /bin/sh
### BEGIN INIT INFO
# Provides: nefit easy http server
# Required-Start: $network $remote_fs $syslog
# Required-Stop: $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: nefit-easy-http-server
# Description: This daemon will start the nefit-easy-http-server for use by Domoticz
### END INIT INFO

# Do NOT "set -e"

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
DESC="Nefit Easy HTTP Server"
NAME=easy-server
USERNAME=root
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/usr/local/etc/rc.d/$NAME
NEFIT_SERIAL_NUMBER=SERIALNUMBERINVULLEN
NEFIT_ACCESS_KEY=ACCESSKEYINVULLEN
NEFIT_PASSWORD=WACHTWOORDINVULLEN
NEFIT_HOST=127.0.0.1
NEFIT_PORT=3000


DAEMON=/usr/local/bin/$NAME

DAEMON_ARGS="$DAEMON_ARGS --serial=$NEFIT_SERIAL_NUMBER"
DAEMON_ARGS="$DAEMON_ARGS --access-key=$NEFIT_ACCESS_KEY"
DAEMON_ARGS="$DAEMON_ARGS --password=$NEFIT_PASSWORD"
DAEMON_ARGS="$DAEMON_ARGS --host=$NEFIT_HOST"
DAEMON_ARGS="$DAEMON_ARGS --port=$NEFIT_PORT"


# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0

#
# Function that starts the daemon/service
#
do_start()
{
nohup $DAEMON $DAEMON_ARGS &
echo `ps w | grep ${DAEMON} | grep -v -E 'grep' | awk '{print $1}' > $PIDFILE`

}

wait_for_status ()
{
counter=$2
while [ ${counter} -gt 0 ]; do
do_status
[ $? -eq $1 ] && return
let counter=counter-1
sleep 1
done
return 1
}

#
# Function that stops the daemon/service
#

do_stop()

{
# Kill the application
kill `cat ${PIDFILE}`
wait_for_status 1 20 || kill -9 `cat ${PIDFILE}`
rm -f ${PIDFILE}
}


do_status ()
{
if [ -f ${PIDFILE} ] && kill -0 `cat ${PIDFILE}` > /dev/null 2>&1; then
return
fi
rm -f ${PIDFILE}
return 1
}


case "$1" in
start)
do_start
;;
stop)
do_stop
;;
restart)
do_stop
do_start
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|restart}" >&2
exit 3
;;
esac

:
JoeneH
Posts: 23
Joined: Saturday 24 February 2018 13:43
Target OS: NAS (Synology & others)
Domoticz version: v4.9700
Location: NL
Contact:

Re: Nefit Easy™

Post by JoeneH »

@jurgen,

thanks,
however, testing it gives the following:
-sh: ./easy-server.sh: /bin/sh^M: bad interpreter: No such file or directory

what's wrong?
I am running DSM 6.2.1
jurgen
Posts: 30
Joined: Friday 02 October 2015 19:09
Target OS: NAS (Synology & others)
Domoticz version: stable
Contact:

Re: Nefit Easy™

Post by jurgen »

JoeneH wrote: Thursday 15 November 2018 11:47 @jurgen,

thanks,
however, testing it gives the following:
-sh: ./easy-server.sh: /bin/sh^M: bad interpreter: No such file or directory

what's wrong?
I am running DSM 6.2.1
I think it is a copy paste issue. Copy the script from the forum to notepad and then copy the script in VI of NANO.
JoeneH
Posts: 23
Joined: Saturday 24 February 2018 13:43
Target OS: NAS (Synology & others)
Domoticz version: v4.9700
Location: NL
Contact:

Re: Nefit Easy™

Post by JoeneH »

It is not a copy paste issue. Copying the forum text to notepad++ gives exactly the same as copying it to windows notepad and then to notepad++. I don't use VI or NANO.
I save the file in notepad++ as unix script file and then copy it to /usr/local/etc/rc.d and change the permission to 755.

I must say I have hardly a clue what the script does exactly, I have no experience writing scripts, but I noticed the following
The script has this line:
PIDFILE=/var/run/$NAME.pid but theer is no file called easy-server.pid in /var/run

And should the line
SCRIPTNAME=/usr/local/etc/rc.d/$NAME
perhaps end with $NAME.sh
Because the file is easy-server.sh and NAME=easy-server
It also has
USERNAME=root
but I never use root anywhere, I log on as admin when connecting to to the synology NAS, and I don't see $USERNAME anywhere in the script.

EDIT
Googling the error does point to a problem with DOS/Windows line endings. Using Notepad++ and saving the file as a unix script I would hope this is not the issue... Well, it was. I had to change the format of the file to Unix in the settings somewhere in Notepad++

Now, running ./easy-server.sh gives the following
Usage: /usr/local/etc/rc.d/easy-server {start|stop|restart}

Does that mean it works? Should I restart the NAS now? Or can I manually start the script and not rebooting the NAS?
SweetPants

Re: Nefit Easy™

Post by SweetPants »

JoeneH wrote: Sunday 02 December 2018 15:41 Now, running ./easy-server.sh gives the following
Usage: /usr/local/etc/rc.d/easy-server {start|stop|restart}

Does that mean it works? Should I restart the NAS now? Or can I manually start the script and not rebooting the NAS?
Sounds like your script is executed. You don't have to reboot the NAS, just execute this command and add 'start'. But it is always good practice to reboot your NAS so you know that it starts after a reboot too.
JoeneH
Posts: 23
Joined: Saturday 24 February 2018 13:43
Target OS: NAS (Synology & others)
Domoticz version: v4.9700
Location: NL
Contact:

Re: Nefit Easy™

Post by JoeneH »

Domoticz wasn't getting any data from the Nefit-easy, so I tried ./easy-server.sh start and it showed the following:
./easy-server.sh: line 45: /var/run/easy-server.pid: Permission denied
nohup: appending output to ‘/var/services/homes/admin/nohup.out’

Using sudo ./easy-server.sh start the message was:
nohup: appending output to ‘nohup.out’

Now Domoticz is getting data. I'll try rebooting tomorrow. EDIT: script is running automatically after reboot. Thanks.

But what is this nohup.out file all about? Seems unnecessary to me. Can I somehow stop this form being created and filled?

The nohup.out file is filling up with data about every 30 seconds
The nohup.out file contains the following:
HTTP server listening on http://127.0.0.1:3000
127.0.0.1 - - [02/Dec/2018:20:08:00 +0000] "GET /bridge/ecus/rrc/uiStatus HTTP/1.1" 200 494 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/601.36 (KHTML, like Gecko) Chrome/53.0.59193.0 Safari/601.36"
127.0.0.1 - - [02/Dec/2018:20:08:00 +0000] "GET /bridge/heatingCircuits/hc1/actualSupplyTemperature HTTP/1.1" 200 163 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/601.36 (KHTML, like Gecko) Chrome/53.0.59193.0 Safari/601.36"
127.0.0.1 - - [02/Dec/2018:20:08:00 +0000] "GET /bridge/system/appliance/displaycode HTTP/1.1" 200 101 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/601.36 (KHTML, like Gecko) Chrome/53.0.59193.0 Safari/601.36"
127.0.0.1 - - [02/Dec/2018:20:08:31 +0000] "GET /bridge/ecus/rrc/uiStatus HTTP/1.1" 200 494 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/601.36 (KHTML, like Gecko) Chrome/53.0.59193.0 Safari/601.36"
127.0.0.1 - - [02/Dec/2018:20:08:31 +0000] "GET /bridge/heatingCircuits/hc1/actualSupplyTemperature HTTP/1.1" 200 161 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/601.36 (KHTML, like Gecko) Chrome/53.0.59193.0 Safari/601.36"
127.0.0.1 - - [02/Dec/2018:20:08:31 +0000] "GET /bridge/system/appliance/displaycode HTTP/1.1" 200 101 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/601.36 (KHTML, like Gecko) Chrome/53.0.59193.0 Safari/601.36"
127.0.0.1 - - [02/Dec/2018:20:09:01 +0000] "GET /bridge/ecus/rrc/uiStatus HTTP/1.1" 200 494 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/601.36 (KHTML, like Gecko) Chrome/53.0.59193.0 Safari/601.36"
127.0.0.1 - - [02/Dec/2018:20:09:02 +0000] "GET /bridge/heatingCircuits/hc1/actualSupplyTemperature HTTP/1.1" 200 161 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/601.36 (KHTML, like Gecko) Chrome/53.0.59193.0 Safari/601.36"
127.0.0.1 - - [02/Dec/2018:20:09:02 +0000] "GET /bridge/system/appliance/displaycode HTTP/1.1" 200 101 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/601.36 (KHTML, like Gecko) Chrome/53.0.59193.0 Safari/601.36"
127.0.0.1 - - [02/Dec/2018:20:09:32 +0000] "GET /bridge/ecus/rrc/uiStatus HTTP/1.1" 200 494 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/601.36 (KHTML, like Gecko) Chrome/53.0.59193.0 Safari/601.36"
127.0.0.1 - - [02/Dec/2018:20:09:33 +0000] "GET /bridge/heatingCircuits/hc1/actualSupplyTemperature HTTP/1.1" 200 163 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/601.36 (KHTML, like Gecko) Chrome/53.0.59193.0 Safari/601.36"
127.0.0.1 - - [02/Dec/2018:20:09:33 +0000] "GET /bridge/system/appliance/displaycode HTTP/1.1" 200 101 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/601.36 (KHTML, like Gecko) Chrome/53.0.59193.0 Safari/601.36"
jurgen
Posts: 30
Joined: Friday 02 October 2015 19:09
Target OS: NAS (Synology & others)
Domoticz version: stable
Contact:

Re: Nefit Easy™

Post by jurgen »

Good news JoeneH, it seems like you have running nefit-easy.

I've got this issue also sometimes when i copy paste some scripts to unix, for me it helps to do it using notepad or notepad++.
Regarding your questions:

When you log on to your system you do it als admin but with root you have full access on your synology. I start always my scripts with root, it makes it easy so that permissions will not be an issue. (less secure, i know)

the PID file is created in var/run when the script is started, this is done so that it could not be possible to run it twice.

the nohup question, i don't know.
JoeneH
Posts: 23
Joined: Saturday 24 February 2018 13:43
Target OS: NAS (Synology & others)
Domoticz version: v4.9700
Location: NL
Contact:

Re: Nefit Easy™

Post by JoeneH »

Today I updated Webstation to 2.1.6-0146 (which added support for php7.2 it says) and DSM 6.2.1 update 1 to DSM 6.2.1-23824 update 4 (mainly security updates), so it requested a reboot but after that the nefit process did not run and now I can't get it started again...

I am not sure whether this happened when updating Webstation or DSM. I did that in one go. I usually update packages and DSM when new updates are available.

starting the nefit-easy server manually (sudo ./easy-server.sh start) does not give any information back. Domoticz just says 'Error getting http data'.

Does someone have solutions or suggestions?
User avatar
waltervl
Posts: 5727
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Nefit Easy™

Post by waltervl »

Hi, new member here :) I am running the Nefit Easy plugin for some weeks now. No real issues here, I only get connection issues with the Nefit Easy server due to network issues I presume. But only very limited (max 1 per day).

I have a fireplace so i would like to use the fireplace mode (Openhaard) function but that is not programmed unfortunatly.
I installed it myself, I described the way I implemented it in the wiki discussion of the Nefit Easy for reference: https://www.domoticz.com/wiki/Talk:NefitEasy
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
Dutchsea
Posts: 120
Joined: Tuesday 08 December 2015 13:22
Target OS: Raspberry Pi / ODroid
Domoticz version: v2023.2
Location: The Netherlands
Contact:

Re: Nefit Easy™

Post by Dutchsea »

I made custom icons for the Nefit Easy. You can upload the attached zipfile via Setup => More Options => Custom Icons

I also replaced the "override.png" and the "override_mini.png" icons in home/pi/domoticz/www/images. This will change the setpoint image.
(Probably needs a cache refresh in your browser for the new icons to appear)

NefitEasy.zip
(3.75 KiB) Downloaded 79 times
Raspberry PI 3B on USB drive, Debian version: 12 (bookworm), Domoticz 2024.7
Aeon Z-Wave G5 stick, RFXCOM, Sonof Zigbee 3.0 Dongle plus E, Nefit Easy, Fritzbox, Buienradar, Sonos
jeroenkl
Posts: 113
Joined: Sunday 14 July 2013 22:00
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: NL
Contact:

Re: Nefit Easy™

Post by jeroenkl »

Dutchsea wrote: Tuesday 02 April 2019 14:08 I made custom icons for the Nefit Easy. You can upload the attached zipfile via Setup => More Options => Custom Icons

I also replaced the "override.png" and the "override_mini.png" icons in home/pi/domoticz/www/images. This will change the setpoint image.
(Probably needs a cache refresh in your browser for the new icons to appear)


NefitEasy.zip
it's very nice
eddieb
Posts: 279
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Nefit Easy™

Post by eddieb »

Hi,
I have huge spike in my nefit gas-usage graphs ... deleting the entry with shift-click does not work ...
Screen Shot 2019-04-07 at 15.20.09.png
Screen Shot 2019-04-07 at 15.20.09.png (33.28 KiB) Viewed 3714 times
Looks like some counter did roll-over or something like this.
This happens a couple of times per month, so in the end the totals and the graphs are unusable.
Is there some way to fix this ?
like (if entry > average last 24h {set entry to (average last 24h)} ?

Eddie
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
User avatar
Dutchsea
Posts: 120
Joined: Tuesday 08 December 2015 13:22
Target OS: Raspberry Pi / ODroid
Domoticz version: v2023.2
Location: The Netherlands
Contact:

Re: Nefit Easy™

Post by Dutchsea »

I have a similar incorrect Spike also on Sunday. Its just not Nefit related. Its on my zwave Fibaro plug that monitors my fridge.

Almost 2.7 Million kWh in 1 day. :shock:
Attachments
Capture.PNG
Capture.PNG (64.2 KiB) Viewed 3696 times
Raspberry PI 3B on USB drive, Debian version: 12 (bookworm), Domoticz 2024.7
Aeon Z-Wave G5 stick, RFXCOM, Sonof Zigbee 3.0 Dongle plus E, Nefit Easy, Fritzbox, Buienradar, Sonos
User avatar
Dutchsea
Posts: 120
Joined: Tuesday 08 December 2015 13:22
Target OS: Raspberry Pi / ODroid
Domoticz version: v2023.2
Location: The Netherlands
Contact:

Re: Nefit Easy™

Post by Dutchsea »

Holland wrote: Friday 26 February 2016 22:31 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/

Adding to this (already good fix); I suggest to add the following:

1. Delete the pm2*.sh file in /etc/init.d # If this file exist. I believe higher PM2 versions do not use it anymore...
2. sudo pm2 startup systemd –u pi --hp /home/pi
3. pm2 start nefiteasyhttpserver.sh
4. pm2 save

Adding `--hp /home/pi` in step 2 changes the default pm2 home path to /home/pi/ (where our .pm directory is located).
Now when pm2 loads after a reboot, pm2 will use the correct dump.pm2. This file starts the previously saved service(s)
(Which we saved using pm2 save)
This will also do the same for other saved services (such as sonos: service.js)

Without this path pm2 will use the ´empty´ dump.pm2 file in the /root/.pm2 directory. And thus the previously saved services are not started.
Raspberry PI 3B on USB drive, Debian version: 12 (bookworm), Domoticz 2024.7
Aeon Z-Wave G5 stick, RFXCOM, Sonof Zigbee 3.0 Dongle plus E, Nefit Easy, Fritzbox, Buienradar, Sonos
User avatar
Dutchsea
Posts: 120
Joined: Tuesday 08 December 2015 13:22
Target OS: Raspberry Pi / ODroid
Domoticz version: v2023.2
Location: The Netherlands
Contact:

Re: Nefit Easy™

Post by Dutchsea »

Additionally to my previous post (above);
I noticed that starting the nefiteasyserver increased my cpu load from 2% to 33% as well as an increase in temperature from 50C to 65C.
After quite some checks/puzzling I noticed the the nefiteasyserver was running twice generating conflicts that resulted in the high load.
The server was running for both user root and for user pi:

Code: Select all

pi@RPiMost:~ $ pm2 stop 0
[PM2] Applying action stopProcessId on app [0](ids: 0)
[PM2] [nefiteasyhttpserver](0) â
âââââââââââââââââââââââ¬âââââ¬ââââââââââ¬âââââââ¬ââââââ¬ââââââââââ¬ââââââââââ¬âââââââââ¬ââââââ¬ââââââââââââ¬âââââââ¬âââââââââââ
â App name            â id â version â mode â pid â status  â restart â uptime â cpu â mem       â user â watching â
âââââââââââââââââââââââ¼âââââ¼ââââââââââ¼âââââââ¼ââââââ¼ââââââââââ¼ââââââââââ¼âââââââââ¼ââââââ¼ââââââââââââ¼âââââââ¼âââââââââââ¤
â nefiteasyhttpserver â 0  â N/A     â fork â 6533 â online â 27125   â 0      â 0%  â 0 B       â pi   â disabled â
âââââââââââââââââââââââ´âââââ´ââââââââââ´âââââââ´ââââââ´ââââââââââ´ââââââââââ´âââââââââ´ââââââ´ââââââââââââ´âââââââ´âââââââââââ
 Use `pm2 show <id|name>` to get more details about an app

Code: Select all

pi@RPiMost:~ $ sudo su
root@RPiMost:/home/pi# pm2 list
âââââââââââââââââââââââ¬âââââ¬ââââââââââ¬âââââââ¬ââââââ¬âââââââââ¬ââââââââââ¬âââââââââ¬ââââââ¬âââââââââââ¬âââââââ¬âââââââââââ
â App name            â id â version â mode â pid â status â restart â uptime â cpu â mem      â user â watching â
âââââââââââââââââââââââ¼âââââ¼ââââââââââ¼âââââââ¼ââââââ¼âââââââââ¼ââââââââââ¼âââââââââ¼ââââââ¼âââââââââââ¼âââââââ¼âââââââââââ¤
â nefiteasyhttpserver â 0  â N/A     â fork â 956 â online â 0       â 26h    â 0%  â 2.5 MB   â root â disabled â
âââââââââââââââââââââââ´âââââ´ââââââââââ´âââââââ´ââââââ´âââââââââ´ââââââââââ´âââââââââ´ââââââ´âââââââââââ´âââââââ´âââââââââââ
 Use `pm2 show <id|name>` to get more details about an app
After stopping the server that is running under the root user, reboot, the problem was solved:

Code: Select all

`sudo pm2 unstartup -u root `  
Raspberry PI 3B on USB drive, Debian version: 12 (bookworm), Domoticz 2024.7
Aeon Z-Wave G5 stick, RFXCOM, Sonof Zigbee 3.0 Dongle plus E, Nefit Easy, Fritzbox, Buienradar, Sonos
jaaap
Posts: 59
Joined: Sunday 28 July 2019 22:59
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Nefit Easy™

Post by jaaap »

Hi all,

I've tried to install the nefit easy http server on a synology nas, and the install worked fine. However, I can't get it to run properly. I receive the following error when I try to start the server:

Code: Select all

root@NASDS216:~# easy-server
module.js:540
    throw err;
    ^

Error: Cannot find module 'node-xmpp-core'
    at Function.Module._resolveFilename (module.js:538:15)
    at Function.Module._load (module.js:468:25)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/nefit-easy-http-server/node_modules/nefit-easy-commands/node_modules/nefit-easy-core/lib/scram-auth-mechanism.js:4:19)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/nefit-easy-http-server/node_modules/nefit-easy-commands/node_modules/nefit-easy-core/lib/index.js:10:20)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
When installing nefit easy http server, it keeps giving the following error:

Code: Select all

root@NASDS216:~# npm install nefit-easy-http-server -g
npm WARN deprecated [email protected]: this package is deprecated please use https://www.npmjs.com/package/@xmpp/client
npm WARN deprecated [email protected]: this package is deprecated please use https://github.com/xmppjs/xmpp.js
npm WARN deprecated [email protected]: this package is deprecated please use https://github.com/xmppjs/xmpp.js
/volume2/@appstore/Node.js_v8/usr/local/bin/easy-server -> /volume2/@appstore/Node.js_v8/usr/local/lib/node_modules/nefit-easy-http-server/bin/easy-server
+ [email protected]
updated 1 package in 13.787s
Any ideas how to resolve this?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest