galadril / DomoticzForAndroid

This is a Domoticz Android app. Domoticz is a very light weight home automation system ...
http://www.domoticz.com
14 stars 7 forks source link

Multiple Domoticz servers #13

Open RoadXY opened 9 years ago

RoadXY commented 9 years ago

Feature request from someone: the ability to be able to use multiple Domoticz servers. In example:

I think Domoticz should be able to figure auto by the connected wifi which to auto select. If not connected to any (known) wifi then use the default Domoticz server. If not able to connect to default try other server. If that's not going to work give error message to user.

galadril commented 9 years ago

Woops :)

RoadXY commented 9 years ago

lol

galadril commented 9 years ago

Should this not be a Domoticz feature (to chain multiple instances)? So we still communicate only with one Instance (which contains the data of both)

??

RoadXY commented 9 years ago

That would mean both Domoticz servers on both sites will have to remain connected all the time. If internet is down on the holiday site but wifi is working you won't be able to control your devices on the holiday site.

Also chaining (sharing devices between servers) is already possible and my guess is we should not have to do anything for this.

galadril commented 9 years ago

So this can be closed then? Correct?

RoadXY commented 9 years ago

No, I think Domoticz should support multiple servers. The question is: how many users would use this?

galadril commented 9 years ago

Think we should start by saving & loading all domoticz server settings into a Container class (ServerInfo). We can save whole objects in SharedPreferences with Gson, so you don't have to process all individual fields.

When all Server settings are handles via one container class, you could make it a list of servers, with One default..?

RoadXY commented 9 years ago

Sounds about right. I do think, however, that this should a feature which is something for version 2.0 or something. I would like to know if more then 10% of the Android users will be using this because this will bring a lot of work.

Your thoughts on this?

galadril commented 9 years ago

I agree

RoadXY commented 9 years ago

Could you create a milestone with version 2.0 and label this issue to it, please :-D

RoadXY commented 8 years ago

Maybe use MyDomoticz for this?