sipeed / NanoKVM

NanoKVM: Affordable, Multifunctional, Nano RISC-V IP-KVM
GNU General Public License v3.0
3.16k stars 53 forks source link

Doc request: scripts #82

Open FlorianHeigl opened 1 month ago

FlorianHeigl commented 1 month ago

Hi,

at the moment the 'scripts' feature is not listed in the documentation. I can see they're uploaded to /etc/kvm/scripts/ but it's unclear to me what scope of things they are meant to do and if there's any interface to connect to for them. i.e. are they expected to do things like

and whether anything exists to support such tasks.

patschi commented 1 month ago

The source code has just been published a few hours ago, and it looks like scripts are just ran locally on the NanoKVM: https://github.com/sipeed/NanoKVM/blob/main/server/service/vm/script.go. For what use-cases they provide? Not sure...

Would be interesting to know if it could be used to automate sequences, like mounting a pre-loaded ISO and then auto-typing keyboard keys or controlling the mouse...

robot-o commented 1 week ago

it would be great if we could use this feature to interact with the MCU pins on the NanoKVM lite. One usecase would be triggering buttons or interacting with the system programatically (like triggering the inputs on an usb switch/ hardware kvm switch to multiplex the nanokvm)