NebraLtd / hm-config

Helium Miner Config Container
https://nebra.io/hnt
MIT License
12 stars 20 forks source link

Implement Network Switching based on WAN Connectivity #133

Open ryanteck opened 3 years ago

ryanteck commented 3 years ago

Implement some code so that it switches the network interface based on WAN Connectivity.

Currently it'll switch based on if the interface is up such as if Wi-Fi drops out and an ethernet cable is connected. However if for example the unit has an ethernet connection but the ISP is down, it won't fall back to 4G automatically.

Possibly similar code to https://github.com/PiSupply/iot-lora-gw-docker/blob/master/iot-lora-switcher.py

RaviTharuma commented 3 years ago

Thank you for adding this, this would be such a great feature!

system-zero37 commented 3 years ago

This needs to be a thing.

shawaj commented 2 years ago

transferred from https://github.com/NebraLtd/helium-miner-software/issues/21

relates to https://github.com/NebraLtd/helium-miner-software/issues/57 and #131 and #132

shawaj commented 2 years ago

ref https://superuser.com/questions/501406/make-networkmanager-prefer-ethernet-over-wifi-if-both-present