I have an RPi3 running Debian Jessie and lighttpd web server with several web pages. I want to run a browser in Kiosk mode, but change the page that is displayed using logic in a python program running in the background (which is reading some sensors).
I would like it to be reasonably lightweight, but would rather work with existing software rather than write my own browser with webkit or some such (I dont have the skills).
I have managed to boot into Midori using "sudo xinit ./StartKioskMode" with the script in StartKioskMode coming from here. But with that approach I cant seem to change the webpage displayed using python once it is opened. The python webbrowser library doesnt seem to allow you to get() midori and then control it...it is not listed as a browser type here.
I tried using the python subprocess library instead. That worked, but it ended up opening multiple copies of midori as I couldnt work out how to just change the page in the current open browser window.
I dont mind running an X server in the background (in fact arent I doing that with xinit?). In fact I will probably need to as I eventually want to pop up a screen keyboard for the user to input details into a web page.
Can anyone suggest an approach to achieve the outcome described?
There are plenty of tutorials on opening a single page in kiosk mode (which I have already achieved) but what I want to do afterwards is change the page displayed using logic in python.