Add sensors function to wetboobs
This commit is contained in:
parent
c3c06a0e6f
commit
a04ac33d65
1 changed files with 14 additions and 0 deletions
|
|
@ -187,3 +187,17 @@ class WetBoobs(ReplApplication):
|
|||
for backend, measure in self.do('get_last_measure', _id, backends=backend_name, caps=ICapGauge):
|
||||
self.format(measure)
|
||||
self.flush()
|
||||
|
||||
def do_sensors(self, line):
|
||||
"""
|
||||
sensors GAUGE_ID
|
||||
|
||||
Iter sensors of a gauge.
|
||||
"""
|
||||
gauge, = self.parse_command_args(line, 1, 1)
|
||||
_id, backend_name = self.parse_id(gauge)
|
||||
|
||||
self.start_format()
|
||||
for backend, sensor in self.do('iter_sensors', _id, backends=backend_name, caps=ICapGauge):
|
||||
self.format(sensor)
|
||||
self.flush()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue