mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-28 15:04:51 +00:00
Merged changes by hifang
git-svn-id: https://svn.fhem.de/fhem/trunk@533 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d1055e2b48
commit
be53c7aba5
@ -203,17 +203,20 @@
|
|||||||
<a href="commandref.html#logtype">logtype</a> attribute of the
|
<a href="commandref.html#logtype">logtype</a> attribute of the
|
||||||
corresponding FileLog. Take a look at the available gnuplot files in the
|
corresponding FileLog. Take a look at the available gnuplot files in the
|
||||||
"Edit files" section, they contain the corresponding FileLog definition
|
"Edit files" section, they contain the corresponding FileLog definition
|
||||||
example.<br/><br/>
|
example.<br>
|
||||||
|
Note that the .gplot files are also used if you use SVG output and
|
||||||
|
not the gnuplot backend!<br><br>
|
||||||
|
|
||||||
|
|
||||||
When displaying the plot, you can convert it into a "weblink", which can
|
When displaying the plot, you can convert it into a "weblink", which can
|
||||||
in turn have a room attribute, to group more than one Plot together. If
|
in turn have a room attribute to group more than one Plot together. If
|
||||||
the weblink refers to the current logfile, then it will be stored as a
|
the weblink refers to the current logfile, then it will be stored as a
|
||||||
CURRENT weblink, and it will always display the most recent log (you do
|
CURRENT weblink, and it will always display the most recent log (you do
|
||||||
not have to redefine it if the logfile changes due to year/month/date
|
not have to redefine it if the logfile changes due to year/month/date
|
||||||
parameters in its name).
|
parameters in its name).
|
||||||
|
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
|
|
||||||
The logs can be converted to a plot either with gnuplot (which must be
|
The logs can be converted to a plot either with gnuplot (which must be
|
||||||
installed and in your PATH), or via the builtin SVG module, in this case
|
installed and in your PATH), or via the builtin SVG module, in this case
|
||||||
your internet browser must support SVG. Firefox, opera and the
|
your internet browser must support SVG. Firefox, opera and the
|
||||||
@ -221,6 +224,32 @@
|
|||||||
it via the Adobe "SVG viewer" plugin. To use SVG graphics, set the <a
|
it via the Adobe "SVG viewer" plugin. To use SVG graphics, set the <a
|
||||||
href="commandref.html#plotmode">plotmode</a> attribute to SVG.<br><br>
|
href="commandref.html#plotmode">plotmode</a> attribute to SVG.<br><br>
|
||||||
|
|
||||||
|
In order to look at historic data, you can either convert at the
|
||||||
|
archive entries to weblink in "plotmode=gnuplot" mode, or use the
|
||||||
|
"plotmode=gnuplot-scroll" or "plotmode=SVG" modes. In the latter case
|
||||||
|
you'll get the possibility to zoom or scroll in the plot.<br><br>
|
||||||
|
|
||||||
|
Use the zoom and scroll icons at the top of the page.<br><br>
|
||||||
|
|
||||||
|
The current time scope (day, week, month..) set at the overview
|
||||||
|
page (containing weblinks) will also be used for graphics you open via
|
||||||
|
links (current log or archive) - there are no zoom and scroll icons
|
||||||
|
there.<br><br>
|
||||||
|
|
||||||
|
Note: the gnuplot files must have #FileLog entries in order to be
|
||||||
|
useable with scrolling, as the filtering happens with the FileLog get
|
||||||
|
function, see the supplied gnuplot files for an example.<br><br>
|
||||||
|
|
||||||
|
The order of the #FileLog lines need to match the corresponding
|
||||||
|
'awk'-(double-)lines!<br><br>
|
||||||
|
|
||||||
|
It make sense to build large logfiles for scrolling in them (year
|
||||||
|
resolution), or smaller ones if you do not want to use the zoom/scroll
|
||||||
|
feature. The size of the logfiles will be determined by its wildcard
|
||||||
|
characters (year/month/week/day), look at the FileLog definition.
|
||||||
|
Don't forget to enable archiving with the archivedir or archivecmd
|
||||||
|
attributes.<br><br>
|
||||||
|
|
||||||
To zoom in the log you have to set plotmode to gnuplot-scroll or SVG. The
|
To zoom in the log you have to set plotmode to gnuplot-scroll or SVG. The
|
||||||
gnuplot files must have #FileLog entries in order to be useable with
|
gnuplot files must have #FileLog entries in order to be useable with
|
||||||
scrolling, see the supplied gnuplot files for an example.<br><br>
|
scrolling, see the supplied gnuplot files for an example.<br><br>
|
||||||
@ -269,9 +298,12 @@
|
|||||||
configure a fake logfile with the correct filename and an unused regexp,
|
configure a fake logfile with the correct filename and an unused regexp,
|
||||||
e.g.<br><pre>
|
e.g.<br><pre>
|
||||||
define messages FileLog /var/log/messages fakelog</pre>
|
define messages FileLog /var/log/messages fakelog</pre>
|
||||||
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
|
||||||
<a name="structure"/>
|
<a name="structure"/>
|
||||||
<h3>Complex structures</h3>
|
<h3>Complex structures</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user