networkupstools/nut — pull request #63 by zykh (2013-11-06 18:34:00+00:00)
Title: New driver 'blzr'

Provide new driver 'blzr', based on blazer, usbhid-ups and voltronic.

Keep al the functionalities and protocols of blazer and voltronic with these differences (signaled in the manual):

- against blazer:

- 'test.battery.start' instant command
- 'ondelay' ups.conf option

now they both expect seconds while before they wanted a value expressed in minutes.

- the order by which the protocols are tested if no one has been chosen
- now it is: voltronic, mustek, megatec-old, megatec, mecer and zinto
- before it was: megatec, mustek, megatec-old and zinto

- against voltronic drivers:

- ups.conf options changed:
- 'ondelay': it wanted minutes, now it expects seconds, plus now it defaults to 3 minutes while before it had a default value of 0
- 'battnumb' renamed to 'battery_number'

- ups.conf options moved to settable vars and therefore no longer supported:
- 'battpacks' -> battery.packs
- 'battlow' -> battery.voltage.low
- 'auto_reboot' -> ups.start.auto
- 'battery_protection' -> battery.protection
- 'energy_saving' -> battery.energysave
- 'cold_start' -> ups.start.battery
- 'outlet_control' -> outlet.0.switchable
- 'max_eco_volt' -> input.transfer.high
- 'min_eco_volt' -> input.transfer.low
- 'max_eco_freq' -> input.frequency.high
- 'min_eco_freq' -> input.frequency.low
- 'outlet{1,2,3,4}_delay' -> outlet.{1,2,3,4}.delay.shutdown
- 'batt_type' -> battery.type

Add new subdriver 'Mecer' (i.e. megatec-alike but with expected replies of '(ACK', in case of success, and '(NAK' in case the command/query is rejected).

Revert voltronic merge, integrated as a subdriver.