Page 52 of 55

Re: [MyDomoAtHome] Support thread

Posted: Monday 16 March 2020 15:22
by epierre
try either:

sudo apt-cache policy nodejs
sudo apt-cache policy node

and if possible deploy the latest nodejs (which should be 8 under Buster)

Re: [MyDomoAtHome] Support thread

Posted: Monday 16 March 2020 15:51
by gerardosamara
Thanks @epierre ,

Here is the ouput of apt-cache command
Capture nodejs policy.PNG
Capture nodejs policy.PNG (33.8 KiB) Viewed 2948 times
Should then continue to install the last Buster packages ... sudo apt-get install nodejs npm ?

Re: [MyDomoAtHome] Support thread

Posted: Monday 16 March 2020 15:53
by epierre
between a rock and a hard place... version 10 is definetly slower... try moving to 4.8.7 and tell me ?

Re: [MyDomoAtHome] Support thread

Posted: Monday 16 March 2020 16:43
by gerardosamara
As this is a test machine , the speed is not a requirement.

I have updated to latest of Rasbian Buster :
NodeJS 10.5.2
Node 0.3.2
npm 5.8.0

MDAH Fails to start

Code: Select all

Mar 16 09:26:35 raspberrypi systemd[1]: Stopped MDAH ISS Rest interface for Domoticz to Imperihome.
Mar 16 09:26:35 raspberrypi systemd[1]: Starting MDAH ISS Rest interface for Domoticz to Imperihome...
Mar 16 09:26:35 raspberrypi systemd[1]: Started MDAH ISS Rest interface for Domoticz to Imperihome.
Mar 16 09:26:35 raspberrypi node[1259]: No AX.25 port data configured
Mar 16 09:26:35 raspberrypi systemd[1]: mydomoathome.service: Main process exited, code=exited, status=1/FAILURE
Mar 16 09:26:35 raspberrypi systemd[1]: mydomoathome.service: Failed with result 'exit-code'.


Re: [MyDomoAtHome] Support thread

Posted: Monday 16 March 2020 16:49
by epierre
Hello, should not happen, see here: https://github.com/bower/bower/issues/677

Re: [MyDomoAtHome] Support thread

Posted: Monday 16 March 2020 17:09
by gerardosamara
Great , the proposed solution worked and the browser check worked Ok ( 192.168.1.x:3002)

Version installed :

MDAH 0.2.42
NodeJS 10.5.2
npm 5.8.0

Thank you for the support

Re: [MyDomoAtHome] Support thread

Posted: Tuesday 17 March 2020 15:34
by gerardosamara
Hi @epierre

in the Mdah log , i notice MDAH version: MyDomoAtHome 0.2.41 instead of 0.2.42

Code: Select all

{"level":"info","message":"Domoticz server: http://127.0.0.1:8080/json.htm","timestamp":"2020-03-16T16:04:31.720Z"}
{"level":"info","message":"Node version: 10.15.2","timestamp":"2020-03-16T16:04:31.730Z"}
{"level":"info","message":"MDAH version: MyDomoAtHome 0.2.41","timestamp":"2020-03-16T16:04:31.730Z"}
{"level":"info","message":"OS version: Linux linux 4.19.97-v7+","timestamp":"2020-03-16T16:04:31.732Z"}
{"level":"info","message":"Hostname: raspberrypi 192.168.1.xxx in /var/www /","timestamp":"2020-03-16T16:04:31.737Z"}
{"level":"info","message":"Refreshing version cache: v0.2.39","timestamp":"2020-03-16T16:04:32.318Z"}
Also I may be useful to have the npm version displayed ?

Re: [MyDomoAtHome] Support thread

Posted: Tuesday 17 March 2020 15:50
by epierre
good idea, to track the current problems...

Re: [MyDomoAtHome] Support thread

Posted: Saturday 11 April 2020 8:49
by jbr79
Trying to get Zigbee2MQTT working in Domoticz, I found myself forced to upgrade to node v10.X and npm v6.X. This does seem to interfere with Imperihome running, as I understand because it requires earlier versions of the two. Is there a way to cope with this?

Re: [MyDomoAtHome] Support thread

Posted: Saturday 11 April 2020 10:31
by epierre
Hello,

what do you mean, interference in package or running ? which distro are you on ?

try to avoid npm 10 which has severe performance issue...

Re: [MyDomoAtHome] Support thread

Posted: Sunday 12 April 2020 10:49
by jbr79
Interfering as in: Imperihome will not start anymore after installing the Zigbee2MQTT plugin. The latter requires either version 10.x or 12.x of node. I am not too worried about the performance issues, since the device (NUC) has enough CPU power. I am running this on Ubuntu 20.04.

I switched to node 12.x and back to 10.x to see if that would make a difference. Now trying to reinstall mydomoathome altogether, apt is throwing an error" W: Sources disagree on hashes for supposely identical version '0.2.42' of 'mydomoathome:amd64'." I am confused :S

