You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.systeminfo/README.md
+16-9
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
The system information binding provides operating system and hardware information including:
4
4
5
5
- Operating system name, version and manufacturer;
6
-
- CPU average load for last 1, 5, 15 minutes, name, description, number of physical and logical cores, running threads number, system uptime;
6
+
- CPU average load for last 1, 5, 15 minutes, name, description, number of physical and logical cores, running threads number, system uptime, max frequency and frequency by logical core;
7
7
- Free, total and available memory;
8
8
- Free, total and available swap memory;
9
9
- Hard drive name, model and serial number;
@@ -76,9 +76,9 @@ In the list below, you can find, how are channel group and channels id`s related
@@ -119,6 +119,8 @@ The binding introduces the following channels:
119
119
| load5 | Load for the last 5 minutes | Number | Medium | True |
120
120
| load15 | Load for the last 15 minutes | Number | Medium | True |
121
121
| threads | Number of threads currently running or for the process | Number | Medium | True |
122
+
| maxfreq | CPU maximum frequency | Number:Frequency| Low | True |
123
+
| freq | Logical processor frequency | Number:Frequency| High | True |
122
124
| path | The full path of the process | String | Low | False |
123
125
| uptime | System uptime (time after start) in minutes | Number:Time| Medium | True |
124
126
| name | Name of the device or process | String | Low | False |
@@ -172,16 +174,17 @@ Parameter PID has a default value 0 - this is the PID of the System Idle process
172
174
## Known issues and workarounds
173
175
174
176
- Temperature readings are not well supported on standard Windows systems, run [OpenHardwareMonitor.exe](https://openhardwaremonitor.org) for the binding to get more reliable readings.
177
+
- CPU frequency readings are not available on some OS versions.
175
178
176
179
## Reporting issues
177
180
178
181
As already mentioned this binding depends heavily on the [OSHI](https://github.com/oshi/oshi) API to provide the operating system and hardware information.
179
182
180
183
Take a look at the console for an ERROR log message.
181
184
182
-
If you find an issue with a support for a specific hardware or software architecture please take a look at the [OSHI issues](https://github.com/oshi/oshi/issues).
185
+
If you find an issue with support for a specific hardware or software architecture please take a look at the [OSHI issues](https://github.com/oshi/oshi/issues).
183
186
Your problem might have be already reported and solved!
184
-
Feel free to open a new issue there with the log message and the and information about your software or hardware configuration.
187
+
Feel free to open a new issue there with the log message and the information about your software or hardware configuration.
185
188
186
189
For a general problem with the binding report the issue directly to openHAB.
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.systeminfo/src/main/java/org/openhab/binding/systeminfo/internal/SysteminfoBindingConstants.java
+11
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@
21
21
*
22
22
* @author Svilen Valkanov - Initial contribution
23
23
* @author Mark Herwege - Add dynamic creation of extra channels
24
+
* @author Mark Herwege - Processor frequency channels
24
25
*/
25
26
@NonNullByDefault
26
27
publicclassSysteminfoBindingConstants {
@@ -278,6 +279,16 @@ public class SysteminfoBindingConstants {
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.systeminfo/src/main/java/org/openhab/binding/systeminfo/internal/SysteminfoThingTypeProvider.java
+5
Original file line number
Diff line number
Diff line change
@@ -230,10 +230,15 @@ public List<ChannelGroupDefinition> getChannelGroupDefinitions(ThingTypeUID type
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.systeminfo/src/main/java/org/openhab/binding/systeminfo/internal/handler/SysteminfoHandler.java
+8
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,7 @@
63
63
* @author Lyubomir Papzov - Separate the creation of the systeminfo object and its initialization
64
64
* @author Wouter Born - Add null annotations
65
65
* @author Mark Herwege - Add dynamic creation of extra channels
66
+
* @author Mark Herwege - Processor frequency channels
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.systeminfo/src/main/java/org/openhab/binding/systeminfo/internal/model/OSHISysteminfo.java
+14
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@
19
19
importjava.util.Map;
20
20
21
21
importjavax.measure.quantity.ElectricPotential;
22
+
importjavax.measure.quantity.Frequency;
22
23
importjavax.measure.quantity.Temperature;
23
24
importjavax.measure.quantity.Time;
24
25
@@ -62,6 +63,7 @@
62
63
* @author Wouter Born - Update to OSHI 4.0.0 and add null annotations
63
64
* @author Mark Herwege - Add dynamic creation of extra channels
64
65
* @author Mark Herwege - Use units of measure
66
+
* @author Mark Herwege - Processor frequency channels
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.systeminfo/src/main/java/org/openhab/binding/systeminfo/internal/model/SysteminfoInterface.java
0 commit comments