hius07, thank you very much. This is exactly what is needed.
I will also answer my first message, maybe it will be useful to someone. First, enable the HTTP inspector in the settings or if your touchscreen does not work like mine, then set it to autorun in the config (mnt/us/koreader/settings.reader.lua)
Code:
["httpinspector_autostart"] = true,
["httpinspector_port"] = 8080,
Now launch the KOReader and you can start
Change the book through the SSH
Code:
curl "localhost:8080/koreader/ui/switchDocument?/'path to book'" > /dev/null 2>&1
Exit from the KOReader
Code:
curl localhost:8080/koreader/event/Exit > /dev/null 2>&1
Or you can do it all through the browser. More events (changing brightness, font, night mode, turning pages and much more) are available at the link
Code:
http://kindle_local_ip:8080/koreader/event/