valpackett / node-red-contrib-nut-ups Goto Github PK
View Code? Open in Web Editor NEWNode-RED node that gets UPS data via NUT (Network UPS Tools).
License: The Unlicense
Node-RED node that gets UPS data via NUT (Network UPS Tools).
License: The Unlicense
Would there be some other way of dealing with
msg : error
error
Error: Command failed: upsc [email protected]:3495
Error: Connection failure: No route to host
instead of it just popping up in the debug window?
Maybe a second output of the node?
I am getting the following error on my Node-Red Flow... I was sending a flow.start using an inject node.
TypeError: Cannot create property 'low' on string '100'
Here is my upsc output...
homeassistant:~/.node-red# upsc [email protected]
Init SSL without certificate database
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 20
battery.mfr.date: CPS
battery.runtime: 1680
battery.runtime.low: 300
battery.type: PbAcid
battery.voltage: 14.1
battery.voltage.nominal: 12
device.mfr: CPS
device.model: UPS OR700
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.synchronous: no
driver.version: 2.7.4
driver.version.data: CyberPower HID 0.4
driver.version.internal: 0.41
input.transfer.high: 140
input.transfer.low: 90
input.voltage: 123.0
input.voltage.nominal: 120
output.voltage: 123.0
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.load: 29
ups.mfr: CPS
ups.model: UPS OR700
ups.productid: 0601
ups.realpower.nominal: 400
ups.status: OL
ups.test.result: Done and passed
ups.timer.shutdown: -60
ups.timer.start: -60
ups.vendorid: 0764
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 20
Blows up on 2nd line. Trying to troubleshoot it myself but I am a javascript nub and your code looks kinda advanced =)
Tried the normal user:pass@IP and that didnt seem to work. It keeps coming up with unknown UPS. Not sure if I am doing something wrong...
I'm getting the following error after I trigger the nut-ups node with an injection. After this error Node-RED crashes and I need to restart it.
Error: spawn upsc ENOENT
at _errnoException (util.js:1031:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:201:19)
at onErrorNT (internal/child_process.js:389:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickDomainCallback (internal/process/next_tick.js:218:9)
Getting this eror all the time. What do I do wrong?
Hi! I've installed 1.2.0 as I need to add credentials to connect with NUTs, but when editing the properties in Node-Red, the changes are not saved at all. Neither the port, username or password changes are kept.
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.