Hi:
This is my first post to this forum, after hours looking for previous talks about this subject.
I miss one feature that I am convinced that would significantly enhance the Merlin FW and make the great power of its user scripts quickly accessible: the ability to associate user scripts to WebUi buttons so that pressing one of these buttons would launch the associated user script (maybe even with some optional argument, to fill just before pressing the button). This would allow the normal user to access some functions, maybe implemented by more advanced users, and even these advanced users to access those functions with minimum key presses (specially important from small android mobiles).
The buttons could be accessible through just one menu option level (which could be named "User Scripts") and should appear in the main menu when the "Enable JFFS custom scripts and configs" option were enabled. Subject to the "Web Interface" configuration conditions, when someone from the Internet accessed the WEB UI, but (for example) with the URL ending in "/UserScripts", after the corresponding authentication, he should be directed to this web page. In it, he should see the number of configured buttons, with their configured name and a text box to optionally enter arguments. For configuration of this page, there might be a pencil icon to the rightmost of each (added) button, which would allow the more advanced (or patient) user to fill-in the button name, the associated script (maybe with full file path) and maybe the optional argument default value (Or in other similar way, homogeneous to the rest of the webui interface).
I think this feature would complete the effort devoted to make Merlin offer the power of user scripts, by making them really accessible to the user, for the many possible cases when it is not appropiate to launch them from the "official" launching places (init, wan up, etc).
I understand the reluctance to modify the WebUi, but I think this modification could be very separated from the rest and would add very little risk to cause harm to the rest.
Now, my longer explanation of my need (issuing parental control tickets), but the feature requested would be of much wider and more general utility:
I've come back from Tomato to this Merlin FW because I couldn't make the triple VLAN work fast enough there, while here, with Merlin, I keep the HW NAT and IPTV works like a charm from 2 decos, including via the WIFI.
In Merlin, I have initially missed the Parental Control flexibility of Tomato. But, after some days learning, I think I'm ready to "develop" here, with user scripts based on IPSET, even much better Parental Control than in Tomato (when I finish, I'll try to contribute my results here).
I need to manually launch some user scripts from the WAN from my android mobile (for parental control "tickets", when my sons ask me and I am outside home). I might be in a meeting and I need to respond quickly and with MINIMUM KEY PRESSES. I will prepare some TicketUserScript's. I know I could try to connect from my android in the internet through telnet or SSH, but it would need quite a lot of key presses and each of them are a pain in the android keyboard. However, if the feature requested were available, I would just have a direct URL access shortcut in my mobile browser that would directly place me in the User Script page in my home; then, I would enter the required authentication and press one of the configured buttons.
So, how do you see the possibility of implementing this? (maybe it is already in the TO DO list) I think many users would benefit and thank it.
In any case, thank you for reading.
Juglar
This is my first post to this forum, after hours looking for previous talks about this subject.
I miss one feature that I am convinced that would significantly enhance the Merlin FW and make the great power of its user scripts quickly accessible: the ability to associate user scripts to WebUi buttons so that pressing one of these buttons would launch the associated user script (maybe even with some optional argument, to fill just before pressing the button). This would allow the normal user to access some functions, maybe implemented by more advanced users, and even these advanced users to access those functions with minimum key presses (specially important from small android mobiles).
The buttons could be accessible through just one menu option level (which could be named "User Scripts") and should appear in the main menu when the "Enable JFFS custom scripts and configs" option were enabled. Subject to the "Web Interface" configuration conditions, when someone from the Internet accessed the WEB UI, but (for example) with the URL ending in "/UserScripts", after the corresponding authentication, he should be directed to this web page. In it, he should see the number of configured buttons, with their configured name and a text box to optionally enter arguments. For configuration of this page, there might be a pencil icon to the rightmost of each (added) button, which would allow the more advanced (or patient) user to fill-in the button name, the associated script (maybe with full file path) and maybe the optional argument default value (Or in other similar way, homogeneous to the rest of the webui interface).
I think this feature would complete the effort devoted to make Merlin offer the power of user scripts, by making them really accessible to the user, for the many possible cases when it is not appropiate to launch them from the "official" launching places (init, wan up, etc).
I understand the reluctance to modify the WebUi, but I think this modification could be very separated from the rest and would add very little risk to cause harm to the rest.
Now, my longer explanation of my need (issuing parental control tickets), but the feature requested would be of much wider and more general utility:
I've come back from Tomato to this Merlin FW because I couldn't make the triple VLAN work fast enough there, while here, with Merlin, I keep the HW NAT and IPTV works like a charm from 2 decos, including via the WIFI.
In Merlin, I have initially missed the Parental Control flexibility of Tomato. But, after some days learning, I think I'm ready to "develop" here, with user scripts based on IPSET, even much better Parental Control than in Tomato (when I finish, I'll try to contribute my results here).
I need to manually launch some user scripts from the WAN from my android mobile (for parental control "tickets", when my sons ask me and I am outside home). I might be in a meeting and I need to respond quickly and with MINIMUM KEY PRESSES. I will prepare some TicketUserScript's. I know I could try to connect from my android in the internet through telnet or SSH, but it would need quite a lot of key presses and each of them are a pain in the android keyboard. However, if the feature requested were available, I would just have a direct URL access shortcut in my mobile browser that would directly place me in the User Script page in my home; then, I would enter the required authentication and press one of the configured buttons.
So, how do you see the possibility of implementing this? (maybe it is already in the TO DO list) I think many users would benefit and thank it.
In any case, thank you for reading.
Juglar
Last edited: