diff options
author | Devaev Maxim <[email protected]> | 2020-07-09 05:04:21 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-07-09 05:13:03 +0300 |
commit | 53eb74670d040c9e8745433a2641f18796da365c (patch) | |
tree | b321d856280e6fe4bb2b410b582c046ae4e7ee20 /kvmd/apps/__init__.py | |
parent | 69f77ce48b279c614f1aaca809c1d74e411f1fd1 (diff) |
hw monitoring
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r-- | kvmd/apps/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py index a5ad6f25..4b61a65e 100644 --- a/kvmd/apps/__init__.py +++ b/kvmd/apps/__init__.py @@ -221,6 +221,13 @@ def _get_config_scheme() -> Dict: "extras": Option("/usr/share/kvmd/extras", type=valid_abs_dir), }, + "hw": { + "vcgencmd_cmd": Option(["/opt/vc/bin/vcgencmd"], type=valid_command), + "procfs_prefix": Option("", type=(lambda arg: str(arg).strip())), + "sysfs_prefix": Option("", type=(lambda arg: str(arg).strip())), + "state_poll": Option(10.0, type=valid_float_f01), + }, + "wol": { "ip": Option("255.255.255.255", type=(lambda arg: valid_ip(arg, v6=False))), "port": Option(9, type=valid_port), |