Giter VIP home page Giter VIP logo

openups2's People

Contributors

ashibod avatar mini-box avatar nicupavel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

neubatengog

openups2's Issues

NUC-UPS support for input and output parameters

The NUC-UPS works with this NUT driver (see discussion in #1) in that it can work as a UPS and shutdown as needed. It does not report input and output parameters as it does for the other models and this would be very helpful. Examining the source code for the new https://github.com/mini-box/ups code, it looks like the NUC-UPS (d007) would use the same multiplying coefficients as the OpenUPS2 (d005). I added code for this in the driver, following the lines for the d005, but alas it did not report on these input and output parameters like ti does for the OpenUPS2 (d005). It seems like this would not need a big change.

Is it possible to add support for the d007 in this NUT driver please? It seems it just needs a few more lines to support the d007 - and whatever I missed to ensure these are reported by upsc.

Any comments or suggestions very welcome. I am happy to add my modified version of the driver here too for feedback on.
Thanks, Adam

Current output from the NUC-UPS:

$ upsc ups
battery.capacity: 100
battery.charge: 99
battery.charge.low: 60
battery.charge.warning: 20
battery.current: 0.000
battery.mfr.date: MINI-BOX.COM
battery.runtime: 2808
battery.runtime.low: 900
battery.type: 
battery.voltage: 0.00
device.mfr: MINI-BOX.COM
device.model: DCDC-NUC UPS
device.serial: 
device.type: ups
driver.flag.ignorelb: enabled
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.productid: d007
driver.parameter.synchronous: no
driver.parameter.vendorid: 04d8
driver.version: 2.7.4-695-gf15947f0
driver.version.data: openUPS HID 0.4
driver.version.internal: 0.43
ups.mfr: MINI-BOX.COM
ups.model: DCDC-NUC UPS
ups.productid: d007
ups.serial: 
ups.status: OL
ups.vendorid: 04d8

NUC-UPS

If I change the productid to 0007 is this going to work with the NUC-UPS?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.