nickbabcock / OhmGraphite

Expose hardware sensor data to Graphite / InfluxDB / Prometheus / Postgres / Timescaledb
Other
426 stars 38 forks source link

incorrect battery values #444

Closed FelixChial closed 6 months ago

FelixChial commented 7 months ago

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 commented 7 months ago

ohm-battery4

nickbabcock commented 7 months ago

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: https://github.com/nickbabcock/OhmGraphite/issues/440#issuecomment-1986864013)

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

FelixChial commented 7 months ago

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

FelixChial commented 7 months ago

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 commented 7 months ago

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