What's new

Solved amtm LED Control - disabling schedule doesn't

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

Ripshod

Very Senior Member
First noticed this a month ago but I needed a fresh install to confirm it. I used the "Scheduled" setting for a while and everything was fine - LEDs were lit during daylight hours and off at night. I then decided I didn't need that so I disabled the "Scheduled" setting and manually set the LEDs off. But I noticed the LEDs were still enabled automatically at dawn. Checking amtm confirmed the "Scheduled" setting was off. I tried reinstalling LED Control but still the same problem.
 
What is output from cru l | grep led?
 
When enabled cru l | grep led returns
Code:
10 0 * * * /bin/sh /jffs/addons/amtm/led_control.mod -set #amtm_LEDcontrol_set#
9 8 * * * /bin/sh /jffs/addons/amtm/led_control.mod -on #amtm_LEDcontrol_on#
48 15 * * * /bin/sh /jffs/addons/amtm/led_control.mod -off #amtm_LEDcontrol_off#
When disabled it reurns nothing.

I may have misinterpreted it here. It may be that when disabling the schedule the LEDs are manually forced on. That's what I see anyway. I've manually disabled them now and will see what the morning brings.
 
When enabled cru l | grep led returns
Code:
10 0 * * * /bin/sh /jffs/addons/amtm/led_control.mod -set #amtm_LEDcontrol_set#
9 8 * * * /bin/sh /jffs/addons/amtm/led_control.mod -on #amtm_LEDcontrol_on#
48 15 * * * /bin/sh /jffs/addons/amtm/led_control.mod -off #amtm_LEDcontrol_off#
When disabled it reurns nothing.

I may have misinterpreted it here. It may be that when disabling the schedule the LEDs are manually forced on. That's what I see anyway. I've manually disabled them now and will see what the morning brings.
You may have confused the two settings as doing the same:
Code:
 1. Edit LED scheduler 16:38 8:01 RD
 2. Manually Enable LEDs now
 3. Remove LED control script
 4. Disable LED scheduler
Setting 2. Manually Enable/Disable LEDs now is a volatile setting, the schedule still takes over next time it runs. Cron jobs are still set when this is set.
Setting 4. Disable LED scheduler disables the scheduler permanently until re enabled again. Cron jobs are deleted.
 
I must have missed manually disabling the LED. Sorry for wasting your time. I just don't understand how I missed such a logical step multiple times, especially as I actually understand it.
Pilot error!
 
I must have missed manually disabling the LED. Sorry for wasting your time. I just don't understand how I missed such a logical step multiple times, especially as I actually understand it.
Pilot error!
Happens to the best.
I just troubleshooted a website I coded years ago. Some calendar content suddenly no longer showed in the main column.
I had to fire up the original test site from 2017 on my development box to compare the various settings side-by-side.
Some damn fool set a module to only show until the end of November this year.
Go figure. Good thing I got logs and was able to trace it back once I knew what was causing it.
It was set back in January.
 
This is so weird. Isn't the manual setting supposed to survive reboots? It does if I've never used the sheduler, however having used the scheduler, then disabling it and setting the LEDs off, a reboot brings the LEDs back on. I can manually switch them off again but another reboot brings them on (the settings in the LED Control script reflect a manual "on"). cru l | grep led returns nothing - as expected.

I'm not going mad :D
 
This is so weird. Isn't the manual setting supposed to survive reboots? It does if I've never used the sheduler, however having used the scheduler, then disabling it and setting the LEDs off, a reboot brings the LEDs back on. I can manually switch them off again but another reboot brings them on (the settings in the LED Control script reflect a manual "on"). cru l | grep led returns nothing - as expected.

I'm not going mad :D
It's a thing in my script that enables them even tough it should not. I'll figure it out and post an update.
Meanwhile, remove the LED script and turn the LEDs off in the WebUI under Administration/System.
 
Meanwhile, remove the LED script and turn the LEDs off in the WebUI under Administration/System.
Already tried that. Guess what? That has never worked for me - they come back on if I reboot, even before I got into merlin. I'll set a cron to turn them of every few hours
Done
 
Last edited:
Last edited:

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