mini-box / openups2 Goto Github PK
View Code? Open in Web Editor NEWMiniBox OpenUPS2
MiniBox OpenUPS2
If I change the productid to 0007
is this going to work with the NUC-UPS?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.