Customize the GUI

Post new topic   Reply to topic    DD-WRT Forum Index -> Generic Questions
Author Message
jasper502
DD-WRT Novice


Joined: 24 Jul 2010
Posts: 15

PostPosted: Fri Jun 02, 2023 4:55    Post subject: Customize the GUI Reply with quote
I am using DD-WRT in my travel trailer to share wifi from either the local camp group etc, iPhone hotspot or iPhone USB tether.

I only make a few settings tweeks at each location (local SSID / passkey etc.). I would love to have the root page just have these settings with a link back to the full GUI etc.

I am only talking plain old HTML. I am pretty versed in web design and some sorter development (PHP, Ruby, Python, Javascript etc.) and done my foreshore of Mac / linux CLI compiling etc.

Is this a trivial task or would this be a huge undertaking?
Sponsor
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5700

PostPosted: Fri Jun 02, 2023 5:50    Post subject: Reply with quote
Not a trivial task certainly not as trivial as clicking wireless & security tabs, save button on each page then reboot.
jasper502
DD-WRT Novice


Joined: 24 Jul 2010
Posts: 15

PostPosted: Sat Jun 03, 2023 3:42    Post subject: Reply with quote
Thanks - after some digging around I was getting that impression.
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1856
Location: Hung Hom, Hong Kong

PostPosted: Thu Jun 08, 2023 12:54    Post subject: Re: Customize the GUI Reply with quote
jasper502 wrote:
I am using DD-WRT in my travel trailer to share wifi from either the local camp group etc, iPhone hotspot or iPhone USB tether.

I only make a few settings tweeks at each location (local SSID / passkey etc.). I would love to have the root page just have these settings with a link back to the full GUI etc.

I am only talking plain old HTML. I am pretty versed in web design and some sorter development (PHP, Ruby, Python, Javascript etc.) and done my foreshore of Mac / linux CLI compiling etc.

Is this a trivial task or would this be a huge undertaking?

Theoretically, all settings of DD-WRT are stored in NVRAM. You can just use a script to modify and commit relevant NVRAM variables, then reboot the router. That's not GUI of course, but could still be simple(?). Smile

DD-WRT WEBUI''s backend is a process called httpd, basically a simplified, micro web server.

https://github.com/mirror/dd-wrt/tree/master/src/router/httpd

The browser frontend is full of Javascript and CSS. I forget where the source codes are in. Possibly the following branch:

https://github.com/mirror/dd-wrt/tree/master/src/router/httpd/visuals

I suppose one can fork a set of screens in visuals, to be called by httpd after hitting a "Simple Mode" button in the main screen (index.c & menu.c).

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14216
Location: Texas, USA

PostPosted: Thu Jun 08, 2023 18:29    Post subject: Reply with quote
There's a little more to it than that, and last I knew, someone was not interested in providing the feature(s).
_________________
"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
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1856
Location: Hung Hom, Hong Kong

PostPosted: Wed Aug 30, 2023 12:00    Post subject: Reply with quote
kernel-panic69 wrote:
There's a little more to it than that, and last I knew, someone was not interested in providing the feature(s).

This one can possibly be a good example of extending WEBUI to have a simple mode:

DD-WRT :: View topic - DD-WRTiles - List clients in tile optic
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=334957

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Generic Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum