34 lines
558 B
Markdown
34 lines
558 B
Markdown
# mqtt data logger
|
|
## Prerequisites
|
|
|
|
Depends on `communication_protocols.py` (https://files.blackfinn.de/python/communication_protocols.py).
|
|
|
|
## Installation
|
|
|
|
* extract tar file:
|
|
|
|
```shell
|
|
$ tar xvf mqtt_logger-0.1.0.tar.xz
|
|
```
|
|
|
|
* run install script (as super user):
|
|
|
|
```shell
|
|
$ python setup.py install
|
|
```
|
|
|
|
* enable `systemd` service (as superuser):
|
|
|
|
```shell
|
|
$ systemctl enable mqtt_logger.service
|
|
```
|
|
|
|
* start `systemd` service (as superuser):
|
|
|
|
```shell
|
|
$ systemctl start mqtt_logger.service
|
|
```
|
|
|
|
## Service
|
|
Log file are stored at `/var/log/mqtt/...`
|