Skip to content

Conversation

@LKuemmel
Copy link
Contributor

No description provided.

charged_energy = (reference_entries[-1]["cp"][f"cp{cp.num}"]["imported"] -
reference_entries[0]["cp"][f"cp{cp.num}"]["imported"])
elif reference == ReferenceTime.END:
if (timecheck.create_timestamp() - cp.data.set.log.timestamp_start_charging) < 300:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beziehen sich die 300 Sekunden auf das Interval der Einträge im Log oder auf das Aktualisierungsintervall für die Strompreise?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auf das Interval der Einträge im Tageslog. das Aktualisierungsintervall für die Strompreise hat mit dem Ladeprotokoll nichts zu tun.

if (one_hour_back - cp.data.set.log.timestamp_start_charging) < 0:
# Wenn der Ladevorgang erst innerhalb des letzten 5 Min Intervalls gestartet wurde,
# ist das das erste Zwischenergebnis.
if (timecheck.create_timestamp() - cp.data.set.log.timestamp_start_charging) < 300:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Da die 300 Sekunden hier noch mal auftauchen würde sich eine Konstante anbieten...;o)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

umgesetzt

@LKuemmel LKuemmel merged commit 774c275 into openWB:master Oct 29, 2025
1 check passed
@LKuemmel LKuemmel deleted the fix_charge_cost branch October 29, 2025 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants