Skip to content

Commit

Permalink
Add write_tags script, update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bofh69 committed Mar 13, 2024
1 parent 24b1c5f commit e0c7331
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions write_tags
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

systemctl stop nfc2klipper.service
./venv/bin/python3 ./write_tags.py || true
systemctl start nfc2klipper.service

0 comments on commit e0c7331

Please sign in to comment.