openaps / oref0

oref0: The open reference implementation of the OpenAPS reference design.
http://www.OpenAPS.org
MIT License
430 stars 395 forks source link

Connect to a different network if the current network has no internet connection #1333

Open jakobsandberg opened 4 years ago

jakobsandberg commented 4 years ago

Is your feature request related to a problem? Please describe. Sometimes my rig is on a network that loses internet connection. This causes my rig to lose all network based communication.

Describe the solution you'd like It would be great if my rig connected to the next available network as specified in wpa_supplicant.conf.

Describe alternatives you've considered At a minimum it would be helpful to get a log when our current network doesn't have any internet connection.

Additional context I'll take a look at implementing this over the weekend

scottleibrand commented 4 years ago

Please be specific as to which changes if any you’d like made to oref0-online. It is pretty heavily optimized within the constraints of wpa_supplicant. Another alternative is network-manager, but we don’t know of any way to safely install that without requiring manual action over console.

sulkaharo commented 4 years ago

I think this falls to the domain of wpa_supplicant’s network detection. If you can convince those devs to add a mode that does better online detection (consider a network that gives an IP but doesn’t route offline), that’d be great. Also note for offline looping, this is a valid networking scenario, where the rig can be connected to a phone hotspot for CGM data, while routing to Internet is offline