-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🚀 | Shutdown after [Time] idle #1970
Comments
+1 |
I also would appreciate this a lot. RPi-Jukebox-RFID/src/jukebox/components/timers/__init__.py Lines 80 to 91 in 0326c9a
seems to indicate that someone has already thought about this before. Does a POC implementation of any of the options already exist? |
I was wondering: are the To me having tracking:
Together would enable to determine the |
|
#2332 has a working attempt at implementing an idle shutdown timer.
I have implemented that (a bit more generalized: any change in player status is considered activity).
I have not implemented that part. Instead, I chose to monitor relevant file changes (configs & audio content). That should capture any administration tasks such as adding new cards, changing configs and updating audio content.
I haven't found that code though. Maybe I have missed it? :) |
This adds an optional idle shutdown timer which can be enabled via timers.idle_shutdown.timeout_sec in the jukebox.yaml config. The system will shut down after the given number of seconds if no activity has been detected during that time. Activity is defined as: - music playing - active SSH sessions - changes in configs or audio content. Fixes: MiczFlor#1970
I'd be interested in some use cases. A few calls won't interfere with MPD, but ultimately it boils down to either "play" or "don't play". I think with the current implementation, a high percentage of use cases are covered. Thoughts? @hoffie |
* feat: Add Idle Shutdown Timer support This adds an optional idle shutdown timer which can be enabled via timers.idle_shutdown.timeout_sec in the jukebox.yaml config. The system will shut down after the given number of seconds if no activity has been detected during that time. Activity is defined as: - music playing - active SSH sessions - changes in configs or audio content. Fixes: #1970 * refactor: Break down IdleTimer into 2 standard GenericMultiTimerClass and GenericEndlessTimerClass timers * feat: Introducing new Timer UI, including Idle Shutdown * refactor: Abstract into functions * Adding Sleep timer / not functional * Finalize Volume Fadeout Shutdown timer * Fix flake8 * Fix more flake8s * Fix small bugs * Improve multitimer.py suggested by #2386 * Fix flake8 --------- Co-authored-by: pabera <[email protected]>
Feature Description
If the Box wasn't user for a while, the Raspberry shuts down.
What functionality would you like to see in your phoniebox?
Enable/Disable Option for idle Shutdown
Configurable Timer for Shutdown
How do you envision the feature to work from a users perspective?
If the Option is Enable an the box wasn't user für the configured Time it will shut down the pi to save power.
The text was updated successfully, but these errors were encountered: