Skip to content

Instantly share code, notes, and snippets.

View mitchyboy9's full-sized avatar

Alex Mitchell mitchyboy9

  • MitchellSoft Technology Ltd
View GitHub Profile
import urllib, json
from anybar import AnyBar
def blink(url, portValue, textValue):
data = json.loads(urllib.urlopen(url).read())
status = data['status'].lower()
AnyBar(port=portValue).change(status, text=textValue)
envs = {"devint": 1738,"e2e": 1739,"ee2": 1740,"s1": 1741,"prd": 1742}
for env, port in envs.iteritems():