Requirement: node-red-dashboard. Obviously you will need a Raspberry Pi too!
This is a simple but very useful dashboard to control a Raspberry Pi (similar to Cayenne dashboard for RPi), it includes so far:
- CPU Temperature
- CPU Load %
- Free RAM %
- Disk Usage %
- Actions: Shutdown and Reboot buttons
Feel free to fork and and more stuff ;-) You can get some info and screenshots here
Thank you for this flow, it's great. However, on my Raspberry Pi 3 with 1GB RAM and running the free command, I think there is new column causing the "Memory" graph to be incorrect, I think.
total used free shared buff/cache available Mem: 945520 174840 514604 19052 256076 699772 Swap: 102396 0 102396
The Memory exec is currently running this command:
free | grep Mem | awk '{print 100*($4+$6+$7)/$2}'
The calculation is 100*(USED/TOTAL), where $2 is the "total" column and $4 = free, $6 = buff/cache, and $7 = available. Then the calculation is wrong, it's showing over 150% used.
I think it should be using $3 = used, $5 = shared, and $6 buff/cache.
free | grep Mem | awk '{print 100*($3+$5+$6)/$2}'
shows 47% used in the graph.
Also, see this link describing the latest free cmd changes.
https://andythemoron.com/blog/2017-04-23/Understanding-Linux-Memory-Usage
My "free" command version is 3.3.12