MyDomoAtHome
Posted: Tuesday 20 February 2018 8:35
Hi all,
I didn't find anything in this forum or in Google so I try to add a new thread, please let me know if I'm not doing well...
I got MyDomoAtHome running fine but I would like to add another instance with another user (to control access to some devices)
I've been trying to add another instance in the config file but it does not read my config.json and goes to a default one...
Here is my config.json file :
And here is the log when I reload MDAH service :
Have anyone been able to set a multi-instances config ?
If I only put one instance, it works, ex :
Thanks in advance ! 

I didn't find anything in this forum or in Google so I try to add a new thread, please let me know if I'm not doing well...
I got MyDomoAtHome running fine but I would like to add another instance with another user (to control access to some devices)
I've been trying to add another instance in the config file 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": ""
}]
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
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": ""
}
