luci-wrtbwmon: 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, 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

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

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'