forked from M-Labs/thermostat
Proper report
This commit is contained in:
parent
3e20658107
commit
ae9c34f411
|
@ -160,6 +160,10 @@ class Client:
|
||||||
"""
|
"""
|
||||||
return await self._get_conf("postfilter")
|
return await self._get_conf("postfilter")
|
||||||
|
|
||||||
|
async def report(self):
|
||||||
|
"""Obtain one-time report on measurement values"""
|
||||||
|
return await self._command("report")
|
||||||
|
|
||||||
async def report_mode(self):
|
async def report_mode(self):
|
||||||
"""Start reporting measurement values
|
"""Start reporting measurement values
|
||||||
|
|
||||||
|
|
|
@ -103,7 +103,7 @@ class ClientWatcher(QObject):
|
||||||
self.fan_update.emit(await self.client.fan())
|
self.fan_update.emit(await self.client.fan())
|
||||||
self.pwm_update.emit(await self.client.get_pwm())
|
self.pwm_update.emit(await self.client.get_pwm())
|
||||||
if self.poll_for_report:
|
if self.poll_for_report:
|
||||||
self.report_update.emit(await self.client._command("report"))
|
self.report_update.emit(await self.client.report())
|
||||||
self.pid_update.emit(await self.client.get_pid())
|
self.pid_update.emit(await self.client.get_pid())
|
||||||
self.thermistor_update.emit(await self.client.get_steinhart_hart())
|
self.thermistor_update.emit(await self.client.get_steinhart_hart())
|
||||||
self.postfilter_update.emit(await self.client.get_postfilter())
|
self.postfilter_update.emit(await self.client.get_postfilter())
|
||||||
|
|
Loading…
Reference in New Issue