We wanted to set up a screen that monitors the local #Phabricator
instance. We already had a setup of a #Debian
-based "kiosk" setup (that is: a system that runs only a single web browser. Specifically #Firefox
, to a given URL). So the obvious solution was to get Phabricator to somehow auto-refresh. We couldn't do that. OK, so we'll set up a local httpd and serve a page that auto-refreshes every once in a while, and that page will have Phabricator inside an iframe. No luck: Phabricator explicitly refuses to be inside a frame. So I opted to refresh at the client side.
I ended up using #xdotool
. A tool that uses the #XTest
extension to allow simple scripts of windows. I needed a script to issue a refresh (type ) into the Firefox window. Just in case, I didn't want it to assume that this window was active.
The script (placed as /usr/local/bin/refresh-browser)
And a crontab file (at /etc/cron.d) -
# Refresh the every hour:
55 * * * * kiosk env DISPLAY=:0 refresh-browser
How? Not sure exactly. I don't maintain the Phabricator instance, and looking at the code right now I can't find the exact way right now.