Displaying 8 results from an estimated 8 matches for "stringid_conversion".
2024 Dec 04
1
<Cyber Energy> <usbhid-ups/cps-hid.c>-Add HID Usage (Temperature)
...quot;%s", 0, kelvin_celsius_conversion },
after line 236 allows UPS temperature data to be displayed in the status list.
In NUT source code file cps-hid.c , the line 236 is
{ "ups.firmware", 0, 0, "UPS.PowerSummary.CPSFirmwareVersion", NULL, "%s", HU_FLAG_STATIC, stringid_conversion },
Please add the following code after line 236 for our new HID usage (Temperature).
{ "ups.temperature", 0, 0, "UPS.PowerSummary.Temperature", NULL, "%s", 0, kelvin_celsius_conversion },
Once you have confirmed the request to add the source code, please provide a tes...
2012 Nov 20
2
[PATCH][RFC] OpenUPS driver
...--------- */
+/* HID2NUT lookup table */
+/* --------------------------------------------------------------- */
+
+static hid_info_t openups_hid2nut[] = {
+ {"ups.serial", 0, 0, "UPS.PowerSummary.iSerialNumber", NULL, "%s", 0, stringid_conversion},
+
+ /* Battery */
+ {"battery.type", 0, 0, "UPS.PowerSummary.iDeviceChemistry", NULL, "%s", HU_FLAG_STATIC, stringid_conversion},
+ {"battery.mfr.date", 0, 0, "UPS.PowerSummary.iOEMInformation", NULL, "%s", 0, stringid_conversion},
+ {&q...
2018 Feb 04
0
[PATCH 3/3] OpenUPS: fix current calculations
..._scratch_buf, sizeof(openups_scratch_buf), "%.3f", i_out);
return openups_scratch_buf;
}
@@ -304,7 +342,7 @@ static hid_info_t openups_hid2nut[] = {
/* Battery */
{"battery.type", 0, 0, "UPS.PowerSummary.iDeviceChemistry", NULL, "%s", HU_FLAG_STATIC, stringid_conversion},
{"battery.mfr.date", 0, 0, "UPS.PowerSummary.iOEMInformation", NULL, "%s", HU_FLAG_STATIC, stringid_conversion},
- {"battery.voltage", 0, 0, "UPS.PowerSummary.Voltage", NULL, "%.2f", HU_FLAG_QUICK_POLL, NULL},
+ {"battery.voltage&...
2006 Dec 30
3
Newpoint 200897 UPS
...*/
/* HID2NUT lookup table */
/* --------------------------------------------------------------- */
static hid_info_t powercom_hid2nut[] = {
{ "ups.serial", 0, 0, "PowercomUPS.PowercomSerialNumber", NULL, "%s", HU_FLAG_OK, stringid_conversion },
{ "ups.mfr", 0, 0, "PowercomUPS.PowercomManufacturerName", NULL, "%s", HU_FLAG_OK, stringid_conversion },
{ "UPS.DesignCapacity", 0, 0, "PowercomUPS.PowercomDesignCapacity", NULL, "%.0f", HU_FLAG_OK, NULL },
{ "ups.mfr.date&q...
2018 Feb 04
5
[PATCH 0/3] OpenUPS updates
Hi,
I've been checking out NUT with an OpenUPS board over the last couple
of weekends, and have noticed that it doesn't seem to report sensible
values. This lead me to investigate usbhid-ups and delve into various
issues.
As mentioned in a github issue, one of the problems is with the report
descriptor - dumping this from the usbhid-ups debug output and picking
through it reveals that
2009 Oct 30
6
Powercom support and sponsorship
Alex and the list,
Alexey Morozov (Powercom sales manager for Russia) has contacted me to
propose demo units and information on the new Powercom protocol.
This is preferably for a Russian team member...
Anyone up?
cheers,
Arnaud
--
Linux / Unix Expert R&D - Eaton - http://www.eaton.com/mgeops
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer -
2009 Oct 30
6
Powercom support and sponsorship
Alex and the list,
Alexey Morozov (Powercom sales manager for Russia) has contacted me to
propose demo units and information on the new Powercom protocol.
This is preferably for a Russian team member...
Anyone up?
cheers,
Arnaud
--
Linux / Unix Expert R&D - Eaton - http://www.eaton.com/mgeops
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer -
2007 Dec 05
2
Crash when I start driver
It's been a while since I tried to use NUT, so I thought I would give it
another try. Big trouble.
The UPS is a Tripp-Lite AVR 550U. It has only a USB connector.
The computer is running Red Hat Enterprise Linux 4.
I just installed NUT version 2.2.0. I'm going through the steps in
the INSTALL document.
# cat ups.conf
[igor]
driver = usbhid-ups
port = auto