Hi all,
I've been trying to add another instance to MyDomoAtHome but it does not read my config.json and goes to a default one...
Here is my config.json file :
Code: Select all
[{
"app_name": "MDAH_User1",
"auth": {
"username": "user1",
"password": "password1"
},
"domoticz": {
"ssl": false,
"host": "127.0.0.1",
"port": "8080",
"path": "/",
"auth": {
"username": "domoticz_user1",
"password": "domoticz_password1"
}
},
"port": 3002,
"passcode": ""
},
{
"app_name": "MDAH_User2",
"auth": {
"username": "user2",
"password": "password2"
},
"domoticz": {
"ssl": false,
"host": "127.0.0.1",
"port": "8080",
"path": "/",
"auth": {
"username": "domoticz_user2",
"password": "domoticz_password2"
}
},
"port": 3003,
"passcode": ""
}]
And here is the log when I reload MDAH service :
Code: Select all
févr. 13 15:44:17 [hostname] systemd[1]: Starting MDAH ISS Rest interface for Domoticz to Imperihome...
févr. 13 15:44:17 [hostname] systemd[1]: Started MDAH ISS Rest interface for Domoticz to Imperihome.
févr. 13 15:44:25 [hostname] MDAH[25291]: warn: basic configuration not found in /etc/mydomoathome/config.json, defaulting
févr. 13 15:44:25 [hostname] MDAH[25291]: warn: domoticz access configuration not found in /etc/mydomoathome/config.json, defaulting
févr. 13 15:44:25 [hostname] MDAH[25291]: info: Domoticz server: http://127.0.0.1:8080/json.htm
févr. 13 15:44:25 [hostname] MDAH[25291]: info: Node version: 4.2.2
févr. 13 15:44:25 [hostname] MDAH[25291]: info: MDAH version: MyDomoAtHome 0.2.8
févr. 13 15:44:25 [hostname] MDAH[25291]: info: OS version: Linux linux 4.9.59-v7+
févr. 13 15:44:25 [hostname] MDAH[25291]: info: Hostname: [hostname] 192.168.{XXX.XXX} in /var/www /usr/share/mydomoathome
févr. 13 15:44:25 [hostname] MDAH[25291]: info: MDAH port: 3002
févr. 13 15:44:26 [hostname] MDAH[25291]: info: Refreshing version cache: v0.2.36
Have anyone been able to set a multi-instances config ?
I didn't find anything in this thread or in Google...
If I only put one instance, it works, ex :
Code: Select all
{
"app_name": "MDAH_User1",
"auth": {
"username": "user1",
"password": "password1"
},
"domoticz": {
"ssl": false,
"host": "127.0.0.1",
"port": "8080",
"path": "/",
"auth": {
"username": "domoticz_user1",
"password": "domoticz_password1"
}
},
"port": 3002,
"passcode": ""
}
Thanks in advance !