Dashboard for Windows Devices
This is a flow for giving various perfomance metrics in a PC with windows. I will provide also the same for Linux distros.
[{"id":"436cc5595b20717b","type":"tab","label":"Laptop Monitoring","disabled":false,"info":""},{"id":"a7aaf8cbdf8c5703","type":"ui_gauge","z":"436cc5595b20717b","name":"CPU Usage","group":"baa4830e.d51ff","order":2,"width":0,"height":0,"gtype":"gage","title":"CPU Usage","label":"","format":"{{value}}%","min":"0","max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","diff":false,"className":"","x":570,"y":140,"wires":[]},{"id":"c7cd1d90ef2e64df","type":"exec","z":"436cc5595b20717b","command":"powershell.exe -Command \"Get-WmiObject -Class Win32_Processor | Select-Object -ExpandProperty LoadPercentage\"","addpay":"","append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"Get CPU Usage","x":350,"y":140,"wires":[["a7aaf8cbdf8c5703","51fa857498b590d5"],[],[]]},{"id":"a4cc654b8889f050","type":"ui_chart","z":"436cc5595b20717b","name":"Memory Usage","group":"a9912d64.97094","order":1,"width":0,"height":0,"label":"Memory Usage","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"0","ymax":"8","removeOlder":"1","removeOlderPoints":"","removeOlderUnit":"60","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"className":"","x":720,"y":260,"wires":[[]]},{"id":"4932c98edb3fcb19","type":"exec","z":"436cc5595b20717b","command":"powershell \"Get-WmiObject Win32_OperatingSystem | %{\"{0}\" -f $_.totalvisiblememorysize}\"","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"Get Memory Usage","x":370,"y":260,"wires":[["a4cc654b8889f050"],[],[]]},{"id":"e3aa7030868bd7c5","type":"ui_text","z":"436cc5595b20717b","group":"6d02446b.841c64","order":4,"width":0,"height":0,"name":"CPU Temp","label":"CPU Temperature","format":"{{msg.payload}}°C","layout":"col-center","className":"","style":false,"font":"","fontSize":"","color":"#000000","x":570,"y":380,"wires":[]},{"id":"a774caa50c3de164","type":"exec","z":"436cc5595b20717b","command":"for /f \"skip=1 delims=\" %i in ('wmic /namespace:\\\\root\\wmi PATH MSAcpi_ThermalZoneTemperature get CurrentTemperature /value') do @for /f \"delims=\" %j in (\"%i\") do @set /a \"temp=(%j-2732)/10\"","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"Get CPU Temp","x":360,"y":380,"wires":[["e3aa7030868bd7c5","ac589ebbf4b3b946"],[],[]]},{"id":"f26cdd11a2bdd3c2","type":"ui_gauge","z":"436cc5595b20717b","name":"Network Usage","group":"a9912d64.97094","order":3,"width":0,"height":0,"gtype":"gage","title":"Network Usage","label":"","format":"{{value}}%","min":"0","max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","diff":false,"className":"","x":640,"y":480,"wires":[]},{"id":"adfa9d2977167ab0","type":"exec","z":"436cc5595b20717b","command":"typeperf \"\\Network Interface(Broadcom*)\\Bytes Total/sec\"","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"Get Network Usage","x":370,"y":500,"wires":[["f26cdd11a2bdd3c2"],[],[]]},{"id":"0dd714620dbf2131","type":"inject","z":"436cc5595b20717b","name":"Inject Data","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"10","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":150,"y":260,"wires":[["4932c98edb3fcb19","c7cd1d90ef2e64df"]]},{"id":"7bf64e3e7ab8983d","type":"inject","z":"436cc5595b20717b","name":"Inject Data","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"10","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":150,"y":500,"wires":[["adfa9d2977167ab0","a774caa50c3de164"]]},{"id":"ac589ebbf4b3b946","type":"ui_chart","z":"436cc5595b20717b","name":"","group":"6d02446b.841c64","order":3,"width":0,"height":0,"label":"CPU Temp in C History","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"0","ymax":"100","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"className":"","x":610,"y":320,"wires":[[]]},{"id":"51fa857498b590d5","type":"ui_chart","z":"436cc5595b20717b","name":"","group":"baa4830e.d51ff","order":1,"width":0,"height":0,"label":"CPU Usage History","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"0","ymax":"100","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"className":"","x":590,"y":80,"wires":[[]]},{"id":"baa4830e.d51ff","type":"ui_group","name":"CPU Utilitization","tab":"262952a9.f1dcbe","order":2,"disp":true,"width":"8","collapse":false,"className":""},{"id":"a9912d64.97094","type":"ui_group","name":"System Information","tab":"e6013c6f.69328","order":2,"disp":true,"width":"6"},{"id":"6d02446b.841c64","type":"ui_group","name":"CPU Temperature Metrics","tab":"262952a9.f1dcbe","order":1,"disp":true,"width":"8","collapse":false,"className":""},{"id":"262952a9.f1dcbe","type":"ui_tab","name":"CPU","icon":"dashboard","order":9,"disabled":false,"hidden":false},{"id":"e6013c6f.69328","type":"ui_tab","name":"System","icon":"computer"}]