# Network usage dashboard on Raspberry pi4

**URL:** <https://discourse.nodered.org/t/network-usage-dashboard-on-raspberry-pi4/23905>\
**Category:** Dashboard\
**Created:** [30 March 2020 16:43 UTC](https://discourse.nodered.org/t/network-usage-dashboard-on-raspberry-pi4/23905 "2020-03-30T16:43:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ezequiel\_barros](https://avatars.discourse-cdn.com/v4/letter/e/f475e1/32.png) [@ezequiel\_barros](https://discourse.nodered.org/u/ezequiel_barros)\
**Post date:** [30 March 2020 16:43 UTC](https://discourse.nodered.org/t/network-usage-dashboard-on-raspberry-pi4/23905/1 "2020-03-30T16:43:01Z")

</div>

Good afternoon friends  
I would like to make a graph of the network usage of the raspberry pi 4, can anyone tell me if this is possible?

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [30 March 2020 19:38 UTC](https://discourse.nodered.org/t/network-usage-dashboard-on-raspberry-pi4/23905/2 "2020-03-30T19:38:24Z")

</div>

Hi Zike,

I haven't used it myself, but I assume you could use the [node-red-contrib-device-stats](https://flows.nodered.org/node/node-red-contrib-device-stats) node:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/c/dce286c1e0414593d15e9b006125e5ffe300db1a.png)

Good luck with it!  
Bart

---

<div class="post-metadata">

**Author:** ![ezequiel\_barros](https://avatars.discourse-cdn.com/v4/letter/e/f475e1/32.png) [@ezequiel\_barros](https://discourse.nodered.org/u/ezequiel_barros)\
**Post date:** [30 March 2020 19:40 UTC](https://discourse.nodered.org/t/network-usage-dashboard-on-raspberry-pi4/23905/3 "2020-03-30T19:40:54Z")

</div>

Thanks friend. I will try this feature

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [30 March 2020 19:47 UTC](https://discourse.nodered.org/t/network-usage-dashboard-on-raspberry-pi4/23905/4 "2020-03-30T19:47:18Z")

</div>

By the way, I see that there is also the [node-red-contrib-linux-network-stats](https://flows.nodered.org/node/node-red-contrib-linux-network-stats) node which is specialized in network traffic, and is very recently updated (which means it is currently maintained well). So that might perhaps be another good choice ...

And if you want to visualize the network traffic in the Node-RED dashboard, you can use the dashboard's core " **Chart**" node.

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [30 March 2020 20:07 UTC](https://discourse.nodered.org/t/network-usage-dashboard-on-raspberry-pi4/23905/5 "2020-03-30T20:07:45Z")

</div>

There is no example on the readme page of the _ **node-red-contrib-linux-network-stats** _ node, but it is very easy to use. Every time that you inject an input message, it gives you 1 or 2 output messages (depending on what you have selected in the node's config screen):

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/1/712942c1e8caa42d859a27fe6e164a2a23db040d.png)

The _ **payload** _ contains the number of bytes (received or sent).  
The nice thing is that there are dedicated _ **topics** _, which means you inject these messages _directly_ into a Chart node to visualize them:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/9/0910f6a85c1503afb08d3e7c3eece8ef56cec98a.png)

```auto
[{"id":"452d86b1.6d3358","type":"network_stats","z":"8e6e39d1.f0fa58","name":"","receivedBytesSec":true,"transmittedBytesSec":true,"x":480,"y":580,"wires":[["799d2057.7af8d"]]},{"id":"4cc926c.66b23d8","type":"inject","z":"8e6e39d1.f0fa58","name":"","topic":"","payload":"","payloadType":"date","repeat":"1","crontab":"","once":false,"onceDelay":0.1,"x":290,"y":580,"wires":[["452d86b1.6d3358"]]},{"id":"799d2057.7af8d","type":"ui_chart","z":"8e6e39d1.f0fa58","name":"Network traffic","group":"22787703.a0e968","order":3,"width":0,"height":0,"label":"Network traffic","chartType":"line","legend":"true","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":"5","removeOlderPoints":"","removeOlderUnit":"60","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":700,"y":580,"wires":[[]]},{"id":"22787703.a0e968","type":"ui_group","z":"","name":"Web push notifications","tab":"80f0e178.bbf4a","disp":true,"width":"6","collapse":false},{"id":"80f0e178.bbf4a","type":"ui_tab","z":"","name":"Home","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

```

And then you have it live in your dashboard:

![demo_network](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/d/5d9d533af8b98d462499c21438684f8f4bb1b28f.gif)

Of course the look-and-feel isn't perfect yet, but then at least you have something to get started ...

---

<div class="post-metadata">

**Author:** ![ezequiel\_barros](https://avatars.discourse-cdn.com/v4/letter/e/f475e1/32.png) [@ezequiel\_barros](https://discourse.nodered.org/u/ezequiel_barros)\
**Post date:** [31 March 2020 00:46 UTC](https://discourse.nodered.org/t/network-usage-dashboard-on-raspberry-pi4/23905/6 "2020-03-31T00:46:15Z")

</div>

@BartButenaers  
thank you very much my noble friend. your tip solved exactly what i needed.  
big hug (virtual hehe)

---

<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:** [14 April 2020 00:46 UTC](https://discourse.nodered.org/t/network-usage-dashboard-on-raspberry-pi4/23905/7 "2020-04-14T00:46:15Z")

</div>

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