This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(): |