2017-02-15 08:33:38 +00:00
|
|
|
# mqtt data logger
|
2017-02-15 16:36:03 +00:00
|
|
|
## Prerequisites
|
|
|
|
|
2017-02-15 16:42:57 +00:00
|
|
|
Depends on `communication_protocols.py` (https://files.blackfinn.de/python/communication_protocols.py).
|
2017-02-15 16:36:03 +00:00
|
|
|
|
|
|
|
## 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
|
2017-02-15 16:42:57 +00:00
|
|
|
Log file are stored at `/var/log/mqtt/...`
|