i have build a kiosk with chromium-browser on it and i show only my website there.
what i want to do is:
1. listen to console from terminal
— so i can run .sh script or python script based on what my site print in console log
example i can print console.log(reboot_now) and if i recive that i can
program to reboot the system
i think i can achieve this by listening console.log or create custom url example <a href="runThis:\">BTN</a>
2. and also i need to run a javascript function on chromium-browser on my site(always will be my site there)
example my_page_refresh_function(); or alert(‘test’);