Skip to content

Instantly share code, notes, and snippets.

@Macrofig
Last active December 14, 2015 03:39
Show Gist options
  • Save Macrofig/5022670 to your computer and use it in GitHub Desktop.
Save Macrofig/5022670 to your computer and use it in GitHub Desktop.
Starts a Pomodoro "heat" using ThingM's Blink(1) as an indicator of the time. First 20 minutes are white. Followed by 4.5 minutes of orange. Then 20 seconds of red with the last of the time blinking red. The five minute break is 4 minutes of green; 50 seconds of orange, and 10 seconds of red blinks.
REM Clear the blinky
blink1-tool --off
REM Start 25 minutes
blink1-tool --rgb 255,255,255
blink1-tool --blink 3
blink1-tool --rgb 255,255,255
PING 1.1.1.1 -n 1 -w 1200000 >NUL
blink1-tool --rgb 255,174,0
PING 1.1.1.1 -n 1 -w 270000 >NUL
blink1-tool --red
PING 1.1.1.1 -n 1 -w 20000 >NUL
blink1-tool --off
blink1-tool --red
blink1-tool --off
blink1-tool --red
blink1-tool --off
blink1-tool --red
blink1-tool --off
blink1-tool --red
blink1-tool --off
blink1-tool --red
blink1-tool --off
blink1-tool --red
REM I think that was about 25 minutes
REM Start a 5 minute break
blink1-tool --green
PING 1.1.1.1 -n 1 -w 240000 >NUL
blink1-tool --rgb 255,174,0
PING 1.1.1.1 -n 1 -w 50000 >NUL
blink1-tool --off
blink1-tool --red
blink1-tool --off
blink1-tool --red
blink1-tool --off
blink1-tool --red
blink1-tool --off
blink1-tool --red
blink1-tool --off
blink1-tool --red
blink1-tool --off
blink1-tool --red
REM Ready for the next Pomodoro!
blink1-tool --blue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment