Code Monkey home page Code Monkey logo

node-red-contrib-nut-ups's Introduction

npm version npm downloads Unlicense

node-red-contrib-nut-ups

Node-RED node that gets UPS data via NUT (Network UPS Tools).

Installation

Just like any other Node-RED node... search node-red-contrib-nut-ups in Manage pallete or install manually while in the data directory, or in the same directory as Node-RED itself:

$ npm i node-red-contrib-nut-ups

Restart Node-RED and use the node!

Contributing

Please feel free to submit pull requests!

By participating in this project you agree to follow the Contributor Code of Conduct.

Thanks

Network UPS Tools NUT project

Node-NUT a Node.js module that implements a NUT client

License

This is free and unencumbered software released into the public domain.
For more information, please refer to the UNLICENSE file or unlicense.org.

node-red-contrib-nut-ups's People

Contributors

dependabot[bot] avatar emes avatar malachib avatar natcl avatar valpackett avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

gadgetuk natcl emes

node-red-contrib-nut-ups's Issues

TypeError

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

Error when no route to host

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?

Trouble with this data:

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 =)

Crash after injection

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)

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.