Beeminder + = block distractions until you're on the right side of the road


Hi, guys. This is my first Beeminder script, would love feedback and suggestions:

The idea is to help me take more productive breaks (a nap or a walk) instead of zoning out on YouTube while I’m not on the right side of the road on my most important goals.

Focus is an app that lets you block distracting websites and apps, and it’s scriptable using special focus:// URLs. I wrote a script that checks a list of goals to find the lowest lane among them. If the lowest lane is less than zero (middle of the road), then it triggers Focus to start blocking distractions. Otherwise, it tells Focus to lay off.