• 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!

Recent content by kstamand

  1. kstamand

    Solved Shell scripts from WebUI

    Thank you @dave14305, I now have a working solution based on all your input and direction - this is solved!!! @dave14305, with your permission, I may attempt to create a script for maintaining “scriptsui”, borrowing much of what I see / learned from your FlexQoS script. Would that be OK?
  2. kstamand

    Solved Shell scripts from WebUI

    @dave14305, @thelonelycoder, @SomeWhereOverTheRainBow or anyone Following the Third Party Addon API example, particularly the Web Usage section, how do you update the Textarea of a form AFTER "document.form.submit()" completes? My goal is to be able to update the textarea of the form with the...
  3. kstamand

    Solved Shell scripts from WebUI

    Thank you @dave14305 for all the pointers, feedback, and references. I finally have a working prototype based on the Third Party API. As time permits and if there’s interest, I’ll provide a write of the prototype.
  4. kstamand

    Solved Shell scripts from WebUI

    That fixed it but led me to my next hurdle. When I try to include showloading() and document.form.submit, to allow for the script to run / complete when the service-event is triggered, the returned results.js isn't displayed in the textarea. But if I remove show loading() and...
  5. kstamand

    Solved Shell scripts from WebUI

    What am I missing / doing working (code snippet below)? I keep getting 404 Not found with my ajax call for the URL reference. I've tried '/ext/results.txt', '/www/ext/results.txt', and 'results.txt' in the url with no luck. I'm assuming the path I am using is what's wrong, but I'm not sure...
  6. kstamand

    Solved Shell scripts from WebUI

    I have the "bones" of this approach working, updating custom_settings.txt from the asp page, a services script firing when service-event is triggered and a script running which writes results to a file. Not sure how to go about reading those results back into the webpage textarea when the script...
  7. kstamand

    Solved Shell scripts from WebUI

    I am familiar with and have used iOS Shortcut for Diversion, very nice. My goal was to have a similar ability from the WebUI, so I can do everything in one place and not have to jump to different interfaces (SSH) or devices (iOS/Android). All good feedback tho and much appreciated
  8. kstamand

    Solved Shell scripts from WebUI

    Got it - thanks for the feedback
  9. kstamand

    Solved Shell scripts from WebUI

    Care to share the better and safe way, at least in outline form? I'm not in any hurry, just hungry to learn
  10. kstamand

    Solved Shell scripts from WebUI

    @jacklul, @dave14305, @thelonelycoder, @RMerlin would the following alternate approach still pose security concerns - Custom user tab that has a hardcoded list of Names (prototype screen shot below) - When clicking on one of the names, it somehow (I still don't know how to do that) runs a...
  11. kstamand

    Solved Shell scripts from WebUI

    Is it possible to issue cli command from the router WebUI and return the results? If yes, is there a script available where this is done already? If not, any advice and pointers of where I might start to learn how to do this (I've been looking at existing scripts like YazFi, scMerlin, and others...
  12. kstamand

    Diversion [SOLVED] Diversion and DNS - What am I doing wrong?

    As noted already, it’s not necessary to set DNS Servers under LAN | DHCP Server. DNS Director settings also not necessary I believe, unless you want to bypass Diversion for select clients. To confirm things, from a shell session to the router, do a DNS lookup of some domain (e.g., dig...
  13. kstamand

    Remove unused WebUI tabs?

    @dave14305, thanks for the follow up script - I'm learning more and more each time (e.g. flock approach). What I learned from the original approach is that it indeed did mess up addons, at least Diversion (ended up with two Diversion tabs on LAN), whereas I do not with this solution. The other...
  14. kstamand

    Remove unused WebUI tabs?

    @dave14305 once again you show me the way - exactly what I was looking for and works as I was hoping for. And no disruption to Diversion or Skynet add-on menus. Thank you Edit: Below are my final modifications. Note the "//" which are valid JS comments - without them, no menu tree will be...
Back
Top