sreichholf / dreamDroid

DreamDroid is an open-source enigma2 client for android based devices.
https://dreamdroid.org
GNU General Public License v3.0
106 stars 43 forks source link

choose profile automatically #55

Open Jojojoxx opened 10 years ago

Jojojoxx commented 10 years ago

It would be nice, if I could assign a kind of priority to each profile. It is useful for the following scenario:

I have to profiles for the same dreambox. One profile is accessable by my DynDns adress, so I can access the dreambox via internet. If I am in my LAN, I have a profile for local access (I use it for streaming to my android device). Now, if I could assign the highest priority to the second profile and a lower to the first one, I would not have to select the profile manually. Dreamdroid would "try" the profiles on startup in the defined order.

basalt79 commented 5 years ago

Please consider this, in case of 2 different boxes.

  1. Livingroom
  2. Bedroom

Now both of them have a public and a local connection

  1. Livingroom - local
  2. Livingroom - public
  3. Bedroom - local
  4. Bedroom - pubic

Now you have to provide the priority to this 4 connections:

Livingroom - local = 1 Livingroom - public = 2 Bedroom - local = 3 Bedroom - public = 4

Livingroom local is the active one. So if this fails to connect, the next in the row will be taken, so switch to 2. But what if 2 is also not reachable, should it witch to 3 and than 4

or do we have to implement kinda grouping

Livingroom local and public are in group A with order 1,2 Bedroom local and public are in group B with oder 1,2

And if the active profile is in group A, the app will try to connect to A1 and if not reachable connect to A2 and not jump to other groups.

@sreichholf what is your opinion on this?