mirror of
https://github.com/gSpotx2f/luci-app-internet-detector.git
synced 2025-12-19 05:58:17 +03:00
46 lines
2.2 KiB
Markdown
46 lines
2.2 KiB
Markdown
# Internet detector for OpenWrt.
|
|
Internet-detector is an application for checking the availability of the Internet. Performs periodic connections to a known public host (8.8.8.8, 1.1.1.1) and determines the actual Internet availability.
|
|
|
|
**OpenWrt** >= 19.07.
|
|
|
|
**Dependences:** lua, luci-lib-nixio, libuci-lua.
|
|
|
|
**Features:**
|
|
- It can run continuously as a system service or only in an open web interface.
|
|
- Checking the availability of a host using ping or by connecting via TCP to a specified port.
|
|
- LED indication of Internet availability.
|
|

|
|
- Performing actions when connecting and disconnecting the Internet (Restarting network, modem or device. Executing custom shell scripts).
|
|
- Sending email notification when Internet access is restored.
|
|
- The daemon is written entirely in Lua using the nixio library.
|
|
|
|
## Installation notes
|
|
|
|
**OpenWrt 19.07:**
|
|
|
|
wget --no-check-certificate -O /tmp/internet-detector_0.5-0_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/19.07/internet-detector_0.5-0_all.ipk
|
|
opkg install /tmp/internet-detector_0.5-0_all.ipk
|
|
rm /tmp/internet-detector_0.5-0_all.ipk
|
|
/etc/init.d/internet-detector start
|
|
/etc/init.d/internet-detector enable
|
|
|
|
wget --no-check-certificate -O /tmp/luci-app-internet-detector_0.5-0_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/19.07/luci-app-internet-detector_0.5-0_all.ipk
|
|
opkg install /tmp/luci-app-internet-detector_0.5-0_all.ipk
|
|
rm /tmp/luci-app-internet-detector_0.5-0_all.ipk
|
|
/etc/init.d/rpcd restart
|
|
|
|
Email notification:
|
|
|
|
opkg install mailsend
|
|
|
|
i18n-ru:
|
|
|
|
wget --no-check-certificate -O /tmp/luci-i18n-internet-detector-ru_0.5-0_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/19.07/luci-i18n-internet-detector-ru_0.5-0_all.ipk
|
|
opkg install /tmp/luci-i18n-internet-detector-ru_0.5-0_all.ipk
|
|
rm /tmp/luci-i18n-internet-detector-ru_0.5-0_all.ipk
|
|
|
|
## Screenshots:
|
|
|
|

|
|

|