[Nut-upsdev] [Nut-upsuser] false alerts/shutdown
Arjen de Korte
nut+devel at de-korte.org
Mon Jun 18 19:41:07 UTC 2007
> driver.name: newhidups
[...]
> ups.status: OL CHRG
Euhm, there is no status 'CHRG' according to 'docs/new-drivers.txt'
folks. If you feel the need to create new status flags, at the very
least mention them in the section 'Status data' in this file. Unless you
document it somewhere, it's of no use to clients.
[soapbox]
Before doing so, ask yourself (and preferably, you fellow developers) if
it is really worth the effort to put it in 'ups.status'. Unless setting
this flag requires immediate action by clients, consider to export the
value in a variable that can be queried by clients at their discretion.
And that your not just duplicating something else.
[/soapbox]
Best regards, Arjen
More information about the Nut-upsdev
mailing list