gSpotx2f / luci-app-internet-detector

Internet detector for OpenWrt
Apache License 2.0
55 stars 23 forks source link

UI Provide images & icons for state changes and LAN connected... #5

Closed aphorise closed 10 months ago

aphorise commented 2 years ago

This is a feature / enhancement request inspired by some router pages which show change in network states using:

  1. Images, Lines, Icons & colours to show the disconnect - for example with line from OpenWRT device icon to WAN in the dashboard that's red when not connected or green when connected.

  2. Text with WAN IP's using dig or some other tool if the OpenWRT is not WAN DHCP and with a Public IP - then lookup IP to show the WAN IP when everything is connected next to the OpenWRT device logo on the dashboard; the Public IP and how that was looked up - ie direct or via dig could also be highlighted with the text using an @ logo for example vs no logo if WAN DHCP. When no connection or valid state then 0.0.0.0 or 0::0 could be shown as opposed to the IPv6 / IPv4 addresses.

  3. LAN icon / states showing when connected devices are available (green line to icon or some other customisation).

There's another immediate style of theme that comes to mind similar to the image which you have on the README.md which could be LED themed for various states or as per the image example device below. I'm not sure how much user customisation may be possible but it would be great if custom PNG / SVG could be set for particular events or colours according to the LED theme plus the image below for example: image image

aphorise commented 2 years ago

Another note worth making is that if optional text customisation can be set for different states like Contact ISP: +44 .... - account: ... or some SOS message - then that too would be great.

aphorise commented 2 years ago

Also relates to #6

aphorise commented 2 years ago

As a side note this PR for luci-dashboard also looks promising.