dmreport - creates reports in HTML format containing plots and logs
dmreport --help
dmreport --version
dmreport --config file [--name name] [--node id] [--from timestamp] [--to timestamp] [--output file] [--style file]
dmreport --config file [--name name]
The dmreport program creates reports in HTML5 format, containing plots of observations and/or log messages selected from database. Plots are created by calling gnuplot(1) and inlining the returned image (GIF, PNG, SVG) as a base64-encoded data URI. Any style sheet file with classless CSS can be included to alter the presentation of the report. The output of dmreport is a single HTML file.
A configuration file is mandatory to create reports. Only a few parameters may be set through command-line arguments. Passed command-line arguments have priority over settings in the configuration file.
- --config, -c file
-
File path to configuration file.
- --from, -B timestamp
-
Start of the time range in ISO 8601.
- --help, -h
-
Output available command-line arguments and quit.
- --name, -n name
-
Name of instance and table in given configuration file (default is
dmreport
). - --node, -N id
-
Select observations and log messages of the given node id.
- --output, -o file
-
File path of the generated report. Additional format descriptors are replaced with their values to set date and time dynamically (
%Y
,%M
,%D
,%h
,%m
,%s
). If no output file is set, the report is printed to stdout. - --style, -C file
-
File path to the classless CSS file to be included in the report (optional).
- --to, -E timestamp
-
End of the time range in ISO 8601.
- --version, -v
-
Output version information and quit.
Write a report to file report.html
based on settings in dmreport.conf
:
$ dmreport --name dmreport --config dmreport.conf \ --from 2020-01-01 --to 2021-01-01 --output report.html
Project web site: https://www.dabamos.de/