USB Sensors library ?

It is not so easy to see the wood for the trees with this one, but looking carefully through the output you will see
fatal error: libudev.h: No such file or directory
It is always worth looking at issues with a node if you have problems. So going to the nodes github repostory the first thing I notice is that is years since it was updated which is never a good sign. Then clicking on the Issues tab and looking at the open issues the bottom one, from 2016 looks relevant.

1 Like

If you look, that node hasn't been updated in over 4 years

1 Like

I found it here, but cant install it

without the usb utilities can i connect usb sensors?
Is is there any newer usb utilities ?

Go to the flow's tab and enter USB and see what you find. I would look at when they were last updated AND go to the github page and look at any issues that are shown.

1 Like

As Colin pointed out If you just actually look at the error you see
fatal error: libudev.h: No such file or directory
so you just need to add it

sudo apt install libudev-dev 

then retry the install - after a bunch of warnings you get something like

make: Leaving directory '/home/pi/.node-red/node_modules/usb/build'
+ node-red-contrib-usb@1.0.0
added 3 packages from 12 contributors and audited 729 packages in 44.507s

and after restarting Node-RED - this is the palette
image

Whether it's actually useful for you or not I don't know...

1 Like

Ha! That is the first issue on the github page for the node https://github.com/rajeshsola/node-red-addons/issues/1
added january 2016

1 Like

dceejay, it does not work out

Are you saying the install doesn't work or that the install worked but the node doesn't work?
Did you read the issues on the github page for the node?

1 Like

The install doesn't work, it says, that can't find 30 packets. The terminal point out me the links where to find them, but they are too many (over 30), if i start to looking for them one by one. Is there easer way to install them?

Post the log of what happens when you try to install.

1 Like

Have you read thru the issues with this node on the gitub page?
if so, have you tried the solutions?
if not, I suggest you go read thru the issues.

1 Like

so give us a clue what it thinks are missing... sometimes they are just warnings and / or optional.
All I did was use our script to install in the first place - add that extra library - then install the node and it worked... so not sure why it's being such a pain for you.

1 Like

I redo all steps, and fix the problems. Thank you all very much!

I came across this project (https://ncd.io/node-red-wireless-sensors/)
and when i try to install the library ā€œnpm i ncd-red-wireless node-red-dashboardā€œ, I received this error

updated 3 packages in 99.581s

31 packages are looking for funding
run npm fund for details

fixed 4 of 14 vulnerabilities in 4387 scanned packages
10 vulnerabilities required manual review and could not be updated

Some advice?

None of those is an error. The install succeeded.

1 Like

Yes it is, but it needed to reboot.
Thank you all very much!

How can i connect and set up xbee nodes like xstick to RPI?

Hi, i tried to install node-red to win 7 like it is shown here (https://nodered.org/docs/getting-started/windows), but after i install node js, and check in cmd the version i've got (node:bad option: -- version;). When i try to install Node-RED i've got

(npm ERR! arg Argument starts with non-ascii dash, this is probably invalid: [ '-
unsafe-perm', 'node-red' ]
npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name "-unsafe-perm": Tags may not have any characters that
encodeURIComponent encodes.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Martin Pandurski\AppData\Roaming\npm-cache_logs\2020-04-1
9T15_12_27_011Z-debug.log)

Any help?

In general it's better to start a new topic if you have a new question to ask - as this is nothing to do with the original USB question you had.

What version of node.js are you using?

My guess is you've copy/pasted the command from the docs and somehow an invalid character has crept in.

Try typing the command in as written.

It has common things with this topic, because after this drawback i will try to connect the usb sensor to node-red, and my guess is that i will need some libraries. Also i still looking for way to connect and set up xbee usb nodes like xstick to RPI.

node.js LTS Version: 12.16.2. I type it manualy, but it is the same.