fatal: https://github.com/clepple/nut/tree/git-LiebertPSP-scalefactor/info/refs not found: did you run git update-server-info on the server?
Using the patch gets me: battery.charge.low: 38 battery.charge.warning: 38 battery.type: PbAc device.mfr: Emerson Network Power device.model: LiebertPSA device.serial: device.type: ups driver.name: usbhid-ups driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.version: 2.6.2-3254M driver.version.data: Belkin HID 0.13 driver.version.internal: 0.35 ups.alarm: Replace battery! ups.mfr: Emerson Network Power ups.model: LiebertPSA ups.productid: 0001 ups.serial: ups.status: ALARM OB LB RB ups.vendorid: 10af I've attached -DDD output. Thanks, Tim. On 28/09/2011, at 22:53 , Charles Lepple wrote: > On Sep 27, 2011, at 3:45 PM, Tim Gould wrote: > >> I'll quite happily experiment with this - however if you could give me a >> short-cut to the relevant part of the code that would be appreciated as no >> doubt you are way more familiar with it than me. > > This turned out to be a little more complicated than I thought (I am only > vaguely familiar with this code). > > The attached patch should cover some of the ups.status flags. Can you apply > it, and run the driver with -DDD again? I also pushed it to GitHub, so if you > want to check out the git-LiebertPSP-scalefactor branch and build from there, > that will make future updates easier. > > https://github.com/clepple/nut/tree/git-LiebertPSP-scalefactor > > I need to look through the code a little more to make sure that we can read > the ConfigVoltage before the other values are parsed. If not, there might be > a short time at driver startup when the returned values are still > uncorrected. (This would have been a lot easier if the different Liebert > units had different USB product IDs... see drivers/tripplite-hid.c and search > for tripplite_battvolt_fun for the sort of correction we need to do.) > > <LiebertPSP-scalefactor-001.patch>
liebert-001.txt.gz
Description: GNU Zip compressed data
_______________________________________________ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser