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 :

  1. Windows 10 Machine
  2. Python 3.x and python WMI library
  3. Open Hardware Monitor Software

Step :

  1. Install Python 3.x - https://www.python.org/downloads/
  2. Install and Execute Open Hardware Monitor Software - https://openhardwaremonitor.org/
  3. 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.
  4. To run this flows and get the required HW info, Open Hardware Monitor Software need to be on.
  5. 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

  1. 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":[]}]

Flow Info

Created 5 years ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • comment (x1)
  • debug (x1)
  • exec (x1)
  • inject (x1)
Other
  • tab (x1)

Tags

  • WMI
  • OPENHARDWARE
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option