Page 41 of 55

Re: [MyDomoAtHome] Support thread

Posted: Thursday 21 September 2017 12:15
by Eternity
Ignore

Re: [MyDomoAtHome] Support thread

Posted: Friday 29 September 2017 16:52
by EdwinK
Searched through the posts here, but it looks like this can't be installed on Synology D413j (armv5).

Re: [MyDomoAtHome] Support thread

Posted: Thursday 05 October 2017 22:12
by epierre
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).
are you on DSM5 ? then use(not my latest but should work):

https://e-nef.com/domoticz/mdah/node-my ... 0.1.56.spk

If you have only node in v1.0 this will not work till synology does a node version for you.

Re: [MyDomoAtHome] Support thread

Posted: Friday 06 October 2017 19:31
by Ady92100
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 ?


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

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"}
in config.json the configuration is that one

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 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.

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?

Thanks for your help.
Regards

Re: [MyDomoAtHome] Support thread

Posted: Friday 06 October 2017 21:48
by epierre
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 ?
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 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

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"}
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.

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?
check that /etc/mydomoathome is readable by the user is is launched as ( do a 'ps aux|grep node' ), same for config.json

Re: [MyDomoAtHome] Support thread

Posted: Friday 06 October 2017 22:01
by Ady92100
Hello

Thanks for your answer
for DS212, unfortunatly I use V0.10, so it won't work.

The result of 'ps aux | grep node'

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
and
The result of 'ps aux | 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
does it help ?
Regards

Re: [MyDomoAtHome] Support thread

Posted: Friday 06 October 2017 22:51
by epierre
I would say do a :
chmod a+rx /etc/mydomoathome
chmod a+rx /etc/mydomoathome/config.json

Re: [MyDomoAtHome] Support thread

Posted: Friday 06 October 2017 23:16
by Ady92100
I did it. I still have the same problem.
I noticed inthe log a parsing issue :

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"}

Re: [MyDomoAtHome] Support thread

Posted: Saturday 07 October 2017 10:39
by epierre
yes, no comma before a closing parenthesis

"auth": null, => "auth": null

Re: [MyDomoAtHome] Support thread

Posted: Saturday 07 October 2017 11:09
by epierre
Hi All,

In the latest version you have support for Farenheight temperature ( imperial mesure, not international).

Re: [MyDomoAtHome] Support thread

Posted: Saturday 07 October 2017 17:27
by febalci
Version 0.2.27 gives referenceerror: tempmode not defined; and exits in synology package. Couldnt started it.

Re: [MyDomoAtHome] Support thread

Posted: Saturday 07 October 2017 18:40
by Ady92100
Hello epierre

Thanks for the explanation, it works now
My config.json was a copy of the "easydomoticz" https://easydomoticz.com/imperihome-no ... on-nodejs/ post. I will send a request for improvement to patrice.
Thanks

Re: [MyDomoAtHome] Support thread

Posted: Saturday 07 October 2017 18:44
by epierre
@febalci strange, latest is 0.2.29 and without the tag it work here.

try adding
"tempmode": "C",

just after app_name in /etc/mydomoathome/config.json

Re: [MyDomoAtHome] Support thread

Posted: Saturday 07 October 2017 21:19
by febalci
Hmm, where can i find config.json in a synology package install? /etc/mydomoathome folder doesn't exist.

Re: [MyDomoAtHome] Support thread

Posted: Saturday 07 October 2017 21:37
by jumbotroll
febalci 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.
Maybe /var/packages/MyDomoAtHome/etc

Re: [MyDomoAtHome] Support thread

Posted: Saturday 07 October 2017 21:40
by epierre
Hello,

just manually installed 0.2.29 opn my DS216j without any issue.

in case you have an issue, access your synology as admin, create /etc/mydomoathome and in it a config.json just as in the config.json section in:

https://github.com/empierre/MyDomoAtHome

or try as @jumbotroll said ;-)

Re: [MyDomoAtHome] Support thread

Posted: Saturday 07 October 2017 22:02
by epierre
tried this one unsuccessfully: /var/packages/MyDomoAtHome/etc

this one works:
access your synology as admin, sudo to create /etc/mydomoathome and in it a config.json

Re: [MyDomoAtHome] Support thread

Posted: Sunday 08 October 2017 9:26
by febalci
Thanks epierre, that solved the problem.

Re: [MyDomoAtHome] Support thread

Posted: Sunday 08 October 2017 9:59
by epierre
@febalci which synology version are you running on ? on my DSM6 on DS216j I did not had the issue.

looking back
Version 0.2.27 gives referenceerror: tempmode not defined; and exits in synology package. Couldnt started it.
looks more a 0.2.27 version issue, you should move to 0.2.29

Re: [MyDomoAtHome] Support thread

Posted: Sunday 08 October 2017 11:43
by febalci
I was already moved to 0.2.29. Had same problem again. Then uninstalled mydomoathome.spk and reinstalled it. Same problem. Didnot had any problem with 0.2.26. creating the folder and config.json solved it. Synology DS916+ with latest 6.2 dsm.