gSpotx2f / luci-app-internet-detector

Internet detector for OpenWrt
Apache License 2.0
49 stars 20 forks source link
luci luci-app openwrt

Internet detector for OpenWrt.

Internet-detector is an application for checking the availability of the Internet. Performs periodic connections to a known public host and determines the actual Internet availability.

Features:

Dependences: lua, luaposix, libuci-lua.

Installation notes (OpenWrt >= 21.02)

opkg update
wget --no-check-certificate -O /tmp/internet-detector_1.3.0-1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/internet-detector_1.3.0-1_all.ipk
opkg install /tmp/internet-detector_1.3.0-1_all.ipk
rm /tmp/internet-detector_1.3.0-1_all.ipk
/etc/init.d/internet-detector start
/etc/init.d/internet-detector enable

wget --no-check-certificate -O /tmp/luci-app-internet-detector_1.3.0-r1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/luci-app-internet-detector_1.3.0-r1_all.ipk
opkg install /tmp/luci-app-internet-detector_1.3.0-r1_all.ipk
rm /tmp/luci-app-internet-detector_1.3.0-r1_all.ipk
/etc/init.d/rpcd restart

i18n-ru:

wget --no-check-certificate -O /tmp/luci-i18n-internet-detector-ru_1.3.0-r1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/luci-i18n-internet-detector-ru_1.3.0-r1_all.ipk
opkg install /tmp/luci-i18n-internet-detector-ru_1.3.0-r1_all.ipk
rm /tmp/luci-i18n-internet-detector-ru_1.3.0-r1_all.ipk

Screenshots:

Modem restart module (internet-detector-mod-modem-restart):

Dependences: modemmanager.

wget --no-check-certificate -O /tmp/internet-detector-mod-modem-restart_1.3.0-1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/internet-detector-mod-modem-restart_1.3.0-1_all.ipk
opkg install /tmp/internet-detector-mod-modem-restart_1.3.0-1_all.ipk
rm /tmp/internet-detector-mod-modem-restart_1.3.0-1_all.ipk
/etc/init.d/internet-detector restart

Email notification module (internet-detector-mod-email):

Dependences: mailsend.

wget --no-check-certificate -O /tmp/internet-detector-mod-email_1.3.0-1_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/internet-detector-mod-email_1.3.0-1_all.ipk
opkg install /tmp/internet-detector-mod-email_1.3.0-1_all.ipk
rm /tmp/internet-detector-mod-email_1.3.0-1_all.ipk
/etc/init.d/internet-detector restart

OpenWrt 19.07