Nice! I was about to do something like this for a Pomodoro, I'll take a look into this this might solve some of my problems!
great work 
For whoever wants to use this, don't forget to adjust the Touchbar Widget UUID in the executable Script. 
@fidgetspinner by chance, do you know a solution to set the width of the widget to a constant size?