{
“id”: “cpu-load”,
“name”: “CPU Load”,
“class”: “ShellSensor”,
“attributeName”: “cpu-load”,
“attributeType”: “number”,
“attributeUnit”: “%”,
“command”: “/bin/cat /proc/loadavg | cut -d’ ’ -f 1 | sed ‘s/\.//g’”,
“interval”: 60000
}
-
CPU Load in % shellsensor device
pimatic + MySensors + Homeduino + z-way
https://github.com/n3roGit/MySensors_n3ro -
@n3ro
have a look at the pimatic-sysinfo device.
there you have memory, cpu, diskusage, db size and system temp
you don’t have to reinvent the wheelhttps://github.com/pimatic/pimatic-sysinfo
{ "class": "SystemSensor", "id": "syssensor", "name": "Systemstatus", "attributes": [ { "name": "cpu" }, { "name": "memory" }, { "name": "diskusage", "path": "/", "interval": 3600000 } ] }, { "class": "SystemSensor", "id": "syssensor1", "name": "System Temp.", "attributes": [ { "name": "temperature", "interval": 60000 } ] }, { "class": "SystemSensor", "id": "syssensor2", "name": "DB Size", "attributes": [ { "name": "dbsize", "interval": 3600000 } ] }
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
system status andd temp I found. But where is described System commands and system uptime?
-
ah cool!! perfekt THX!
pimatic + MySensors + Homeduino + z-way
https://github.com/n3roGit/MySensors_n3ro -
@Heizelmann said:
system status andd temp I found. But where is described System commands and system uptime?
The system uptime and those “command buttons” are not implemented at the sysinfo plugin and need to be added separately as devices.
for the uptime have a look here http://forum.pimatic.org/topic/98/system-uptime-shellsensor-device first post in this threat shows how to config.the command buttons can be created as follows :
{ "id": "systembuttons", "name": "System Befehle", "class": "ButtonsDevice", "buttons": [ { "id": "button-reboot", "text": "System reboot" }, { "id": "button-shutdown", "text": "System shutdown" }, { "id": "button-pimatic-restart", "text": "Pimatic restart" } ] }
now you need three rules
furthermore it is necessary to install the shell execute plugin!
{ "plugin": "shell-execute" }
well that’s how the magic works
have fun with it!
cheerspimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !