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

added hostname identificator

parent 5bf5389b
......@@ -6,7 +6,7 @@ import logging as log
import hid
import time
import sys
import socket #для hostname
CO2_USB_MFG = 'Holtek'
CO2_USB_PRD = 'USB-zyTemp'
......@@ -59,7 +59,9 @@ class ZyTemp():
values[key] = value
if all(value is not None for value in values.values()):
print(values)
#hostname
hostname = socket.gethostname()
print(f"{hostname}: {values}")
sys.exit(0)
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