Edit:
did all the obvious steps:
  • sudo apt clean
  • sudo rm /var/lib/apt/lists/*
  • sudo apt-get update
But still cannot install... it does give an error on NPM during apt install:

Code: Select all

Preparing to unpack .../mydomoathome_0.2.42_all.deb ...
/var/lib/dpkg/tmp.ci/preinst: line 4: npm: command not found
dpkg: error processing archive /var/cache/apt/archives/mydomoathome_0.2.42_all.deb (--unpack):
 new mydomoathome package pre-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 /var/cache/apt/archives/mydomoathome_0.2.42_all.deb
W: Sources disagree on hashes for supposely identical version '0.2.42' of 'mydomoathome:amd64'.
E: Sub-process /usr/bin/dpkg returned an error code (1)
Running NPM 6.9.0, but changing to a lower version (sudo npm install -g [email protected]) also did not make a difference.

Any help is highly appreciated.

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 15 April 2020 23:17
by DeVille70
Had a working system, starting installing fresh on RPi to get Raspbian upgraded to Buster. Then followed instructions on https://github.com/empierre/MyDomoAtHome On testing http://gateway_ip:gateway_port/ I get This site can’t be reached. It seems that the service mydomoathome is not running at all. What do I do now? Thanks.

Edit: this test works: curl http://domoticz_ip:domoticz_port/json.htm?type=devices&filter=all&used=true&order=Name

systemctl is-active mydomoathome gives failed

Re: [MyDomoAtHome] Support thread

Posted: Thursday 16 April 2020 8:52
by epierre
Hi,

Seems there is a conflict between different nodes versions and their dependencies, they are not clean for upgrade, a solution someone found is the following:

Code: Select all

sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/npm*
wget https://nodejs.org/dist/v12.16.1/node-v12.16.1-linux-armv7l.tar.xz
tar -xvf node-v12.16.1-linux-armv7l.tar.xz
cd node-v12.16.1-linux-armv7l/
sudo cp -R * /usr/local/
sudo reboot
sudo apt-get install MyDomoAtHome

Re: [MyDomoAtHome] Support thread

Posted: Thursday 16 April 2020 13:04
by DeVille70
The result of sudo apt-get install MyDomoAtHome
gave: mydomoathome is already the newest version (0.2.42).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

Nevertheless, it now works again! Thank you very much for great and quick support. :)

Edit:
Can the files
nodejs_4.4.2_armhf.deb.1
node-v12.16.1-linux-armv7l
npm_2.14.7_armhf.deb.1
node-v12.16.1-linux-armv7l.tar.xz
now be deleted?

Re: [MyDomoAtHome] Support thread

Posted: Thursday 16 April 2020 14:03
by epierre
yes, the wget brings back many things

Re: [MyDomoAtHome] Support thread

Posted: Thursday 16 April 2020 14:19
by DeVille70
Very sorry, I did not understand your answer. Can I delete the 3 files and 1 folder without any problems?

Re: [MyDomoAtHome] Support thread

Posted: Thursday 23 April 2020 15:50
by jbr79
jbr79 wrote: Sunday 12 April 2020 10:49 Interfering as in: Imperihome will not start anymore after installing the Zigbee2MQTT plugin.
I solved it by "downgrading" to 0.2.41: Running fine now, thanks!

Re: [MyDomoAtHome] Support thread

Posted: Saturday 16 May 2020 22:10
by dipas0
I have a question:

MyDomoAtHome on RaspberryPi (buster) is correct working.
http://192.168.1.xx:3002/ is correct working
http://192.168.1.xx:3002/devices is showing a list of device from my Domoticz server

In the Android ImperiHome app i can connect to MyDomoAtHome: ISS system: Success!
When i reload the data in ImperiHome i see the rooms

But....ImperiHome does not show the devices....

What is gooing wrong?

Re: [MyDomoAtHome] Support thread

Posted: Friday 22 May 2020 16:37
by dipas0
dipas0 wrote: Saturday 16 May 2020 22:10 I have a question:

MyDomoAtHome on RaspberryPi (buster) is correct working.
http://192.168.1.xx:3002/ is correct working
http://192.168.1.xx:3002/devices is showing a list of device from my Domoticz server

In the Android ImperiHome app i can connect to MyDomoAtHome: ISS system: Success!
When i reload the data in ImperiHome i see the rooms

But....ImperiHome does not show the devices....

What is gooing wrong?
Meanwhile came to the conclusion that Dashticz has more to offer than ImperiHome. So my question is no longer relevant.

Re: [MyDomoAtHome] Support thread

Posted: Thursday 04 June 2020 7:38
by mcwieger
MDAH was working well for some months now, but after upgrading Synology DSM to 6.2.3 it crashes almost every night. I'm on version 0.2.39. Anyone else facing the same issue? Or is a higher version of MDAH available for Synology?