Index | Thread | Search

From:
Walter Alejandro Iglesias <wai@roquesor.com>
Subject:
Re: upd(4): add more sensors (load, power..)
To:
Landry Breuil <landry@openbsd.org>
Cc:
tech@openbsd.org, sthen@openbsd.org
Date:
Wed, 27 Nov 2024 14:44:19 +0100

Download raw body.

Thread
On Tue, Nov 26, 2024 at 04:19:01PM +0100, Walter Alejandro Iglesias wrote:
> On Tue, Nov 26, 2024 at 03:29:17PM +0100, Landry Breuil wrote:
> > Le Mon, Nov 25, 2024 at 07:26:25PM +0100, Walter Alejandro Iglesias a écrit :
> > > On Mon, Nov 25, 2024 at 05:48:14PM +0100, Landry Breuil wrote:
> > > > here's a diff (below) that does _just_ that, for a start. gives this here:
> > > > 
> > > > hw.sensors.upd0.percent2=25.00% (PercentLoad), OK
> > > > hw.sensors.upd0.timedelta0=917.352000 secs (RunTimeToEmpty), OK
> > > 
> > > I get this in mine:
> > > 
> > >   hw.sensors.upd0.percent2=24.00% (PercentLoad), OK
> > >   hw.sensors.upd0.timedelta0=1017.806400 secs (RunTimeToEmpty), OK
> > 
> > and do those two values match what's reported by the UPS on its LCD, if
> > you have one ?
> 
> It's an Eaton 3S 550:
> 
>   https://www.eaton.com/gb/en-gb/skuPage.3S550B.html
> 
> No LCD, :(
> 
> I can try installing nut.

Nut shows similar values, jus a bit higher runtime.

AC connected:

  hw.sensors.upd0.percent2=19.00% (PercentLoad), OK
  hw.sensors.upd0.timedelta0=1269.403200 secs (RunTimeToEmpty), OK

  ups.load: 19
  battery.runtime: 1377

AC disconnected:

  hw.sensors.upd0.percent2=22.00% (PercentLoad), OK
  hw.sensors.upd0.timedelta0=966.164400 secs (RunTimeToEmpty), OK

  ups.load: 22
  battery.runtime: 1048


> 
> 
> > 
> > Landry
> > 
> 
> -- 
> Walter

-- 
Walter