title: How to access wmi in python?
body: <p>So I am trying to access the data from <a href="http://openhardwaremonitor.org/wordpress/wp-content/uploads/2011/04/OpenHardwareMonitor-WMI.pdf" rel="noreferrer">here</a></p>
  
  <p>in Python. As you can see, it uses wmi. I have tried to use wmi in python before but I am having trouble interpreting the data they are giving me. Please be patient with me as I am a noob to how wmi works. It says that the wmi data is stored in root/OpenHardwareMontor and that it uses two different wmi classes(Hardware and Sensor). But all this information is going over my head. </p>
  
  <p>could someone please give me some sample code to read some data from this? </p>
  
  <p>For example, the code to check cpu core 1 frequency. </p>
  
  <p>EDIT: i have sort of got it working. i run this code: </p>
  
  <pre><code>for Temperature in c.sensor():
      print Temperature.identifier
      print Temperature.value
  </code></pre>
  
  <p>and i get this:</p>
  
  <pre><code>/hdd/0/load/0
  37.6608924866
  /intelcpu/0/temperature/1
  53.0
  /intelcpu/0/temperature/0
  42.0
  /ram/data/1
  2.88324356079
  /intelcpu/0/load/2
  1.53846144676
  /hdd/0/temperature/0
  43.0
  /intelcpu/0/load/0
  2.30768918991
  /intelcpu/0/clock/1
  1463.29663086
  /intelcpu/0/clock/0
  133.02696228
  /intelcpu/0/clock/2
  1463.29663086
  /ram/load/0
  49.224521637
  /ram/data/0
  2.79517364502
  /intelcpu/0/load/1
  3.07692289352
  </code></pre>
  
  <p>how can i request <strong>only</strong> the value associated with the identifier /intelcpu/0/temperature/1 ignoring all other values?</p>