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

Switching pages/profiles loses timer #24

Open
mkmacd opened this issue Sep 23, 2024 · 4 comments
Open

Switching pages/profiles loses timer #24

mkmacd opened this issue Sep 23, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@mkmacd
Copy link

mkmacd commented Sep 23, 2024

If you have a timer running and is showing on the button with {timer} and then you move to a different profile and back again, the timer stops showing (still runs on clockify). Would be amazing if it could keep showing.

Thanks

@eXpl0it3r eXpl0it3r added the bug Something isn't working label Sep 23, 2024
@eXpl0it3r
Copy link
Owner

Just a clarifying question, I assume it also doesn't start running after say 10s?

@mkmacd
Copy link
Author

mkmacd commented Sep 23, 2024

Yes that's correct.

Would also like some clarity as you're here.. I've got v1.8 which mentions about having multiple buttons. I have 28 buttons on one page (which could add to the issue...) but with minimal reliability. I'm probably pushing it, but I'm curious to understand what's going on in the background to stop it working.

@mkmacd
Copy link
Author

mkmacd commented Sep 23, 2024

More info. I think the buttons are the big issue. I've taken all the timers are put them in individual folders and having more success both with the timer reappearing and the reliability of the timers anyway. Happy to use this as a work around if there's no plan/not possible to support lots more timers :)

@eXpl0it3r
Copy link
Owner

I'm curious to understand what's going on in the background to stop it working.

Each instance will connect to the API every 10s to get the timer status. Unfortunately Clockify has quite a low-ish API rate limit. Before the previous release, I'd do it every second, which started to fail at 3+ buttons.
I've again verify the communication setup between the Stream Deck and my .NET code. Maybe I can a shared cache, that would update all the clocks in a single API call for say one workspace at a time. Then the button instances wouldn't each do API calls, but this will take some time to figure out and implement.

Currently it's recommended to have as few visible Clockify buttons as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants