It is currently March 29th, 2024, 12:44 am

LuaRouter

Discuss the use of Lua in Script measures.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

LuaRouter

Post by jsmorley »

I have created a little skin for myself that displays up to 10 of the devices and DHCP IP addresses of things connected to my router. Don't want to see "Howdy Neighbor" show up on the list.. <grin>.

This is written specifically for my "Linksys by Cisco - Wireless-N Broadband Router - WRT160Nv2" router, and although it may well work with other recent Linksys routers, it may need tweaking of the pattern matching in the Lua. It is certain NOT to work as is with any other brand of router.

Feel free to tear it apart and make it work with your setup. As long as your router will allow "HTTP authentication" with a URL something like "http://AdminID:AdminPW@192.168.1.1/DHCPTable.asp" or some variant thereof, you should in theory be able to get it working.
LuaRouter.rmskin
3-25-2012 9-29-06 PM.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
SlompOchomp
Posts: 11
Joined: March 24th, 2012, 8:38 pm
Location: US

Re: LuaRouter

Post by SlompOchomp »

jsmorley wrote:Don't want to see "Howdy Neighbor" show up on the list.. <grin>
:o lol
Nice work!!
NisseDILLIGAF
Posts: 20
Joined: May 31st, 2011, 7:15 am

Re: LuaRouter

Post by NisseDILLIGAF »

Really like this skin!! :)

I have been thinking about this for a while, but haven't had the time to do something about it..

I have a Netgear dd-wrt router, so this skin doesn't work..
but I don't think it would be that difficult to change the lua to make it work.
I can see devices and DHCP IP addresse from 'Status_Lan.live.asp' file..

this is what it shows...

Code: Select all

{lan_mac::00:00:00:00:00:00}
{lan_ip::192.168.1.1}
{lan_ip_prefix::192.168.1.}
{lan_netmask::255.255.255.0}
{lan_gateway::192.168.1.1}
{lan_dns::8.8.8.8}
{lan_proto::dhcp}
{dhcp_daemon::DNSMasq}
{dhcp_start::100}
{dhcp_num::50}
{dhcp_lease_time::30}
{dhcp_leases:: 'Yosemite','192.168.1.00','00:00:00:00:00:00','0 days 00:30:00','101','joggler','00','00:00:00:00:00:00','0 days 00:30:00','135'}
{pptp_leases::}
{pppoe_leases::}
{arp_table:: '*','192.168.1.112','00:00:80:00:00:00','2','joggler','192.168.1.0','00:00:00:00:0000','0','Yosemite','192.168.00.00','00:00:00:00:00:00','86'}
{uptime:: 15:15:11 up 8 days, 18:58, load average: 0.01, 0.06, 0.02}
{ipinfo:: IP: 90.100.100.00}
I'm not that good with lua, and I don't know how the Linksys page looks like.
If you could help me out, or just post what the linksys page looks like and I can figure it out myself maybe?

Thanx!
/Nisse