[MyDomoAtHome] Support thread

Client tools or tools that can connect with Domoticz. Tools for Windows, iOS, Android, Linux etc.

Moderator: leecollings

User avatar
epierre
Posts: 522
Joined: Wednesday 05 March 2014 13:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Support thread

Post by epierre »

@jluc2808 have you tried a processus list from a shell (ps -ax)
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
jluc2808
Posts: 49
Joined: Thursday 18 January 2018 6:30
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: [MyDomoAtHome] Support thread

Post by jluc2808 »

epierre wrote: Monday 25 November 2019 16:36 @jluc2808 have you tried a processus list from a shell (ps -ax)
nothing special:
PID TTY STAT TIME COMMAND
1 ? Ss 2:11 /sbin/init
2 ? S 0:00 [kthreadd]
3 ? S 0:00 [ksoftirqd/0]
4 ? S 0:02 [kworker/0:0]
5 ? S< 0:00 [kworker/0:0H]
7 ? S 0:11 [rcu_preempt]
8 ? S 0:00 [rcu_sched]
9 ? S 0:00 [rcu_bh]
10 ? S 0:00 [migration/0]
11 ? S 0:00 [watchdog/0]
12 ? S 0:00 [watchdog/1]
13 ? S 0:00 [migration/1]
14 ? S 0:00 [ksoftirqd/1]
15 ? S 0:01 [kworker/1:0]
16 ? S< 0:00 [kworker/1:0H]
17 ? S 0:00 [watchdog/2]
18 ? S 0:00 [migration/2]
19 ? S 0:00 [ksoftirqd/2]
21 ? S< 0:00 [kworker/2:0H]
22 ? S 0:00 [watchdog/3]
23 ? S 0:00 [migration/3]
24 ? S 0:00 [ksoftirqd/3]
25 ? S 0:01 [kworker/3:0]
26 ? S< 0:00 [kworker/3:0H]
27 ? S 0:00 [kdevtmpfs]
28 ? S< 0:00 [netns]
31 ? S< 0:00 [perf]
216 ? S 0:00 [khungtaskd]
217 ? S< 0:00 [writeback]
219 ? SN 0:00 [ksmd]
220 ? S 0:01 [kworker/3:1]
221 ? S< 0:00 [crypto]
222 ? S< 0:00 [kintegrityd]
223 ? S< 0:00 [bioset]
225 ? S< 0:00 [kblockd]
399 ? S< 0:00 [ata_sff]
410 ? S< 0:00 [md]
556 ? S< 0:00 [rpciod]
561 ? S 0:01 [kworker/2:1]
637 ? S 0:00 [kswapd0]
664 ? S< 0:00 [vmstat]
676 ? S 0:00 [fsnotify_mark]
679 ? S< 0:00 [nfsiod]
689 ? S 0:00 synoscgi
1134 ? Ss 0:00 sshd: jean-luc [priv]
1201 ? S 0:00 sshd: jean-luc@pts/22
1202 pts/22 Ss 0:00 -sh

2876 ? S 0:00 [kworker/2:5]
3145 ? S 0:01 [kworker/3:2]
3235 ? S< 0:00 [iscsi_eh]
3238 ? S< 0:00 [nvme]
3279 ? S 0:00 [scsi_eh_0]
3280 ? S< 0:00 [scsi_tmf_0]
3284 ? S 0:00 [scsi_eh_1]
3285 ? S< 0:00 [scsi_tmf_1]
3319 ? S< 0:00 [bioset]
3390 ? S< 0:01 [kworker/2:1H]
3391 ? S< 0:00 [bioset]
3421 ? S 0:00 [scsi_eh_2]
3422 ? S< 0:00 [scsi_tmf_2]
3426 ? S 0:00 [scsi_eh_3]
3438 ? S< 0:00 [scsi_tmf_3]
3445 ? S 0:00 [scsi_eh_4]
3448 ? S< 0:00 [scsi_tmf_4]
3528 ? S< 0:00 [kworker/1:1H]
3529 ? S< 0:00 [bioset]
3600 ? S< 0:00 [kworker/3:1H]
3601 ? S< 0:00 [bioset]
3784 ? S< 0:00 [raid5wq]
3833 ? S< 0:00 [deferwq]
4110 ? S< 0:00 [bioset]
4127 ? S 0:01 [kworker/2:2]
4165 ? S< 0:00 [bioset]
4166 ? S 0:00 [md0_raid1]
4167 ? S< 0:00 [kworker/0:1H]
4177 ? S< 0:00 [bioset]
4195 ? S< 0:00 [bioset]
4196 ? S 0:00 [md1_raid1]
4341 ? S< 0:00 [ext4-group-desc]
4342 ? S 0:00 [jbd2/md0-8]
4343 ? S< 0:00 [ext4-rsv-conver]
4386 ? Ss 0:00 /usr/bin/cgmanager --sigstop

4997 ? S< 0:00 [ipv6_addrconf]
5169 ? Ss 0:01 /usr/sbin/irqbalance
5170 ? SNs 0:00 /usr/syno/bin/synologrotated
5173 ? Ss 0:00 /usr/syno/sbin/synologaccd -f
5188 ? Ss 0:07 /sbin/dbus-daemon --session --fork --print-address
5195 ? Ss 0:00 /sbin/dbus-daemon --system --nopidfile
5214 ? S< 0:00 [dm_bufio_cache]
5286 ? Ssl 0:00 /usr/syno/sbin/synoconfd -D
5328 ? Ssl 0:04 /usr/syno/sbin/synonetd
5411 ? S 0:00 [ecryptfs-kthrea]
5833 ? Ss 0:00 udevd --daemon
6137 ? S 0:02 /usr/bin/smbd -F

7648 ? Ss 0:06 /usr/syno/sbin/synousbmodemd
7673 ? S 0:00 [kworker/1:2]
7774 ? Ss 0:10 /usr/sbin/ovsdb-server /usr/syno/etc/synoovs/conf.db --remote=punix:/var/run/openvswitch/db.sock --remote=db:Open_vSwitch,Open_vSwitch,manager_option
7790 ? Ssl 0:47 /usr/sbin/ovs-vswitchd --pidfile --detach --log-file -v:syslog:off -vbond:file:warn
8088 ? S 0:01 [kworker/1:3]
9069 ? Ss 0:00 /usr/sbin/dhclient -4 -d -q -lf /tmp/dhcpv4.leases.ovs_eth0 -pf /tmp/dhcpcd-ovs_eth0.pid -sf /var/run/dhclient-script ovs_eth0

9560 ? S<s 0:07 synoscgi
9588 ? Ss 0:00 /usr/syno/sbin/ddnsd
9642 ? Ssl 0:01 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u ntp:ntp
9651 ? S<s 0:00 /usr/syno/bin/findhostd
9673 ? S 0:00 /usr/bin/inetd
9682 ? Ss 0:00 /usr/bin/rsync --daemon
9689 ? S< 0:00 [kdmflush]
9691 ? S< 0:00 [bioset]
9752 ? Ss 0:00 /usr/bin/sshd
9781 ? S 0:00 synoscgi
10208 ? S< 0:00 [ext4-group-desc]
10225 ? S 0:00 [jbd2/dm-0-8]
10226 ? S< 0:00 [ext4-rsv-conver]
10644 ? Ss 0:37 /usr/bin/snmpd -fLn -c /etc/snmp/snmpd.conf -p /var/run/snmpd.pid 127.0.0.1:161
10769 ? Ssl 0:00 /usr/syno/sbin/synologand
10777 ? S<s 0:01 /usr/syno/sbin/synosnmpcd
10786 ? Ss 0:00 /usr/syno/sbin/synocrond
10844 ? Ss 0:00 synostoraged
10845 ? S 0:01 /usr/syno/sbin/synostoraged
10847 ? S 0:06 /usr/syno/sbin/synostoraged
10848 ? S 0:04 /usr/syno/sbin/synostoraged
11043 ? Ss 0:00 /usr/syno/bin/s2s_daemon -d
11168 ? S 0:00 [scsi_eh_5]
11169 ? S< 0:00 [scsi_tmf_5]
11170 ? S 0:00 [usb-storage]
11261 ? S 0:00 [Syno_HDDMon]
11272 ? S< 0:00 [bioset]
11535 ? SLs 0:00 /usr/bin/vmtouch -lfd /var/run
11545 ttyS2 Ss+ 0:00 /sbin/getty 115200 console
11810 ? Ss 0:00 /usr/syno/bin/synobackupd
11822 ? S 0:00 [RODSP_ODX_LOGIN]
11825 ? S 0:00 [RODSP_VLUN_LOGI]
11826 ? S 0:00 [RODSP_VDISK_LOG]
11827 ? S< 0:00 [kworker/u9:0]
11829 ? S< 0:00 [rodsp_aio]
11937 ? S< 0:00 [target_completi]
11945 ? S< 0:00 [tmr-rd_mcp]
11947 ? S< 0:00 [xcopy_wq]
12039 ? S<s 0:04 /usr/syno/sbin/synocgid -D
12052 ? Ss 0:00 sudo -u nobody /usr/syno/bin/synowstransferd
12104 ? S 0:00 /usr/bin/netatalk
12121 ? Ss 0:02 /usr/syno/sbin/hotplugd
12221 ? S 0:00 /usr/bin/afpd -d -F /etc/afp.conf
12222 ? S 0:00 /usr/bin/cnid_metad -d -F /etc/afp.conf
12236 ? Ss 0:00 /usr/bin/ftpd -DP
12252 ? S 0:00 /usr/syno/bin/synowstransferd
12292 ? Ss 0:00 /sbin/rpcbind
12311 ? Ss 0:00 sudo -u nobody /usr/syno/bin/synowsdiscoveryd
12324 ? Ss 0:00 /usr/sbin/mountd -p 892
12454 ? S< 0:00 [nfsd4_callbacks]
12455 ? S 0:00 [lockd]

12490 ? Ss 0:00 /usr/bin/postgres -D /var/services/pgsql

12496 ? Sl 0:24 /bin/python2 /usr/syno/bin/synowsdiscoveryd

12721 ? Ss 0:00 /usr/sbin/idmapd
12787 ? Ss 0:00 /usr/bin/smbd -F
12809 ? S 0:00 [kworker/u8:1]
12837 ? Ss 0:00 /usr/sbin/statd
13146 ? S 0:00 [kworker/u8:0]
13167 ? Ss 0:00 postgres: checkpointer process
13168 ? Ss 0:00 postgres: writer process
13169 ? Ss 0:00 postgres: wal writer process

13279 ? S<s 0:00 nginx: master process /usr/bin/nginx -g pid /run/nginx.pid; daemon on; master_process on;
13304 ? S< 0:00 [cifsiod]
13305 ? S< 0:00 [cifsoplockd]
13334 ? S 0:00 /usr/bin/smbd -F
13618 ? SLs 0:00 /bin/vmtouch -ld /usr/syno/bin/syno_disk_latency_collector
13660 ? Ss 0:00 /usr/sbin/crond
13682 ? Ssl 0:53 /usr/syno/bin/scemd
14576 ? Ss 0:00 /var/packages/ReplicationService/target/sbin/ReplicationService-synobtrfsreplicad --port 5566
14673 ? Sl 0:33 /usr/local/domoticz/bin/domoticz -www 8084 -wwwroot /usr/local/domoticz/www/ -sslwww 8443 -sslcert /usr/local/domoticz/server_cert.pem -approot /usr/
14719 ? S 0:02 [kworker/0:3]
14722 ? Ss 0:00 php-fpm: master process (/var/packages/PHP7.0/target/usr/local/etc/php70/php-fpm.conf)
14736 ? Ss 0:00 /usr/bin/cupsd -C /etc/cups/cupsd.conf -s /etc/cups/cups-files.conf
15052 ? S 0:00 [kworker/u8:2]
15066 ? Ss 0:00 php-fpm: master process (/var/packages/PHP5.6/target/usr/local/etc/php56/php-fpm.conf)
15176 ? Ssl 0:48 /usr/bin/syslog-ng -F --worker-threads=4 -u system -g log
15205 ? S 0:00 [kworker/3:4]
15265 ? S 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/packages/MariaDB/target/mysql --pid-file=/run/mysqld/mysqld.pid
15278 ? S 0:00 /usr/bin/smbd -F
15336 ? S 0:00 [kworker/2:0]
15348 ? Ssl 0:00 /var/packages/LogCenter/target/usr/bin/syslog-ng --cfgfile=/var/packages/LogCenter/target/etc/syslog-ng/syslog-ng.conf -F --worker-threads=4

15834 ? Ssl 0:00 /var/packages/FileStation/target/sbin/thumbd
15836 ? Ss 0:00 /var/packages/FileStation/target/sbin/thumbd
15838 ? Ss 0:00 /var/packages/FileStation/target/sbin/thumbd
15855 ? Sl 0:08 /usr/bin/mysqld --basedir=/usr --datadir=/var/packages/MariaDB/target/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/packag
15904 ? Ssl 0:04 /var/packages/SynoFinder/target/sbin/synoelasticd
16083 ? SLs 0:00 /bin/vmtouch -l /usr/syno/bin/synoschedtask /usr/syno/bin/synoschedtool /usr/syno/etc/scheduled_tasks
16144 ? Ssl 0:27 /var/packages/Docker/target/usr/bin/dockerd --config-file /var/packages/Docker/etc/dockerd.json

16270 ? Ssl 0:20 containerd --config /var/run/docker/containerd/containerd.toml --log-level info
16300 ? SLsl 0:12 /var/packages/Virtualization/target/bin/synocccstated
16307 ? S<sl 1:09 /var/packages/Virtualization/target/bin/etcd
16343 ? S< 0:00 [kvm-irqfd-clean]
16631 ? S 0:00 [kworker/3:5]
16672 ? S 0:00 synoscgi
16784 ? Z<s 0:00 [SYNO.Finder.Fil] <defunct>
16785 ? Z<s 0:00 [SYNO.Entry.Requ] <defunct>
16786 ? S 0:00 synoscgi
16825 pts/22 R+ 0:00 ps -ax
17309 ? Sl 0:00 /var/packages/Virtualization/target/usr/local/bin/libvirtd -d --listen --config /etc/libvirt/libvirtd.conf
17325 ? Ssl 1:35 /var/packages/Virtualization/target/bin/synocccd
17333 ? S<Ls 0:05 /var/packages/Virtualization/target/bin/synohostcommd
17352 ? S<Ls 0:04 /var/packages/Virtualization/target/bin/synohostcmdd
17359 ? Ss 0:00 /var/packages/Virtualization/target/bin/synovncrelayd
17428 ? S 0:01 [kworker/0:1]
18622 ? Ss 0:00 /usr/bin/minissdpd -i ovs_eth0 -i ovs_eth1
18703 ? Ss 0:00 /var/packages/Docker/target/usr/syno/bin/synoddsmd
18786 ? Sl 0:00 containerd-shim -namespace moby -workdir /volume1/@docker/containerd/daemon/io.containerd.runtime.v1.linux/moby/2b7982e0c4e2b930f05b131bf7da830a340b7
19266 ? Sl 0:00 /var/packages/Docker/target/termd/termd -d
19601 ? S 0:02 avahi-daemon: running [SYNOLOGY_DS414.local]

