![]() When using this program, please don't open Midori manually open it from the script. If you need to change the amount of rest time, simply change the rest_time variable.Īs you said that you needed the program to be "smart", I have edited it to make it so. Sleep(rest_time) #Wait rest_time second(s), then start the loop again. Sub.call() #This forwards our command to the terminal Import subprocess as sub #Imports terminal commands (needed for reload)įrom time import sleep #Import sleep (allows an infinite loop to become dormant) Rest_time = 300 #Rest time is set to 300 seconds (5 minutes) #Redifine the variables below as you see fit #This program reloads midori every 5 minutes I have created a quick Python 2.7.3 script which will reload Midori every 5 minutes. If that option is unavailable for Midori, can you recommend some other solution?Īssuming that you have Python on your system, there is an alternative to cron. Now how can I force Midori to load the page when the network is available again, or something to similar effect (auto-refresh always every 15 minutes or so, or keep refreshing until the page loads or something like that.)? ![]() In that situation Midori will come up with a page about "unable to connect" or something like that and it will be stuck like this until someone cycles the power again - since the webpage including its own autorefresh mechanism failed to load! Especially in situation when power goes out, then comes back on, but somehow the router/modem/network infrastructure didn't quite come online. Now there are quite a few solutions to making Raspberry into a kiosk, and I'm pretty sure I'll be able to do it just fine, but the kiosk should be quite maintenance-free. ![]() I'm using Raspberry Pi to create a non-interactive web kiosk - a specific webpage (measurements from a remote monitoring station) to be displayed on a screen in full screen mode, content refreshed frequently through AJAX.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |