NR Flow to Extract Windows Hardware Information
This is a NR flow developed to fetch Windows Machine Information such as CPU Core Temperature by integrating Open Hardware Monitor software and python WMI library.
Requirement :
- Windows 10 Machine
- Python 3.x and python WMI library
- Open Hardware Monitor Software
Step :
- Install Python 3.x - https://www.python.org/downloads/
- Install and Execute Open Hardware Monitor Software - https://openhardwaremonitor.org/
- Deploy the NR flow. (The python code is in cputempwmiophw.py comment section).Please copy the code and install in your directory that later will be executed by exec node.
- To run this flows and get the required HW info, Open Hardware Monitor Software need to be on.
- To fetch more HW information, please change the python code and find the suitable Sensor Type as described in this interface doc http://openhardwaremonitor.org/wordpress/wp-content/uploads/2011/04/OpenHardwareMonitor-WMI.pdf
Next Project
- How to convert this whole flow and make them as one single palette. Anyone has idea how to do this,please share. TQ
[{"id":"f729dd3e.9a8d88","type":"tab","label":"dev_testbedv2","disabled":false,"info":""},{"id":"5b42dff3.67eda","type":"inject","z":"f729dd3e.9a8d88","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":120,"y":100,"wires":[["e62a8a10.3d7108"]]},{"id":"e62a8a10.3d7108","type":"exec","z":"f729dd3e.9a8d88","command":"py C:\\Users\\pcName\\Desktop\\cputempwmiophw.py","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":390,"y":100,"wires":[[],["87e8ed3c.28ca5"],[]]},{"id":"87e8ed3c.28ca5","type":"debug","z":"f729dd3e.9a8d88","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":690,"y":100,"wires":[]},{"id":"e511a051.1e7328","type":"comment","z":"f729dd3e.9a8d88","name":"cputempwmiophw.py","info":"import wmi\nw = wmi.WMI(namespace=\"root\\OpenHardwareMonitor\")\ntemperature_infos = w.Sensor()\nfor sensor in temperature_infos:\n if sensor.SensorType==u'Temperature':\n #print(sensor.Name,\":\",sensor.Value)\n a=sensor.Name\n b=sensor.Value\n print(sensor.Name)\n print(sensor.Value)\n #print({a:b})\n ","x":370,"y":40,"wires":[]}]