Commit graph

126 commits

Author SHA1 Message Date
98227a0a86 add spoolman auth 2026-04-12 12:04:22 +02:00
Sebastian Andersson
b0c58fca13
Update README.md
Update description of link to https://github.com/ryanch/openprinttag_scanner
2026-02-16 10:59:08 +01:00
Sebastian Andersson
4720976009
Update README.md
Added link to https://github.com/ryanch/openprinttag_scanner
2026-02-16 10:57:15 +01:00
dependabot[bot]
3823b4e780 Bump gunicorn from 25.0.3 to 25.1.0
Bumps [gunicorn](https://github.com/benoitc/gunicorn) from 25.0.3 to 25.1.0.
- [Release notes](https://github.com/benoitc/gunicorn/releases)
- [Commits](https://github.com/benoitc/gunicorn/compare/25.0.3...25.1.0)

---
updated-dependencies:
- dependency-name: gunicorn
  dependency-version: 25.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-16 06:33:36 +01:00
dependabot[bot]
2caca5ff91 Bump npyscreen from 4.10.5 to 5.0.2
Bumps [npyscreen](https://github.com/npcole/npyscreen) from 4.10.5 to 5.0.2.
- [Release notes](https://github.com/npcole/npyscreen/releases)
- [Changelog](https://github.com/npcole/npyscreen/blob/master/CHANGELOG)
- [Commits](https://github.com/npcole/npyscreen/commits/v5.0.2)

---
updated-dependencies:
- dependency-name: npyscreen
  dependency-version: 5.0.2
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-09 09:21:07 +01:00
Sebastian Andersson
f44f349d8a Fix nfc2klipper_api with gunicorn and formatting 2026-02-09 09:18:56 +01:00
dependabot[bot]
b89b0c2f32 Bump gunicorn from 24.1.1 to 25.0.3
Bumps [gunicorn](https://github.com/benoitc/gunicorn) from 24.1.1 to 25.0.3.
- [Release notes](https://github.com/benoitc/gunicorn/releases)
- [Commits](https://github.com/benoitc/gunicorn/compare/24.1.1...25.0.3)

---
updated-dependencies:
- dependency-name: gunicorn
  dependency-version: 25.0.3
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-09 09:18:56 +01:00
dependabot[bot]
911409c310 Bump gunicorn from 23.0.0 to 24.1.1
Bumps [gunicorn](https://github.com/benoitc/gunicorn) from 23.0.0 to 24.1.1.
- [Release notes](https://github.com/benoitc/gunicorn/releases)
- [Commits](https://github.com/benoitc/gunicorn/compare/23.0.0...24.1.1)

---
updated-dependencies:
- dependency-name: gunicorn
  dependency-version: 24.1.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-26 08:12:33 +01:00
Sebastian Andersson
82afd6a786 Added links to related projects 2026-01-14 16:33:46 +01:00
Sebastian Andersson
96cfcc9b08 Move OpenTag3DParser to own file 2026-01-13 11:08:21 +01:00
dependabot[bot]
d1538a6096 Bump types-requests from 2.32.4.20250913 to 2.32.4.20260107
Bumps [types-requests](https://github.com/typeshed-internal/stub_uploader) from 2.32.4.20250913 to 2.32.4.20260107.
- [Commits](https://github.com/typeshed-internal/stub_uploader/commits)

---
updated-dependencies:
- dependency-name: types-requests
  dependency-version: 2.32.4.20260107
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-12 06:01:01 +01:00
Sebastian Andersson
fe4f4580d0 Update README 2026-01-02 18:05:13 +01:00
Sebastian Andersson
9926516759 Update urllib3 2025-12-06 19:24:33 +01:00
Sebastian Andersson
17886c367f
Update README.md
Add a section about OpenPrintTag, fix minor stuff
2025-11-29 12:47:50 +01:00
Sebastian Andersson
60e32c28ee Better defaults handling for OpenTag3d + dbg 2025-11-29 12:19:41 +01:00
Sebastian Andersson
e504c95791 Remove mypy from requirements 2025-11-29 12:19:41 +01:00
copilot-swe-agent[bot]
d4799d5bfd Clarify that material_name is a computed field in config comments
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-28 21:09:21 +01:00
copilot-swe-agent[bot]
ad09f87517 Fix multi_color_hexes list construction for better readability
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-28 21:09:21 +01:00
copilot-swe-agent[bot]
d0ef5fbd9a Update OpenTag3D parser for new NDEF record format (spec v0.012)
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-28 21:09:21 +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]
96bfce30e5 Add documentation comments to systemd service files
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]
36755cbac3 Remove Python 3.9 from GitHub Actions testing matrix
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-28 13:18:42 +01:00
dependabot[bot]
030c119532 Bump mypy from 1.13.0 to 1.18.2
Bumps [mypy](https://github.com/python/mypy) from 1.13.0 to 1.18.2.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python/mypy/compare/v1.13.0...v1.18.2)

---
updated-dependencies:
- dependency-name: mypy
  dependency-version: 1.18.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-11 15:39:41 +01:00
dependabot[bot]
7044b599b7 Bump types-requests from 2.32.0.20241016 to 2.32.4.20250913
Bumps [types-requests](https://github.com/typeshed-internal/stub_uploader) from 2.32.0.20241016 to 2.32.4.20250913.
- [Commits](https://github.com/typeshed-internal/stub_uploader/commits)

---
updated-dependencies:
- dependency-name: types-requests
  dependency-version: 2.32.4.20250913
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-11 15:38:26 +01:00
dependabot[bot]
1caef5dd76 Bump requests from 2.32.4 to 2.32.5
Bumps [requests](https://github.com/psf/requests) from 2.32.4 to 2.32.5.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.32.4...v2.32.5)

---
updated-dependencies:
- dependency-name: requests
  dependency-version: 2.32.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-11 15:37:53 +01:00
Sebastian Andersson
d41b5f7888 Add python deps in the scripts 2025-11-10 16:19:04 +01:00
Sebastian Andersson
a9ea067ea9 Update minimum python >= 3.9 2025-11-10 16:19:04 +01:00
copilot-swe-agent[bot]
a41ec90b11 Update OpenTag3D to search by vendor, material, and name
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-10 07:02:40 +01:00
copilot-swe-agent[bot]
61653e8294 Add OpenTag3D parser and Spoolman integration methods
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-09 20:50:03 +01:00
copilot-swe-agent[bot]
bc288f7669 Refactor NFC parsing: Extract parsing logic to separate module
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-09 11:53:48 +01:00
copilot-swe-agent[bot]
12c5717650 Add configurable macros section to support custom commands
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-09 09:58:23 +01:00
Sebastian Andersson
00df5e0c8b Fix copyright year 2025-11-06 20:30:30 +01:00
Sebastian Andersson
41c31a9d5f Fix duplicate code 2025-11-06 20:30:30 +01:00
Sebastian Andersson
6d43c3bb72 Change 'current nfc-id' text in webpage 2025-11-06 20:30:30 +01:00
copilot-swe-agent[bot]
a670158585 Improve error message when backend is down to inform user to start nfc2klipper_backend
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-06 20:30:30 +01:00
copilot-swe-agent[bot]
a7db1019f1 Extract IPC handling code to reusable lib/ipc.py module
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-06 20:30:30 +01:00
copilot-swe-agent[bot]
beb3ee2225 Refactor request handlers to use proper arguments with introspection, add mock objects, and nosec comments
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-06 20:30:30 +01:00
Sebastian Andersson
58c9469524 Change supported python versions 2025-11-06 20:30:30 +01:00
copilot-swe-agent[bot]
80029334d8 Fix security vulnerabilities - prevent stack trace exposure and add workflow permissions
Allow some error messages to be shown to users for better debugging

Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
2025-11-06 20:30:30 +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]
5e21c0ef2d Refactor request handling with decorator-based registry
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
45ce87a3be Update documentation, add service files 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]
aeb1af8244 Fix security issue: prevent stack trace exposure in API responses
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