[modules/sensors2] Alternate sensor module
Show all sensor data reported by sensors -u and color widget with warning/critical if sensor limits are exceeded. fixes #326
This commit is contained in:
parent
fd7e709b5a
commit
0d9b3113f4
5 changed files with 156 additions and 2 deletions
|
@ -56,8 +56,10 @@ class Module(object):
|
|||
if widgets:
|
||||
self._widgets = widgets if isinstance(widgets, list) else [widgets]
|
||||
|
||||
def widgets(self):
|
||||
def widgets(self, widgets=None):
|
||||
"""Return the widgets to draw for this module"""
|
||||
if widgets:
|
||||
self._widgets = widgets
|
||||
return self._widgets
|
||||
|
||||
def hidden(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue