Imported Upstream version 0.6.2.17
[psensor-pkg-debian.git] / src / server / psensor-server.1
1 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.40.4.
2 .TH PSENSOR-SERVER "1" "March 2012" "psensor-server 0.6.2.17" "User Commands"
3 .SH NAME
4 psensor-server \- Temperature and system monitoring Web server
5 .SH SYNOPSIS
6 .B psensor-server
7 [\fIOPTION\fR]...
8 .SH DESCRIPTION
9
10 .PP
11 psensor\-server is an HTTP server for monitoring hardware sensors remotely.
12 .PP
13
14 It provides a JSON Web service which can be used by psensor(1) to
15 monitor remotely the hardware sensors of a computer.
16
17 It can provide information about:
18   * the temperature of the motherboard and CPU sensors (using lm\-sensors).
19   * the temperature of the Hard Disk Drives (using hddtemp).
20   * the rotation speed of the fans (using lm\-sensors).
21
22 It is also possible to connect to the psensor\-server with a browser, a
23 simple Web page is displaying the sensors information and the CPU
24 usage.
25
26 The URL http://hostname:3131/api/1.0/sensors/[id] returns a JSON
27 object containing all information about a sensor. [id] is the uniq
28 identifier of the sensor.
29
30 Here is an example of the JSON object of type 'sensor':
31
32 { "id": "lmsensor acpitz\-virtual\-0 temp1", 
33   "name": "temp1", 
34   "type": 257, 
35   "min": 47.800000, 
36   "max": 60.800000,
37   "measures": [ { "value": 47.800000, "time": 1311374873 },
38                 { "value": 49.800000, "time": 1311374878 },
39                 { "value": 49.800000, "time": 1311374883 } ],
40   "last_measure": { "value": 49.800000, "time": 1311374883 }
41 }
42
43 Fields of the type 'sensor':
44
45    * id: the uniq identifier of the sensor.
46    * name: a humean readable name of the sensor (might not be uniq).
47    * type: the type of sensor. Look at src/lib/psensor.h for the
48      different types.
49    * min: the minimal value of the sensor.
50    * max: the maximal value of the sensor.
51    * measures: all measures of the sensor.
52    * last_measure: the last value of the sensor.
53    * time: the time of a measure as the number of seconds since
54      1970/01/01.
55
56 The URL http://hostname:3131/api/1.0/sensors returns a JSON array
57 containing all JSON objects of type 'sensor'.
58
59 If run in debug mode, psensor\-server can be stopped by sending an HTTP
60 request with the URL 'http://hostname:port/api/1.0/server/stop'.
61 .SH OPTIONS
62 .TP
63 \fB\-h\fR, \fB\-\-help\fR
64 display this help and exit
65 .TP
66 \fB\-v\fR, \fB\-\-version\fR
67 display version information and exit
68 .TP
69 \fB\-d\fR,\-\-debug
70 run in debug mode
71 .TP
72 \fB\-p\fR,\-\-port=PORT
73 webserver port
74 .TP
75 \fB\-w\fR,\-\-wdir=DIR
76 directory containing webserver pages
77 .SH WARNING
78
79 psensor\-server does not provide any way to restrict the connection to
80 the HTTP server, worst, no effort has been made against malicious HTTP
81 attacks.  You should make the psensor\-server port available only to a
82 network or computer you trust by using the usual network security
83 tools of the system (for example, iptables(8) ).
84 .SH "REPORTING BUGS"
85 Report bugs to: jeanfi@gmail.com
86 .PP
87 psensor home page: <http://wpitchoune.net/psensor>
88 .SH COPYRIGHT
89 Copyright \(co 2010\-2012 jeanfi@gmail.com
90 License GPLv2: GNU GPL version 2 or later <http://www.gnu.org/licenses/old\-licenses/gpl\-2.0.html>
91 .br
92 This is free software: you are free to change and redistribute it.
93 There is NO WARRANTY, to the extent permitted by law.
94 .SH "SEE ALSO"
95
96 psensor(1), sensors(1), sensors\-detect(8)