Posted: Tue Aug 08, 2023 12:04 Post subject: DD-WRTiles - List clients in tile optic
Since there is no right category for it, i'm posting it here:
I was in need of having an easier access to the data of connected clients.
So i wrote, with my very limited knowledge of programming, a parser that combines the Data of DHCP-Clients, WiFi-Clients and Active-Clients to have an overview of the data that is important for me.
Getting online/offline/webserver status was easy for WiFi-Clients but for wired connections it took me a while since with javascript you have very limited capability regarding the network status of devices. But it seems getting the status via the ARP table of the router works fine enough.
No, he's saying that https://github.com/chromoxdor/DD-WRTiles gives a 404 not found error. Do you have to be logged into GitHub to see it? It's not visible in your repositories, either. _________________ "The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost
"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio
No, he's saying that https://github.com/chromoxdor/DD-WRTiles gives a 404 not found error. Do you have to be logged into GitHub to see it? It's not visible in your repositories, either.
Joined: 08 May 2018 Posts: 14249 Location: Texas, USA
Posted: Tue Aug 08, 2023 16:36 Post subject:
Are all those functions in current DD-WRT webUI code? Seems that everything in the "Test" folder would be required. Can't call functions that do not exist. _________________ "Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT Pogo - A minimal level of ability is expected and needed... DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)
----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Are all those functions in current DD-WRT webUI code? Seems that everything in the "Test" folder would be required. Can't call functions that do not exist.
All the functions in the test folder are combined with the css and html to the dd.html
The functions call basically every x seconds the sites "Status_Lan.live.asp" and "Status_Wireless.live.asp"
The content then is parsed and combined to create html.
Edit: The only reason dd.html needs to be hosted on the router is, that otherwise you would get CORS errors.
Joined: 08 May 2018 Posts: 14249 Location: Texas, USA
Posted: Tue Aug 08, 2023 17:41 Post subject:
Guess I didn't look at it close enough, but I did notice a hard-coded router IP address, which is probably not a good idea. File would require editing to fix the issue.
I *don't think* that the old MyPage coding has this issue, but it's been a hot minute and many changes to local development and I'm old and have slept since then... _________________ "Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT Pogo - A minimal level of ability is expected and needed... DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)
----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Guess I didn't look at it close enough, but I did notice a hard-coded router IP address
Oh man.. thanks for the info...just fixed that.
Quote:
I *don't think* that the old MyPage coding has this issue, but it's been a hot minute and many changes to local development and I'm old and have slept since then...
I´ve never looked at this but i am old too and lazy. Thats why i basically reused the code of another project of mine for this.
Even though i am not sure if anyone other than me will use this i did some improvements:
- added: RX/TX and offline clients to the "show" menu
- added: settings menu
- added: choose background
- added: color picker
- added: better responsiveness
- added: scaling for very small displays
- fixed: tile handling with a huge amount of tiles
- removed: theme switching
- restructured the readable code
BTW, I use this script in Administration/Commands/Startup:
Code:
#!/bin/sh
while [ ! "$(grep -s '/mnt/sda1' /proc/mounts)" ]; do
sleep 1
done
ln -s /mnt/sda1/www/dd.html /tmp/www/dd.html
It will wait after a reboot until the storage is mounted and then copy the file.
I looked at these but i don't see the relation to the latter one.
The fist one is interesting but only if you use the build in web interface.
Having extra scripts also adds a layer of complexity for setting up DD-WRTiles
and I want to keep it as simple as possible for everyone. Having one file, that does the job (even if it is internally kind of a detour regarding the gathering of the necessary infos) makes it much more simple to use.
No, i did. Since there are so many possibilities that something can go wrong i definitely didn’t account for all of them. I just hopefully tried to do a temporary fix for you. Can you redownload the dd.html an report?
For a more substantial fix i would need to see the content of your /Status_Wireless.live.asp and /Status_Lan.live.asp
If you want you can provide me with this info via PM.