comparison pw2log.py @ 3:ec3c8b63d8e7

Collect frequency correctly...
author Daniel O'Connor <darius@dons.net.au>
date Tue, 09 Feb 2021 22:10:25 +1030
parents 393a879db9eb
children 8990981c60a0
comparison
equal deleted inserted replaced
2:393a879db9eb 3:ec3c8b63d8e7
113 pw = Powerwall(pwip) 113 pw = Powerwall(pwip)
114 pw.login(username, password) 114 pw.login(username, password)
115 pw.detect_and_pin_version() 115 pw.detect_and_pin_version()
116 meters = pw.get_meters() 116 meters = pw.get_meters()
117 grid_volts = meters.site.avarage_voltage 117 grid_volts = meters.site.avarage_voltage
118 grid_freq = meters.site.avarage_voltage 118 grid_freq = meters.site.frequency
119 grid_power = meters.site.instant_power 119 grid_power = meters.site.instant_power
120 load_power = meters.load.instant_power 120 load_power = meters.load.instant_power
121 battery_power = meters.battery.instant_power 121 battery_power = meters.battery.instant_power
122 solar_power = meters.solar.instant_power 122 solar_power = meters.solar.instant_power
123 charge = pw.get_charge() 123 charge = pw.get_charge()