diff --git a/man/wetboobs.1 b/man/wetboobs.1 index b8f117b2..b9d05449 100644 --- a/man/wetboobs.1 +++ b/man/wetboobs.1 @@ -35,7 +35,7 @@ Get history of a specific gauge (use 'rivers' to find them). .br List all rivers. If PATTERN is specified, search on a pattern. .TP -\fBlast_gauge_measure\fR \fIGAUGE_ID\fR +\fBlast_sensor_measure\fR \fIGAUGE_ID\fR .br Get last measure of a gauge (use 'rivers' to find them). .SH WEBOOB COMMANDS diff --git a/weboob/applications/wetboobs/wetboobs.py b/weboob/applications/wetboobs/wetboobs.py index 6d0ded86..3b25c73c 100644 --- a/weboob/applications/wetboobs/wetboobs.py +++ b/weboob/applications/wetboobs/wetboobs.py @@ -169,21 +169,21 @@ class WetBoobs(ReplApplication): self.format(measure) self.flush() - def complete_last_gauge_measures(self, text, line, *ignored): + def complete_last_sensor_measure(self, text, line, *ignored): args = line.split(' ') if len(args) == 2: return self._complete_object() - def do_last_gauge_measures(self, line): + def do_last_sensor_measure(self, line): """ - last_gauge_measures GAUGE_ID + last_sensor_measure GAUGE_ID - Get last measures of a gauge (use 'gauges' to find them). + Get last measure of a sensor. """ gauge, = self.parse_command_args(line, 1, 1) _id, backend_name = self.parse_id(gauge) self.start_format() - for backend, measure in self.do('get_last_measures', _id, backends=backend_name, caps=ICapGauge): + for backend, measure in self.do('get_last_measure', _id, backends=backend_name, caps=ICapGauge): self.format(measure) self.flush() diff --git a/weboob/capabilities/gauge.py b/weboob/capabilities/gauge.py index 4af9b07a..f33f3de4 100644 --- a/weboob/capabilities/gauge.py +++ b/weboob/capabilities/gauge.py @@ -90,11 +90,11 @@ class ICapGauge(IBaseCap): """ raise NotImplementedError() - def get_last_measures(self, id): + def get_last_measure(self, id): """ - Get last measures of the gauge. + Get last measures of a censor. - :param id: ID of the gauge. + :param id: ID of the censor. :type id: str :rtype: :class:`GaugeMeasure` """