19727 ? Ssl 0:00 /var/packages/Virtualization/target/bin/etcdctl watch / --recursive --forever
19752 ? S 0:00 cluster_logd
19753 ? Sl 5:45 synoccc_had
19756 ? Sl 0:00 synoccc_vmeventd
19758 ? Sl 0:00 synoccc_guestd
19761 ? S 0:00 synoccc_agentheartbeat
19762 ? S 0:00 synoccc_licensed
19763 ? S 0:06 synoccc_replicad
19764 ? S 0:19 synoccc_polltask_cleaner
19765 ? Sl 0:01 synoccc_vnc_sharing_gc
19766 ? S 0:00 synoccc_taskqueue
19767 ? S 0:14 synoccc_troubleshooter
19948 ? S 0:00 /usr/bin/smbd -F
20088 ? SNsl 0:00 /usr/syno/bin/iscsi_snapshot_comm_core -D
20094 ? SNs 0:00 /usr/syno/bin/iscsi_snapshot_server -D
20149 ? Ss 0:02 /usr/bin/nmbd -F
29905 ? S 0:00 synoscgi
User avatar
epierre
Posts: 522
Joined: Wednesday 05 March 2014 13:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Support thread

Post by epierre »

it is not there, I don't remember the path to start it manually, if you can try this (node mdah.js when found)
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
jluc2808
Posts: 49
Joined: Thursday 18 January 2018 6:30
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: [MyDomoAtHome] Support thread

Post by jluc2808 »

as i said mdah start but seems stopping few second after

i have found /var/packages/MyDomoAtHome/target/app/mdah.js - do you want i start it ?

contents :
//##############################################################################
// This file is part of MyDomoAtHome - https://github.com/empierre/MyDomoAtHome
// Copyright (C) 2014-2018 Emmanuel PIERRE ([email protected])
//
// MyDomoAtHome is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 2 of the License, or
// (at your option) any later version.
//
// MyDomoAtHome is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with MyDomoAtHome. If not, see <http://www.gnu.org/licenses/>.
//##############################################################################

// dependencies
var http = require("http");
var https = require('https');
var express = require("express");
var _ = require("underscore");
var path = require('path');
var request = require("request");
var nconf = require('nconf');
var fs = require('fs');
var os = require("os");
var moment = require('moment');
var morgan = require('morgan');
var methodOverride = require('method-override');
var bodyParser = require('body-parser');
var basicAuth = require('basic-auth');
User avatar
epierre
Posts: 522
Joined: Wednesday 05 March 2014 13:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Support thread

Post by epierre »

> i have found /var/packages/MyDomoAtHome/target/app/mdah.js - do you want i start it ?

yes ! that should display something, either the network port is occupied or some other straight issue
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
jluc2808
Posts: 49
Joined: Thursday 18 January 2018 6:30
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: [MyDomoAtHome] Support thread

Post by jluc2808 »

j'ai aussi trouvé cela sous /usr/local/mydomoathome/bin/mydomoathome

#!/bin/bash
# This file was autogenerated by node-deb 0.1.6
set -e
set -o pipefail
PIDFILE="/tmp/mdah.pid"
LOGFILE="/var/log/mydomoathome/mdah.log"


cd /usr/share/mydomoathome/app

forever --minUptime 5000 --spinSleepTime 2000 --max-old-space-size=128 -a -l $LOGFILE --pidFile $PIDFILE /usr/share/mydomoathome/app/mdah.js
jluc2808
Posts: 49
Joined: Thursday 18 January 2018 6:30
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: [MyDomoAtHome] Support thread

Post by jluc2808 »

results node ./mdah.js
info: Domoticz server: http://127.0.0.1:8084/json.htm
info: Node version: 4.8.7
info: MDAH version: MyDomoAtHome 0.2.39
info: OS version: Linux linux 4.4.59+
info: Hostname: SYNOLOGY_DS414 192.168.1.45 in /root /volume1/@appstore/MyDomoAtHome/app
info: Refreshing version cache: v0.2.39
{ MaxDimLevel: null,
Action: null,
graph: null,
Selector: [ 'Off', 'TV', 'HDMI', 'HDMI1', 'HDMI2' ] }
1
{ MaxDimLevel: null,
Action: null,
graph: null,
Selector: [ 'Off', 'VOL+', 'VOL-' ] }
1
{ MaxDimLevel: null,
Action: null,
graph: null,
Selector: [ 'Off', 'SOURCE', 'ANYNET', 'ENTER' ] }
1
/volume1/@appstore/MyDomoAtHome/app/mdah.js:918
var res = data.Data.match(ptrn).slice(1);
^

TypeError: Cannot read property 'slice' of null
at DevGenericSensorT (/volume1/@appstore/MyDomoAtHome/app/mdah.js:918:36)
at Request._callback (/volume1/@appstore/MyDomoAtHome/app/mdah.js:2610:45)
at Request.self.callback (/volume1/@appstore/MyDomoAtHome/app/node_modules/request/request.js:200:22)
at emitTwo (events.js:87:13)
at Request.emit (events.js:172:7)
at Request.<anonymous> (/volume1/@appstore/MyDomoAtHome/app/node_modules/request/request.js:1067:10)
at emitOne (events.js:82:20)
at Request.emit (events.js:169:7)
at IncomingMessage.<anonymous> (/volume1/@appstore/MyDomoAtHome/app/node_modules/request/request.js:988:12)
at emitNone (events.js:72:20)
User avatar
epierre
Posts: 522
Joined: Wednesday 05 March 2014 13:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Support thread

