diff options
| author | Ultrabug <ultrabug@gentoo.org> | 2013-04-16 10:24:14 +0200 |
|---|---|---|
| committer | Ultrabug <ultrabug@gentoo.org> | 2013-04-16 10:24:14 +0200 |
| commit | 8bd0528456c94debcc69c652c1bd70d9a7b48638 (patch) | |
| tree | f7e7c2f4076656410b51a8d11b9889c672f67c88 | |
| parent | 7f73dcc512eeece1ea097de42732b46dba710eee (diff) | |
pingdom module dont need to be aggressive on timeout anymore, add POSITION parameter
| -rw-r--r-- | examples/pingdom.py | 17 |
1 files 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) |
