Commit Graph

188 Commits

Author SHA1 Message Date
3451996a8f feat: Add temperature ranges for extruder and bed temps (#5)
Some checks failed
CI / style (push) Has been cancelled
CI / build-client (push) Has been cancelled
CI / build-amd64 (push) Has been cancelled
CI / build-tester (push) Has been cancelled
CI / test (cockroachdb) (push) Has been cancelled
CI / test (mariadb) (push) Has been cancelled
CI / test (postgres) (push) Has been cancelled
CI / test (sqlite) (push) Has been cancelled
CI / build-arm64 (push) Has been cancelled
CI / build-armv7 (push) Has been cancelled
CI / publish-images (push) Has been cancelled
CI / publish-release (push) Has been cancelled
Store extruder and bed temperatures as min/max ranges instead of
single values for more accurate filament specifications.

Backend changes:
- Add 4 new columns: settings_extruder_temp_min/max, settings_bed_temp_min/max
- Keep old columns for backward compatibility (marked deprecated)
- Alembic migration copies existing values to both min and max
- Update Pydantic models and API endpoints

Frontend changes:
- Filament model updated with new fields
- Create form uses min/max input pairs with Space.Compact
- Import from external DB populates both min and max with same value
- Label template updated to show ranges: "ET: 190-220 °C"
- Template help includes new tags

Labels now display temperature ranges like "190-220°C" which is more
useful for printing than a single recommended value.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-14 20:05:02 -06:00
Donkie
0b9b3e7391 Some style fixes 2025-06-08 12:00:10 +02:00
ecarjat
de7fccdc1a Merge branch 'master' into master 2025-06-06 09:22:44 +02:00
Paul Sinclair
ea36a94327 🔨 Add pool_recycle for MySQL 2025-04-05 09:58:34 -04:00
Donkie
dcf043cb71 Fix uvicorn logging handler removal to prevent index error 2025-03-18 20:45:36 +01:00
Donkie
70ea7ad414 Update python dependencies and ruff/black versions 2025-03-16 21:34:02 +01:00
Thorsten Lanfer
55acc4993d reformat 2025-03-05 19:46:54 +01:00
Thorsten Lanfer
4b8fd3aed3 Update spool.py 2025-02-24 22:21:10 +01:00
Thorsten Lanfer
28f6f8e916 Allow posting partial updates of extra attributes 2025-02-24 22:21:10 +01:00
Donkie
3a44a01467 Fixed style in externaldb.py 2025-02-24 21:20:27 +01:00
Donkie
d930217cd3 Merge pull request #604 from cboelsen/master
Allow disabling access log with uvicorn's `--no-access-log`
2025-02-24 21:02:17 +01:00
Donkie
cf0d458364 Merge pull request #591 from inukiwi/master
Do not ignore empty lists in database selects
2025-02-24 21:00:30 +01:00
Donkie
9d9f297065 Merge pull request #587 from fleaz/fix_disable_download
Properly build URLs with urljoin
2025-02-24 20:57:26 +01:00
ecarjat
108fdd2908 Added SPOOLMAN_CORS_ORIGIN variable 2025-01-26 15:41:58 +01:00
Christian Boelsen
418c8cf518 Allow disabling access log with uvicorn's --no-access-log 2025-01-25 16:10:07 +00:00
inukiwi
1f3c1c0ad5 Do not ignore empty lists in database selects 2025-01-15 23:14:09 +01:00
fleaz
a2e6ad983a Properly build URLs with urljoin 2025-01-13 19:51:35 +01:00
Erik Michelson
e93f89aa51 Add setting to toggle rounding of prices 2024-12-30 01:07:38 +01:00
Dmitry Belousov
b37c19eb9e diameter is missed 2024-12-12 22:42:22 +03:00
Dmitry Belousov
385d9bb3da Add spool initial weight. Change some descriptions. 2024-12-12 22:40:35 +03:00
Dmitry Belousov
4ee34f67d1 Add spool initial weight. Change some descriptions. 2024-12-12 22:38:11 +03:00
Donkie
139d435cee Fixed manufacturer with spool weight 0 not being allowed
Resolves #521
2024-11-25 20:49:39 +01:00
Donkie
649c074bb3 Fix uvicorn doing its own thing when logging
Resolves #532
2024-11-25 20:21:28 +01:00
Donkie
bf06408368 Added reading and using of spool orders in locations 2024-11-20 21:57:01 +01:00
Donkie
37b6d1fcee Added ability to rename location 2024-11-20 21:00:39 +01:00
Donkie
e4175e26ec Added a locations setting so empty locations are still kept around 2024-11-19 22:32:05 +01:00
Donkie
86f69d470f Added backend supported csv/json export functionality 2024-10-27 12:36:39 +01:00
samturner3
a0e9f10127 Rename setting 'qr_code_url' to 'base_url' 2024-08-26 18:08:13 +10:00
samturner3
2937d7d5bc Merge remote-tracking branch 'upstream/master' 2024-08-24 16:18:17 +10:00
Donkie
32c737fa98 Revert so commit now happens before notice, but add a catch-all to websocket notifications 2024-08-16 15:13:09 +02:00
Donkie
e5f79493cc Fixed error on trying to send ws message to disconnected client
This could result in a major filament usage track failure since the Use http request would fail and Moonraker would keep retrying to save the used filament. However it was actually saved since the db.commit() happens before the websocket message fails.
2024-08-16 10:28:22 +02:00
Donkie
93d27a96d3 Spool weight can now be set to 0
Fixes #422
2024-08-05 19:39:54 +02:00
Donkie
71f6ce55f5 Renamed print settings to presets instead, manual preset store button 2024-08-05 16:06:00 +02:00
Donkie
426496b4e5 Recoded label printing settings to store in DB instead of in browser 2024-06-15 14:07:48 +02:00
Donkie
cc7dceb2a3 Fixed backend not supporting editing multi color dir 2024-06-08 22:50:01 +02:00
Donkie
8c164ac55f Added backend support for multi-color filaments 2024-05-28 18:49:24 +02:00
Donkie
b00075ab87 Added backend support to perform exact matches 2024-05-25 20:56:22 +02:00
Donkie
c851950701 Tests fully pass again 2024-05-23 20:13:51 +02:00
Donkie
535fa40ad2 Updated most python dependencies
Primarily FastAPI and Pydantic to v2. Also ruff to latest.

Updated some code to support Pydantic v2
2024-05-23 19:42:27 +02:00
Donkie
26f5eaa2f7 Fixed base path issues 2024-05-22 20:15:39 +02:00
Donkie
620febc3ab Moved hishel cache directory into spoolmans data directory
This is to prevent permission issues
2024-05-21 11:25:08 +02:00
Donkie
59295a3e5a Added permission error catch for setting up hishel cache 2024-05-21 00:00:10 +02:00
Donkie
ca545b72b9 Fixed spool price sorting not working
Resolves #349
2024-05-20 22:42:44 +02:00
Donkie
52c52bcfd8 Updated external db sync to handle spool types and new color hex format 2024-05-20 22:39:25 +02:00
Donkie
c4693d3f34 Implemented used_length spool sort 2024-05-15 20:18:24 +02:00
Donkie
51c3b46f1f Fixed wrong remaining weight and length spool sort 2024-05-15 20:17:00 +02:00
Donkie
46ab709f72 Added extruder and bed temp to materials external db 2024-05-12 22:12:13 +02:00
Donkie
e4d2ecf0dc Filament/vendor find by ext id + integration tests 2024-05-12 21:58:01 +02:00
Donkie
4af975d390 Removed 404 codes from find apis because they will never return that 2024-05-12 21:58:01 +02:00
Donkie
c2f2f845f6 Removed hashtag from external db color 2024-05-12 21:58:01 +02:00