Skip to content
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

[FEATURE REQUEST] Sleep #1243

Open
ayoubelmhamdi opened this issue Feb 7, 2025 · 0 comments
Open

[FEATURE REQUEST] Sleep #1243

ayoubelmhamdi opened this issue Feb 7, 2025 · 0 comments

Comments

@ayoubelmhamdi
Copy link

running non-stop video (long video, playlist, stream...) all the time (especially at night) can completely drain the battery, so the alarm might not work in the morning. I think it's easy to implement. In Python, it could be like:

import time

sleep_min = int(input())  
t0 = time.time()

if time.time() >= t0 + sleep_min * 60:  
    break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant