What's new

amtm amtm 5.1 - the Asuswrt-Merlin Terminal Menu, December 09, 2024

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

amtm 4.9.2 is now available

What's new

- Rewrote the lc Dynamic LED control portion.
This now uses the Geographic coordinate system instead of a location code by weather.com to set the dynamic sunrise/sunset time.
After updating amtm it is required that dynamic LED lc be setup new with coordinates.

Please read new instructions when setting up dynamic LEDs.
Location coordinates can be obtained from google maps/earth by pointing at your location and copy and paste the complete longitude and latitude code.
For example, the complete latitude and longitude coordinates for Lucerne, Switzerland are 47.05048,8.30635.
Obviously, the above coordinates are not my (thelonelycoder) exact location where I coded this all!
Do not post your coordinates here - or anywhere else for that matter - or you might be visited by some freak asking for a beer!

Your coordinates will fetch a months worth of sunset/sunrise data from the sunrisesunset.io API at a time, while additional location data is fetched from openstreetmap.org to confirm your location selection.

- Added openstreetmap.org and sunrisesunset.io to shared amtm whitelist.
- Known issue: All hopelessly outdated Mipsel based routers will throw errors if the required Entware package jq (v1.6) is from Maurers repository. Use The Entware original jq (v1.5) if you must.
 
Last edited:
Awesome! Updated remotely and haven't looked at logs and such, but both installed and updated times properly.
 
Awesome! Updated remotely and haven't looked at logs and such, but both installed and updated times properly.
There’ll be two cron jobs to set the leds on/off and one to set the times for the current day at 10 past midnight.
It’ll fetch a new set of sunset/sunrise times automatically once it runs out of stored days after a month.
 
Works like a champ! I wouldn't have expected anything less from @thelonelycoder! Thanks.
 
Code:
 Dynamic LED control set for coordinates
 43.21318,-75.36683
 in Town of Floyd, Oneida County, New York, United States.
 
Code:
Dynamic LED control set for coordinates
47.05048,8.30635
in Luzern, Schweiz/Suisse/Svizzera/Svizra.
Code:
Dynamic LED control set for coordinates
18.787343838415172,98.98508864608229
in เชียงใหม่, ป่าแดด, อำเภอสารภี, จังหวัดเชียงใหม่, 55520, ประเทศไทย.
Nice that openstreetmap.org returns the location in the local language(s). Switzerland has four official languages - German, French, Italian and Romansh.
 
Code:
 Dynamic LED control set for coordinates
 43.21318,-75.36683
 in Town of Floyd, Oneida County, New York, United States.
We both live near a military airport.
 
We both live near a military airport.
The military base was closed several years ago, but airport is now non-commercial county airport for private and business planes.
 
Thank you @thelonelycoder for updating amtm with this new version of the lc (LED) script control.

On an unrelated topic, I previously had the amtm email function working (for the last couple of years) through Outlook.com (MS/Hotmail), but Microsoft recently fully cutoff access to mail sending/relaying for apps that aren't using OAuth2: any suggestions for workarounds that don't involve migrating to Gmail as my relay? I don't use two-factor authentication, and am thus also locked out from using the Gmail workaround "app passwords" setting. Perhaps others can share their experiences and suggestions here.
 
Thank you @thelonelycoder for updating amtm with this new version of the lc (LED) script control.

On an unrelated topic, I previously had the amtm email function working (for the last couple of years) through Outlook.com (MS/Hotmail), but Microsoft recently fully cutoff access to mail sending/relaying for apps that aren't using OAuth2: any suggestions for workarounds that don't involve migrating to Gmail as my relay? I don't use two-factor authentication, and am thus also locked out from using the Gmail workaround "app passwords" setting. Perhaps others can share their experiences and suggestions here.
Create a second Gmail account, enable 2FA, and then create an "app password".
 
Thanks for the updated lc function. It works great, but I forgot to enter a minus in front of the longitude and ended up with a setting for somewhere in China 🤣:

Dynamic LED control set for coordinates

in 库车市 كۇچار شەھىرى, ئاقسۇ ۋىلايىتى - 阿克苏地区, 新疆维吾尔自治区 شىنجاڭ ئۇيغۇر ئاپتونوم رايونی
 
Hello, I enabled the dynamic LED script on a brand-new Entware installation, and get this error when entering my coordinates:

Code:
grep: invalid option -- 'P'
BusyBox v1.25.1 (2024-07-31 19:48:49 EDT) multi-call binary.

Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]...
[...]
Entry is not a valid coordinate.

I checked, and Entware grep is installed, however:
Code:
# opkg install grep
Package grep (3.11-1) installed in root is up to date.
# ls -l /bin/grep
lrwxrwxrwx    1 A1MeshBo root             7 Jul 31 19:49 /bin/grep -> busybox

It turns out a LOT of /bin is symlinked to busybox. I just rebooted the router and no difference. Is there a step I missed?
 
Oops, never mind, after rebooting the router the amtm script now works! It appears the path wasn't updated until the reboot, but all is working now. Very handy script!!
 
@thelonelycoder after DST change (I guess), my led control went crazy. Some parsing error?

A manual update did the trick and done the issue. But I'm worried it could happen on future
 

Attachments

  • Screenshot_2024-10-27-04-10-27-967_com.server.auditor.ssh.client-edit.jpg
    Screenshot_2024-10-27-04-10-27-967_com.server.auditor.ssh.client-edit.jpg
    68.1 KB · Views: 25
  • Screenshot_2024-10-27-04-10-06-975_com.server.auditor.ssh.client-edit.jpg
    Screenshot_2024-10-27-04-10-06-975_com.server.auditor.ssh.client-edit.jpg
    55.3 KB · Views: 25
@thelonelycoder after DST change (I guess), my led control went crazy. Some parsing error?

A manual update did the trick and done the issue. But I'm worried it could happen on future
Probably should build in a test that the required variables are populated before setting the cron jobs/applying the times.
I will get to that once I’m back home from Costa Rica commissioning a new system.
 
I have set up the LED control script on both my main and AiMesh routers (both GT-AX6000) and I am seeing an odd problem where the AiMesh router does not get the Aura RGB lighting restored.

One difference is the AiMesh router menu says Aura RGB is disabled in the WebUI, but the main router says it is enabled.

This is on the AiMesh node:
Code:
 1. Edit LED scheduler 7:46 18:08 D
 2. Manually Disable LEDs now
 3. Remove LED control script
 4. Disable LED scheduler
 5. Disable Aura RGB coupling

 Enter option [1-5 e=Exit] 5
_____________________________________________

 Aura RGB coupling setting

 Select if Aura RGB follows the LED scheduler
 setting to turn Aura RGB lighting on or off.

 Aura RGB is currently disabled in the WebUI.

 1. Disable Aura RGB coupling now

 Enter option [1-1 e=Exit]

I compared nvram values, and the only thing that really stood out was
Code:
ledg_scheme=1
on the main router and
Code:
ledg_scheme=0
on the mesh node.

Any ideas?
 
For what it's worth, I dug a little deeper and noticed the main router had an nvram ledg_scheme_old variable, whereas the mesh node did not. I set ledg_scheme_old on the mesh router, and now it appears the LED cycling is working as expected.
 
I've updated amtm on my rt-ac86u and afterwards entware crashed, I can't reinstall entware now

Code:
amtm 4.9.2 FW             by thelonelycoder

 ASUS RT-AC86U HW: aarch64 Kernel: 4.1.27
 FW: 386.14

amtm => ep
Code:
_____________________________________________

 Getting from fwupdate.asuswrt-merlin.net
 ! Module entware_setup.mod download failed
 ! using fallback server diversion.ch
 ! Module entware_setup.mod download failed
_____________________________________________
 
Last edited:

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top