Skip to content

Commit

Permalink
Examples and functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonacox committed Oct 16, 2021
1 parent bc5ee77 commit cfe4389
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,14 @@ start using the class functions to poll data. Here is an example:
# Display Basic Power Data
print("Battery power level: %0.0f%%" % pw.level())
print("Power response: %r" % pw.power())
print("Grid Power: %0.2fkW" % (float(pw.grid())/1000.0))
print("Solar Power: %0.2fkW" % (float(pw.solar())/1000.0))
print("Battery Power: %0.2fkW" % (float(pw.battery())/1000.0))
print("Home Power: %0.2fkW" % (float(pw.home())/1000.0))
print("Combined Power Metrics: %r" % pw.power())
```

### pyPowerwall Module Class and Functions
Expand All @@ -75,6 +77,8 @@ start using the class functions to poll data. Here is an example:
solar(verbose): # Fetch solar sensor data (W or raw json if verbose=True)
battery(verbose): # Fetch battery sensor data (W or raw json if verbose=True)
load(verbose) # Fetch load sensor data (W or raw json if verbose=True)
grid() # Alias for site()
home() # Alias for load()
```
## Credits and References
Expand Down

0 comments on commit cfe4389

Please sign in to comment.