# Node-red on raspberryPi zero W

**URL:** <https://discourse.nodered.org/t/node-red-on-raspberrypi-zero-w/50874>\
**Category:** General\
**Created:** [10 September 2021 21:46 UTC](https://discourse.nodered.org/t/node-red-on-raspberrypi-zero-w/50874 "2021-09-10T21:46:39Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![alpha815](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alpha815/32/47825_2.png) [@alpha815](https://discourse.nodered.org/u/alpha815)\
**Post date:** [10 September 2021 21:46 UTC](https://discourse.nodered.org/t/node-red-on-raspberrypi-zero-w/50874/1 "2021-09-10T21:46:40Z")

</div>

Last week i completed weather monitoring project using esp-32 and some sensors to monitor temperature, humidity, barometric pressure, CO2, VOC. I am planning to add few more to monitor Luminosity and UV too. Data is feed to Influx DB which is running on my Laptop. for visualization I am using grafana and also node red is running to feed data into Influx DB. it works great but problem is i can keep my laptop running 24h for obvious reasons. Now i am planning to move everything to respberryPi to store data to InfluxDb and node red and Grafana too. I am preferring RPi Zero W due to it's low price mainly but also it's small form factor and low power consumption too as compared to RPi 4. and also it is easy to get.

So my question are:

is anybody already running setup like this on RPi Zero w.?

and is RPi Zero W capable of running all these (grafana, influxDb and Node Red).

---

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [10 September 2021 22:42 UTC](https://discourse.nodered.org/t/node-red-on-raspberrypi-zero-w/50874/2 "2021-09-10T22:42:28Z")

</div>

Are you also wanting to run the browser on the same RPi Zero? I would think that it should be able to handle the backend stuff just fine (that said, I run an RPi3... but very heavily loaded with processes... no browser... and it can get a little sloggy), but I would recommend some other device to run the HMI/GUI. Even a tablet should be fine for that.

---

<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:** [11 September 2021 00:48 UTC](https://discourse.nodered.org/t/node-red-on-raspberrypi-zero-w/50874/3 "2021-09-11T00:48:13Z")

</div>

I run Node-Red and some other services on a Pi Zero W. Node-Red is a bit slow starting up and deploying changes but workable.  
Influx and Grafana were too much for it though, it kept freezing up.

---

<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:** [11 September 2021 08:19 UTC](https://discourse.nodered.org/t/node-red-on-raspberrypi-zero-w/50874/4 "2021-09-11T08:19:07Z")

</div>

As others have suggested, running Influx and Grafana in a Zero is probably not going to work too well.

On any Pi, if you want to use Influx, then I recommend adding an external USB disc for storing the data. Running Influx to an SD card is probably not a great idea.

I started off using a Pi for exactly the task you described, but then moved it to an old laptop that was surplus to requirements. Running Ubuntu Server, it is easily able to do what I need and can be left on permanently with the lid closed.

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [11 September 2021 12:53 UTC](https://discourse.nodered.org/t/node-red-on-raspberrypi-zero-w/50874/5 "2021-09-11T12:53:59Z")

</div>

> [@Colin](#):
>
> As others have suggested, running Influx and Grafana in a Zero is probably not going to work too well.

I can confirm this, I tried it.

---

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [11 September 2021 14:26 UTC](https://discourse.nodered.org/t/node-red-on-raspberrypi-zero-w/50874/6 "2021-09-11T14:26:21Z")

</div>

> [@Colin](#):
>
> As others have suggested, running Influx and Grafana in a Zero is probably not going to work too well.

I have done this but, navigating via my main PC browser to the Zero IP (piIP:3000), not to bad.

---

<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:** [11 September 2021 15:03 UTC](https://discourse.nodered.org/t/node-red-on-raspberrypi-zero-w/50874/7 "2021-09-11T15:03:44Z")

</div>

> [@ScheepersJohan](#):
>
> I have done this

What rate and how many channels were you writing to influx? Did you have an external disc or was influx running on the sd card? Also, just to confirm, that was on a Pi Zero?

---

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [11 September 2021 20:12 UTC](https://discourse.nodered.org/t/node-red-on-raspberrypi-zero-w/50874/8 "2021-09-11T20:12:10Z")

</div>

Zero W, very light flow, 4 GIOP, 2 sensors, MQTT. Grafana and Infuxdb,

---

<div class="post-metadata">

**Author:** ![alpha815](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alpha815/32/47825_2.png) [@alpha815](https://discourse.nodered.org/u/alpha815)\
**Post date:** [11 September 2021 23:13 UTC](https://discourse.nodered.org/t/node-red-on-raspberrypi-zero-w/50874/9 "2021-09-11T23:13:13Z")

</div>

yes i am going for rpi 4 2gb. i think it will handle stuff like this pretty well.

---

<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:** [12 September 2021 08:44 UTC](https://discourse.nodered.org/t/node-red-on-raspberrypi-zero-w/50874/10 "2021-09-12T08:44:22Z")

</div>

What rate were you writing to influx?

---

<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:** [12 September 2021 08:44 UTC](https://discourse.nodered.org/t/node-red-on-raspberrypi-zero-w/50874/11 "2021-09-12T08:44:59Z")

</div>

> [@alpha815](#):
>
> i am going for rpi 4 2gb. i think it will handle stuff like this pretty well.

Are you going to use an external disc?

---

<div class="post-metadata">

**Author:** ![alpha815](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alpha815/32/47825_2.png) [@alpha815](https://discourse.nodered.org/u/alpha815)\
**Post date:** [12 September 2021 21:03 UTC](https://discourse.nodered.org/t/node-red-on-raspberrypi-zero-w/50874/12 "2021-09-12T21:03:47Z")

</div>

I think using USB should be enough for me. Is it bad writing data to SD card?

---

<div class="post-metadata">

**Author:** ![alpha815](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alpha815/32/47825_2.png) [@alpha815](https://discourse.nodered.org/u/alpha815)\
**Post date:** [12 September 2021 21:04 UTC](https://discourse.nodered.org/t/node-red-on-raspberrypi-zero-w/50874/13 "2021-09-12T21:04:44Z")

</div>

Hi colin sorry for late reply. I am sending data to my pc after 10sec delay.

---

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [13 September 2021 05:16 UTC](https://discourse.nodered.org/t/node-red-on-raspberrypi-zero-w/50874/14 "2021-09-13T05:16:40Z")

</div>

Slow - 2min

---

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [13 September 2021 05:18 UTC](https://discourse.nodered.org/t/node-red-on-raspberrypi-zero-w/50874/15 "2021-09-13T05:18:22Z")

</div>

SD are not as reliable as a SSD - SD don't like sudden power failures (that is my experience)

---

<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:** [13 September 2021 14:51 UTC](https://discourse.nodered.org/t/node-red-on-raspberrypi-zero-w/50874/16 "2021-09-13T14:51:14Z")

</div>

> [@ScheepersJohan](#):
>
> Slow - 2min

Right, that _is_ slow. Probably ok with an SD card then. I have a couple of dozen items going to the database, some once a second, so a couple of orders of magnitude more data.

---

<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:** [13 September 2021 14:54 UTC](https://discourse.nodered.org/t/node-red-on-raspberrypi-zero-w/50874/17 "2021-09-13T14:54:00Z")

</div>

> [@alpha815](#):
>
> I am sending data to my pc after 10sec delay.

Seven channels every 10 seconds is not a lot, so you may well be ok with an SD card. Wherever you save it, if the historical data are important then make sure it is backed up regularly.

---

<div class="post-metadata">

**Author:** ![alpha815](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alpha815/32/47825_2.png) [@alpha815](https://discourse.nodered.org/u/alpha815)\
**Post date:** [14 September 2021 21:37 UTC](https://discourse.nodered.org/t/node-red-on-raspberrypi-zero-w/50874/18 "2021-09-14T21:37:22Z")

</div>

if anybody really looking for RPi Zero sollution here is video you might intrested.  
[Cheap MQTT Broker on Raspberry Zero W / DietPi / MQTT Message Logger SQlite / PHPliteAdmin](https://www.youtube.com/watch?v=bpg6RSHS4Zc&t=277s&ab_channel=AndreasSpiess)

---

<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:** [13 November 2021 21:38 UTC](https://discourse.nodered.org/t/node-red-on-raspberrypi-zero-w/50874/19 "2021-11-13T21:38:11Z")

</div>

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