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

Question about a alarm #1

Open
Mr-Sithel opened this issue Oct 23, 2023 · 1 comment
Open

Question about a alarm #1

Mr-Sithel opened this issue Oct 23, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Mr-Sithel
Copy link

Great little tool ! I really don't know much about python but I tried to compile the code for alarm sounds and although I can get it to work it bugs things out. At the top of the script I added :
from playsound import playsound

then in the helltide section I added the code for the playsound wave file, and it works but the timer then bugs out.

def update_timer(self):
        next_event, is_active = get_next_helltide_event(self.helltide_times)
        if next_event:
            now = datetime.utcnow().replace(tzinfo=pytz.utc)
            if is_active:
                remaining_time = (next_event + timedelta(hours=1)) - now
                self.label.config(text=f"Helltide Active: {str(timedelta(seconds=round(remaining_time.total_seconds())))}")
                playsound('Helltide-Alarm.wav')
            else:
                remaining_time = next_event - now                
                self.label.config(text=f"Until Next Helltide: {str(timedelta(seconds=round(remaining_time.total_seconds())))}")

And for the Boss, an alert like 5 minutes before the pop would be great, but no clue on if that's possible. Any help would be great! Thanks

@juddisjudd
Copy link
Owner

I was actually going to add an alert sound already so I would just hold tight until I update, it wont be that difficult.

@juddisjudd juddisjudd added the enhancement New feature or request label Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants