Commit graph

21 commits

Author SHA1 Message Date
Daniel Vijge
69eeebe23d
luci-app-dawn: error message when service not running
Display a nicer error message when the DAWN service is not running

Signed-off-by: Daniel Vijge <danielvijge@gmail.com>
2023-11-07 20:12:15 +01:00
Daniel Vijge
e8029b0828 luci-app-dawn: Bug fixes for JavaScript implementation
Some bug fixes and a small improvements that were discovered after the
initial implementation of the JavaScript version of luci-app-dawn:

* Correctly show multiple APs per client in the hearing map
* Display correct name of all APs in the hearing map
* Show if client is connected to the network in the hearing map. This
  replaces the column for Stations Connected, which is not a property
  of a client but of an AP, and is available still in the network overview.
* Display both hostname and MAC address for clients/APs
* Convert spaces to tabs in dawn-common.js for consistency

Signed-off-by: Daniel Vijge <danielvijge@gmail.com>
2023-11-06 11:29:55 +01:00
Daniel Vijge
ea8c0aa2a1 luci-app-dawn: Implement in JavaScript
This commit re-implements luci-app-dawn in JavaScript, removing the older
lua implementation. Besides a 1-to-1 port, there are some
changes/improvements:

* In both the network overview and the hearing map, replace MAC addresses
  by host name if known.
* In the hearing map, the table is sortable. If the same client is
  connected to multiple access points/frequencies the MAC/host name is
  listed twice, whereas in the lua implementation the second MAC address
  was empty to show it was referring to the same client. This means the
  table can be sorted on any column, and the information remains correct.
* The view in the network overview is a bit different. This table is not
  sortable, because LuCi doesn't seem to like a table inside a table for
  sorting.
* Align the column names between the network overview and the hearing
  table.
* Add tooltips for abbreviations in column names.

Signed-off-by: Daniel Vijge <danielvijge@gmail.com>
2023-10-31 00:28:03 +01:00
Sergey Ponomarev
4c03f5ff1f applications: remove LUCI_PKGARCH:=all
This is anyway default

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2023-09-24 11:16:58 +03:00
Sergey Ponomarev
3e7fe9f07b applications: add missing dependency to luci-base
It's better to explicitly define it

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2023-09-24 11:11:42 +03:00
BCoverstone
2221110c17 luci-app-dawn: fix crash issue when viewing hearing map
When viewing the hearing map, sometimes a crash will happen when one of the
routers suddenly cannot view a client. This PR simply checks that the radio
frequency in data2 is not 0, and skips the entry if it is a 0.

Submitted-by: Brian Coverstone <brian@mainsequence.net>
[fix commit subject, add commit description]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-03-15 14:26:59 +01:00
Nick Hainke
88bb5f31c4 luci-app-dawn: return 0 in case of weird frequency
Sometimes 0 is passed to the frequency. Return 0 in that case.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-09-27 09:30:15 +02:00
Nick Hainke
4a78122246 luci-app-dawn: remove page for steering options
The luci-app-dawn is blocking the PR to be merged:
https://github.com/openwrt/packages/pull/16299

Remove the configuration page and set appropriate standard values.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2021-10-09 10:05:02 +02:00
Schleifer, Werner
d4ab37d9a0 luci-app-dawn: add missing quotation mark
Signed-off-by: Schleifer, Werner <werner.schleifer@gmx.de>
2021-09-24 16:11:36 +03:00
Jo-Philipp Wich
32f0ff25a2 luci-app-dawn: fix custom markup
- Properly indent HTML markup
 - Replace div-based table markup with actual tables
 - Escape SSID, hostname and interface values to prevent potential XSS

Fixes: #4942
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-03-29 11:51:39 +02:00
David Woodhouse
14cd02ba9f luci-app-dawn: Add hostname and interface to network overview
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2020-06-09 13:31:54 +01:00
Jonny Tischbein
4af446b510 luci-app-dawn: network overview rewrite with div tables
Signed-off-by: Jonny Tischbein <jonny_tischbein@systemli.org>
2020-04-19 23:25:50 +02:00
Jo-Philipp Wich
74da73b012 applications: add ACL dependency annotations to legacy controllers
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-19 17:17:26 +02:00
Dirk Brenken
f76a020db1
Merge pull request #3929 from PolynomialDivision/fix/stop_adding_config_files
luci-app-dawn: stop adding not used config files
2020-04-19 10:46:26 +02:00
Polynomialdivision
130b7d55f7 luci-app-dawn: stop adding not used config files
Fixes https://github.com/berlin-open-wireless-lab/DAWN/issues/64.

The app adds config files under /etc/config/ for the Hearing Map
and the Network Overview.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2020-04-19 10:41:22 +02:00
Jonny Tischbein
59d426f20b luci-app-dawn: hearing map with div tables
Signed-off-by: Jonny Tischbein <jonny_tischbein@systemli.org>
2020-04-18 12:54:34 +02:00
Jonny Tischbein
f25910a644 luci-app-dawn: rewrite dawn hearing map in table form
Signed-off-by: Jonny Tischbein <jonny_tischbein@systemli.org>
2020-04-18 10:26:09 +02:00
Jo-Philipp Wich
43e872871a treewide: stage ACL rules for legacy applications
Fixes: #3866
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-10 23:21:35 +02:00
Polynomialdivision
0ea4115a3a luci-app-dawn: add dependencies
Missing:
- luci-compat
- luci-lib-json

Fixes #3836

Signed-off-by: Nick Hainke <vincent@systemli.org>
2020-04-10 10:39:49 +02:00
Polynomialdivision
1733b4f7da luci-app-dawn: fix typos
Signed-off-by: Nick Hainke <vincent@systemli.org>
2020-04-10 10:38:27 +02:00
Polynomialdivision
9707acf72f luci-app-dawn: add luci app for dawn
Dawn is a decentralized WiFi controller.
Just install dawn and the APs will find each other via umdns. They
periodically exchange information about connected clients, wireless
statistics and other needed information. With that, the daemon load
balances clients between different APs through association control.

Luci-app-dawn is the graphical user interface.
It allows to:
- Configure dawn
- View Wireless Network Overview
- View Hearing Map

The hearing map is the list of all probe requests seen from a client
from all APs that are running the controller.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2020-04-02 11:12:01 +02:00