[Nut-upsuser] Trouble Configuring NUT with Gamatronic USB

Peter Selinger selinger at mathstat.dal.ca
Sat Jun 17 17:00:32 UTC 2006


Eli Wapniarski wrote:
> 
> Firstly forget about my link comment. I misread something.
> 
> I get the same results if I ups.conf contains
> 
> [Gamatronic_D-Compact]
>     driver= newhidups
>     port = auto
>     desc = "Gamatronic D-Compact"
> 
> running
> 
> newhidups -DD -u root -x vendorid=0925 -a Gamatronic_D-Compact
> 
> produces
> 
> Network UPS Tools: New USB/HID UPS driver 0.28 (2.1.0)
> 
> Error: UPS [Gamatronic_D-Compact] is for driver , but I'm newhidups!

Please put a space between "driver" and "=". I don't know why this
matters, but apparently it does. NUT thinks that your driver is called
"" (the empty string), hence the weird error messages. 

NUT developers: perhaps parseconf.c should be changed to be more
flexible regarding white space, or the fact that the "=" must be
surrounded by spaces should be documented? I am surprised this error
is not more common. Or did I miss something? 

-- Peter




More information about the Nut-upsuser mailing list