From 189daaf16b8c06c890fbbe35412e7c3c99a30107 Mon Sep 17 00:00:00 2001 From: interkosmos Date: Tue, 20 Aug 2024 10:03:11 +0200 Subject: [PATCH 1/2] Minor updates and fixes. --- guide/guide.adoc | 20 ++++++++++---------- src/dm_log.f90 | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/guide/guide.adoc b/guide/guide.adoc index ca8888a..2fb43d1 100644 --- a/guide/guide.adoc +++ b/guide/guide.adoc @@ -913,15 +913,15 @@ sensor.alt: 0.000000000000 The *dmexport* program writes beats, logs, nodes, sensors, targets, observations, and data points from database to file, in ASCII block, CSV, JSON, or JSON Lines format. The ASCII block format is only available for X/Y data -points. The types data point, log, and observation require a sensor id, a target -id, and a time range in ISO 8601 format. +points. The types data point, log, and observation require a sensor id, a +target id, and a time range in ISO 8601 format. -If no output file is given, the data is printed to standard output. The -output file will be overwritten if it already exists. If no records are found, -an empty file will be created. +If no output file is given, the data is printed to standard output. The output +file will be overwritten if it already exists. If no records are found, an +empty file will be created. .Output file formats -[[dmexport-output]] +[[dmexport-format]] [cols="1,2,2,2,2"] |=== | Type ^| Block ^| CSV ^| JSON ^| JSONL @@ -943,7 +943,7 @@ an empty file will be created. | Option | Short | Default | Description | `--database _file_` | `-d` | – | Path to SQLite database (required). -| `--format _format_` | `-f` | – | <> (`block`, `csv`, `json`, `jsonl`). +| `--format _format_` | `-f` | – | <> (`block`, `csv`, `json`, `jsonl`). | `--from _timestamp_` | `-B` | – | Start of time range in ISO 8601 (required for types `dp`, `log`, and `observ`). | `--header` | `-H` | off | Add CSV header. | `--help` | `-h` | – | Output available command-line arguments and quit. @@ -1012,8 +1012,8 @@ the web server. An example style sheet `feed.xsl` is located in | `--force` | `-F` | – | Force file output even if no new log records are available. | `--help` | `-h` | – | Output available command-line arguments and quit. | `--id _uuid_` | `-I` | – | UUID of the feed, 36 characters long with hyphens. -| `--maxlevel _level_` | `-K` | `critical` | Select log messages of the given maximum <> (between `debug` or 1 and `user` or 6). Must be greater or equal the minimum level. -| `--minlevel _level_` | `-L` | `debug` | Select log messages of the given minimum <> (between `debug` or 1 and `user` or 6). +| `--maxlevel _level_` | `-K` | `critical` | Select log messages of the given maximum <> (from `debug` or 1 to `user` or 6). Must be greater or equal the minimum level. +| `--minlevel _level_` | `-L` | `debug` | Select log messages of the given minimum <> (from `debug` or 1 to `user` or 6). | `--name _name_` | `-n` | `dmfeed` | Name of instance and table in configuration. | `--node _id_` | `-N` | – | Select log messages of the given node id. | `--output _file_` | `-o` | _stdout_ | Path of the output file. If empty or `-`, the Atom feed will be printed to standard output. @@ -1126,7 +1126,7 @@ Otherwise, the default log level is used instead. | `--config _file_` | `-c` | – | Path to configuration file (required). | `--debug` | `-D` | off | Forward log messages of level _debug_ (if logger is set). | `--help` | `-h` | – | Output available command-line arguments and quit. -| `--level _level_` | `-L` | 3 | Default level of log messages, between 1 and 5. +| `--level _level_` | `-L` | 3 | Default <> (from `debug` or 1 to `user` or 6). | `--logger _name_` | `-l` | – | Name of <> process to send logs to. | `--name _name_` | `-n` | `dmgrc` | Name of instance and table in configuration. | `--node _id_` | `-N` | – | Node id. diff --git a/src/dm_log.f90 b/src/dm_log.f90 index 8ca9f4b..aaa3318 100644 --- a/src/dm_log.f90 +++ b/src/dm_log.f90 @@ -11,9 +11,9 @@ module dm_log !! | 1 | `debug` | Debug messages. | !! | 2 | `info` | Hint message. | !! | 3 | `warning` | Warning message. | - !! | 5 | `error` | Non-critical error message. | - !! | 4 | `critical` | Critical error message (not used by DMPACK). | - !! | 5 | `user` | User-defined level (not used by DMPACK). | + !! | 4 | `error` | Non-critical error message. | + !! | 5 | `critical` | Critical error message (not used by DMPACK). | + !! | 6 | `user` | User-defined level (not used by DMPACK). | !! !! Log level _critical_ is reserved for monitoring events and not used by !! DMPACK internally. Level _user_ is reserved for user-defined events and From f3ec21ad525e9cdbd8f9743a03d80c5654ea67af Mon Sep 17 00:00:00 2001 From: interkosmos Date: Tue, 20 Aug 2024 10:17:57 +0200 Subject: [PATCH 2/2] Refactoring. --- share/dmweb/dmpack.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/share/dmweb/dmpack.css b/share/dmweb/dmpack.css index bd8aa1a..94d6520 100644 --- a/share/dmweb/dmpack.css +++ b/share/dmweb/dmpack.css @@ -1789,8 +1789,6 @@ select[multiple] { .packed { --density: 0; } .autodensity { --density: 1; } -#map { height: 600px; } - @media (min-width: 768px) { .autodensity { --density: 2; } } @media (min-width: 1024px) { .autodensity { --density: 3; } } @@ -1800,6 +1798,9 @@ select[multiple] { @media (max-width: 40rem) { .row { flex-direction: column; } } +/* Leaflet map height. */ +#map { height: 600px; } + /* .row, .rows > * { display: table-row;