Created
October 26, 2021 05:21
-
-
Save Bouni/cf0dc2c7c53c32deeb264803ec350e5c to your computer and use it in GitHub Desktop.
Dump all readings from a Luxtronik heatpump
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from luxtronik import Luxtronik | |
l = Luxtronik('192.168.88.11', 8889) | |
print("="*80) | |
print ('{:^80}'.format(' Parameters ')) | |
print("="*80) | |
for n, p in l.parameters.parameters.items(): | |
print(f"Number: {n:<5} Name: {p.name:<60} Type: {p.__class__.__name__:<20} Value: {p.value}") | |
print("="*80) | |
print ('{:^80}'.format(' Calculations ')) | |
print("="*80) | |
for n, c in l.calculations.calculations.items(): | |
print(f"Number: {n:<5} Name: {c.name:<60} Type: {c.__class__.__name__:<20} Value: {c.value}") | |
print("="*80) | |
print ('{:^80}'.format(' Visibilities ')) | |
print("="*80) | |
for n, v in l.visibilities.visibilities.items(): | |
print(f"Number: {n:<5} Name: {v.name:<60} Type: {v.__class__.__name__:<20} Value: {v.value}") |
thx i got it . IT was parameter 1 ahahah :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This gives you something like this: