shelly hinzugefügt
This commit is contained in:
@@ -3,7 +3,8 @@ import pandas as pd
|
||||
import time
|
||||
|
||||
class HeatPump:
|
||||
def __init__(self, ip_address: str):
|
||||
def __init__(self, device_name: str, ip_address: str):
|
||||
self.device_name = device_name
|
||||
self.ip = ip_address
|
||||
self.client = None
|
||||
self.connect_to_modbus()
|
||||
@@ -25,7 +26,7 @@ class HeatPump:
|
||||
|
||||
def get_registers(self):
|
||||
# Excel-Datei mit den Input-Registerinformationen
|
||||
excel_path = "data/ModBus TCPIP 1.17(1).xlsx"
|
||||
excel_path = "data/heat_pump_registers.xlsx"
|
||||
xls = pd.ExcelFile(excel_path)
|
||||
df_input_registers = xls.parse('04 Input Register')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user