What's new

Possible to retrive MAC addresses from status page?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

andarv

New Around Here
Is it possible to perform something like this on Merlin build?

plugwise = Net.FHttp("192.168.1.1", 80);
respons = plugwise:GET("/Info.live.htm");
and then a find specifik MAC addresses in the respons.

I need my home automation to check the router if certain devices are connected, like laptops, mobile or tablets.

The other approch I can thing of would be to write a dhcp-event script, but that's not my forté (have no clue how the script would look like).
When a device (MAC) renew (what is best?) IP call a local adress ie http://192.168.1.x/somespecifikadress.
 
Last edited:
Not possible. Access to any information requires authentication, and there's no restful interface.
 
Not really sure what you mean with restful interface, is there no statuspage like status_lan.asp or somewhat, is it only index.asp?
Because i could always set authentication in the get string.
 
Not really sure what you mean with restful interface, is there no statuspage like status_lan.asp or somewhat, is it only index.asp?
Because i could always set authentication in the get string.

REST is a type of web service architecture used for providing interfaces to third party developers.
 
Not really sure what you mean with restful interface, is there no statuspage like status_lan.asp or somewhat, is it only index.asp?
Because i could always set authentication in the get string.

Every page requires you to be logged in to view it. There's no status page accessible without user auithentication.
 
How current does the data need to be? You could set up a cron job on the router to run the low level commands to export the data to file on a shared USB drive and then access that.
 
I need my home automation to check the router if certain devices are connected, like laptops, mobile or tablets.
If you need to know what devices are currently connected rather than have been connected the Client Status list won't give you that (unless you can somehow force a refresh of the list).

My sister's laptop is still showing in my Client Status list and the last time she visited me was 2 weeks ago.
 
Last edited:
I wan't to perform a check on my network every x minutes if certain MAC addresses are connected to the wifi.

The purpose is for my homeautomation to know if me, wife or whatever is at home.
And for the homeautomation to know what WAN IP i currently have.

It could look something like this,I'm aware of the fact that status_internet.live.asp is the wrong address (thats for DD-wrt).
I would probaly use the page for status log dhcp (don't remember the address).

Net.FHttp(192.168.1.1, 80);
router:setBasicAuthentication(admin, pwd);
response, status, errorCode = router:GET(\"/Status_Internet.live.asp\")
wanIP = string.find(response,\"wan_ipaddr::\")
wanMASK = string.find(response,\"{wan_netmask\")
IPaddress = string.sub(response,wanIP+12,wanMASK-3)

The otherway around would be if its possible to write a dhcp-event script and put on the router.
something like:
When MAC xx:xx:xx:xx:xx connects to network
http://ip/some action?
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top