From 84b9ddcc2905f5d8667cfef1359b724c23d27365 Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 29 Oct 2020 12:11:32 +0100 Subject: Setup basic Systemd Units --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 97a5cc8..68b1235 100644 --- a/README.md +++ b/README.md @@ -13,11 +13,12 @@ A service that makes barcode scanners available on the network for IoT use. git clone https://github.com/xengineering/iot-barcode-scanner.git cd iot-barcode-scanner sudo make install + sudo useradd -Urs /usr/bin/nologin iotbarcode ``` -2. Configure ```/etc/xengineering.eu/iot_barcode_scanner/config.json``` -3. Run ```sudo eu.xengineering.iot_barcode_scanner.scanner &``` -4. Run ```eu.xengineering.iot_barcode_scanner.transmitter &``` -5. Listen to MQTT output (e.g. with ```mosquitto_sub -h localhost -t "xengineering.eu/iot-barcode-scanner"```) +2. Configure ```/etc/iot_barcode/config.json``` +3. Run ```sudo systemctl enable --now iot-barcode-device-handler``` +4. Run ```sudo systemctl enable --now iot-barcode``` +5. Listen to MQTT output (e.g. with ```mosquitto_sub -h localhost -t "xengineering.eu/iot-barcode"```) ## Milestones @@ -27,10 +28,10 @@ A service that makes barcode scanners available on the network for IoT use. - [x] Disable scanner as regular input source and bind it only to the service - [x] Split into two executables to reduce root-priviledged code - [x] Write Makefile for easy installation +- [x] Implement systemd services +- [ ] Package it for Arch Linux - [ ] Make python package installation portable across linux distributions -- [ ] Implement systemd services - [ ] Implement auto discovery of barcode scanners -- [ ] Package it for Arch Linux ## Dependencies -- cgit v1.2.3-70-g09d2