ndokter / dsmr_parser

Library to parse Dutch Smart Meter Requirements (DSMR) telegrams.
MIT License
110 stars 64 forks source link

typo in readme example #123

Closed Michael-Yongshi closed 1 year ago

Michael-Yongshi commented 1 year ago

See fix in https://github.com/Michael-Yongshi/dsmr_parser/blob/master/README.rst

 # Using the active tariff to determine the electricity being used and
 # delivered for the right tariff.
 active_tariff = telegram[obis_references.ELECTRICITY_ACTIVE_TARIFF]
 active_tariff = int(tariff.value)

see that the int(tariff.value) is referring to a non-existing variable 'tariff'

ndokter commented 1 year ago

Thank you for bringing this up. I will rewrite parts of those documentation in PR #121