sarnau / InsideViessmannVitosoft

Description of Optolink communication with Viessmann heating units and the XML files of the Vitosoft
27 stars 7 forks source link

Error PrintEventsForDatapoint.py #3

Open tocks53 opened 2 years ago

tocks53 commented 2 years ago

Hello, I have an error with the PrintEventsForDatapoint.py, when i change : parse_Textresource('fr') # load english localization, 'de' is German parse_ecnEventTypes() parse_DPDefinitions('CU401B_S')

python PrintEventsForDatapoint.py VT200 WO1C

Traceback (most recent call last): File "PrintEventsForDatapoint.py", line 478, in parse_DPDefinitions('CU401B_S') File "PrintEventsForDatapoint.py", line 324, in parse_DPDefinitions eventValueType['Stepping'] = int(eventValueType['Stepping']) ValueError: invalid literal for int() with base 10: '0.5'

Can you confirm is ok on your system ?

Thanks

sarnau commented 2 years ago

It seems 0.5 is a possible stepping value. Try changing int(…) to float(…)

tocks53 commented 2 years ago

Hi @sarnau , thanks for your reply.

Now i have an another error

`python PrintEventsForDatapoint.py VT200 WO1C

()

Vue d'ensemble (19728)