Skip to content

Commit

Permalink
add an example usage for the telegram method
Browse files Browse the repository at this point in the history
  • Loading branch information
Mausy5043 committed Feb 1, 2025
1 parent d830fe7 commit d30d8a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ async def main():
measurement = await api.measurement()
print(measurement.energy_import_kwh)

# Example of getting raw telegram data
telegram = await api.telegram()
print(telegram) # Raw P1 meter data

# Get all data and remap v1 data to new v2 structure
print(await api.combined())

Expand Down

0 comments on commit d30d8a4

Please sign in to comment.