-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstats.php
47 lines (34 loc) · 883 Bytes
/
stats.php
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
<!DOCTYPE html>
<html>
<head><title>CW Club RBN Spotter - Statistics</title>
<style>
table {
border-collapse: collapse;
}
td {
vertical-align: bottom;
}
img {
display: block;
}
</style>
</head>
<table >
<tr>
<?
$data = file("spotcount.txt");
# last 30 days = 30 * 24 lines (max)
$cnt = count($data);
foreach ($data as $d) {
list($ts, $c, $u) = preg_split("/\s+/", $d);
$scale = 80;
$height_count = ($c - $u) / $scale;
$height_unique = $u / $scale;
echo "<td title='".gmstrftime('%A %d-%b-%y %T %Z', $ts)." - $c / $u'><img src='act/img/2.png' width=4 height=$height_count><img src='act/img/5.png' width=4 height=$height_unique></td>";
}
?>
</tr>
</table>
<br>
Data shown: Number of spots on the bandmap, number of unique calls, for the past 60 minutes. Hover over graph to see the time stamps.
</html>