Git Product home page Git Product logo

Comments (5)

MattJeanes avatar MattJeanes commented on July 18, 2024 1

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 🙂

from teslamateagile.

MattJeanes avatar MattJeanes commented on July 18, 2024

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.

from teslamateagile.

brombomb avatar brombomb commented on July 18, 2024

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.

charges_202207232048.csv

from teslamateagile.

brombomb avatar brombomb commented on July 18, 2024

Looks good to me. No more errors in my logs! Thanks for the quick fix.

from teslamateagile.

MattJeanes avatar MattJeanes commented on July 18, 2024

Awesome! Thanks for trying it out 🙂

from teslamateagile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.