The (2.2.1) upshid-ups driver reports battery.temperature rather than ups.temperature. Here's a quick patch to have it show up in the status page... --- clients/upsstats.c.DIST 2008-03-04 09:15:40.000000000 +0000 +++ clients/upsstats.c 2008-03-04 09:16:20.000000000 +0000 @@ -787,6 +787,11 @@ return 1; } + if (!strcmp(cmd, "BATTTEMP")) { + do_temp("battery.temperature"); + return 1; + } + if (!strcmp(cmd, "AMBTEMP")) { do_temp("ambient.temperature"); return 1; --- conf/upsstats.html.sample.DIST 2008-03-04 09:23:38.000000000 +0000 +++ conf/upsstats.html.sample 2008-03-04 09:22:10.000000000 +0000 @@ -157,6 +157,10 @@ @IFSUPP ups.temperature@ @UPSTEMP@ @DEGREES@ + at ELSE@ + at IFSUPP battery.temperature@ + at BATTTEMP@ + at DEGREES@ @ENDIF@ </td> -- Dr George D M Ross, School of Informatics, University of Edinburgh Kings Buildings, Mayfield Road, Edinburgh, Scotland, EH9 3JZ Mail: gdmr at inf.ed.ac.uk Voice: +44 131 650 5147 Fax: +44 131 667 7209 PGP: 1024D/AD758CC5 B91E D430 1E0D 5883 EF6A 426C B676 5C2B AD75 8CC5 "The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336." -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 236 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20080304/e26f1e5f/attachment.pgp
> The (2.2.1) upshid-ups driver ...Sorry, usbhid-ups driver (too many TLAs!). Anyway, while I'm here, here's a patch for the man-page too: --- man/upsstats.html.5.DIST 2008-03-04 09:39:54.000000000 +0000 +++ man/upsstats.html.5 2008-03-04 09:40:27.000000000 +0000 @@ -210,6 +210,9 @@ .IP @UPSTEMP@ Insert the UPS temperature in the current scale. +.IP @BATTTEMP@ +Insert the battery.temperature in the current scale. + .IP @UTILITYCOLOR@ Obsoleted. Use IFBETWEEN instead (see example in upsstats.html). -- Dr George D M Ross, School of Informatics, University of Edinburgh Kings Buildings, Mayfield Road, Edinburgh, Scotland, EH9 3JZ Mail: gdmr at inf.ed.ac.uk Voice: +44 131 650 5147 Fax: +44 131 667 7209 PGP: 1024D/AD758CC5 B91E D430 1E0D 5883 EF6A 426C B676 5C2B AD75 8CC5 "The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336." -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 236 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20080304/29fba804/attachment.pgp
Apparently Analagous Threads
- nut-2.2.1-pre2
- Fwd: RE New xanto driver for NUT
- [Bug 40894] New: nv30-/temperature: Reverse engineer the temperature coefficients
- patch: Fix [-Wunused-but-set-variable]
- Since harmonics are often accompanied by a temperature rise, thermography can be used to detect evidence of their presence.