forked from JoramBerger/cmstv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.html
52 lines (38 loc) · 2.59 KB
/
README.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<h1>Recent monitoring information from CERN</h1>
<p>These pages are written to display newest displays and monitoring information from the current datataking period of the LHC at CERN.
It is intended for showcases. To use it, just open <a href="start" title="Display">start</a> in a browser.</p>
<h2>Clone your own repository</h2>
<p>If you want to adapt this setup to your needs, just copy this
folder to your webspace and work on it.
Feedback and improvements are always welcome. Please contact <a href="mailto:joram.berger@kit.edu">joram.berger@kit.edu</a>.
This information is generated from <code>README.md</code> using</p>
<pre><code> markdown README.md > README.html
</code></pre>
<h2>Setup of Raspberry Pis as display stations</h2>
<p>These steps lead you to a display station, based on a Raspberry Pie and a monitor.</p>
<ul>
<li><p>Setup Raspbian on your Raspberry Pi using either NOOBS or the manual installation image.</p></li>
<li><p>Install <code>chromium</code>, a stable browser with full screen mode accessible from the command line:</p>
<pre><code>sudo apt-get install chromium
</code></pre></li>
<li><p>Clone the repository in your home folder:</p>
<pre><code>git clone https://github.com/claria/cmstv.git
</code></pre></li>
<li><p>To start the display on boot and prevent the screen saver from showing up, add these lines to <code>/etc/xdg/lxsession/LXDE-pi/autostart</code>. You may have to adapt the paths to the working copy of
the cloned respository:</p>
<pre><code>@/home/pi/cmstv/mon.sh on
@/home/pi/cmstv/start_cmstv.sh
</code></pre>
<p>If the Raspberry Pi is not setup with NOOBS, the file is called <code>/etc/xdg/lxsession/LXDE/autostart</code>.</p></li>
<li><p>To show the display only on working days from 7 a.m. to 8 p.m., add these lines to crontab (<code>crontab -e</code>). Again
check that the paths point to the checked out version of the cmstv repository. The start_cmstv.sh script will
startup the browser in kiosk mode and check every 5 minutes if the browser is still running. Midori e.g. had some
stability issues after running for a couple of days:</p>
<pre><code>0 7 * * 1-5 /home/pi/cmstv/mon.sh on
0 20 * * * /home/pi/cmstv/mon.sh off
*/5 * * * * /home/pi/cmstv/start_cmstv.sh > /dev/null
</code></pre></li>
</ul>
<p>Now it should be ready after reboot (no further interaction needed):</p>
<pre><code> sudo reboot
</code></pre>