T
T
TheDarhi2019-12-02 11:20:47
Windows Management Instrumentation
TheDarhi, 2019-12-02 11:20:47

How to provide sensor monitoring by polling WMI?

Good afternoon, faced with the need to implement the monitoring of sensors and the output of these indicators.
An interesting program came to hand, which in its arsenal has the ability to interrogate the device using WMI.
This is where the difficulties began to appear.
The request structure looks like this: The
5de4c83e4ec7e881996363.png
request is set, for example select Speed from Win32_PhysicalMemory, and other parameters, such as a unit of measure, etc. are selected from the drop-down boxes.
On third-party sites on WMI, I searched for tags by class and could not find the right one, there is also a question about the ability to add / subtract, multiply / divide this indicator.
Ideally, I would like to get such indicators:
1) CPU temperature -20 degrees = value (C')
2) Disk speed *0.0002 = value (Hz)
3) CPU temperature *0.5 = value (%)
4) Intrusion sensor = value (+/-)
5) Perpetual zero value = value (%)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dmfun, 2019-12-02
@dmfun

WMI practically does not give such information. There are classes, it seems like they should work, but no.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question