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

incorrect battery values #444

Closed
FelixChial opened this issue Mar 22, 2024 · 5 comments
Closed

incorrect battery values #444

FelixChial opened this issue Mar 22, 2024 · 5 comments

Comments

@FelixChial
Copy link

FelixChial commented Mar 22, 2024

  • LHM 0.9.3
  • Graphite 0.32.0

LHM reports correct values but OHM just stays at 99%, 13v, 37.4Wh, etc
dunno if its relevant but it runs as a service with prometheus output
values change sometimes but then stay the same for days
other metrics work fine 🤔

graphs over the last two days

ohm-battery1

graphs over the last 14 days

i think drop at around 03/16 - 03/18 is related to upgrade from 0.31.0 to 0.32.0
ohm-battery3

metrics sample

ohm-battery2

configs

prometheus

global:
  scrape_interval: 15s
  scrape_timeout: 5s

scrape_configs:
  - job_name: 'ohm-cobra'
    static_configs:
      - targets: ['192.168.191.103:4445']

graphite

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <appSettings>
    <add key="type" value="prometheus" />
    <add key="prometheus_port" value="4445" />

    <!-- This is the host that OhmGraphite listens on.
         `*` means that it will listen on all interfaces.
         Consider restricting to a given IP address -->
    <add key="prometheus_host" value="192.168.191.103" />
    <add key="prometheus_path" value="metrics/" />
  </appSettings>
</configuration>
@FelixChial
Copy link
Author

FelixChial commented Mar 22, 2024

  • it seems that values get stuck if server starts while fully charged
    ive restarted the service while disconnected at 88% charge and it seems to work now

ohm-battery4

  • edit
    its stuck again after reaching 100%

@nickbabcock
Copy link
Owner

Do you want to try the latest nightly version of OhmGraphite? It adds trace logging so that you can see the exact values reported from LibreHardwareMonitor (see this comment: #440 (comment))

I wonder if it is the same problem effecting #440. If you change the scrape_interval to 1s, is the problem resolved?

@FelixChial
Copy link
Author

FelixChial commented Mar 25, 2024

changing scrape_interval to 1s didnt help
will try nightly build, sure

@FelixChial
Copy link
Author

FelixChial commented Mar 26, 2024

so for some reason simply using nightly resolves the issue
for sanity ive checked release again and the issue is still present there 🤔
interesting that release reports 13v Battery Voltage while nightly reports 12.9v
its full and plugged in in both cases but values reported are slightly different between versions...

@nickbabcock
Copy link
Owner

That's odd, I'm not sure what recent change would be influencing that. I can look to release an official new version soon.

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

No branches or pull requests

2 participants