luci-app-nlbw: make display template XHTML compliant This allows proper rendering in OpenWrt theme. Fixes #1284. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
luci-app-nlbwmon: always fetch latest data When displaying the most current accounting period, pass an empty timestamp to the backend in order to query the current in-memory data instead of the latest committed values. This ensures that the dashboard always renders the most current data in its default view. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
luci-app-nlbwmon: remove version marker from javascripts Signed-off-by: Jo-Philipp Wich <jo@mein.io>
luci-app-nlbwmon: improve initial view Make sure that placeholder pie charts are rendered, display a hint about yet missing data in the tables and offer a link to force-commit ("Reload") the data. Also fix some mixed white space, an imbalanced dom operation and sync translation template. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
luci-app-nlbwmon: new package This commit introduces luci-app-nlbwmon, a frontend for nlbwmon, the lightweight NetLink BandWidth Montor. The nlbwmon daemon gathers per-host traffic statistics by querying netlink accounting data. Due to this approach, the executable is very small and does not rely on libpcap and CPU intensive raw sockets to monitor traffic. Depends on PR https://github.com/openwrt/packages/pull/4646 Signed-off-by: Jo-Philipp Wich <jo@mein.io>