Commit graph

28 commits

Author SHA1 Message Date
Sebastian Andersson
f44f349d8a Fix nfc2klipper_api with gunicorn and formatting 2026-02-09 09:18:56 +01:00
copilot-swe-agent[bot]
a4389df92d Add pylint disable comments for duplicate-code warnings
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-28 15:02:27 +01:00
copilot-swe-agent[bot]
2a2be64074 Keep original default config directory, only add CLI option
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-28 15:02:27 +01:00
copilot-swe-agent[bot]
f4ce7647a5 Add configurable config directory with command-line option
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-28 15:02:27 +01:00
copilot-swe-agent[bot]
973c4c21bc Add mypy type checking infrastructure and fix all type errors
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-06 20:30:30 +01:00
copilot-swe-agent[bot]
b82cd035c8 Add comprehensive type annotations to all Python files
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-06 20:30:30 +01:00
copilot-swe-agent[bot]
02fc68ee20 Fix process cleanup - ensure both API and backend stop on Ctrl+C
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-06 20:30:30 +01:00
Sebastian Andersson
3f1ce8784f Disable some Bandit warnings 2025-11-06 20:30:30 +01:00
copilot-swe-agent[bot]
91923229cc Make socket path configurable
Default to ~/nfc2klipper/nfc2klipper.sock

Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-06 20:30:30 +01:00
copilot-swe-agent[bot]
b2146c90aa Split nfc2klipper.py into backend and API services communicating via Unix socket
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-06 20:30:30 +01:00
Sebastian Andersson
17429a2ff9 Add feature to set nfc_id from web 2025-05-09 19:54:11 +02:00
Sebastian Andersson
ddfdcbf354 Add cfg "always-send"
When true, the SET_ACTIVE_* macros are always called.
When missing, or false, avoid calling them after reading
the same spool & filament id again.
2025-05-09 19:53:47 +02:00
Sebastian Andersson
43b88acd0b Formatting fixes 2025-05-05 17:57:11 +02:00
Sebastian Andersson
611540cdb5 Lookup nfc-id, if spool/filament is missing 2025-05-05 17:57:11 +02:00
Sebastian Andersson
008ab8f375 Switch config file format to toml and move it.
The config file is read from ~/.config/nfc2klipper/nfc2klipper.cfg
2025-01-26 10:37:46 +01:00
Sebastian Andersson
6e7decede5 Change print to logger-calls 2025-01-01 12:15:56 +01:00
Sebastian Andersson
01cb7c933a Fix formatting and lint issues 2024-12-18 12:16:52 +01:00
Thijs Triemstra
0b3fa0088c
include name 2024-12-14 04:20:41 +01:00
Thijs Triemstra
507ba3ac0f
use logging module
to add timestamps to log messages and easier to integrate with journald
2024-12-14 04:12:03 +01:00
Sebastian Andersson
998c74690a Add web service to nfc2klipper for writing tags 2024-10-20 22:35:09 +02:00
Sebastian Andersson
6a459dbd13 Fix warning about args 2024-10-17 19:57:27 +02:00
Sebastian Andersson
55492d2c8f Add flushing of stdout after the prints 2024-03-09 20:27:51 +01:00
Sebastian Andersson
cd5a946a4f Add output when reading the same spool & filament 2024-03-09 19:27:59 +01:00
Sebastian Andersson
ad93c22c45 Change default device to ttyAMA0 2024-03-09 19:27:44 +01:00
Sebastian Andersson
2453a5410a Disable pylint warning 2024-03-06 18:30:07 +01:00
Sebastian Andersson
03e4e6f783 Start to use REUSE 2024-03-06 18:30:07 +01:00
Sebastian Andersson
02577dc347 Don't call klipper unecessary, improved output 2024-03-06 18:30:07 +01:00
Sebastian Andersson
ec9d3c199c
Add the beginning of a program to read RFID tags and call klipper 2024-03-05 13:42:26 +01:00