tobimori / streamdeck-toggl

⏱️ Make time tracking a 🍰 piece of cake, with Toggl Track and Elgato Stream Deck (Toggl Track integration for Stream Deck)
MIT License
120 stars 38 forks source link

Show buttons enabled/disabled based on associated timer #4

Closed WaldenL closed 4 years ago

WaldenL commented 4 years ago

Also adds custom label because we can't override 'title'

Changes as discussed on Discord. I reworked the polling loop so it only polls once for each apiKey each cycle. I don't have multiple accounts so I tested enough to know the code doesn't blow up if you specify buttons w/different apiKeys but I can't promise that it works "right" in that case.

I'm not sure I believe the localhost vs. 127.0.0.1 part, but Elgato has similar comment in a recent commit of theirs so I'm going with it.

Example use: IMG_0592