Closed brombomb closed 1 year ago
Hi @brombomb thanks for the error logs and zip very useful!
It seems that your charge was very very short so much so that there wasn't actually any records in the database where the charger current and voltage was recorded.
Would you mind sending me over the relevant data from the charges table as well as the charging_processes table? As a CSV would be perfect if you don't mind! Then I can see exactly what happened and add some code to at least prevent it throwing an error in this scenario.
To workaround this issue, you can manually set the cost for the charge to 0 in the database to stop TeslaMateAgile from trying to calculate it.
Here is a list of all the charges associated with the charging processes from the zip/csv above. Not all of these were errors but I included them because I couldn't tell at a glance what the common issue/thread was. If you need more data I'm happy to supply more rows.
Thanks very much - I've taken one of your examples and added it as a test case to re-create your error and added extra safeguards around the code in this area.
This is now released as v1.9.1 if you'd like to give it a go! Let me know if it solves your problem and then we can close this off 🙂
Looks good to me. No more errors in my logs! Thanks for the quick fix.
Awesome! Thanks for trying it out 🙂
Found some entries from the logs that are causing FAIL errors.
Here's the log:
and here's some sample data (zip of a CSV and SQL insert statements) charging_processes_202207192202.zip