question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't define wrtbwmon [user_file]

See original GitHub issue

Hello, I’ve tried (and failed) to add an option to define a user file to replace MACs with nicknames, as the wrtbwmon program allows for.

tried by adding this to model/cbi/wrtbwmon.lua local macfile = s:option(Value, "macfile", translate("Nickname by MAC file"))

But that’s as far as I got, I don’t know much about Luci and I have no experience with Lua.

This would be super useful, because these dang Android devices don’t allow you to set your own hostnames!

Cheers

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
NaruZosacommented, Dec 12, 2017

It looks like this in the /etc/config/dhcp file:

config domain
	option name 'Test'
	option ip '192.168.1.167'

While a static ip hostname looks like this:

config host
	option name 'BradleyDesktop'
	option dns '1'
	option mac '1c:1b:0d:e5:60:f1'
	option ip '192.168.1.69'
	option leasetime 'infinite'
0reactions
camelcamrocommented, Jan 24, 2020

specially, i also have the /etc/config/dhcp and as i have 4 routers, the dhcp is only creating when this is acting as dhcp, but i have multiple, so, every router is a dhcp server, depends where the clients conencting …

so, i guess it would be needed to create a kind of serlist on startup of wrtbmon or … the luci wrtbmon can create that on the call or on a config change ?

or on the creation of dhcp …

there is a file: (on my router) /tmp/etc/dnsmasq.conf.cfg01411c

which is having: dhcp-host=20:32:33:70:D8:85,192.168.1.201,IPCam_201,24h dhcp-host=20:32:33:70:4D:17,192.168.1.202,IPCam_202,24h …

can these files be used ? which change would be needed ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[OpenWrt Wiki] bandwith monitor with wrtbwmon
bandwith monitor with wrtbwmon wrtbwmon is a small and basic shell script designed to run on linux powered routers (OpenWRT, DD-WRT, Tomato, ...
Read more >
View topic - dd-wrt - Bandwidth Usage Monitor
I have been looking extensively at the wrtbwmon for live traffic ... use the dnsmasq user file, store backups as /mnt/monitor/usage.backup, ...
Read more >
wrtbwmon - Linux bandwidth monitor with per-device tracking
wrtbwmon conveniently tracks bandwidth consumption on a per-IP address basis, so you can easily determine which user/device is the culprit. Here is an...
Read more >
The luci-wrtbwmon from Kiougar - GithubHelp
Can't define wrtbwmon [user_file]. Hello, I've tried (and failed) to add an option to define a user file to replace MACs with nicknames,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found