GithubHelp home page GithubHelp logo

brvphoenix / luci-app-wrtbwmon Goto Github PK

View Code? Open in Web Editor NEW
228.0 2.0 48.0 533 KB

Bandwidth monitor for OpenWRT

Makefile 1.73% JavaScript 83.35% CSS 4.35% Shell 10.56%
wrtbwmon luci bandwidth-monitor openwrt

luci-app-wrtbwmon's People

Contributors

brvphoenix avatar dependabot[bot] avatar kongfl888 avatar palatis avatar quphoria avatar sinancetinkaya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

luci-app-wrtbwmon's Issues

new-dev在19.07.0上不能正确工作

已安装了luci-compact,依然工作异常
在luci中点击,会出错

Failed to execute template dispatcher target for entry '/admin/network/usage/details'.
The called action terminated with an exception:
/usr/lib/lua/luci/template.lua:55: Failed to execute template 'wrtbwmon'.
A runtime error occurred: [string "/usr/lib/lua/luci/view/wrtbwmon.htm"]:3: module 'luci.tools.status' not found:
no field package.preload['luci.tools.status']
no file './luci/tools/status.lua'
no file '/usr/share/lua/luci/tools/status.lua'
no file '/usr/share/lua/luci/tools/status/init.lua'
no file '/usr/lib/lua/luci/tools/status.lua'
no file '/usr/lib/lua/luci/tools/status/init.lua'
no file './luci/tools/status.so'
no file '/usr/lib/lua/luci/tools/status.so'
no file '/usr/lib/lua/loadall.so'
no file './luci.so'
no file '/usr/lib/lua/luci.so'
no file '/usr/lib/lua/loadall.so'
stack traceback:
[C]: in function 'require'
[string "/usr/lib/lua/luci/view/wrtbwmon.htm"]:3: in main chunk
stack traceback:
[C]: in function 'n'
/usr/lib/lua/luci/template.lua:55: in function </usr/lib/lua/luci/template.lua:47>
(tail call): ?
/usr/lib/lua/luci/dispatcher.lua:744: in function </usr/lib/lua/luci/dispatcher.lua:743>

Sort doesn't work

When sorting columns by Download or Upload the numerical value is used to sort not taking into account the units. So 140 B/s is more than 4 KB/s is more than 2 MB/s.

Insufficient permissions to read UCI configuration.

Hi,

A picture is always better:
gnome-shell-screenshot-6HI6O0

When going to Network > Usage > Configuration I'm getting an error: Insufficient permissions to read UCI configuration.

In syslog I'm getting some of these

XXXXXXXXXXX cron.err crond[716]: ignoring file 'wrtbwmon' (no such user)

Any suggestion?

zones support

I use multiple zones (LANs), and I do not want to include traffick between them but only with WAN. Is that possible/configurable ?

format 不支持

openwrt 使用的是lean的版本,luci应该还是老款的。
luci-wrtbwmon使用的是1.6.3的版本, 客户端显示不出来。
查看是javascript不支持format的函数。

image

image

问题反馈

qq 20190114204101
qq 20190114205251
如图 使用测试的源码 new-dev出现的问题 18.06分之
主库也是同样的问题
以前的版本对wan口的数据 无法正确统计

怎么显示主机名称

为什么我的不显示主机名,只显示ip,就算我在用户文件配置mac host关系也不行
image

add to opkg repository

Is there any reason why this couldn't be in the openwrt repos? If its just a matter of the maintainer not having time to get it approved, do I have your permission to try to get it in?

[Feature Request] refresh every second

Hello developers, thanks a lot for your luci-app-wrtbwmon!
However, I think refreshing every 2 seconds is still not fast enough, could you please add refreshing every second?
屏幕截图(267)

Thank you very much

问题反馈

QQ截图20190401020118
QQ截图20190401020640
在这次更新后
luci数据显示异常 只有wan接口在数据刷新 数据收集时间太长了 半天才有反应
均使用new-dev分支 以前没问题

openwrt 21 not supported?

Seems the LUCA updated and this plugin only applies to 19, correct?

Is there a plan to support 21? thanks

PermissionError from luci.js after installation

After installation I got PermissionErrors in the browser console when no data was shown on the traffic status page. After restart rpcd the problem was resolved.

Maybe restart the rpcd in the post-installation script?

Hostname possible?

Would it be possible to have the host name listed in the column instead of the Mac address?

IPv6 Not working

Hi, this is the package I've been searching to track realtime bandwidth speed per IP. The problem is that in IPv6 it doesn't show anything.

clients field

On the main page, in the "details" view you will see "clients" the shows "hostname / ip" if the device is connected to the router and only "mac-address / ip" if the device not connected to the router

In this case it will be impossible for you to know what device the "stats" is for as it won´t remember the device "hostname" if this exists, and if you click on the "show more columns" it shows the "mac-address" in its own column.

I do not see the reason why it show it in the "clients" tab if the "hostname" already found once and exists, it also make no sense as you would have to look in the "dhcp" table to find what client the stats is for.

问题反馈

由于luci再次升级(主库代码)
出现如下错误
无法进入路由主页面
希望在new-dev更新测试
/usr/lib/lua/luci/dispatcher.lua:176: attempt to index local 'target' (a nil value)
stack traceback:
/usr/lib/lua/luci/dispatcher.lua:176: in function 'target_to_json'
/usr/lib/lua/luci/dispatcher.lua:218: in function 'target_to_json'
/usr/lib/lua/luci/dispatcher.lua:270: in function 'tree_to_json'
/usr/lib/lua/luci/dispatcher.lua:326: in function 'tree_to_json'
/usr/lib/lua/luci/dispatcher.lua:326: in function 'tree_to_json'
/usr/lib/lua/luci/dispatcher.lua:326: in function 'tree_to_json'
/usr/lib/lua/luci/dispatcher.lua:629: in function 'menu_json'
/usr/lib/lua/luci/dispatcher.lua:723: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:440: in function </usr/lib/lua/luci/dispatcher.lua:439>

速率不准

放在L大的源码里可以编译 但网速显示不准,我边测速边看 真实流量都10Mb/s,路由显示还是几KB

Usage feature failed after install 2.0

I compiled openwrt with original like 1.0.7. It doesn't work well. So I removed it and install the luci-app-wrtbwmon_2.0.0-2_all.ipk. The Usage menu showed up, but after click, the below error came up

/usr/lib/lua/luci/dispatcher.lua:381: Failed to execute template dispatcher target for entry '/admin/nlbw/usage/details'.
The called action terminated with an exception:
/usr/lib/lua/luci/template.lua:39: Failed to load template 'wrtbwmon'.
Error while parsing template '/usr/lib/lua/luci/view/wrtbwmon.htm':
No such file or directory
stack traceback:
	[C]: in function 'assert'
	/usr/lib/lua/luci/dispatcher.lua:381: in function 'dispatch'
	/usr/lib/lua/luci/dispatcher.lua:95: in function </usr/lib/lua/luci/dispatcher.lua:94>

I downgrade the package to 1.6.3, I could see the page but it didn't work completely and style is messy.

The wrtbwmon version is 0.8.3. Openwrt kernel version is 4.19.106.

master 分支luci出错

lean的lede源码,出错:

/usr/lib/lua/luci/controller/wrtbwmon.lua:12: attempt to call global 'view' (a nil value)
stack traceback:
/usr/lib/lua/luci/controller/wrtbwmon.lua:12: in function 'v'
/usr/lib/lua/luci/dispatcher.lua:572: in function 'createtree'
/usr/lib/lua/luci/dispatcher.lua:238: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:121: in function </usr/lib/lua/luci/dispatcher.lua:120>

在最新openwrt中显示问题

如图 使用最新的luci编译

QQ截图20200616231355
n = new form.Map('wrtbwmon', '');
s = n.section(form.NamedSection, 'display', 'luci-app-wrtbwmon', _('Display settings'))
s.addremove = false;
在这行遇到了问题 改了虽然正常显示 不知道是否会有其他问题

About style

中文?

大佬,这个首页和某些主题不太友好啊。

可不可以这样子

<div style="cbi-map">头部--标题+页面说明</div>
<div style="cbi-section">内容</div>

不要全部都under在cbi-map下
(比如说配置页就是这样的,大多数luci-app也是这样划分)

master版本(8.18):e8b3c40

——
提一个问题:上行和下行的进度条长度不对等。

20200820024729

希望能有优化

Dark mode GUI needs some fixing

There is improper bright background in the header:
image

The summary (total) row is hard to read due to grey backgroud:
image

Suggested fixes

1. Remove this line from details.js:

tc = (pc >= 80 ? 'white' : '#404040');

2. Change this code in wrtbwmon.css file:

.tr.table-totals {
	background: #e0e0e0 !important;
}

to this code:

.tr.table-totals {
	font-weight: bold;
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.