File: Monitor

package info (click to toggle)
ifetch-tools 0.18.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 584 kB
  • sloc: ruby: 869; sh: 276; makefile: 4
file content (66 lines) | stat: -rw-r--r-- 1,664 bytes parent folder | download | duplicates (2)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Call to get uptime info for template.
_UPTIME = %x[uptime]
# Call to get current date for template.
_DATE =%x[date +%Y-%m-%d]

# Main page.
%{
	<HTML> <HEAD> <!-- This HTML file has been created by a ruby servlet -->
	<TITLE>Camera Monitor Interface</TITLE>
	<link rel="stylesheet" type="text/css" href="/style.css">
	<SCRIPT type="text/javascript">
	<!--
	function redirecter(){
		window.location = "/monitor"
	}
	//-->
	</SCRIPT>
	</HEAD>
	<BODY onLoad="setTimeout('redirecter()', 30000)">
	<TABLE border="1" cellpadding="5" >
	<TBODY>
	<TD align="center">
		<A HREF="#{HOMELINK}"><img src="/ifetch.png" width=100 heigth=100 ></A>
		<br>Monitor View
	</TD>
	<TD>
		<CENTER><FONT size=+2>Operation & Action Legend</FONT></Center>
		<TABLE border="0" cellpadding="5" >
		<TBODY>
		<TD>
			<IMG src="/start.jpg" border="0"> - Start collection
			<BR><IMG src="/stop.jpg" border="0"> - Stop collection
			<BR><IMG src="/log.jpg" border="0"> - View log
			<BR><A HREF="/startallcameras"><IMG src="/restart.jpg" border="0"></A> - Start all cameras
			<BR>
		</TD>
		<TD>
			<IMG src="/grey.jpg" border="0"> - Collection offline
			<BR><IMG src="/green.jpg" border="0"> - Collection working
			<BR><IMG src="/red.jpg" border="0"> - Collection in alarm mode
		</TD>
		</TR>
		</TBODY></TABLE>
	</TD>
	</TR>
	<TD align="center" colspan="2" >
		#{_DATE} #{_UPTIME}
	</TD>

	</TBODY></TABLE>
	<TABLE border="1" cellpadding="5" >
	<TBODY>
	<TR>
	<TD>Camera</TD>
	<TD>PID - (Memory) VIRT RES SHR</TD>
	<TD>Actions</TD>
	<TD>Status</TD>
	<TD>Logs</TD>
	<TD>Information</TD>
	</TR>
	#{myTempRespond}
	</TBODY></TABLE>
	<P>ifetch-tools version: #{VER}</P>
	</BODY>
	</HTML>
}