Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 772 Bytes

README.md

File metadata and controls

19 lines (11 loc) · 772 Bytes

Blink1Toggl

A small script that sets the color of a blink1 to the color of the currently running Toggl project's color. Requires the blink1 cli tool.


Usage

python3 Blink1Toggle.py [--root | --sudo]

You'll need your Toggl account's API token set as the environment variable TOGGL_API_KEY. The token can be found by following the directions here. You can put the line TOGGL_API_KEY="<Your key here>" at the top of your crontab to set it for a cronjob call.

The optional argument --root or --sudo are for when your OS requires blink1-tool to be run as root (such as a Linux like OS).