It would be nice to have it start recording as soon as the static screen changs as it starts to dump information to the console/screen. (idea from: pikvm/pikvm#229)
the script need to be updated with correct IP/password and number of files to keep
pacman -S cronie
add to crontab -e
*/2 * * * * kvmd-pstrun -- ./monitor.py >/dev/null 2>&1
run
systemctl enable cronie.service
systemctl start cronie.service
rw
pacman -Sy --noconfirm nfs-utils
edit the file /etc/exports to add
/var/lib/kvmd/pst/data 10.142.30.100/32(ro,sync)
systemctl enable nfs-server.service systemctl start nfs-server.service
mkdir /media/pikvm and now to try (in Docker if required): mount -t nfs4 IP:/var/lib/kvmd/pst/data /media/pikvm
Create a command:
shell_command:
map_pikvm_folder: mount -t nfs4 IP:/var/lib/kvmd/pst/data /media/pikvm
and to finish, you can add an automation to load on home assistant boot:
- id: '1611345337440487'
alias: 'Mount NFS Folders'
description: ''
trigger:
- platform: homeassistant
event: start
condition: []
action:
- service: shell_command.map_pikvm_folder
data: {}
mode: single
nfs is comming from: https://community.home-assistant.io/t/adding-media-folder-mapping-from-nas-via-nfs/270763
inspiration from https://pastebin.com/eNm6HT4s