streamdeck-toggl
streamdeck-toggl copied to clipboard
Stop current task & Start last task
I'm not sure if this is possible with the Toggl API, but I think this would be one of the main ways I would use the plugin.
As someone who is very often changing the description and project, I think having 1 start/stop button would be the best for me. In an ideal world, that same button would be red when time is being tracked and black when not.
Example:
- I'm timing a task
- I get up to take a break - press the button - timer stops
- I get back from my break - press the button - timer starts the last task I was timing
I'll likely also then have a 2nd button that simply launched the Toggl app (System > Open). Others could have it open the Toggl Website (System > Website).
I would then use the app (or website) to start a new task that I wanted to change the details of.
You likely know better than me and my 30 seconds of API glancing, but here are my initial thoughts:
Stop current task
- Get running time entry
- Stop a time entry (using info from API call 1)
Start last task
- Get time entries started in a specific time range
- Start a time entry (grabbing the last entry from API call 1)
THANKS IN ADVANCE! :)
So stopping the current task will definitely implemented in the rewrite, but the idea of restarting the last task is very good! I'll try to implement that :)
That exactly what I want 👍