1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

amtm - the Asuswrt-Merlin Terminal Menu

Discussion in 'Asuswrt-Merlin' started by thelonelycoder, Nov 26, 2017.

  1. penguin22

    penguin22 Regular Contributor

    Joined:
    Jan 22, 2014
    Messages:
    143
    Not sure if the amtm thread or Diversion would be better to inquire, but this was a topic a few pages back.

    I recently jumped onto the Unbound bandwagon and have enabled the integrated Ad Block capabilities in unbound_manager, which suggests not running along with Diversion. Is there a consensus as to whether they have the same efficacy or, as the topic regarding NextDNS would suggest, does Diversion go further warranting reconsideration?

    I also ask as this goes along with the discussion of whether amtm is the right place for update notification and emailing, which would make sense if Diversion isn't being used. I am not sure if loading Diversion and disabling would allow for the function to still work, but if not, that puts a dependency on it being loaded and enabled for use. Just giving food for thought.
     
  2. thelonelycoder

    thelonelycoder Part of the Furniture

    Joined:
    Jan 23, 2014
    Messages:
    6,847
    Location:
    Switzerland
    I’m fine with that.
    Diversion is free and will always be. And it is the best and most sophisticated ad-blocker you can install on Asuswrt-Merlin. I’m not exaggerating.
    But then, what works for me and many others may not be the best solution for you.
    I refrain from getting involved in discussions about that topic. I do what I do - and I do it well and consistent.
    Noted.
     
    LimJK, Treadler, Quoc Huynh and 9 others like this.
  3. thelonelycoder

    thelonelycoder Part of the Furniture

    Joined:
    Jan 23, 2014
    Messages:
    6,847
    Location:
    Switzerland
    amtm 3.1.7 is now available

    What's new
    - NEW: Added LED control lc, a smart router LED scheduler. Thanks to @pirx73 for suggesting it.
    - NEW: Update check u result is preserved until scripts are updated.
    - NEW: Additional theme solarized to choose from. Thanks @Stuart MacDonald for the code.
    Note: This new theme is not immediately available for the firmware version after a reset.
    - CHANGED: Added extra wording when u is run for third-party update procedure.
    - CHANGED: Added timestamp to u when everything's up to date.
    - UPDATED: Added option to use an updated model list for the pixelserv-tls ps https WebUI helper script

    Note: If you have Diversion installed, update it now for compatibility, the order does not matter.

    Use u to update to this latest version.

    Screenshot with preserved u update check, Entware has three package updates available.

    [​IMG]
     
    Last edited: May 4, 2020
    miazza, Smokey613, RAH-66 and 33 others like this.
  4. heysoundude

    heysoundude Very Senior Member

    Joined:
    Sep 20, 2016
    Messages:
    895
    Stop making it so easy and fast! don't you realize I'm BORED over here? ;-p
     
    sentinelvdx, L&LD, kernol and 2 others like this.
  5. thelonelycoder

    thelonelycoder Part of the Furniture

    Joined:
    Jan 23, 2014
    Messages:
    6,847
    Location:
    Switzerland
    A lot of work went into the LED control function. I rewrote it three times until I was happy with the result.
    So, at least I was not bored while the lockdown lasts ;)
     
    k_ipman, Kingp1n, wbennett77 and 15 others like this.
  6. heysoundude

    heysoundude Very Senior Member

    Joined:
    Sep 20, 2016
    Messages:
    895
    Thanks for your efforts!


    Sent from my iPhone using Tapatalk
     
    L&LD, QuikSilver and thelonelycoder like this.
  7. thelonelycoder

    thelonelycoder Part of the Furniture

    Joined:
    Jan 23, 2014
    Messages:
    6,847
    Location:
    Switzerland
    Also, the u update preserve function came to me while working on the led code. I thought that should be a simple hack.
    I was so wrong about that too.
    It’s always the details, and I’m picky about them.
     
  8. heysoundude

    heysoundude Very Senior Member

    Joined:
    Sep 20, 2016
    Messages:
    895
    It shows, and that’s why we appreciate you!


    Sent from my iPhone using Tapatalk
     
  9. thelonelycoder

    thelonelycoder Part of the Furniture

    Joined:
    Jan 23, 2014
    Messages:
    6,847
    Location:
    Switzerland
    The new LED control is built with enhanced code from https://github.com/RMerl/asuswrt-merlin.ng/wiki/Scheduled-LED-control
    So thanks @RMerlin for the excellent starting point.
    In the spirit of that original code, the LEDs can be controlled trough the terminal. Enter this to see the options, the -set switch reads from the settings file set trough amtm.
    Code:
    /jffs/addons/amtm/ledcontrol -help
     
    Treadler, penguin22, a5m and 3 others like this.
  10. pirx73

    pirx73 Regular Contributor

    Joined:
    Jul 17, 2013
    Messages:
    180
    Location:
    Latvia
    One question - if i have LED control set up "old way" meaning ledson and ledsoff scripts in crontab list, will amtm take that into account or is it better to remove them from crontab list before upgrade?
     
  11. thelonelycoder

    thelonelycoder Part of the Furniture

    Joined:
    Jan 23, 2014
    Messages:
    6,847
    Location:
    Switzerland
    amtm checks for those manual entries in the usual places and will abort if found. You'll have to remove them yourself first.
     
    a5m, L&LD, QuikSilver and 1 other person like this.
  12. pirx73

    pirx73 Regular Contributor

    Joined:
    Jul 17, 2013
    Messages:
    180
    Location:
    Latvia
    Thanks! No problem removing them.
     
    L&LD and thelonelycoder like this.
  13. QuikSilver

    QuikSilver Very Senior Member

    Joined:
    Jan 30, 2019
    Messages:
    531
    Location:
    BFE
    I am probably in the minority but why use the led feature? Are they that bright in a dark room?

    Edit: I hide mine behind a picture frame so I don't see them.
     
  14. thelonelycoder

    thelonelycoder Part of the Furniture

    Joined:
    Jan 23, 2014
    Messages:
    6,847
    Location:
    Switzerland
    People that sleep with their routers in the same room, probably.
     
  15. netware5

    netware5 Very Senior Member

    Joined:
    Mar 9, 2013
    Messages:
    513
    Location:
    Bulgaria
    In fact the flashing LEDs are disturbing not light itself especially at night. I keep them off all the time.

    This is exactly my case :)
     
    Last edited: May 4, 2020
    a5m, L&LD, QuikSilver and 1 other person like this.
  16. CriticJay

    CriticJay Regular Contributor

    Joined:
    May 30, 2018
    Messages:
    186
    I prefer to sleep with humans!
     
  17. thelonelycoder

    thelonelycoder Part of the Furniture

    Joined:
    Jan 23, 2014
    Messages:
    6,847
    Location:
    Switzerland
    I should have mentioned you were the one that suggested the LED scheduler function. Sorry about that, I edited the release post.
     
    a5m, pirx73, L&LD and 2 others like this.
  18. thelonelycoder

    thelonelycoder Part of the Furniture

    Joined:
    Jan 23, 2014
    Messages:
    6,847
    Location:
    Switzerland
    Make sure to copy everything, I added the rest of the sentence specifically. I'm no pervert...
     
    kernol, Stevens243, a5m and 5 others like this.
  19. heysoundude

    heysoundude Very Senior Member

    Joined:
    Sep 20, 2016
    Messages:
    895
    Who are we to judge? What happens between a router and it’s master behind closed doors...


    Sent from my iPhone using Tapatalk
     
    kernol, a5m and cmkelley like this.
  20. thelonelycoder

    thelonelycoder Part of the Furniture

    Joined:
    Jan 23, 2014
    Messages:
    6,847
    Location:
    Switzerland
    It would be an orgy, I have six routers. We’d have a lot of - ahem - talk.
     
    kernol, Stevens243, a5m and 5 others like this.