Added function to send CPU temperature to the client.

This commit is contained in:
Marat Fayzullin 2023-06-24 12:41:41 -04:00
parent 8540fcddd2
commit 9e944b231f
1 changed files with 3 additions and 0 deletions

View File

@ -415,6 +415,9 @@ class OpenWebRxReceiverClient(OpenWebRxClient, SdrSourceEventClient):
def write_cpu_usage(self, usage):
self.mp_send({"type": "cpuusage", "value": usage})
def write_temperature(self, temp):
self.mp_send({"type": "temperature", "value": temp})
def write_clients(self, clients):
self.mp_send({"type": "clients", "value": clients})