From 8bd0528456c94debcc69c652c1bd70d9a7b48638 Mon Sep 17 00:00:00 2001 From: Ultrabug Date: Tue, 16 Apr 2013 10:24:14 +0200 Subject: pingdom module dont need to be aggressive on timeout anymore, add POSITION parameter --- examples/pingdom.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/examples/pingdom.py b/examples/pingdom.py index 5c4fb74..6a079eb 100644 --- a/examples/pingdom.py +++ b/examples/pingdom.py @@ -14,13 +14,14 @@ class Py3status: response = {'full_text' : '', 'name' : 'pingdom_checks'} #NOTE: configure me ! - APP_KEY = '' # create an APP KEY on pingdom first - CACHE_TIMEOUT = 600 # update every 10 mins - CHECKS = [] # list of the checks' names you want added to your bar - LATENCY_THRESHOLD = 500 # when to colorize the output - LOGIN = '' # pingdom login - PASSWORD = '' # pingdom password - TIMEOUT = 3 + APP_KEY = '' # create an APP KEY on pingdom first + CACHE_TIMEOUT = 600 # update every 10 mins + CHECKS = [] # list of the checks' names you want added to your bar + LATENCY_THRESHOLD = 500 # when to colorize the output + LOGIN = '' # pingdom login + PASSWORD = '' # pingdom password + TIMEOUT = 5 + POSITION = 0 try: import requests @@ -46,4 +47,4 @@ class Py3status: except Exception as e: pass finally: - return (0, response) + return (POSITION, response) -- cgit v1.3