Network configuration module for emoncms.
Remove old WiFi module if present:
rm -rf /var/www/emoncms/Modules/wifi
Install new network module:
cd /opt/emoncms/modules
git clone https://github.com/emoncms/network
ln -s /opt/emoncms/modules/network/network-module /var/www/emoncms/Modules/network
Run install script
cd /opt/emoncms/modules/network
./install.sh
The captive-portal DNS rules include Samsung connectivity-check hostnames, although the probe used can vary by device and software version. After updating the installation, reload NetworkManager to apply changes to its dnsmasq configuration; this briefly interrupts DNS resolution. The rules also affect DNS lookups on the host, not just hotspot clients.
GNU AFFERO GENERAL PUBLIC LICENSE, see emoncms repo:
https://github.com/emoncms/emoncms/blob/master/LICENSE.txt
Credit to:
- https://github.com/0unknwn/auto-hotspot
- https://raspberrypi.stackexchange.com/questions/100195/automatically-create-hotspot-if-no-network-is-available
for a guide on how to do this with systemd-networkd