wh to kwh fix
This commit is contained in:
@@ -167,7 +167,7 @@ class MonthlyDeclarationReporter:
|
||||
stop_time = transaction['stop_timestamp']
|
||||
start_val = float(transaction['start_value']) if transaction['start_value'] else 0
|
||||
stop_val = float(transaction['stop_value']) if transaction['stop_value'] else 0
|
||||
total_kwh = stop_val - start_val
|
||||
total_kwh = (stop_val - start_val) / 1000 # Omzetten naar kWh
|
||||
|
||||
# Bereken kosten per uur
|
||||
current_hour = start_time.replace(minute=0, second=0, microsecond=0)
|
||||
@@ -374,8 +374,7 @@ Voorbeelden:
|
||||
help='Jaar (bijv. 2024)')
|
||||
|
||||
# Filter opties
|
||||
parser.add_argument('--rfid', '--user', dest='user_filter',
|
||||
help='Filter op specifieke RFID tag/gebruiker')
|
||||
parser.add_argument('--rfid', dest='user_filter', help='Filter op specifieke RFID tag/gebruiker')
|
||||
parser.add_argument('--summary', action='store_true',
|
||||
help='Toon alleen samenvattingen (geen transactie details)')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user