Commit 0251e24c authored by Matthias Cramer's avatar Matthias Cramer
Browse files

Small frontend rework

added missing direcory for cached graphs
added supervisord config for the perl daemon
parent a5ad507c
*~
rrd/*
cache/*
......@@ -2,7 +2,9 @@ FreeStone Timeserver Frontend
=============================
This is a webfrontend which visualizes the GPS status of my ntp timeserver.
It interfaces with gpsd via a perl server to which is connected by a small php script.
It interfaces with gpsd via a perl server to which it connects by a small php script.
Additionaly some historical data is plotted via rrdtools like offset, jitter, noise,
stability, packets/s and also the network traffic.
Demo: http://ntp.freestone.net/
......
Empty Placeholder
\ No newline at end of file
......@@ -2,6 +2,18 @@ body {
background-color: #000;
color: #fff;
font-family: sans-serif;
width:100%;
}
h1 {
font-size: 28px;
border-bottom: 1px solid #999;
}
.main {
width: 900px;
margin: 0 auto;
border-bottom: 1px solid #999;
}
#satellites {
......@@ -32,4 +44,5 @@ body {
#graph {
clear:both;
}
\ No newline at end of file
}
[program:gpsd-pl]
command=/var/www/bin/gpsd.pl
autostart=true ; start at supervisord start (default: true)
autorestart=true ; whether/when to restart (default: unexpected)
stdout_logfile=/var/log/gpsd-pl.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stdout_capture_maxbytes=10MB
stderr_logfile=/var/log/gpsd-pl_err.log
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
stderr_capture_maxbytes=10MB
......@@ -8,43 +8,44 @@
<link type="text/css" href="css/style.css" rel="stylesheet" />
<script language="javascript" type="text/javascript" src="js/blackbirdjs/blackbird.js"></script>
<link type="text/css" href="js/blackbirdjs/blackbird.css" rel="stylesheet"/>
<script language="javascript" type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script language="javascript" type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script language="javascript" type="text/javascript" src="js/raphael-min.js"></script>
<script language="javascript" type="text/javascript" src="js/functions.js"></script>
</head>
<body>
<h1>FreeStone NTP Server (GPS Reference Clock, Stratum 1)</h1>
<div class="main">
<h1>FreeStone NTP Server (GPS Reference Clock, Stratum 1)</h1>
<div id="satellites" style="float: left;">
</div>
<div id="satellites" style="float: left;">
</div>
<div style="float: left;">
<div id="satinfo">
Time: <span id="time"></span><br/>
Mode: <span id="mode"></span><br/>
Latitude: <span id="lat"></span><br/>
Longitude: <span id="lon"></span><br/>
Altitude: <span id="alt"></span>m<br/>
Latitude Error: <span id="epx"></span>m<br/>
Longitude Error: <span id="epy"></span>m<br/>
Altitude Error: <span id="epv"></span>m<br/>
</div>
<div id="satbargraph">
</div>
</div>
<div style="float: left;">
<div id="satinfo">
Time: <span id="time"></span><br/>
Mode: <span id="mode"></span><br/>
Latitude: <span id="lat"></span><br/>
Longitude: <span id="lon"></span><br/>
Altitude: <span id="alt"></span>m<br/>
Latitude Error: <span id="epx"></span>m<br/>
Longitude Error: <span id="epy"></span>m<br/>
Altitude Error: <span id="epv"></span>m<br/>
</div>
<div id="satbargraph">
</div>
</div>
<div id="pause">
X
</div>
<div id="pause">
X
</div>
<div id="log">
</div>
<div id="log">
</div>
<div id="graph">
<img id="stats" src="ntpd_stats.php"><br/>
<img id="io" src="ntpd_io.php"><br/>
<img id="net" src="net.php">
<div id="graph">
<img id="stats" src="ntpd_stats.php"><br/>
<img id="io" src="ntpd_io.php"><br/>
<img id="net" src="net.php">
</div>
</div>
</body>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment