From fdab47f35982bbb007d04759af2b57f768ac334c Mon Sep 17 00:00:00 2001 From: "J.M. Dana" Date: Thu, 2 Apr 2015 19:10:14 +0100 Subject: QA for nvidia_temp --- py3status/modules/nvidia_temp.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/py3status/modules/nvidia_temp.py b/py3status/modules/nvidia_temp.py index 4f6a40e..b9340e9 100755 --- a/py3status/modules/nvidia_temp.py +++ b/py3status/modules/nvidia_temp.py @@ -1,5 +1,4 @@ -#!/usr/bin/env python -# encoding: utf-8 +# -*- coding: utf-8 -*- """ Module for displaying NVIDIA GPU temperature @@ -7,8 +6,16 @@ Module for displaying NVIDIA GPU temperature Requires: - nvidia-smi +Configuration parameters: + - cache_timeout: how often we refresh this module in seconds + - color_good: the color used if everything is OK. + - color_bad: the color used if the temperature can't be read. + - format_prefix: a prefix for the output. + - format_units: the temperature units. Will appear at the end. + - separator: the separator char between temperatures (only if more than one GPU) + @author jmdana -@license GPLv3 +@license BSD """ import re @@ -58,8 +65,8 @@ class Py3status: response = { 'cached_until': time() + self.cache_timeout, - 'full_text': output, 'color': color, + 'full_text': output, } return response -- cgit v1.3