OpenHAB HABPanel und Systeminfo
Möchte man sich ein HABPanel Dashboard mit allen wichtigen Systeminformationen bauen, kann man dies mithilfe der folgenden Bindings machen:
- Systeminfo Binding
- Network Binding
- OpenHAB Exec Binding HowTo
Systeminformationen auslesen
Hierzu installieren wir als erstes das System Info Binding.
dann konfigurieren wir das Local Computer Thing:
Ist das Local Computer Thing angelegt, können wir die Items anlegen. Hier ein Beispiel bebildert:
Alle anderen Items die ich im HABPanel verwende sind so konfiguriert:
Label | Item Name | Type |
---|---|---|
Available Memory | LocalComputer_Memory_Available | Number |
Available Storage | LocalComputer_Storage_Available | Number |
CPU Temperature | LocalComputer_Sensors_CPUTemperature | Number:Temperature |
Load Average 1 | LocalComputer_Cpu_LoadAverage_1 | Number |
Load Average 15 | LocalComputer_Cpu_LoadAverage_15 | Number |
Load Average 5 | LocalComputer_Cpu_LoadAverage_5 | Number |
System Uptime | LocalComputer_Cpu_SystemUptime | Number |
Total Storage | LocalComputer_Storage_Total | Number |
Used Memory | LocalComputer_Memory_Used | Number |
Used Memory (%) | LocalComputer_Memory_Used_Percentage | Number |
Used Storage | LocalComputer_Storage_Used | Number |
Used Storage (%) | LocalComputer_Storage_Used_Percentage | Number |
Display Helligkeit
Wie man den Display Helligkeits Schieberegler bekommt, findet ihr hier:
Online / Latency Anzeige
Wie man die Online Anzeige baut ist hier zu nachzulesen
HABPanel Dashboard
Nun legen wir ein Neues Dashboard Namens Systeminfo
an. Am Beispiel des Oben angelegtem Available Memory
Items zeige ich hier kurz die Konfiguration eines Dummy Widgets:
Möchtet ihr euch das Leben einfacher machen, dann könnt ihr euch den folgenden Code kopieren. Wie man die Konfigurationsdatei von HABPanel aufruft, findet ihr hier: HABPanel_lokale_Konfiguration
Die folgende Konfiguration ist für das HABPanel Systeminfo Dashboard. Einfach kopieren und an der richtigen Stelle einfügen.
{
"id": "Systeminfo",
"name": "Systeminfo",
"widgets": [
{
"name": "Load Average 1",
"sizeX": 4,
"sizeY": 1,
"item": "LocalComputer_Cpu_LoadAverage_1",
"type": "dummy",
"row": 0,
"col": 0,
"backdrop_iconset": "freepik-gadgets",
"backdrop_icon": "screen-and-tower",
"backdrop_center": true,
"iconset": "freepik-gadgets",
"icon": "cpu-chip",
"icon_size": 32,
"icon_nolinebreak": true,
"nolinebreak": true
},
{
"name": "Load Average 5",
"sizeX": 4,
"sizeY": 1,
"item": "LocalComputer_Cpu_LoadAverage_5",
"type": "dummy",
"backdrop_iconset": "freepik-gadgets",
"backdrop_icon": "screen-and-tower",
"backdrop_center": true,
"iconset": "freepik-gadgets",
"icon": "cpu-chip",
"icon_size": 32,
"icon_nolinebreak": true,
"row": 1,
"col": 0,
"nolinebreak": true
},
{
"name": "Load Average 15",
"sizeX": 4,
"sizeY": 1,
"item": "LocalComputer_Cpu_LoadAverage_15",
"type": "dummy",
"backdrop_iconset": "freepik-gadgets",
"backdrop_icon": "screen-and-tower",
"backdrop_center": true,
"iconset": "freepik-gadgets",
"icon": "cpu-chip",
"icon_size": 32,
"icon_nolinebreak": true,
"row": 2,
"col": 0,
"nolinebreak": true
},
{
"name": "CPU Temperatur",
"sizeX": 4,
"sizeY": 1,
"item": "LocalComputer_Sensors_CPUTemperature",
"type": "dummy",
"format": "%d °C",
"backdrop_iconset": "freepik-gadgets",
"backdrop_icon": "screen-and-tower",
"backdrop_center": true,
"iconset": "smarthome-set",
"icon": "temperature",
"icon_size": 32,
"icon_nolinebreak": true,
"row": 3,
"col": 0,
"nolinebreak": true
},
{
"name": "Uptime",
"sizeX": 2,
"sizeY": 1,
"item": "LocalComputer_Cpu_SystemUptime",
"type": "dummy",
"format": "%d min",
"backdrop_iconset": "freepik-gadgets",
"backdrop_icon": "screen-and-tower",
"backdrop_center": true,
"icon_size": "20",
"icon_nolinebreak": true,
"row": 1,
"col": 9,
"nolinebreak": false
},
{
"name": "Memory Verbraucht",
"sizeX": 5,
"sizeY": 1,
"item": "LocalComputer_Memory_Used",
"type": "dummy",
"format": "%d MB",
"backdrop_iconset": "freepik-gadgets",
"backdrop_icon": "screen-and-tower",
"backdrop_center": true,
"iconset": "freepik-gadgets",
"icon": "sd-card-chip",
"icon_size": 32,
"icon_nolinebreak": true,
"row": 1,
"col": 4,
"nolinebreak": true,
"useserverformat": false
},
{
"name": "Memory Verfügbar",
"sizeX": 5,
"sizeY": 1,
"item": "LocalComputer_Memory_Available",
"type": "dummy",
"format": "%d MB",
"backdrop_iconset": "freepik-gadgets",
"backdrop_icon": "screen-and-tower",
"backdrop_center": true,
"iconset": "freepik-gadgets",
"icon": "sd-card-chip",
"icon_size": 32,
"icon_nolinebreak": true,
"row": 0,
"col": 4,
"nolinebreak": true,
"useserverformat": false
},
{
"name": "Memory Verbrauch",
"sizeX": 5,
"sizeY": 1,
"item": "LocalComputer_Memory_Used_Percentage",
"type": "dummy",
"format": "%d %%",
"backdrop_iconset": "freepik-gadgets",
"backdrop_icon": "screen-and-tower",
"backdrop_center": true,
"iconset": "freepik-gadgets",
"icon": "sd-card-chip",
"icon_size": 32,
"icon_nolinebreak": true,
"row": 2,
"col": 4,
"nolinebreak": true
},
{
"name": "Online",
"sizeX": 1,
"sizeY": 1,
"item": "Online_Online",
"type": "dummy",
"backdrop_iconset": "freepik-gadgets",
"backdrop_icon": "internet-socket",
"iconset": "eclipse-smarthome-classic",
"icon": "network",
"icon_size": "20",
"icon_replacestext": true,
"backdrop_center": true,
"row": 0,
"col": 11
},
{
"name": "Latency",
"sizeX": 2,
"sizeY": 1,
"item": "Online_Latency",
"type": "dummy",
"backdrop_iconset": "freepik-gadgets",
"backdrop_icon": "internet-socket",
"icon_size": "20",
"icon_replacestext": true,
"backdrop_center": true,
"useserverformat": true,
"row": 0,
"col": 9
},
{
"name": "Storage Verbraucht",
"sizeX": 5,
"sizeY": 1,
"item": "LocalComputer_Storage_Used",
"type": "dummy",
"format": "%d MB",
"backdrop_iconset": "freepik-gadgets",
"backdrop_icon": "screen-and-tower",
"backdrop_center": true,
"iconset": "freepik-gadgets",
"icon": "hard-drive-device",
"icon_size": 32,
"icon_nolinebreak": true,
"row": 4,
"col": 4,
"nolinebreak": true
},
{
"name": "Storage Verfügbar",
"sizeX": 5,
"sizeY": 1,
"item": "LocalComputer_Storage_Available",
"type": "dummy",
"format": "%d MB",
"backdrop_iconset": "freepik-gadgets",
"backdrop_icon": "screen-and-tower",
"backdrop_center": true,
"iconset": "freepik-gadgets",
"icon": "hard-drive-device",
"icon_size": 32,
"icon_nolinebreak": true,
"row": 3,
"col": 4,
"nolinebreak": true,
"useserverformat": false
},
{
"name": "Storage Verbrauch",
"sizeX": 5,
"sizeY": 1,
"item": "LocalComputer_Storage_Used_Percentage",
"type": "dummy",
"format": "%d %%",
"backdrop_iconset": "freepik-gadgets",
"backdrop_icon": "screen-and-tower",
"backdrop_center": true,
"iconset": "freepik-gadgets",
"icon": "hard-drive-device",
"icon_size": 32,
"icon_nolinebreak": true,
"row": 5,
"col": 4,
"nolinebreak": true
},
{
"name": "Display Helligkeit",
"sizeX": 4,
"sizeY": 2,
"item": "Display_Brightness_Eingabewert",
"type": "slider",
"floor": 0,
"ceil": 250,
"step": 10,
"hidelimits": true,
"showticks": false,
"bigslider": false,
"backdrop_iconset": "smarthome-set",
"backdrop_icon": "tv",
"backdrop_center": true,
"vertical": false,
"hidelabel": false,
"hidepointer": false,
"row": 4,
"col": 0
},
{
"name": "Licht Sensor",
"sizeX": 2,
"sizeY": 1,
"item": "LocalComputerLightSensor_Rueckgabewert",
"type": "dummy",
"row": 2,
"col": 9,
"unit": "",
"backdrop_iconset": "freepik-gadgets",
"backdrop_icon": "screen-and-tower",
"iconset": "eclipse-smarthome-classic",
"icon": "sun",
"icon_size": 32,
"format": "%s lux",
"backdrop_center": true
}
],
"row": 2,
"col": 1,
"tile": {
"backdrop_iconset": "freepik-gadgets",
"backdrop_icon": "screen-and-tower",
"backdrop_center": true,
"iconset": "freepik-gadgets",
"icon": "screen-and-tower"
},
"mobile_mode_enabled": true,
"$$hashKey": "object:26"
},