@ -38,6 +38,42 @@ This sensor watches the UserNotificationState. This is normally used in applicat
|QuietTime|Introduced in Windows 7. The current user is in "quiet time", which is the first hour after a new user logs into his or her account for the first time. During this time, most notifications should not be sent or shown. This lets a user become accustomed to a new computer system without those distractions. Quiet time also occurs for each user after an operating system upgrade or clean installation.|
|RunningWindowsStoreApp|A Windows Store app is running.|
### CPULoad
This sensor checks the current CPU load. It averages the load on all logical cores every second and rounds the output to two decimals.
### UsedMemory
This sensor calculates the percentage of used memory.
### CurrentClockSpeed
This sensor returns the BIOS configured baseclock for the processor.
### WMIQuery
This advanced sensor executes a user defined [WMI query](https://docs.microsoft.com/en-us/windows/win32/wmisdk/wmi-and-sql) and exposes the result. The query should return a single value.
For example:
```sql
SELECT * FROM Win32_Processor
```
returns
`|64|9|To Be Filled By O.E.M.|3|Intel64 Family 6 Model 94 Stepping 3|252|1|Win32_Processor|4008|12|64|Intel64 Family 6 Model 94 Stepping 3|CPU0|100|198|1024|8192|0|6|4|GenuineIntel|4008|Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz|4|4|8|To Be Filled By O.E.M.|False|BFEBFBFF000506E3|3|24067|CPU|False|To Be Filled By O.E.M.|U3E1|OK|3|Win32_ComputerSystem|GAME-PC-2016|8|1|False|False|`
This cannot not be used for this sensor. Instead try
```sql
SELECT CurrentClockSpeed FROM Win32_Processor
```
which results in `4008` for my PC.
You can use [WMI Explorer](https://github.com/vinaypamnani/wmie2/tree/v2.0.0.2) to find see what data is available.
### Dummy
This sensor spits out a random number every second. Useful for testing, maybe you'll find some other use for it.
item.Description="This sensor watches the UserNotificationState. This is normally used in applications to determine if it is appropriate to send a notification but we can use it to expose this state. \n ";
item.Description="This sensor checks the current CPU load. It averages the load on all logical cores every second and rounds the output to two decimals.";
publicCPULoadSensor(MqttPublisherpublisher,int?updateInterval=null,stringname="CPULoadSensor",Guidid=default):base(publisher,"SELECT PercentProcessorTime FROM Win32_PerfFormattedData_PerfOS_Processor",updateInterval??10,name??"CPULoadSensor",id)
publicCurrentClockSpeedSensor(MqttPublisherpublisher,int?updateInterval=null,stringname="CurrentClockSpeed",Guidid=default(Guid)):base(publisher,"SELECT CurrentClockSpeed FROM Win32_Processor",updateInterval??10,name??"CurrentClockSpeed",id){}
publicMemoryUsageSensor(MqttPublisherpublisher,int?updateInterval=null,stringname="WMIQuerySensor",Guidid=default):base(publisher,"SELECT FreePhysicalMemory,TotalVisibleMemorySize FROM Win32_OperatingSystem",updateInterval??10,name,id)