Code Monkey home page Code Monkey logo

Comments (8)

valpackett avatar valpackett commented on June 12, 2024 1

Well, do you have the upsc binary from NUT installed and accessible on $PATH?

from node-red-contrib-nut-ups.

moose75 avatar moose75 commented on June 12, 2024 1

@myfreeweb 1.0.2 works like a charm !
Thanks a lot for your support

from node-red-contrib-nut-ups.

moose75 avatar moose75 commented on June 12, 2024

Hi ! Same problem here on my Raspberry PI. The upsc binary is working well under shell and accessible on $PATH.
Here is the log trace :

Nov 21 18:08:49 raspberrypi Node-RED[598]: 21 Nov 18:08:49 - [red] Uncaught Exception:
Nov 21 18:08:49 raspberrypi Node-RED[598]: 21 Nov 18:08:49 - TypeError: Cannot create property 'low' on string '100'
Nov 21 18:08:49 raspberrypi Node-RED[598]:     at /home/pi/.node-red/node_modules/node-red-contrib-nut-ups/nut-ups/nut-ups.js:26:38
Nov 21 18:08:49 raspberrypi Node-RED[598]:     at Array.forEach (native)
Nov 21 18:08:49 raspberrypi Node-RED[598]:     at /home/pi/.node-red/node_modules/node-red-contrib-nut-ups/nut-ups/nut-ups.js:17:24
Nov 21 18:08:49 raspberrypi Node-RED[598]:     at ChildProcess.exithandler (child_process.js:189:7)
Nov 21 18:08:49 raspberrypi Node-RED[598]:     at emitTwo (events.js:106:13)
Nov 21 18:08:49 raspberrypi Node-RED[598]:     at ChildProcess.emit (events.js:191:7)
Nov 21 18:08:49 raspberrypi Node-RED[598]:     at maybeClose (internal/child_process.js:920:16)
Nov 21 18:08:49 raspberrypi Node-RED[598]:     at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
Nov 21 18:08:49 raspberrypi systemd[1]: nodered.service: Main process exited, code=exited, status=1/FAILURE

Any help is welcome !
Thanks

from node-red-contrib-nut-ups.

dagmenico avatar dagmenico commented on June 12, 2024

myfreeweb you're right. Node-RED is running on a Mac (the UPS is attached to a Qnap NAS) and I've discovered that upsc command isn't available.
I'll try to resolve installing upsc if I find an available version. Tnx

from node-red-contrib-nut-ups.

valpackett avatar valpackett commented on June 12, 2024

Yeah you'll need to run something like brew install nut (with Homebrew)

from node-red-contrib-nut-ups.

moose75 avatar moose75 commented on June 12, 2024

Hi myfreeweb !
Why did you close the issue ?
I've NUT installed and working on a Raspberry PI .. and got the same issue .. Node-RED crashes ..
Please see my post above ..
Thanks

from node-red-contrib-nut-ups.

valpackett avatar valpackett commented on June 12, 2024

@moose75 because this is not the same issue, you should've created a new one.

I think I know what's happening in your stack trace. You're using an old version . Well, the latest one on npm probably :D try git master instead. Actually, I'll release a version right now Try 1.0.2

from node-red-contrib-nut-ups.

moose75 avatar moose75 commented on June 12, 2024

ok @myfreeweb, sorry about not opening a new issue .. I was thinking it was the same problem.
I'll upgrade asap to 1.0.2 and let you know . Thx

from node-red-contrib-nut-ups.

Related Issues (7)

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.