summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2020-10-15 14:25:55 +0200
committerxengineering <mail2xengineering@protonmail.com>2020-10-15 17:13:45 +0200
commit41298918b96cbb1f634a794ae9cc71f62acb6a55 (patch)
tree536447c986c849e264d05783c3cc97b7c20e3297
parent139bcb8821ba39e94d38d32f61210e4a2c1c75f0 (diff)
downloadiot-barcode-scanner-41298918b96cbb1f634a794ae9cc71f62acb6a55.tar
iot-barcode-scanner-41298918b96cbb1f634a794ae9cc71f62acb6a55.tar.zst
iot-barcode-scanner-41298918b96cbb1f634a794ae9cc71f62acb6a55.zip
Patch for Raspberry Pi OS
-rw-r--r--Makefile2
-rw-r--r--README.md3
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3fb6faf..013e37b 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ INSTALL_DATA=$(INSTALL) -m 644
bindir=$(DESTDIR)$(PREFIX)/bin
sharedir=$(DESTDIR)$(PREFIX)/share
confdir=$(DESTDIR)/etc/xengineering.eu/$(PKGNAME)
-libdir=$(DESTDIR)$(PREFIX)/lib/python3.8/site-packages/$(PKGNAME)
+libdir=$(DESTDIR)$(PREFIX)/lib/python3/dist-packages/$(PKGNAME)
.PHONY: install uninstall
diff --git a/README.md b/README.md
index 318331c..5cdbe0d 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@ A service that makes barcode scanners available on the network for IoT use.
cd iot-barcode-scanner
sudo make install
```
-2. Configure /etc/xengineering.eu/iot_barcode_scanner/config.json
+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"```)
@@ -27,6 +27,7 @@ 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
+- [ ] Make python package installation portable across linux distributions
- [ ] Implement systemd services
- [ ] Implement auto discovery of barcode scanners
- [ ] Package it for Arch Linux