diff --git a/README.md b/README.md index b731a7b..e08ab4b 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ There is a model for attaching it to the printer ### PN532 bug in the nfcpy module -When using running it with the raspberry pi's mini-uart (ttyS0 as device), it works fine. +When running it on a raspberry pi's mini-uart (ttyS0 as device), it works fine. When using the other UART (ttyAMA0), I can only run the programs once. I have to power cycle the PN532 to get them to run again. Just rebooting the pi doesn't help. @@ -100,6 +100,9 @@ use the `write_tags.py` program. The later fetches Spoolman's filaments, shows a simple text interface where the spool can be chosen, and when pressing return, writes to the tag. +Use the `write_tag` script to stop the nfc2klipper service before and +start it again after. + ## Run automaticly with systemd Copy nfc2klippper.service to `/etc/systemd/system`, then run: diff --git a/write_tags b/write_tags new file mode 100755 index 0000000..c687d65 --- /dev/null +++ b/write_tags @@ -0,0 +1,5 @@ +#!/bin/sh + +systemctl stop nfc2klipper.service +./venv/bin/python3 ./write_tags.py || true +systemctl start nfc2klipper.service