Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Projected Range : division by zero #1460

Closed
pierresou opened this issue Mar 18, 2021 · 7 comments
Closed

Projected Range : division by zero #1460

pierresou opened this issue Mar 18, 2021 · 7 comments
Labels
area:dashboard Related to a Grafana dashboard kind:bug Something isn't working note:good first issue Good for newcomers

Comments

@pierresou
Copy link

Hello,

After having my SOC at 0%, I have an exception in the report "Projected Range".
Now my SOC is > 0%, but I still have this issue, not possible to have my projected range report working.

teslamate

@adriankumpf adriankumpf added kind:bug Something isn't working note:good first issue Good for newcomers area:dashboard Related to a Grafana dashboard labels Mar 18, 2021
@adriankumpf
Copy link
Collaborator

You completely deleted the bug report template, so now the following information is missing. Please add.

**Environment**

- TeslaMate version:
- Type of installation: Docker or Manual
- OS TeslaMate is installed on:
- User OS & Browser:
- Others:

@pierresou
Copy link
Author

  • TeslaMate version: 2021.4.11
  • Type of installation: Docker
  • OS TeslaMate is installed on: Synology DSM
  • User OS & Browser: Windows 10 / Android - Chrome 89

@adriankumpf
Copy link
Collaborator

2021.4.11 is not a TeslaMate version :) You can find that information on the TeslaMate settings page. It's just important to know whether you are using the latest version.

@pierresou
Copy link
Author

Indeed 😁
The version is 1.21.6

@Dulanic
Copy link
Collaborator

Dulanic commented Jun 3, 2021

PR submitted. I am guessing this was a API issue, but still having the SQL account for this possibility isnt bad.

adriankumpf pushed a commit that referenced this issue Jun 18, 2021
Fixes #1460. Shouldn't happen, but API errors happen so added wraping /w nullif and added to having not null to exclude bad data.
@adri-k
Copy link

adri-k commented Jun 10, 2023

I get the same error 'db query error: pq: division by zero' on the 'Updates' page.
I am using TeslaMate 1.27.2.

@Dulanic
Copy link
Collaborator

Dulanic commented Jul 20, 2023

I get the same error 'db query error: pq: division by zero' on the 'Updates' page. I am using TeslaMate 1.27.2.

PR submitted for Updates page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:dashboard Related to a Grafana dashboard kind:bug Something isn't working note:good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants