Comments (8)
Well, do you have the upsc
binary from NUT installed and accessible on $PATH
?
from node-red-contrib-nut-ups.
@myfreeweb 1.0.2 works like a charm !
Thanks a lot for your support
from node-red-contrib-nut-ups.
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.
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.
Yeah you'll need to run something like brew install nut
(with Homebrew)
from node-red-contrib-nut-ups.
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.
@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.
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)
- Trouble with this data: HOT 1
- Node-Red not saving property details HOT 2
- TypeError HOT 5
- Error when no route to host HOT 1
- Error: spawn upsc ENOENT HOT 4
- How to access if ups uses password access? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-red-contrib-nut-ups.