Skip to content

Commit

Permalink
Updated man pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
interkosmos committed Oct 10, 2024
1 parent f329b02 commit 75baec8
Show file tree
Hide file tree
Showing 3 changed files with 161 additions and 5 deletions.
3 changes: 3 additions & 0 deletions adoc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ man:
$(ADOC) -b manpage -D $(MANDIR) $(ADOCDIR)/dmapi.adoc
$(ADOC) -b manpage -D $(MANDIR) $(ADOCDIR)/dmbackup.adoc
$(ADOC) -b manpage -D $(MANDIR) $(ADOCDIR)/dmbeat.adoc
$(ADOC) -b manpage -D $(MANDIR) $(ADOCDIR)/dmbot.adoc
$(ADOC) -b manpage -D $(MANDIR) $(ADOCDIR)/dmdb.adoc
$(ADOC) -b manpage -D $(MANDIR) $(ADOCDIR)/dmdbctl.adoc
$(ADOC) -b manpage -D $(MANDIR) $(ADOCDIR)/dmexport.adoc
Expand Down Expand Up @@ -47,6 +48,7 @@ pdf:
$(MAN) -t $(MANDIR)/dmapi.1 | $(PS2PDF) - $(PDFDIR)/dmapi.pdf
$(MAN) -t $(MANDIR)/dmbackup.1 | $(PS2PDF) - $(PDFDIR)/dmbackup.pdf
$(MAN) -t $(MANDIR)/dmbeat.1 | $(PS2PDF) - $(PDFDIR)/dmbeat.pdf
$(MAN) -t $(MANDIR)/dmbot.1 | $(PS2PDF) - $(PDFDIR)/dmbot.pdf
$(MAN) -t $(MANDIR)/dmdb.1 | $(PS2PDF) - $(PDFDIR)/dmdb.pdf
$(MAN) -t $(MANDIR)/dmdbctl.1 | $(PS2PDF) - $(PDFDIR)/dmdbctl.pdf
$(MAN) -t $(MANDIR)/dmexport.1 | $(PS2PDF) - $(PDFDIR)/dmexport.pdf
Expand Down Expand Up @@ -74,6 +76,7 @@ html:
$(MANDOC) -Ostyle=mandoc.css -Thtml $(MANDIR)/dmapi.1 > $(HTMLDIR)/dmapi.html
$(MANDOC) -Ostyle=mandoc.css -Thtml $(MANDIR)/dmbackup.1 > $(HTMLDIR)/dmbackup.html
$(MANDOC) -Ostyle=mandoc.css -Thtml $(MANDIR)/dmbeat.1 > $(HTMLDIR)/dmbeat.html
$(MANDOC) -Ostyle=mandoc.css -Thtml $(MANDIR)/dmbot.1 > $(HTMLDIR)/dmbot.html
$(MANDOC) -Ostyle=mandoc.css -Thtml $(MANDIR)/dmdb.1 > $(HTMLDIR)/dmdb.html
$(MANDOC) -Ostyle=mandoc.css -Thtml $(MANDIR)/dmdbctl.1 > $(HTMLDIR)/dmdbctl.html
$(MANDOC) -Ostyle=mandoc.css -Thtml $(MANDIR)/dmexport.1 > $(HTMLDIR)/dmexport.html
Expand Down
10 changes: 5 additions & 5 deletions man/dmbeat.1
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
.\" Title: dmbeat
.\" Author: Philipp Engel
.\" Generator: Asciidoctor 2.0.23
.\" Date: 2024-10-03
.\" Date: 2024-10-10
.\" Manual: User Commands
.\" Source: DMBEAT
.\" Language: English
.\"
.TH "DMBEAT" "1" "2024-10-03" "DMBEAT" "User Commands"
.TH "DMBEAT" "1" "2024-10-10" "DMBEAT" "User Commands"
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.ss \n[.ss] 0
Expand Down Expand Up @@ -36,7 +36,7 @@ dmbeat \- sends status messages to an RPC server
\fBdmbeat\fP \-\-version
.sp
\fBdmbeat\fP \-\-\fBnode\fP \fIid\fP \-\-\fBhost\fP \fIhost\fP [\-\-\fBport\fP \fIport\fP] [\-\-\fBtls\fP]
[\-\-\fBusername\fP \fIuser\fP] [\-\-\fBpassword\fP \fIpassword\fP [\-\-\fBcount\fP \fIn\fP]
[\-\-\fBusername\fP \fIuser\fP] [\-\-\fBpassword\fP \fIpassword\fP] [\-\-\fBcount\fP \fIn\fP]
[\-\-\fBinterval\fP \fIseconds\fP] [\-\-\fBcompression\fP \fIname\fP] [\-\-\fBlogger\fP \fIname\fP]
[\-\-\fBdebug\fP] [\-\-\fBverbose\fP]
.sp
Expand Down Expand Up @@ -114,8 +114,8 @@ arguments is insecure and only recommended for testing.
.sp
\fB\-\-port\fP, \fB\-q\fP \fIport\fP
.RS 4
Port of RPC API server. The default is 0 (automatic selection depending on
protocol).
Port of RPC API server. The default port is 0 (automatic selection depending
on protocol).
.RE
.sp
\fB\-\-tls\fP, \fB\-E\fP
Expand Down
153 changes: 153 additions & 0 deletions man/dmbot.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
'\" t
.\" Title: dmbot
.\" Author: Philipp Engel
.\" Generator: Asciidoctor 2.0.23
.\" Date: 2024-10-10
.\" Manual: User Commands
.\" Source: DMBOT
.\" Language: English
.\"
.TH "DMBOT" "1" "2024-10-10" "DMBOT" "User Commands"
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.ss \n[.ss] 0
.nh
.ad l
.de URL
\fI\\$2\fP <\\$1>\\$3
..
.als MTO URL
.if \n[.g] \{\
. mso www.tmac
. am URL
. ad l
. .
. am MTO
. ad l
. .
. LINKSTYLE blue R < >
.\}
.SH "NAME"
dmbot \- XMPP chat bot for remote control
.SH "SYNOPSIS"
.sp
\fBdmbot\fP \-\-help
.sp
\fBdmbot\fP \-\-version
.sp
\fBdmbot\fP \-\-\fBnode\fP \fIid\fP \-\-\fBjid\fP \fIjid\fP \-\-\fBpassword\fP \fIpassword\fP \-\-\fBhost\fP \fIhost\fP
[\-\-\fBport\fP \fIport\fP] [\-\-\fBtls\fP] [\-\-\fBlogger\fP \fIname\fP] [\-\-\fBdebug\fP] [\-\-\fBverbose\fP]
.sp
\fBdmbot\fP \-\-\fBconfig\fP \fIfile\fP [\-\-\fBname\fP \fIname\fP]
.SH "DESCRIPTION"
.sp
The program is an XMPP bot that accepts commands via chat.
.sp
Passing the XMPP credentials via the command\-line arguments \f(CR\-\-jid\fP and
\f(CR\-\-password\fP is insecure on multi\-user operating systems and only recommended
for testing.
.SH "OPTIONS"
.sp
\fB\-\-config\fP, \fB\-c\fP \fIfile\fP
.RS 4
Path to Lua\-based configuration file.
.RE
.sp
\fB\-\-debug\fP, \fB\-D\fP
.RS 4
Forward logs messages of level \f(CRLL_DEBUG\fP via IPC (if logger is set).
.RE
.sp
\fB\-\-help\fP, \fB\-h\fP
.RS 4
Output available command\-line arguments and quit.
.RE
.sp
\fB\-\-host\fP, \fB\-H\fP \fIhost\fP
.RS 4
Domain of XMPP host.
.RE
.sp
\fB\-\-logger\fP, \fB\-l\fP \fIname\fP
.RS 4
Name of logger. If set, sends logs to \fIdmlogger(1)\fP process of given name.
.RE
.sp
\fB\-\-name\fP, \fB\-n\fP \fIname\fP
.RS 4
Name of instance and table in given configuration file (default is \f(CRdmbot\fP).
.RE
.sp
\fB\-\-node\fP, \fB\-N\fP \fIid\fP
.RS 4
Sensor node id.
.RE
.sp
\fB\-\-password\fP, \fB\-P\fP \fIpassword\fP
.RS 4
JID password. Be aware that passing the credentials via command\-line
arguments is insecure and only recommended for testing.
.RE
.sp
\fB\-\-port\fP, \fB\-q\fP \fIport\fP
.RS 4
Port of XMPP server. The default port is 5222.
.RE
.sp
\fB\-\-tls\fP, \fB\-E\fP
.RS 4
Force TLS encryption.
.RE
.sp
\fB\-\-jid\fP, \fB\-J\fP \fIuser\fP
.RS 4
Jabber id (JID) of the form \f(CR[email protected]\fP.
.RE
.sp
\fB\-\-verbose\fP, \fB\-V\fP
.RS 4
Print log messages to \fIstderr\fP.
.RE
.sp
\fB\-\-version\fP, \fB\-v\fP
.RS 4
Output version information and quit.
.RE
.SH "EXIT STATUS"
.sp
\fB0\fP
.RS 4
Success.
Program executed without errors.
.RE
.sp
\fB1\fP
.RS 4
Failure.
Program execution failed.
.RE
.SH "EXAMPLE"
.sp
Connect with JID \f(CR[email protected]\fP to an XMPP server on port 5223 and wait for
commands:
.sp
.if n .RS 4
.nf
.fam C
$ dmbot \-\-node dummy\-node \-\-jid [email protected] \-\-password secret \(rs
\-\-host example.com \-\-port 5223 \-\-tls \-\-verbose
.fam
.fi
.if n .RE
.SH "RESOURCES"
.sp
\fBProject web site:\fP \c
.URL "https://www.dabamos.de/" "" ""
.SH "COPYING"
.sp
Copyright \(co 2024 Philipp Engel.
.br
Free use of this software is granted under the terms of the ISC Licence.
.SH "AUTHOR"
.sp
Philipp Engel

0 comments on commit 75baec8

Please sign in to comment.