[
    {
        "id": "7ff25fc2.175c6",
        "type": "tab",
        "label": "Systemstatus",
        "disabled": false,
        "info": ""
    },
    {
        "id": "5fb1954f.98290c",
        "type": "ioBroker in",
        "z": "7ff25fc2.175c6",
        "name": "memory_available",
        "topic": "rpi2.0.memory.memory_available",
        "payloadType": "value",
        "onlyack": "",
        "func": "rbe",
        "gap": "",
        "x": 110,
        "y": 40,
        "wires": [
            [
                "9a2c81c4.56499"
            ]
        ]
    },
    {
        "id": "24651264.fc27ce",
        "type": "ui_text",
        "z": "7ff25fc2.175c6",
        "group": "c0fd0792.4101d8",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "freier RAM",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "x": 730,
        "y": 40,
        "wires": []
    },
    {
        "id": "9a2c81c4.56499",
        "type": "ioBroker get",
        "z": "7ff25fc2.175c6",
        "name": "memory_total",
        "topic": "rpi2.0.memory.memory_total",
        "attrname": "total",
        "payloadType": "value",
        "x": 320,
        "y": 40,
        "wires": [
            [
                "f9de488f.352a08"
            ]
        ]
    },
    {
        "id": "f9de488f.352a08",
        "type": "function",
        "z": "7ff25fc2.175c6",
        "name": "zusammensetzen",
        "func": "var available = msg.payload;\nvar total = msg.total;\n\nvar availableRound = Math.round(available * 10) / 10;\nvar totalRound = Math.round(total * 10) / 10;\n\nmsg.payload = availableRound + ' MB / ' + totalRound + ' MB';\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 530,
        "y": 40,
        "wires": [
            [
                "24651264.fc27ce"
            ]
        ]
    },
    {
        "id": "4407ac50.a6a1d4",
        "type": "ui_text",
        "z": "7ff25fc2.175c6",
        "group": "c0fd0792.4101d8",
        "order": 3,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Betriebszeit",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "x": 730,
        "y": 100,
        "wires": []
    },
    {
        "id": "b3d7501c.69fcf",
        "type": "ioBroker in",
        "z": "7ff25fc2.175c6",
        "name": "memory_available",
        "topic": "rpi2.0.uptime.uptime",
        "payloadType": "value",
        "onlyack": "",
        "func": "rbe",
        "gap": "",
        "x": 110,
        "y": 100,
        "wires": [
            [
                "a700f6a1.f9e168"
            ]
        ]
    },
    {
        "id": "a700f6a1.f9e168",
        "type": "function",
        "z": "7ff25fc2.175c6",
        "name": "berechnen",
        "func": "var x = msg.payload;\nvar tag,std,min,sek; \n\nfunction umwandeln(x)\n{\nvar c=60;\nvar d=24;\n  {\n  sek = x;\n  min = Math.floor(sek/c); \n  sek = sek % c;\n  std = Math.floor(min/c);\n  min = min % c;\n  tag = Math.floor(std/d);\n  std = std % d;\n  }\n}\n\numwandeln(x)\n\nsek = Math.round(sek * 10);\n\nmsg.tag = tag;\nmsg.std = std;\nmsg.min = min;\nmsg.sek = sek;\n\nmsg.payload = tag + ' Tage, ' + std + ' Stunden, ' + min + ' Minuten';\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 510,
        "y": 100,
        "wires": [
            [
                "4407ac50.a6a1d4"
            ]
        ]
    },
    {
        "id": "7f8416d7.27f038",
        "type": "ioBroker in",
        "z": "7ff25fc2.175c6",
        "name": "ssd_used",
        "topic": "rpi2.0.sdcard.sdcard_root_used",
        "payloadType": "value",
        "onlyack": "",
        "func": "rbe",
        "gap": "",
        "x": 80,
        "y": 160,
        "wires": [
            [
                "7b588f48.3cae4"
            ]
        ]
    },
    {
        "id": "7b588f48.3cae4",
        "type": "ioBroker get",
        "z": "7ff25fc2.175c6",
        "name": "ssd_total",
        "topic": "rpi2.0.sdcard.sdcard_root_total",
        "attrname": "total",
        "payloadType": "value",
        "x": 240,
        "y": 160,
        "wires": [
            [
                "92fb0b2c.bc2688"
            ]
        ]
    },
    {
        "id": "92fb0b2c.bc2688",
        "type": "function",
        "z": "7ff25fc2.175c6",
        "name": "berechnen + zusammensetzen",
        "func": "var used = msg.payload;\nvar total = msg.total;\n\nvar usedGB = used / 1024;\nvar totalGB = total / 1024;\n\nvar usedRoundGB = Math.round(usedGB * 10) / 10;\nvar totalRoundGB = Math.round(totalGB * 10) / 10;\n\nmsg.available = Math.round((totalRoundGB - usedRoundGB) * 10) / 10;\n\nmsg.payload = usedRoundGB + ' GB / ' + totalRoundGB + ' GB';\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 490,
        "y": 160,
        "wires": [
            [
                "126325f8.6f47aa",
                "280c6b51.ffff14"
            ]
        ]
    },
    {
        "id": "126325f8.6f47aa",
        "type": "ui_text",
        "z": "7ff25fc2.175c6",
        "group": "c0fd0792.4101d8",
        "order": 4,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Speicherplatz genutzt",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "x": 760,
        "y": 160,
        "wires": []
    },
    {
        "id": "280c6b51.ffff14",
        "type": "ui_text",
        "z": "7ff25fc2.175c6",
        "group": "c0fd0792.4101d8",
        "order": 5,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Speicherplatz frei",
        "format": "{{msg.available}} GB",
        "layout": "row-spread",
        "x": 750,
        "y": 200,
        "wires": []
    },
    {
        "id": "772e289b.0bc7d8",
        "type": "ui_text",
        "z": "7ff25fc2.175c6",
        "group": "c0fd0792.4101d8",
        "order": 2,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Temperatur",
        "format": "{{msg.payload}} °C",
        "layout": "row-spread",
        "x": 730,
        "y": 260,
        "wires": []
    },
    {
        "id": "7e2f0642.9ca4f8",
        "type": "ioBroker in",
        "z": "7ff25fc2.175c6",
        "name": "soc_temp",
        "topic": "rpi2.0.temperature.soc_temp",
        "payloadType": "value",
        "onlyack": "",
        "func": "rbe",
        "gap": "",
        "x": 80,
        "y": 260,
        "wires": [
            [
                "772e289b.0bc7d8"
            ]
        ]
    },
    {
        "id": "c0fd0792.4101d8",
        "type": "ui_group",
        "z": "",
        "name": "System",
        "tab": "d9adc03f.8cae1",
        "disp": true,
        "width": "8",
        "collapse": false
    },
    {
        "id": "d9adc03f.8cae1",
        "type": "ui_tab",
        "z": "",
        "name": "Home",
        "icon": "dashboard",
        "order": 1
    }
]