Commit 79b153f3 authored by Nikita Yurishev's avatar Nikita Yurishev

added hostname identificator

parent 5bf5389b
...@@ -6,7 +6,7 @@ import logging as log ...@@ -6,7 +6,7 @@ import logging as log
import hid import hid
import time import time
import sys import sys
import socket #для hostname
CO2_USB_MFG = 'Holtek' CO2_USB_MFG = 'Holtek'
CO2_USB_PRD = 'USB-zyTemp' CO2_USB_PRD = 'USB-zyTemp'
...@@ -59,7 +59,9 @@ class ZyTemp(): ...@@ -59,7 +59,9 @@ class ZyTemp():
values[key] = value values[key] = value
if all(value is not None for value in values.values()): if all(value is not None for value in values.values()):
print(values) #hostname
hostname = socket.gethostname()
print(f"{hostname}: {values}")
sys.exit(0) sys.exit(0)
def run_once(self, decrypt=False): def run_once(self, decrypt=False):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment