# USB Sensors library ?

**URL:** <https://discourse.nodered.org/t/usb-sensors-library/24952>\
**Category:** Hardware\
**Created:** [16 April 2020 15:04 UTC](https://discourse.nodered.org/t/usb-sensors-library/24952 "2020-04-16T15:04:12Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [17 April 2020 16:52 UTC](https://discourse.nodered.org/t/usb-sensors-library/24952/21 "2020-04-17T16:52:47Z")

</div>

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](https://github.com/rajeshsola/node-red-addons) 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.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [17 April 2020 17:44 UTC](https://discourse.nodered.org/t/usb-sensors-library/24952/22 "2020-04-17T17:44:20Z")

</div>

> [@Martin10](#):
>
> node-red-contrib-usb

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

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [17 April 2020 17:50 UTC](https://discourse.nodered.org/t/usb-sensors-library/24952/23 "2020-04-17T17:50:35Z")

</div>

I found it here, but cant install it

> **[node-red-contrib-usb](https://flows.nodered.org/node/node-red-contrib-usb)**
>
> A set of node-red nodes used as usb utilities

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

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [17 April 2020 18:19 UTC](https://discourse.nodered.org/t/usb-sensors-library/24952/24 "2020-04-17T18:19:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [17 April 2020 18:34 UTC](https://discourse.nodered.org/t/usb-sensors-library/24952/25 "2020-04-17T18:34:04Z")

</div>

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

```auto
sudo apt install libudev-dev 

```

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

```auto
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](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/9/99aebefc61fdaf0fd7a9f1b4a9cf3ecc91e308a5.png)

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

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [17 April 2020 19:03 UTC](https://discourse.nodered.org/t/usb-sensors-library/24952/26 "2020-04-17T19:03:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [17 April 2020 19:16 UTC](https://discourse.nodered.org/t/usb-sensors-library/24952/27 "2020-04-17T19:16:19Z")

</div>

dceejay, it does not work out

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [17 April 2020 19:18 UTC](https://discourse.nodered.org/t/usb-sensors-library/24952/28 "2020-04-17T19:18:21Z")

</div>

> [@Martin10](#):
>
> 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?

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [18 April 2020 09:59 UTC](https://discourse.nodered.org/t/usb-sensors-library/24952/29 "2020-04-18T09:59:37Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 April 2020 10:11 UTC](https://discourse.nodered.org/t/usb-sensors-library/24952/30 "2020-04-18T10:11:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [18 April 2020 10:11 UTC](https://discourse.nodered.org/t/usb-sensors-library/24952/31 "2020-04-18T10:11:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [18 April 2020 12:16 UTC](https://discourse.nodered.org/t/usb-sensors-library/24952/32 "2020-04-18T12:16:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [18 April 2020 15:27 UTC](https://discourse.nodered.org/t/usb-sensors-library/24952/33 "2020-04-18T15:27:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [18 April 2020 15:28 UTC](https://discourse.nodered.org/t/usb-sensors-library/24952/34 "2020-04-18T15:28:36Z")

</div>

I came across this project ([https://ncd.io/node-red-wireless-sensors/](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?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [18 April 2020 15:36 UTC](https://discourse.nodered.org/t/usb-sensors-library/24952/35 "2020-04-18T15:36:26Z")

</div>

> [@Martin10](#):
>
> 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

None of those is an error. The install succeeded.

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [18 April 2020 16:01 UTC](https://discourse.nodered.org/t/usb-sensors-library/24952/36 "2020-04-18T16:01:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [18 April 2020 16:33 UTC](https://discourse.nodered.org/t/usb-sensors-library/24952/37 "2020-04-18T16:33:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [19 April 2020 15:17 UTC](https://discourse.nodered.org/t/usb-sensors-library/24952/38 "2020-04-19T15:17:42Z")

</div>

Hi, i tried to install node-red to win 7 like it is shown here ([https://nodered.org/docs/getting-started/windows](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?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [19 April 2020 15:33 UTC](https://discourse.nodered.org/t/usb-sensors-library/24952/39 "2020-04-19T15:33:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)\
**Post date:** [19 April 2020 15:52 UTC](https://discourse.nodered.org/t/usb-sensors-library/24952/40 "2020-04-19T15:52:03Z")

</div>

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.

[Previous page](https://discourse.nodered.org/t/usb-sensors-library/24952.md?page=1)

[Next page](https://discourse.nodered.org/t/usb-sensors-library/24952.md?page=3)
