Unverified Commit 55d63c72 authored by Kristian Tan's avatar Kristian Tan Committed by GitHub

Debug (#4)

Must run with python3 & fixed db issue
parent c0993e5c
......@@ -57,6 +57,9 @@ def create_entry(change_pin):
# Formula to calculate kWh based on time and wattage
kwh = pins[change_pin]['Wattage'] * (elapsed / 3600) / 1000
print(pins[change_pin]['Wattage'])
print(elapsed)
print(kwh)
print("LATEST ENTRY: ")
print(latest_entry)
# If there is already an entry for today, update on time
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment