Commit Graph

27 Commits

Author SHA1 Message Date
Pedro hates github.com 71d7806ba1 luci-app-bmx6: fixes error line in logread #578
each time the luci view `network/bmx6/tunnels is displayed it shows results
each 5 seconds. It queries to a cgi script bmx6-info.sh that causes a strange
error in logread:

    daemon.err uhttpd[pid]: sh: "tunnels":: unknown operand

Prior versions to 19.x release did not show it.

Signed-off-by: Pedro <pedrowrt@cas.cat>
2020-06-15 18:08:53 +02:00
Pedro hates github.com 520356e3f6
luci-app-bmx6: bugfix querying bmx6-info (p2)
see 51b370e1ce and #550
2020-02-22 00:47:36 +01:00
pedrolab b92f82ad1f luci-app-bmx6: bugfix format to query bmx6-info
- affected three tab luci templates (even with luci-compat installed)
- fixes #548
- as jow said in #548:
  - it might be that modern LuCI escapes it as %24 while old versions passed it
    on as-is
  - bmx6-info removes it anyway
    https://github.com/openwrt-routing/packages/blob/master/luci-app-bmx6/bmx6/www/cgi-bin/bmx6-info#L22
you can probably just remove it in all three tab templates
2020-02-21 11:05:34 +01:00
Roger Pueyo Centelles 6c63383f0d luci-app-bmx6: Avoid race condition in bmx6json.lua get()
The network topology of a BMX6 mesh can be obtained by asking all the nodes
about their links via the bmx6-info script. The wget() function in the
bmx6json.lua file is part of the process, but it often returns nil, even if
the remote data can actually be fetched, in what seems to be a race condition.
By calling the sys.exec("") function empty, the race condition disappears.

Dirty fix to https://github.com/openwrt-routing/packages/issues/436.

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
2018-12-09 21:06:18 +01:00
Roger Pueyo Centelles 2cc3c50bed luci-app-bmx6: Fix corner case in bmx6-info?tunnels
The bmx6-info script will return null when no tunnels are known to BMX6.
However, the "Graph" and the "Tunnels" pages expect a JSON structure with an
array of tunnels. In case no tunnels are known to BMX6, bmx6-info now returns
'{ "tunnels" : [] }'.

Fixes #434

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
2018-12-08 22:20:42 +01:00
Roger Pueyo Centelles b6815d5942 luci-app-bmx6: Fix URL of network topology JSON file
The JavaScript code of the network graph tried to fetch the topology from
%HOST/cgi-bin/luci/status/bmx6/topology, but the topology entry is now located
at admin->network->BMX6 (i.e., %HOST/cgi-bin/luci/admin/network/BMX6/topology).

Fixes #432

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
2018-12-08 22:02:48 +01:00
Pau Escrich 2a10adeee5 luci-app-bmx6: replace dependency of luci-mod-admin-full for luci-base
Signed-off-by: Pau Escrich <p4u@dabax.net>
2017-04-26 14:24:44 +02:00
Pau Escrich 3aa019fc19 luci-app-bmx6: remove '$' as identifier for special json functions
Signed-off-by: Pau Escrich <p4u@dabax.net>
2017-03-29 03:01:39 +02:00
Pau Escrich e912da6625 luci-app-bmx: Redesign Makefile. Split JS libraries. Clean package
Add luci-lib-jquery-1-4 and luci-lib-dracula packages. Remove unused library Curry.

Signed-off-by: Pau Escrich <p4u@dabax.net>
2017-03-26 03:15:06 +02:00
Nicolas Pace 1bc988c09c Polishes bmx6 graph. Adds colors by network and gives color to links based on link quality. 2017-03-23 23:29:38 +01:00
Pau Escrich 9646815e7d luci-app-bmx6: add new methods to bmx6-info and clean/sanityze the code
Signed-off-by: Pau Escrich <p4u@dabax.net>
2017-03-23 23:29:38 +01:00
Pau Escrich 3001d0ab41 [luci-app-bmx6] When drawing the network topology graph, try first wget-ssl
Signed-off-by: Pau Escrich <p4u@dabax.net>
2016-02-23 12:58:32 +01:00
Pau Escrich 93fdb120de luci-app-bmx6: return if json problem detected
Signed-off-by: Bob Ham <rah@settrans.net>
2016-02-16 19:23:07 +01:00
Steven Barth 69f203d5c3 Add SPDX license tags
Signed-off-by: Steven Barth <steven@midlink.org>
2014-11-03 13:17:00 +01:00
Pau Escrich af2bc59a38 [luci-app-bmx6]: Remove not used code. Fix luci dependency problem. Small changes.
Signed-off-by: Pau Escrich <p4u@dabax.net>
2014-07-31 13:24:33 +02:00
Roger Pueyo Centelles 986cb12646 [luci-app-bmx6]: fix status page 2014-05-22 19:02:50 +02:00
Pau Escrich 6beba22a4d luci-app-bmx6: Fix topology graph with backwards compatibility
Signed-off-by: Pau Escrich <p4u@dabax.net>
2014-02-25 18:14:07 +01:00
Pau Escrich a110cfccd5 luci-app-bmx6: Adapt the code to last bmx6 (some fields changed).
Reduce the information shown in the tunnels/gateways page.

Signed-off-by: Pau Escrich <p4u@dabax.net>
2014-02-25 15:49:44 +01:00
Pau Escrich 8ec4442562 luci-app-bmx6: Initialize tun6in6 variable and add further checks
Signed-off-by: Pau Escrich <p4u@dabax.net>
2014-01-10 17:37:57 +01:00
Pau Escrich 89c2a8bb56 luci-app-bmx6: show the IPv6 tunnels of bmx6 in the node's web page 2013-11-01 22:30:02 +01:00
p4u b68f809a3f luci-app-bmx6: several improvements and fixes, adapt main and advanced configuration to new config syntax 2013-08-28 02:16:54 +02:00
p4u 821e52f54f luci-app-bmx6: fix issue with tunIn help 2013-08-28 01:25:06 +02:00
p4u 5b57a2035f luci-app-bmx6: change tunInNet for tunIn (according to new bmx6 tunnels/gateways configuration). Some minor changes. 2013-08-28 01:17:39 +02:00
Axel Neumann 672a7cfb6f Revert "Revert "Adapt tunnels web view to new bmx6 syntax and options""
This reverts commit 6360d4c977.
2013-08-17 13:57:44 +02:00
Axel Neumann 6360d4c977 Revert "Adapt tunnels web view to new bmx6 syntax and options"
This reverts commit b493828d75.
2013-08-04 08:28:44 +02:00
p4u b493828d75 Adapt tunnels web view to new bmx6 syntax and options 2013-07-19 01:09:17 +02:00
p4u da0fe5735d Move bmx6 and luci-app-bmx6 packages into root directory 2013-04-24 17:26:52 +02:00