# Seeed’s Openwrt IO’s not working with Node-red

**URL:** <https://discourse.nodered.org/t/seeed-s-openwrt-io-s-not-working-with-node-red/85700>\
**Category:** Hardware\
**Tags:** function-node\
**Created:** [20 February 2024 13:37 UTC](https://discourse.nodered.org/t/seeed-s-openwrt-io-s-not-working-with-node-red/85700 "2024-02-20T13:37:55Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![cloud](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@cloud](https://discourse.nodered.org/u/cloud)\
**Post date:** [20 February 2024 13:37 UTC](https://discourse.nodered.org/t/seeed-s-openwrt-io-s-not-working-with-node-red/85700/1 "2024-02-20T13:37:55Z")

</div>

We just installed seed’s openwrt img “openwrt-bcm27xx-bcm2711-rpi-4-squashfs-sysupgrade.img.gz” ( OpenWrt 22.03.3, r20028-43d71ad93e) on Raspberry 4b - 4Gb. When we tried to use gpio and serial pins we got this error.

 ![Screenshot 2024-02-19 131006](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/7/a7dd56201c79a7d3040c1239b23f747dbe6e3d90.png)  
We tried to install this package raspi-io with npm (because it can only install with npm I can not find any other resource) but it can not be installed, below that you can see the error we got.

```auto
root@OpenWrt:~# npm install raspi-io
npm notice
npm notice New major version of npm available! 8.19.3 -> 10.4.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.4.0
npm notice Run npm install -g npm@10.4.0 to update!
npm notice
npm ERR! code 127
npm ERR! path /root/node_modules/raspi-soft-pwm
npm ERR! command failed
npm ERR! command sh -c -- sh ./script/pigpio.sh
npm ERR! pigpio doesn't appear to be installed, installing now. You may be asked for your password.
npm ERR! ./script/pigpio.sh: line 37: sudo: not found
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2024-02-19T10_10_46_288Z-debug-0.log

```

We also tried to install dependencies by hand but it also was not possible because of some errors.  
Note: We used GPIO’s and serial pins with only python rpi.gpio package but we can not find a way to work it with node-red. Does anyone know how to solve these problems?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [20 February 2024 13:40 UTC](https://discourse.nodered.org/t/seeed-s-openwrt-io-s-not-working-with-node-red/85700/2 "2024-02-20T13:40:19Z")

</div>

Looks like that OS does not include `sudo` which is a requirement and assumption for a lot of Linux work.

---

<div class="post-metadata">

**Author:** ![cloud](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@cloud](https://discourse.nodered.org/u/cloud)\
**Post date:** [20 February 2024 13:41 UTC](https://discourse.nodered.org/t/seeed-s-openwrt-io-s-not-working-with-node-red/85700/3 "2024-02-20T13:41:52Z")

</div>

Yes, we can install this but can not apt-get. Because of that we approached problem via different ways like embed dependicies in img and test, looked every dependicy and tried to install these, look alternative packages like gpio4 etc. but only rpi.gpio worked. We just want to find a way to work any packages on node-red to control IOs on device.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [20 February 2024 13:48 UTC](https://discourse.nodered.org/t/seeed-s-openwrt-io-s-not-working-with-node-red/85700/4 "2024-02-20T13:48:07Z")

</div>

Sorry, but I think you will need to raise this in an OpenWRT forum. Clearly some OS dependencies missing that are needed.

---

<div class="post-metadata">

**Author:** ![cloud](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@cloud](https://discourse.nodered.org/u/cloud)\
**Post date:** [20 February 2024 13:49 UTC](https://discourse.nodered.org/t/seeed-s-openwrt-io-s-not-working-with-node-red/85700/5 "2024-02-20T13:49:27Z")

</div>

I just came from there

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [20 February 2024 14:12 UTC](https://discourse.nodered.org/t/seeed-s-openwrt-io-s-not-working-with-node-red/85700/6 "2024-02-20T14:12:50Z")

</div>

Why are you using openWRT rather than the official Raspberry Pi operating system?

---

<div class="post-metadata">

**Author:** ![cloud](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@cloud](https://discourse.nodered.org/u/cloud)\
**Post date:** [20 February 2024 14:22 UTC](https://discourse.nodered.org/t/seeed-s-openwrt-io-s-not-working-with-node-red/85700/7 "2024-02-20T14:22:37Z")

</div>

Because we are using it as modem and we want to have a UI for configration modem settings exactly like openwrt.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [20 February 2024 14:28 UTC](https://discourse.nodered.org/t/seeed-s-openwrt-io-s-not-working-with-node-red/85700/8 "2024-02-20T14:28:27Z")

</div>

A possible work-around might be a second Pi with RPiOS and Node-red for the gpio stuff and mqtt to pass data to the openwrt Pi?

---

<div class="post-metadata">

**Author:** ![cloud](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@cloud](https://discourse.nodered.org/u/cloud)\
**Post date:** [20 February 2024 14:31 UTC](https://discourse.nodered.org/t/seeed-s-openwrt-io-s-not-working-with-node-red/85700/9 "2024-02-20T14:31:06Z")

</div>

Actually the problem is node-red's raspi-io package I can not install it, is there any change to use a local python package as node-red's serial package

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [20 February 2024 14:50 UTC](https://discourse.nodered.org/t/seeed-s-openwrt-io-s-not-working-with-node-red/85700/10 "2024-02-20T14:50:29Z")

</div>

I don't use OpenWRT so my thoughts might be worthless. However I suspect that the problem is really that OpenWRT, not being designed specifically for the Raspberry Pi, does not have the GPIO access built in.

> [@cloud](#):
>
> [can I] use a local python package [instead of] node-red's serial package?

I am sure you can.

I really think an OpenWRT forum is more likely to find you the answers.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 April 2024 14:50 UTC](https://discourse.nodered.org/t/seeed-s-openwrt-io-s-not-working-with-node-red/85700/11 "2024-04-20T14:50:30Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
