Re: [MyDomoAtHome] Support thread
Posted: Thursday 21 September 2017 12:15
Ignore
Open source Home Automation System
https://forum.domoticz.com/
are you on DSM5 ? then use(not my latest but should work):EdwinK wrote: Friday 29 September 2017 16:52 Searched through the posts here, but it looks like this can't be installed on Synology D413j (armv5).
Code: Select all
{"level":"warn","message":"basic configuration not found in /etc/mydomoathome/config.json, defaulting","timestamp":"2017-10-05T20:47:26.371Z"}
{"level":"warn","message":"domoticz access configuration not found in /etc/mydomoathome/config.json, defaulting","timestamp":"2017-10-05T20:47:26.431Z"}
{"level":"info","message":"Domoticz server: http://127.0.0.1:8080/json.htm","timestamp":"2017-10-05T20:47:26.589Z"}
Code: Select all
"app_name": "MyDomoAtHome",
"auth": null,
"domoticz": {
"ssl": false,
"host": "192.168.1.xx",
"port": "8084",
"path": "/",
"auth": null,
},
"port": 3002,
"passcode": " "
}
I can make one, but I can't verify the node version you have, and only a version >=0.12 works...Ady92100 wrote: Friday 06 October 2017 19:31 Hello
I've tried to install Mdah for a DS212.
Due to request to install nodejs-V4( not available for DS212), I install Mdah on a PI 2 as a gateway for Dz installed on the DS212.
Does a DS212 version of Mdah exist ?
check that /etc/mydomoathome is readable by the user is is launched as ( do a 'ps aux|grep node' ), same for config.jsonAdy92100 wrote: Friday 06 October 2017 19:31 A DZ (test version) with several devices is installed on the PI, besides Mdah.
With Mdah i've only access to the PI's devices and not to the DS212's devices managed by DZ on the DS212.
in the log I found this
I understand that Mdah for whatever reason is unable to read the config.json file and uses default parameter (localhost = Pi) and therefore the Pi's devices.Code: Select all
{"level":"warn","message":"basic configuration not found in /etc/mydomoathome/config.json, defaulting","timestamp":"2017-10-05T20:47:26.371Z"} {"level":"warn","message":"domoticz access configuration not found in /etc/mydomoathome/config.json, defaulting","timestamp":"2017-10-05T20:47:26.431Z"} {"level":"info","message":"Domoticz server: http://127.0.0.1:8080/json.htm","timestamp":"2017-10-05T20:47:26.589Z"}
How to solve this issue ?
for me it's not a login isssue, Mdah simply do not use my config.json file located in /etc/mydomoathome
Where to start to solve this?
Code: Select all
pi@raspberrypi:~$ ps aux|grep node
www-data 12252 0.0 3.1 119004 13928 ? Sl oct.05 0:12 node /usr/local/bin/forever --minUptime 5000 --spinSleepTime 2000 --max-old-space-size=128 -a -l /var/log/mydomoathome/mdah.log /usr/share/mydomoathome/app/mdah.js
www-data 12261 0.0 5.9 128588 26372 ? Sl oct.05 0:21 /usr/bin/node /usr/share/mydomoathome/app/mdah.js
pi 19352 0.0 0.4 4292 1916 pts/0 S+ 21:38 0:00 grep node
pi@raspberrypi:~$ ps aux|grep config.json
pi 19357 0.0 0.4 4292 1972 pts/0 S+ 21:38 0:00 grep config.json
Code: Select all
pi@raspberrypi:~$ ps aux|grep config.json
pi 19357 0.0 0.4 4292 1972 pts/0 S+ 21:38 0:00 grep config.json
Code: Select all
{"level":"error","message":"Global conf parsing issue !","timestamp":"2017-10-06T20:57:38.205Z"}
{"level":"error","timestamp":"2017-10-06T20:57:38.600Z"}
{"level":"error","message":"Global conf load issue !","timestamp":"2017-10-06T20:57:38.808Z"}
{"level":"error","timestamp":"2017-10-06T20:57:38.854Z"}
{"level":"warn","message":"basic configuration not found in /etc/mydomoathome/config.json, defaulting","timestamp":"2017-10-06T20:57:38.972Z"}
{"level":"warn","message":"domoticz access configuration not found in /etc/mydomoathome/config.json, defaulting","timestamp":"2017-10-06T20:57:39.041Z"}
{"level":"info","message":"Domoticz server: http://127.0.0.1:8080/json.htm","timestamp":"2017-10-06T20:57:39.205Z"}
{"level":"info","message":"Node version: 4.2.2","timestamp":"2017-10-06T20:57:39.228Z"}
{"level":"info","message":"MDAH version: MyDomoAtHome 0.2.26","timestamp":"2017-10-06T20:57:39.249Z"}
{"level":"info","message":"OS version: Linux linux 4.9.24+","timestamp":"2017-10-06T20:57:39.272Z"}
{"level":"info","message":"Hostname: raspberrypi 192.168.1.41 in /var/www /usr/share/mydomoathome","timestamp":"2017-10-06T20:57:39.332Z"}
{"level":"info","message":"MDAH port: 3002","timestamp":"2017-10-06T20:57:39.682Z"}
{"level":"info","message":"Refreshing version cache: v0.2.26","timestamp":"2017-10-06T20:57:43.152Z"}
Maybe /var/packages/MyDomoAtHome/etcfebalci wrote: Saturday 07 October 2017 21:19 Hmm, where can i find config.json in a synology package install? /etc/mydomoathome folder doesn't exist.
looks more a 0.2.27 version issue, you should move to 0.2.29Version 0.2.27 gives referenceerror: tempmode not defined; and exits in synology package. Couldnt started it.