Post by epierre »

ok, it is linked to something that seems to have evolved on domoticz (but what ?)...

function DevGenericSensorT(data) {
var ptrn = /(-?[0-9]+(?:\.[0-9]+)?) ?(.+)/;

can you send to [email protected] the result of:

curl http://domoticz_ip:domoticz_port/json.htm?type=devices&filter=all&used=true&order=Name
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
jluc2808
Posts: 49
Joined: Thursday 18 January 2018 6:30
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: [MyDomoAtHome] Support thread

Post by jluc2808 »

epierre wrote: Monday 25 November 2019 17:32 ok, it is linked to something that seems to have evolved on domoticz (but what ?)...

function DevGenericSensorT(data) {
var ptrn = /(-?[0-9]+(?:\.[0-9]+)?) ?(.+)/;

can you send to [email protected] the result of:

curl http://domoticz_ip:domoticz_port/json.htm?type=devices&filter=all&used=true&order=Name
done
jluc2808
Posts: 49
Joined: Thursday 18 January 2018 6:30
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: [MyDomoAtHome] Support thread

Post by jluc2808 »

epierre wrote: Monday 25 November 2019 17:32 ok, it is linked to something that seems to have evolved on domoticz (but what ?)...

function DevGenericSensorT(data) {
var ptrn = /(-?[0-9]+(?:\.[0-9]+)?) ?(.+)/;

can you send to [email protected] the result of:

curl http://domoticz_ip:domoticz_port/json.htm?type=devices&filter=all&used=true&order=Name
did you found something ?
just to add info, when i start MDAH without domoticz started , i have no problem , the process is alive and running (of course no devices) as far as i start domoticz the MDAH process hang without messages in the log and stop everytime i want to restart when domoticz is alive.

i suspect 2 reasons :
1 - a port conflict beetween MDAH and Domoticz (i don't know what could be the port conflic but ?)
2 - a bad sequence which hang the MDAH with strange devices
User avatar
epierre
Posts: 522
Joined: Wednesday 05 March 2014 13:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Support thread

Post by epierre »

Hello,

this is in the parsing, sorry didn't had time yet to look at it (all the more I've had the prower grid breakdown from the RTE incident in Cergy Pontoise...)
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
jluc2808
Posts: 49
Joined: Thursday 18 January 2018 6:30
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: [MyDomoAtHome] Support thread

Post by jluc2808 »

ok what can i do to use again MDAH, now i couldn't use imperihome because the gateway is down, is there is workaround ?
lindstromaren
Posts: 2
Joined: Sunday 13 January 2019 19:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: [MyDomoAtHome] Support thread

Post by lindstromaren »

Hello,
Trying to install MyDomoAtHome but with no success :/
Anybody??

/Mvh Fredrik
Spoiler: show
npm ERR! Linux 4.19.66-v7+
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "forever"
npm ERR! node v8.11.1
npm ERR! npm v2.14.7
npm ERR! code MODULE_NOT_FOUND

npm ERR! Cannot find module 'internal/util/types'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR! /npm-debug.log
dpkg: fel vid hantering av arkivet /var/cache/apt/archives/mydomoathome_0.2.40_all.deb (--unpack):
underprocessen nytt pre-installation-skript gav felkod 1
Fel uppstod vid hantering:
/var/cache/apt/archives/mydomoathome_0.2.40_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
jluc2808
Posts: 49
Joined: Thursday 18 January 2018 6:30
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: [MyDomoAtHome] Support thread

Post by jluc2808 »

epierre wrote: Thursday 28 November 2019 10:38 Hello,

this is in the parsing, sorry didn't had time yet to look at it (all the more I've had the prower grid breakdown from the RTE incident in Cergy Pontoise...)
i get back with some news, as soon as i have fixed mysolaredge devices which was filled with a dzVents program which was broken while the solaredge network materiel was broken, MDAH restarted without problem.
this confirm your thought that something in the parsing beetween domoticz and MDAH brokes the program.


if you have time take a look at the solaredge data included in the file i sent you.
mcwieger
Posts: 107
Joined: Tuesday 08 December 2015 9:59
Target OS: NAS (Synology & others)
Domoticz version: 2020.1
Location: Netherlands
Contact:

Re: [MyDomoAtHome] Support thread

Post by mcwieger »

I've set up monitoring my system with Monit and I want to include MDAH in it. I searched the topic for the right start/stop command and I found something which will probably work on a RPI, but not on Synology.

What is the right command to start MDAH from the command line on Synology (similar to the way DOmoticz is started, e.g. "/var/packages/domoticz/scripts/start-stop-status start")?
I moved to HomeAssistant. It was fun while it lasted!
User avatar
epierre
Posts: 522
Joined: Wednesday 05 March 2014 13:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Support thread

Post by epierre »

Hello,

Just an information, there are around broken versions of npm, broken version of winston, very slow versions of nodejs (version 10)... please see the github if you face this.
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
Justintime
Posts: 228
Joined: Thursday 21 May 2015 9:08
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: [MyDomoAtHome] Support thread

Post by Justintime »

epierre wrote:Hello,

Just an information, there are around broken versions of npm, broken version of winston, very slow versions of nodejs (version 10)... please see the github if you face this.
Thanks for reporting.. Luckily everything is working well...
gerardosamara
Posts: 55
Joined: Sunday 23 October 2016 19:49
Target OS: Linux
Domoticz version: 4.10778
Contact:

Re: [MyDomoAtHome] Support thread

Post by gerardosamara »

Raspian Buster
Domoticz beta V4.11763
Node version V4.2.2
npm 2.14.17
mdah 0.2.42

Description : MDAH fails to start

On a fresh install , MDAH has ben installed using https://github.com/empierre/MyDomoAtHom ... ADME_FR.md but fails to start , as per the sylog log below

The config.json file has not been modified

Code: Select all

Mar 15 15:53:55 raspberrypi systemd[1]: Starting MDAH ISS Rest interface for Domoticz to Imperihome...
Mar 15 15:53:55 raspberrypi systemd[1]: Started MDAH ISS Rest interface for Domoticz to Imperihome.
Mar 15 15:53:56 raspberrypi MDAH[790]: /usr/local/lib/node_modules/forever/node_modules/forever-monitor/lib/forever-monitor/monitor.js:38
Mar 15 15:53:56 raspberrypi MDAH[790]:   let execPath = process.execPath;
Mar 15 15:53:56 raspberrypi MDAH[790]:   ^^^
Mar 15 15:53:56 raspberrypi MDAH[790]: SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
Mar 15 15:53:56 raspberrypi MDAH[790]:     at exports.runInThisContext (vm.js:53:16)
Mar 15 15:53:56 raspberrypi MDAH[790]:     at Module._compile (module.js:414:25)
Mar 15 15:53:56 raspberrypi MDAH[790]:     at Object.Module._extensions..js (module.js:442:10)
Mar 15 15:53:56 raspberrypi MDAH[790]:     at Module.load (module.js:356:32)
Mar 15 15:53:56 raspberrypi MDAH[790]:     at Function.Module._load (module.js:311:12)
Mar 15 15:53:56 raspberrypi MDAH[790]:     at Module.require (module.js:366:17)
Mar 15 15:53:56 raspberrypi MDAH[790]:     at require (module.js:385:17)
Mar 15 15:53:56 raspberrypi MDAH[790]:     at Object.<anonymous> (/usr/local/lib/node_modules/forever/node_modules/forever-monitor/lib/index.js:14:19)
Mar 15 15:53:56 raspberrypi MDAH[790]:     at Module._compile (module.js:435:26)
Mar 15 15:53:56 raspberrypi MDAH[790]:     at Object.Module._extensions..js (module.js:442:10)
Mar 15 15:53:56 raspberrypi systemd[1]: mydomoathome.service: Main process exited, code=exited, status=1/FAILURE
Mar 15 15:53:56 raspberrypi systemd[1]: mydomoathome.service: Failed with result 'exit-code'.
Mar 15 15:53:56 raspberrypi systemd[1]: mydomoathome.service: Service RestartSec=100ms expired, scheduling restart.
Mar 15 15:53:56 raspberrypi systemd[1]: mydomoathome.service: Scheduled restart job, restart counter is at 1.
Mar 15 15:53:56 raspberrypi systemd[1]: Stopped MDAH ISS Rest interface for Domoticz to Imperihome.
Mar 15 15:53:56 raspberrypi systemd[1]: Starting MDAH ISS Rest interface for Domoticz to Imperihome...
Mar 15 15:53:56 raspberrypi systemd[1]: Started MDAH ISS Rest interface for Domoticz to Imperihome.
Mar 15 15:53:57 raspberrypi MDAH[803]: /usr/local/lib/node_modules/forever/node_modules/forever-monitor/lib/forever-monitor/monitor.js:38
Mar 15 15:53:57 raspberrypi MDAH[803]:   let execPath = process.execPath;
Mar 15 15:53:57 raspberrypi MDAH[803]:   ^^^
Mar 15 15:53:57 raspberrypi MDAH[803]: SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
Mar 15 15:53:57 raspberrypi MDAH[803]:     at exports.runInThisContext (vm.js:53:16)
Mar 15 15:53:57 raspberrypi MDAH[803]:     at Module._compile (module.js:414:25)
Mar 15 15:53:57 raspberrypi MDAH[803]:     at Object.Module._extensions..js (module.js:442:10)
Mar 15 15:53:57 raspberrypi MDAH[803]:     at Module.load (module.js:356:32)
Mar 15 15:53:57 raspberrypi MDAH[803]:     at Function.Module._load (module.js:311:12)
Mar 15 15:53:57 raspberrypi MDAH[803]:     at Module.require (module.js:366:17)
Mar 15 15:53:57 raspberrypi MDAH[803]:     at require (module.js:385:17)
Mar 15 15:53:57 raspberrypi MDAH[803]:     at Object.<anonymous> (/usr/local/lib/node_modules/forever/node_modules/forever-monitor/lib/index.js:14:19)
Mar 15 15:53:57 raspberrypi MDAH[803]:     at Module._compile (module.js:435:26)
Mar 15 15:53:57 raspberrypi MDAH[803]:     at Object.Module._extensions..js (module.js:442:10)
Mar 15 15:53:57 raspberrypi systemd[1]: mydomoathome.service: Main process exited, code=exited, status=1/FAILURE
Mar 15 15:53:57 raspberrypi systemd[1]: mydomoathome.service: Failed with result 'exit-code'.
Mar 15 15:53:57 raspberrypi systemd[1]: mydomoathome.service: Service RestartSec=100ms expired, scheduling restart.
Mar 15 15:53:57 raspberrypi systemd[1]: mydomoathome.service: Scheduled restart job, restart counter is at 2.
Mar 15 15:53:57 raspberrypi systemd[1]: Stopped MDAH ISS Rest interface for Domoticz to Imperihome.
Mar 15 15:53:57 raspberrypi systemd[1]: Starting MDAH ISS Rest interface for Domoticz to Imperihome...
Mar 15 15:53:57 raspberrypi systemd[1]: Started MDAH ISS Rest interface for Domoticz to Imperihome.
Mar 15 15:53:58 raspberrypi MDAH[823]: /usr/local/lib/node_modules/forever/node_modules/forever-monitor/lib/forever-monitor/monitor.js:38
Mar 15 15:53:58 raspberrypi MDAH[823]:   let execPath = process.execPath;
Mar 15 15:53:58 raspberrypi MDAH[823]:   ^^^
Mar 15 15:53:58 raspberrypi MDAH[823]: SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
Mar 15 15:53:58 raspberrypi MDAH[823]:     at exports.runInThisContext (vm.js:53:16)
Mar 15 15:53:58 raspberrypi MDAH[823]:     at Module._compile (module.js:414:25)
Mar 15 15:53:58 raspberrypi MDAH[823]:     at Object.Module._extensions..js (module.js:442:10)
Mar 15 15:53:58 raspberrypi MDAH[823]:     at Module.load (module.js:356:32)
Mar 15 15:53:58 raspberrypi MDAH[823]:     at Function.Module._load (module.js:311:12)
Mar 15 15:53:58 raspberrypi MDAH[823]:     at Module.require (module.js:366:17)
Mar 15 15:53:58 raspberrypi MDAH[823]:     at require (module.js:385:17)
Mar 15 15:53:58 raspberrypi MDAH[823]:     at Object.<anonymous> (/usr/local/lib/node_modules/forever/node_modules/forever-monitor/lib/index.js:14:19)
Mar 15 15:53:58 raspberrypi MDAH[823]:     at Module._compile (module.js:435:26)
Mar 15 15:53:58 raspberrypi MDAH[823]:     at Object.Module._extensions..js (module.js:442:10)
Mar 15 15:53:58 raspberrypi systemd[1]: mydomoathome.service: Main process exited, code=exited, status=1/FAILURE
Mar 15 15:53:58 raspberrypi systemd[1]: mydomoathome.service: Failed with result 'exit-code'.
Mar 15 15:53:58 raspberrypi systemd[1]: mydomoathome.service: Service RestartSec=100ms expired, scheduling restart.
Mar 15 15:53:58 raspberrypi systemd[1]: mydomoathome.service: Scheduled restart job, restart counter is at 3.
Mar 15 15:53:58 raspberrypi systemd[1]: Stopped MDAH ISS Rest interface for Domoticz to Imperihome.
Mar 15 15:53:58 raspberrypi systemd[1]: Starting MDAH ISS Rest interface for Domoticz to Imperihome...
Mar 15 15:53:59 raspberrypi systemd[1]: Started MDAH ISS Rest interface for Domoticz to Imperihome.
Mar 15 15:53:59 raspberrypi MDAH[843]: /usr/local/lib/node_modules/forever/node_modules/forever-monitor/lib/forever-monitor/monitor.js:38
Mar 15 15:53:59 raspberrypi MDAH[843]:   let execPath = process.execPath;
Mar 15 15:53:59 raspberrypi MDAH[843]:   ^^^
Mar 15 15:53:59 raspberrypi MDAH[843]: SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
Mar 15 15:53:59 raspberrypi MDAH[843]:     at exports.runInThisContext (vm.js:53:16)
Mar 15 15:53:59 raspberrypi MDAH[843]:     at Module._compile (module.js:414:25)
Mar 15 15:53:59 raspberrypi MDAH[843]:     at Object.Module._extensions..js (module.js:442:10)
Mar 15 15:53:59 raspberrypi MDAH[843]:     at Module.load (module.js:356:32)
Mar 15 15:53:59 raspberrypi MDAH[843]:     at Function.Module._load (module.js:311:12)
Mar 15 15:53:59 raspberrypi MDAH[843]:     at Module.require (module.js:366:17)
Mar 15 15:53:59 raspberrypi MDAH[843]:     at require (module.js:385:17)
Mar 15 15:53:59 raspberrypi MDAH[843]:     at Object.<anonymous> (/usr/local/lib/node_modules/forever/node_modules/forever-monitor/lib/index.js:14:19)
Mar 15 15:53:59 raspberrypi MDAH[843]:     at Module._compile (module.js:435:26)
Mar 15 15:53:59 raspberrypi MDAH[843]:     at Object.Module._extensions..js (module.js:442:10)
Mar 15 15:53:59 raspberrypi systemd[1]: mydomoathome.service: Main process exited, code=exited, status=1/FAILURE
Mar 15 15:53:59 raspberrypi systemd[1]: mydomoathome.service: Failed with result 'exit-code'.
Mar 15 15:54:00 raspberrypi systemd[1]: mydomoathome.service: Service RestartSec=100ms expired, scheduling restart.
Mar 15 15:54:00 raspberrypi systemd[1]: mydomoathome.service: Scheduled restart job, restart counter is at 4.
Mar 15 15:54:00 raspberrypi systemd[1]: Stopped MDAH ISS Rest interface for Domoticz to Imperihome.
Mar 15 15:54:00 raspberrypi systemd[1]: Starting MDAH ISS Rest interface for Domoticz to Imperihome...
Mar 15 15:54:00 raspberrypi systemd[1]: Started MDAH ISS Rest interface for Domoticz to Imperihome.
Mar 15 15:54:01 raspberrypi MDAH[858]: /usr/local/lib/node_modules/forever/node_modules/forever-monitor/lib/forever-monitor/monitor.js:38
Mar 15 15:54:01 raspberrypi MDAH[858]:   let execPath = process.execPath;
Mar 15 15:54:01 raspberrypi MDAH[858]:   ^^^
Mar 15 15:54:01 raspberrypi MDAH[858]: SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
Mar 15 15:54:01 raspberrypi MDAH[858]:     at exports.runInThisContext (vm.js:53:16)
Mar 15 15:54:01 raspberrypi MDAH[858]:     at Module._compile (module.js:414:25)
Mar 15 15:54:01 raspberrypi MDAH[858]:     at Object.Module._extensions..js (module.js:442:10)
Mar 15 15:54:01 raspberrypi MDAH[858]:     at Module.load (module.js:356:32)
Mar 15 15:54:01 raspberrypi MDAH[858]:     at Function.Module._load (module.js:311:12)
Mar 15 15:54:01 raspberrypi MDAH[858]:     at Module.require (module.js:366:17)
Mar 15 15:54:01 raspberrypi MDAH[858]:     at require (module.js:385:17)
Mar 15 15:54:01 raspberrypi MDAH[858]:     at Object.<anonymous> (/usr/local/lib/node_modules/forever/node_modules/forever-monitor/lib/index.js:14:19)
Mar 15 15:54:01 raspberrypi MDAH[858]:     at Module._compile (module.js:435:26)
Mar 15 15:54:01 raspberrypi MDAH[858]:     at Object.Module._extensions..js (module.js:442:10)
Mar 15 15:54:01 raspberrypi systemd[1]: mydomoathome.service: Main process exited, code=exited, status=1/FAILURE
Mar 15 15:54:01 raspberrypi systemd[1]: mydomoathome.service: Failed with result 'exit-code'.
Mar 15 15:54:01 raspberrypi systemd[1]: mydomoathome.service: Service RestartSec=100ms expired, scheduling restart.
Mar 15 15:54:01 raspberrypi systemd[1]: mydomoathome.service: Scheduled restart job, restart counter is at 5.
Mar 15 15:54:01 raspberrypi systemd[1]: Stopped MDAH ISS Rest interface for Domoticz to Imperihome.
Mar 15 15:54:01 raspberrypi systemd[1]: mydomoathome.service: Start request repeated too quickly.
Mar 15 15:54:01 raspberrypi systemd[1]: mydomoathome.service: Failed with result 'exit-code'.
Mar 15 15:54:01 raspberrypi systemd[1]: Failed to start MDAH ISS Rest interface for Domoticz to Imperihome.
Is it a known issue ?

Thank you
Domoticz Beta V4.11763 in Debian 10 VM
Domoticz Beta V4.11763 in RPI3
MDAH 0.2.42 + Imperihome Pro V4.3.17
App Android Domoticz Lite V0.2.201
User avatar
epierre
Posts: 522
Joined: Wednesday 05 March 2014 13:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Support thread

Post by epierre »

gerardosamara wrote: Monday 16 March 2020 1:17 Raspian Buster
Domoticz beta V4.11763
Node version V4.2.2
npm 2.14.17
mdah 0.2.42

Is it a known issue ?
yes, related to node/npm

what gives:

node -v
npm -v
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
gerardosamara
Posts: 55
Joined: Sunday 23 October 2016 19:49
Target OS: Linux
Domoticz version: 4.10778
Contact:

Re: [MyDomoAtHome] Support thread

Post by gerardosamara »

Capture mdah.PNG
Capture mdah.PNG (22.89 KiB) Viewed 2771 times
Domoticz Beta V4.11763 in Debian 10 VM
Domoticz Beta V4.11763 in RPI3
MDAH 0.2.42 + Imperihome Pro V4.3.17
App Android Domoticz Lite V0.2.201
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests