From ff7395fb28e32848ad042d2051f9b18a7eefd595 Mon Sep 17 00:00:00 2001 From: Ajimaru Date: Tue, 1 Dec 2026 04:42:50 +0100 Subject: [PATCH 1/5] feat: add issue and pull request templates, configure .gitattributes, and remove unused README.txt --- .gitattributes | 34 +++++++++++ .github/ISSUE_TEMPLATE/bug_report.yml | 71 ++++++++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 1 + .github/ISSUE_TEMPLATE/feature_request.yml | 31 ++++++++++ .github/pull_request_template.md | 23 +++++++ extras/README.txt | 8 --- 6 files changed, 160 insertions(+), 8 deletions(-) create mode 100644 .gitattributes create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/feature_request.yml create mode 100644 .github/pull_request_template.md delete mode 100644 extras/README.txt diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..b90a385 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,34 @@ +# Store text files with LF in the repository and check them out with LF on all +# platforms, matching .editorconfig (end_of_line = lf). +* text=auto eol=lf + +# Windows-only scripts keep CRLF to stay runnable on Windows. +*.bat text eol=crlf +*.cmd text eol=crlf +*.ps1 text eol=crlf + +# Binary files: never normalise, never diff as text. +*.mo binary +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary +*.webp binary +*.zip binary +*.gz binary +*.db binary +*.woff binary +*.woff2 binary +*.ttf binary +*.otf binary +*.eot binary +*.pdf binary +*.xlsx binary + +# Minified third-party bundles stay byte-identical and out of language stats. +*.min.js -text linguist-vendored +*.min.css -text linguist-vendored + +# Jinja2 templates count as HTML in GitHub's language statistics. +*.jinja2 linguist-language=HTML diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..7f48efa --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,71 @@ +name: Bug report +description: Something is not working as expected +labels: ["bug"] +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to report a bug. Please fill in the fields below — + version numbers and logs are what make a bug reproducible. + + - type: textarea + id: what-happened + attributes: + label: What happened? + description: What went wrong, and what did you expect instead? + validations: + required: true + + - type: textarea + id: steps + attributes: + label: Steps to reproduce + placeholder: | + 1. Disconnect the printer … + 2. … + 3. See error + validations: + required: true + + - type: input + id: plugin-version + attributes: + label: Plugin version + description: See *Settings* → *Plugin Manager*. + validations: + required: true + + - type: input + id: octoprint-version + attributes: + label: OctoPrint version + validations: + required: true + + - type: dropdown + id: connection + attributes: + label: Printer connection + options: + - Serial / USB + - Moonraker connector + - Bambu connector + - Other connector + - Not sure + validations: + required: true + + - type: textarea + id: logs + attributes: + label: Log output + description: | + Relevant part of `octoprint.log` (logger `octoprint.plugins.autoconnectplus`), and the + browser console for UI problems. This is inserted as code, so no backticks needed. + render: shell + + - type: textarea + id: context + attributes: + label: Anything else? + description: Printer model, connector plugin and its version, screenshots, … diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..0086358 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: true diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000..309400c --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,31 @@ +name: Feature request +description: Suggest a new feature or an improvement +labels: ["enhancement"] +body: + - type: textarea + id: problem + attributes: + label: What problem would this solve? + description: What are you trying to do that is hard or impossible today? + validations: + required: true + + - type: textarea + id: solution + attributes: + label: How should it work? + description: Your idea of the feature, from a user's point of view. + validations: + required: true + + - type: textarea + id: alternatives + attributes: + label: Alternatives you considered + description: Workarounds you already tried, or other ways this could be solved. + + - type: textarea + id: context + attributes: + label: Anything else? + description: Mockups, links to other plugins or hardware, related issues, … diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..90c9d64 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,23 @@ +## What does this change? + + + +Closes # + +## Type of change + +- [ ] Bug fix +- [ ] New feature +- [ ] Documentation +- [ ] Refactoring / maintenance +- [ ] CI + +## How was it tested? + + + +## Checklist + +- [ ] Existing settings keep working, or the change explains what users need to do +- [ ] README updated, if the change affects it +- [ ] Translations updated with `pybabel` (extract, update, compile), if UI strings changed diff --git a/extras/README.txt b/extras/README.txt deleted file mode 100644 index a201b19..0000000 --- a/extras/README.txt +++ /dev/null @@ -1,8 +0,0 @@ -Currently Cookiecutter generates the following helpful extras to this folder: - -autoconnectplus.md - Data file for plugins.octoprint.org. Fill in the missing TODOs once your - plugin is ready for release and file a PR as described at - http://plugins.octoprint.org/help/registering/ to get it published. - -This folder may be safely removed if you don't need it. From e8921a4003824bf69570549c19e94fb18175290b Mon Sep 17 00:00:00 2001 From: Ajimaru Date: Tue, 1 Dec 2026 18:49:13 +0100 Subject: [PATCH 2/5] fix: update .editorconfig for improved coding style consistency across files --- .editorconfig | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/.editorconfig b/.editorconfig index df59181..ad4ec7d 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,18 +1,23 @@ -# This file is for unifying the coding style for different editors and IDEs -# editorconfig.org - +# Coding style shared by all plugins, matching OctoPrint itself (its +# .editorconfig and .prettierrc.yaml). See https://editorconfig.org root = true [*] -end_of_line = lf charset = utf-8 +end_of_line = lf +indent_style = space +indent_size = 4 insert_final_newline = true trim_trailing_whitespace = true +max_line_length = 90 -[**.py] -indent_style = space -indent_size = 4 +# Python stays at 88 (black/isort default) until the linters move to 90 too; +# isort reads this value. +[*.py] +max_line_length = 88 -[**.js] -indent_style = space -indent_size = 4 +[*.{yml,yaml,json,less,md}] +indent_size = 2 + +[*.{bat,cmd,ps1}] +end_of_line = crlf From cf3130f701a770b84cbe78280b1ca2a16d396dba Mon Sep 17 00:00:00 2001 From: Ajimaru Date: Wed, 2 Dec 2026 08:27:41 +0100 Subject: [PATCH 3/5] feat: add Codacy configuration, update CI workflow, and implement CodeQL analysis --- .codacy.yml | 14 ++ .github/workflows/ci.yaml | 81 --------- .github/workflows/ci.yml | 308 +++++++++++++++++++++++++++++++++++ .github/workflows/codeql.yml | 37 +++++ README.md | 2 +- 5 files changed, 360 insertions(+), 82 deletions(-) create mode 100644 .codacy.yml delete mode 100644 .github/workflows/ci.yaml create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/codeql.yml diff --git a/.codacy.yml b/.codacy.yml new file mode 100644 index 0000000..3d33590 --- /dev/null +++ b/.codacy.yml @@ -0,0 +1,14 @@ +--- +# Paths Codacy does not analyse; shared by all plugins. +exclude_paths: + - "tests/**" + - "**/test/**" + - "docs/**" + - "scripts/**" + - "translations/**" + - "**/translations/**" + - "archive/**" + - "3rdPartySoftware/**" + - "**/vendor/**" + - "**/*.min.js" + - "**/*.min.css" diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index 99001c4..0000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,81 +0,0 @@ -name: CI - -on: - push: - branches: [main, dev] - pull_request: - -permissions: - contents: read - -jobs: - lint: - name: Lint (ruff) - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v7 - - - name: Set up Python - uses: actions/setup-python@v7 - with: - python-version: "3.13" - - - name: Install ruff - run: python -m pip install ruff - - - name: Run ruff - run: ruff check . - - # Run the unit tests against both OctoPrint generations: the tests mock the - # connector framework themselves, so they pass on 1.x (serial-only) too. - test: - name: Tests (OctoPrint ${{ matrix.label }}, Python ${{ matrix.python }}) - runs-on: ${{ matrix.runner || 'ubuntu-latest' }} - strategy: - fail-fast: false - matrix: - include: - # Oldest and newest supported Python against the stable 1.x line. - # actions/setup-python has no Python 3.9 for ubuntu-latest (26.04) - # any more, only up to 24.04 - but 3.9 stays supported - # (requires-python, OctoPi images on Debian Bullseye run it). - - label: "1.x" - python: "3.9" - runner: ubuntu-24.04 - octoprint: "OctoPrint>=1.11,<2" - pre: "" - blocking: true - - label: "1.x" - python: "3.12" - octoprint: "OctoPrint>=1.11,<2" - pre: "" - blocking: true - # Stable 2.x (2.0.0 shipped 2026-11-16). Blocking like 1.x: it also - # runs tests/test_import_guard.py, which fails if the plugin loses - # its connector support to OctoPrint's circular import - or reports - # (strict XPASS) that OctoPrint fixed it and the workaround can go. - - label: "2.x" - python: "3.12" - octoprint: "OctoPrint>=2,<3" - pre: "" - blocking: true - - steps: - - name: Checkout - uses: actions/checkout@v7 - - - name: Set up Python - uses: actions/setup-python@v7 - with: - python-version: ${{ matrix.python }} - - - name: Install OctoPrint and pytest - run: | - python -m pip install --upgrade pip - python -m pip install ${{ matrix.pre }} "${{ matrix.octoprint }}" pytest - - - name: Run tests - # Non-blocking legs report failures without failing the job. - continue-on-error: ${{ !matrix.blocking }} - run: python -m pytest -q diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..b3be6e1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,308 @@ +name: CI + +# Lint, tests, build and translation checks for pull requests and the long-lived +# branches. Every plugin repo uses this workflow; only env and matrices differ. +on: + pull_request: + push: + branches: [main, dev] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +env: + PLUGIN_PACKAGE: octoprint_autoconnectplus + # pip arguments for the test run, installed after OctoPrint. + TEST_DEPS: "" + TEST_PATH: "" + # "pre-commit" once the repo has a hook config, else "ruff" with RUFF_ARGS. + LINT: ruff + RUFF_ARGS: "" + # setup.py imports octoprint_setuptools, so those builds need OctoPrint installed. + BUILD_ARGS: "" + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + + - uses: actions/setup-python@v7 + with: + python-version: "3.13" + + # Hooks with `language: system` need the node packages and ShellCheck 0.11. + - name: Set up Node.js + if: env.LINT == 'pre-commit' && hashFiles('package.json') != '' + uses: actions/setup-node@v7 + with: + node-version: "22" + + - name: Install node packages + if: env.LINT == 'pre-commit' && hashFiles('package.json') != '' + run: | + if [ -f package-lock.json ]; then npm ci --no-audit --no-fund + else npm install --no-audit --no-fund; fi + + - name: Install ShellCheck + if: env.LINT == 'pre-commit' && hashFiles('.githooks/shellcheck-hook.sh') != '' + run: | + url=https://github.com/koalaman/shellcheck/releases/download/v0.11.0/shellcheck-v0.11.0.linux.x86_64.tar.xz + curl -fsSL "$url" | tar -xJ -C "$RUNNER_TEMP" + sudo install "$RUNNER_TEMP/shellcheck-v0.11.0/shellcheck" /usr/local/bin/shellcheck + + - name: Cache pre-commit hook environments + if: env.LINT == 'pre-commit' + uses: actions/cache@v6 + with: + path: ~/.cache/pre-commit + key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} + + - name: Run pre-commit + if: env.LINT == 'pre-commit' + # The translations hook needs a local venv; the Translations job covers it. + env: + SKIP: check-translations + run: | + python -m pip install pre-commit + pre-commit run --all-files --show-diff-on-failure + + - name: Run ruff + if: env.LINT == 'ruff' + run: | + python -m pip install ruff + # The variables hold several arguments; split them on purpose. + # shellcheck disable=SC2086 + ruff check $RUFF_ARGS . + + tests: + name: Tests (OctoPrint ${{ matrix.octoprint }}, Python ${{ matrix.python }}) + runs-on: ${{ matrix.runner }} + strategy: + fail-fast: false + matrix: + include: + # Every Python version each OctoPrint generation supports. + - { octoprint: "1.x", python: "3.9", runner: ubuntu-24.04 } + - { octoprint: "1.x", python: "3.10", runner: ubuntu-latest } + - { octoprint: "1.x", python: "3.11", runner: ubuntu-latest } + - { octoprint: "1.x", python: "3.12", runner: ubuntu-latest } + - { octoprint: "1.x", python: "3.13", runner: ubuntu-latest } + - { octoprint: "2.x", python: "3.9", runner: ubuntu-24.04 } + - { octoprint: "2.x", python: "3.10", runner: ubuntu-latest } + - { octoprint: "2.x", python: "3.11", runner: ubuntu-latest } + - { octoprint: "2.x", python: "3.12", runner: ubuntu-latest } + - { octoprint: "2.x", python: "3.13", runner: ubuntu-latest, coverage: true } + - { octoprint: "2.x", python: "3.14", runner: ubuntu-latest } + - { octoprint: "2.x", python: "3.15", runner: ubuntu-latest } + env: + CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_API_TOKEN }} + steps: + - uses: actions/checkout@v7 + + - uses: actions/setup-python@v7 + with: + python-version: ${{ matrix.python }} + + - name: Install OctoPrint and test dependencies + run: | + python -m pip install --upgrade pip setuptools wheel + # OctoPrint 1.x's octoprint_setuptools still needs pkg_resources. + if [ "${{ matrix.octoprint }}" = "1.x" ]; then + python -m pip install "OctoPrint>=1.11,<2" "setuptools<81" + else + python -m pip install "OctoPrint>=2,<3" + fi + set -f # keep extras like .[test] away from globbing + # The variables hold several arguments; split them on purpose. + # shellcheck disable=SC2086 + python -m pip install pytest pytest-cov $TEST_DEPS + + - name: Run tests + run: | + # The variables hold several arguments; split them on purpose. + # shellcheck disable=SC2086 + if [ "${{ matrix.coverage }}" = "true" ]; then + python -m pytest -q $TEST_PATH --cov="$PLUGIN_PACKAGE" --cov-report=xml + else + python -m pytest -q $TEST_PATH + fi + + - name: Upload coverage to Codecov + if: matrix.coverage + uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1 + with: + files: coverage.xml + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: false + + # Skipped until the repo has a CODACY_API_TOKEN secret. + - name: Upload coverage to Codacy + if: matrix.coverage && env.CODACY_PROJECT_TOKEN != '' + run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage.xml + + build: + name: Build & load (OctoPrint ${{ matrix.octoprint }}) + runs-on: ${{ matrix.runner }} + strategy: + fail-fast: false + matrix: + include: + - { octoprint: "1.x", python: "3.9", runner: ubuntu-24.04, disabled: false } + - { octoprint: "2.x", python: "3.13", runner: ubuntu-latest, disabled: false } + steps: + - uses: actions/checkout@v7 + + - uses: actions/setup-python@v7 + with: + python-version: ${{ matrix.python }} + + - name: Install OctoPrint + run: | + python -m pip install --upgrade pip build setuptools wheel + # OctoPrint 1.x's octoprint_setuptools still needs pkg_resources. + if [ "${{ matrix.octoprint }}" = "1.x" ]; then + python -m pip install "OctoPrint>=1.11,<2" "setuptools<81" + else + python -m pip install "OctoPrint>=2,<3" + fi + + - name: Build sdist and wheel + run: | + # The variables hold several arguments; split them on purpose. + # shellcheck disable=SC2086 + python -m build $BUILD_ARGS + + # A plugin must never pin an OctoPrint version: pip would then change the + # host's OctoPrint, e.g. lift a 1.x instance to 2.x. Minimum versions belong + # in __plugin_check__. A bare "OctoPrint" (added by octoprint_setuptools) is + # fine, any installed version satisfies it. + - name: Check the wheel does not pin OctoPrint + run: | + python - <<'PY' + import glob + import re + import sys + import zipfile + + wheel = glob.glob("dist/*.whl")[0] + with zipfile.ZipFile(wheel) as zf: + meta = next(n for n in zf.namelist() if n.endswith(".dist-info/METADATA")) + lines = zf.read(meta).decode("utf-8").splitlines() + reqs = [line.split(":", 1)[1].strip() for line in lines if line.startswith("Requires-Dist:")] + bad = [r for r in reqs if re.match(r"octoprint\s*(\[[^\]]*\])?\s*\(?\s*[<>=!~]", r, re.I)] + if bad: + sys.exit("The plugin must not pin an OctoPrint version: " + ", ".join(bad)) + print("no OctoPrint version pin among", len(reqs), "dependencies") + PY + + - name: Install the wheel + run: | + before=$(python -c "from importlib.metadata import version; print(version('OctoPrint'))") + python -m pip install dist/*.whl + after=$(python -c "from importlib.metadata import version; print(version('OctoPrint'))") + echo "OctoPrint $before -> $after" + if [ "$before" != "$after" ]; then + echo "::error::Installing the plugin changed OctoPrint from $before to $after" + exit 1 + fi + + # Runs outside the checkout so the installed package is imported. + - name: Load the plugin + working-directory: ${{ runner.temp }} + env: + # disabled: this OctoPrint is unsupported, the plugin has to switch itself off. + EXPECT_DISABLED: ${{ matrix.disabled }} + run: | + python - <<'PY' + import importlib + import importlib.metadata + import os + + plugin = importlib.import_module(os.environ["PLUGIN_PACKAGE"]) + check = getattr(plugin, "__plugin_check__", None) + compatible = check() if callable(check) else True + if os.environ["EXPECT_DISABLED"] == "true": + assert not compatible, "__plugin_check__ accepted an unsupported OctoPrint" + print("disabled itself on this OctoPrint, as expected") + raise SystemExit(0) + assert compatible, "__plugin_check__ rejected a supported OctoPrint" + if callable(getattr(plugin, "__plugin_load__", None)): + plugin.__plugin_load__() + impl = getattr(plugin, "__plugin_implementation__", None) + assert impl is not None, "no __plugin_implementation__" + base = os.path.dirname(plugin.__file__) + # OctoPrint injects these before calling get_assets(); its default + # implementation discovers the assets with them. + if not hasattr(impl, "_basefolder"): + impl._basefolder = base + if not hasattr(impl, "_identifier"): + eps = importlib.metadata.entry_points() + group = ( + eps.select(group="octoprint.plugin") + if hasattr(eps, "select") + else eps.get("octoprint.plugin", []) + ) + impl._identifier = next(e.name for e in group if e.value == plugin.__name__) + if callable(getattr(impl, "get_assets", None)): + for names in impl.get_assets().values(): + for name in names: + path = os.path.join(base, "static", name) + assert os.path.isfile(path), f"asset missing from the wheel: {name}" + print("loaded", plugin.__name__, getattr(plugin, "__plugin_version__", "?")) + PY + + translations: + name: Translations + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + + - uses: actions/setup-python@v7 + with: + python-version: "3.13" + + # babel.cfg may load OctoPrint's Jinja extensions; OctoPrint also brings Babel. + - name: Install OctoPrint + run: python -m pip install "OctoPrint>=2,<3" + + - name: Check catalogs against the sources + run: | + pybabel -q extract -F babel.cfg -o "$RUNNER_TEMP/messages.pot" . + python - <<'PY' + import glob + import os + import sys + + from babel.messages.pofile import read_po + + def msgids(path): + with open(path, "rb") as f: + return { + (m.context, m.id if isinstance(m.id, str) else m.id[0]) + for m in read_po(f) + if m.id + } + + fresh = msgids(os.path.join(os.environ["RUNNER_TEMP"], "messages.pot")) + problems = [] + if msgids("translations/messages.pot") != fresh: + problems.append("translations/messages.pot is out of date") + for po in sorted(glob.glob("translations/*/LC_MESSAGES/messages.po")): + if fresh - msgids(po): + problems.append(f"{po} is missing messages") + if problems: + print("\n".join(problems)) + print("Fix: see translations/README.txt (pybabel extract, update, compile).") + sys.exit(1) + print(f"{len(fresh)} messages, catalogs in sync") + PY + + - name: Compile catalogs + if: hashFiles('translations/*/LC_MESSAGES/messages.po') != '' + run: pybabel compile -d translations --statistics diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..9b94804 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,37 @@ +name: CodeQL + +on: + push: + branches: [main, dev] + pull_request: + schedule: + - cron: "27 1 * * 1" + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + security-events: write + actions: read + +jobs: + analyze: + name: Analyze (${{ matrix.language }}) + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + language: [actions, javascript-typescript, python] + steps: + - uses: actions/checkout@v7 + + - uses: github/codeql-action/init@v4 + with: + languages: ${{ matrix.language }} + build-mode: none + + - uses: github/codeql-action/analyze@v4 + with: + category: "/language:${{ matrix.language }}" diff --git a/README.md b/README.md index 480876d..e9cb471 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![Latest Release](https://img.shields.io/github/v/release/Ajimaru/OctoPrint-AutoConnectPlus?sort=semver&style=flat-square&logo=github&logoColor=white)](https://github.com/Ajimaru/OctoPrint-AutoConnectPlus/releases/latest) [![Downloads](https://img.shields.io/github/downloads/Ajimaru/OctoPrint-AutoConnectPlus/total?style=flat-square&logo=github&logoColor=white)](https://github.com/Ajimaru/OctoPrint-AutoConnectPlus/releases) [![Made with Love](https://img.shields.io/badge/made_with-%E2%9D%A4%EF%B8%8F-ff69b4?style=flat-square)](https://github.com/Ajimaru/OctoPrint-AutoConnectPlus) -[![CI](https://img.shields.io/github/actions/workflow/status/Ajimaru/OctoPrint-AutoConnectPlus/ci.yaml?branch=main&label=CI&style=flat-square&logo=githubactions&logoColor=white)](https://github.com/Ajimaru/OctoPrint-AutoConnectPlus/actions/workflows/ci.yaml) +[![CI](https://img.shields.io/github/actions/workflow/status/Ajimaru/OctoPrint-AutoConnectPlus/ci.yml?branch=main&label=CI&style=flat-square&logo=githubactions&logoColor=white)](https://github.com/Ajimaru/OctoPrint-AutoConnectPlus/actions/workflows/ci.yml) Automatically (re)connect your printer in OctoPrint — not only over **serial**, but also through the OctoPrint 2.0 **connector framework** for **Moonraker (Klipper)**, From 0be290dc44a17854902e2ac046ea69cc27375cfe Mon Sep 17 00:00:00 2001 From: Ajimaru Date: Wed, 2 Dec 2026 08:45:39 +0100 Subject: [PATCH 4/5] fix: update Python compatibility to support versions 3.9 to 3.15 --- README.md | 2 +- extras/autoconnectplus.md | 2 +- octoprint_autoconnectplus/__init__.py | 2 +- pyproject.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e9cb471..5bcdd37 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # OctoPrint-AutoConnectPlus [![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg?style=flat-square&logo=gnu&logoColor=white)](LICENSE) -[![Python](https://img.shields.io/badge/python-3.9%2B-blue?style=flat-square&logo=python&logoColor=white)](https://python.org) +[![Python](https://img.shields.io/badge/python-3.9--3.15-blue?style=flat-square&logo=python&logoColor=white)](https://python.org) [![OctoPrint](https://img.shields.io/badge/OctoPrint-1.10.0%2B-blue?style=flat-square&logo=octoprint&logoColor=white)](https://octoprint.org) [![Latest Release](https://img.shields.io/github/v/release/Ajimaru/OctoPrint-AutoConnectPlus?sort=semver&style=flat-square&logo=github&logoColor=white)](https://github.com/Ajimaru/OctoPrint-AutoConnectPlus/releases/latest) [![Downloads](https://img.shields.io/github/downloads/Ajimaru/OctoPrint-AutoConnectPlus/total?style=flat-square&logo=github&logoColor=white)](https://github.com/Ajimaru/OctoPrint-AutoConnectPlus/releases) diff --git a/extras/autoconnectplus.md b/extras/autoconnectplus.md index 848626f..504966c 100644 --- a/extras/autoconnectplus.md +++ b/extras/autoconnectplus.md @@ -31,7 +31,7 @@ compatibility: # No OS restriction: serial (pyserial) and the TCP-based connectors work on # all platforms OctoPrint runs on. - python: ">=3.9,<4" + python: ">=3.9,<3.16" --- OctoPrint can auto-connect **once** on startup, but it does not retry if that diff --git a/octoprint_autoconnectplus/__init__.py b/octoprint_autoconnectplus/__init__.py index 75d84c2..4a04a12 100644 --- a/octoprint_autoconnectplus/__init__.py +++ b/octoprint_autoconnectplus/__init__.py @@ -598,7 +598,7 @@ def on_settings_save(self, data) -> dict[Any, Any]: ) __plugin_url__ = "https://github.com/ajimaru/OctoPrint-AutoConnectPlus" __plugin_license__ = "AGPL-3.0-or-later" -__plugin_pythoncompat__ = ">=3.9,<4" +__plugin_pythoncompat__ = ">=3.9,<3.16" # Single source of truth is pyproject.toml; read it back from the installed # package metadata so the version is never duplicated by hand. diff --git a/pyproject.toml b/pyproject.toml index f44a98b..5fdbdcc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ readme = {file = "README.md", content-type = "text/markdown"} license = "AGPL-3.0-or-later" license-files = ["LICENSE"] -requires-python = ">=3.9, <4" +requires-python = ">=3.9,<3.16" # Any additional requirements (besides OctoPrint) should be listed here. # NOTE: Bambu support relies on `bpm` (bambu-printer-manager), which is provided From fd0f591662ab76a7d363f30187a40826848fba52 Mon Sep 17 00:00:00 2001 From: Ajimaru Date: Wed, 2 Dec 2026 08:47:54 +0100 Subject: [PATCH 5/5] fix: update translation files and Babel configuration for improved compatibility --- babel.cfg | 1 - .../translations/de/LC_MESSAGES/messages.mo | Bin 2034 -> 2034 bytes .../translations/de/LC_MESSAGES/messages.po | 18 ++-- translations/README.txt | 7 -- translations/de/LC_MESSAGES/messages.mo | Bin 1467 -> 2034 bytes translations/de/LC_MESSAGES/messages.po | 97 ++++++++---------- translations/messages.pot | 80 ++++++--------- 7 files changed, 86 insertions(+), 117 deletions(-) diff --git a/babel.cfg b/babel.cfg index 5f40d7b..fcf20b0 100644 --- a/babel.cfg +++ b/babel.cfg @@ -1,3 +1,2 @@ [python: */**.py] [jinja2: */**.jinja2] -extensions=jinja2.ext.autoescape, jinja2.ext.with_ diff --git a/octoprint_autoconnectplus/translations/de/LC_MESSAGES/messages.mo b/octoprint_autoconnectplus/translations/de/LC_MESSAGES/messages.mo index 2a2605ab33a8dacf14a789bc96506caee4b416b0..d0f2f2b446199d76d19432185ed4c27004057996 100644 GIT binary patch delta 27 icmeyw|A~LY3T8e-BV7YS1w%_KV+(Bq!_C{6ZCC(%(g(x< delta 16 Ycmeyw|A~LY3g*cdm<2cQWVU1h06?w=fdBvi diff --git a/octoprint_autoconnectplus/translations/de/LC_MESSAGES/messages.po b/octoprint_autoconnectplus/translations/de/LC_MESSAGES/messages.po index c4f3748..1c0c701 100644 --- a/octoprint_autoconnectplus/translations/de/LC_MESSAGES/messages.po +++ b/octoprint_autoconnectplus/translations/de/LC_MESSAGES/messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: OctoPrint-AutoConnectPlus 1.0.0\n" "Report-Msgid-Bugs-To: ajimaru_gdr@pm.me\n" -"POT-Creation-Date: 2026-06-18 18:30+0200\n" +"POT-Creation-Date: 2026-12-01 19:38+0100\n" "PO-Revision-Date: 2026-06-18 18:30+0200\n" "Last-Translator: ajimaru \n" "Language: de\n" @@ -17,7 +17,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.17.0\n" +"Generated-By: Babel 2.18.0\n" #: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:4 msgid "" @@ -41,32 +41,32 @@ msgid "" "When disabled, AutoConnectPlus stays idle and never reconnects the " "printer." msgstr "" -"Wenn deaktiviert, bleibt AutoConnectPlus untätig und verbindet den Drucker " -"nicht erneut." +"Wenn deaktiviert, bleibt AutoConnectPlus untätig und verbindet den " +"Drucker nicht erneut." #: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:21 msgid "Detected connection" msgstr "Erkannte Verbindung" -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:32 +#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:29 msgid "Read-only. Taken from OctoPrint's preferred connection." msgstr "Nur-Lesen. Wird aus der bevorzugten Verbindung von OctoPrint übernommen." -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:38 +#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:35 msgid "Retry interval (seconds)" msgstr "Wiederholungsintervall (Sekunden)" -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:43 +#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:40 msgid "How often to attempt a reconnect while the printer is disconnected." msgstr "" "Wie oft versucht wird, die Verbindung wiederherzustellen, während der " "Drucker getrennt ist." -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:49 +#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:46 msgid "Forced serial port" msgstr "Erzwungener serieller Port" -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:54 +#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:51 msgid "" "Serial connections only. Optional. Used only when OctoPrint's serial port" " is unset or AUTO." diff --git a/translations/README.txt b/translations/README.txt index 8947ba9..e20aaa7 100644 --- a/translations/README.txt +++ b/translations/README.txt @@ -20,10 +20,3 @@ Copy the compiled .po/.mo there, e.g.: mkdir -p octoprint_autoconnectplus/translations/de/LC_MESSAGES cp translations/de/LC_MESSAGES/messages.{po,mo} \ octoprint_autoconnectplus/translations/de/LC_MESSAGES/ - -Note: the babel.cfg in this repo still lists the legacy Jinja2 extension names -(jinja2.ext.autoescape / with_) for compatibility with OctoPrint's own Babel -setup. With a newer standalone Jinja2 these are built-in; if extraction fails, -extract with a minimal config containing only: - [python: */**.py] - [jinja2: */**.jinja2] diff --git a/translations/de/LC_MESSAGES/messages.mo b/translations/de/LC_MESSAGES/messages.mo index e70367878e41cb27795a5b179a73242e5305703c..d0f2f2b446199d76d19432185ed4c27004057996 100644 GIT binary patch literal 2034 zcmZ`)O>ZMb5FKFokdMn{g*a4B#ENIIy(=&dLF^`BiP(@R>m@=Uq4rGK?)6Ofs6T9+ z3x9ws5*KcJV{bg0>{=StOm}tFt5?;}f84zBLxf)g&)azN z@KO7n?5f5mPoTx+jXEZ&8vY&4dO>TRT)By zXux*)qD58*knoe1ly;K}wWiFMxlDy)3Y$r^hk&UA+;yU8Ux{JPBtS?ZoJ?ucaC5aE zeWFbY_a$~JwQ

dQN)efW~PO&T&yX5^Dl!K9Pu5XAz(>X;(2hOQI7NS*%sQK-teJ z3jM{EMKYpCIzGYfDHT4o{-oMJb#&FEo8Zq3)yGW<~)njrFo9$5qnivS4l^={S5 z3j}&)*^xGM_tD@eiB5w%@CTZ*7G0ej>%_v6%mRlhBgHe!&GW}8iH?naj1I&HS^NcB z3uyf{lK5)qPSQ@=jS~*M$A@+-v-qAL+jyY+Bp%B`82`;UGar{lQgGw=Xb|rjMh~@$ z_t5k{b=%$d;!Zbicc}A0|8{Sy-D$Vs7@zP=hU|5}He7qu>Gf~7x7uC!J;02|10$5p zh12FTCw+J=`A2Y8V=u-?n(^gFJYZ4u={}o6s0J>Y5qXT6Dr}!rS$*1_?lvu7cQzGm z>`HqToVQBIL{q=&xCFbrOG_ippaNXk84YF$zcVT ztW|kup3Z#E?#z)aYL0d#1~cfwvS2+L-eXXJjdTI@Z8$zG}j&Dmtt zyc(W5dN$F;`H+p$MZu~?Y^m_p(nJEe$e|!AK)_YiWyvVJg5?Z)s#Z~xXx~hQLL+K5 zRjdW&u;~ObH%}`r;^vAT92Qe2XUM_|=g;QgF!Z1j71W5g73d}b{E*f2&uM4b24gl7YR6$X2N6m8- zzz)R#bOkMlQlO_|=Sm~1PN77MJw{B2N`h7`Ydu{?c*;6rLb&A6T~jWv+{F_o#}K?M VKnMel2@K=&l*MHt3=Mm*_&=oAs7?R? literal 1467 zcma)*L2nyH6vqctKr$^zMFE63yht2uHRCv@YAT16x+RpTv0^1Ip>Tll?#u4fyEDto zY>a#3I{-IM@EJI93tt1i2RHuXICc;Mv9kT!S-+k4-hbZzkDJ%N7r0)>_g#Fyi;FAQ z^%sPA1?wB&tKb@V16&8=JDcE5@I&w#cm%!yo`9c$6Yw_p8`uZ`1Y_LJi$c5&-UnX> zpMr0KUx7a&W(vNB^%{a>-uJ+mw*$uK_rQ0+0f>*t@e}iw;1}Sx;5PU>_!L}w=_1a8 z>sSZyI`{+l7Wfk=`on#i@J#fRguSQ4rYs()a$Hlhu!$;K;-NK$lc24kFsoR6Y+b@B zd3IVAR9P3qC)Nisu+}&=VMoo!g{~@gtt-!zN$Fx=$6wdlF&!qs4xKiEy6w&_n(B~K z$eBtNl3be%wagP+M^#a0+K@IrsG{JsEe@+#kSaDP<%&%j<5A$u){a(%V24wk)lS9W z)k|%9;?aRM#f+voqc5b*3OhzWSK1=&sWzSip@jaE(P3K*W4A{f+ziD8c4v5_=^1%a z-x9}jNfv;9oT+3+o22SsTVm+!Gw3MyQ~4=7kBWLL4P+lN3#Ere?P;ssX?Ge&9QBn0 zpXpRSs537|wnyrjE|sgl%u;v1D%&MDhKD2h(DA%a`H>3Tqi&~rM|SSWt!>=)-oJgT z)9rK+D3AC|$L#+Zcc6TbBd3fnRIqNDlRo%I@_UT~WwKgjNSg9;AxEsr9z9}LD$_tu zP8AZfQ~Dkm94MB4x4RS17Pq@iL+iV=)!Jzc_6K__g`h(Nx&$_;2jkbHz~6+;s!-bO zP?9T$1KO>_sl2<2i*=u}lY0j9jM3=P-LVdhM{F3gz>sp*!!(Y$!0c^pBSrLqJWlfB z{8#U}5TDl>n(}|Q!z9`PXE)X+t?@7HAokqzDemLW^Vwm{r=$6t{0~>uOIM89oc|Iu zHd+nEg)vGUE+=2J3tUpAP@_q4x0o2~Bm{;<~xlrfItIouKhqhDa4u<*=@W<1Sp5p}z? g4!m>B6KKHZ!aT@QmnFNog`gxg4=z0v{m~MC0Z3M`jQ{`u diff --git a/translations/de/LC_MESSAGES/messages.po b/translations/de/LC_MESSAGES/messages.po index 062a503..1c0c701 100644 --- a/translations/de/LC_MESSAGES/messages.po +++ b/translations/de/LC_MESSAGES/messages.po @@ -8,8 +8,8 @@ msgid "" msgstr "" "Project-Id-Version: OctoPrint-AutoConnectPlus 1.0.0\n" "Report-Msgid-Bugs-To: ajimaru_gdr@pm.me\n" -"POT-Creation-Date: 2026-06-17 20:34+0200\n" -"PO-Revision-Date: 2026-06-17 20:34+0200\n" +"POT-Creation-Date: 2026-12-01 19:38+0100\n" +"PO-Revision-Date: 2026-06-18 18:30+0200\n" "Last-Translator: ajimaru \n" "Language: de\n" "Language-Team: German\n" @@ -17,67 +17,60 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.17.0\n" +"Generated-By: Babel 2.18.0\n" -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:3 -msgid "Connection type" -msgstr "Verbindungstyp" - -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:6 -msgid "Serial (legacy / auto)" -msgstr "Seriell (Legacy / Auto)" - -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:7 -msgid "Moonraker (Klipper)" -msgstr "Moonraker (Klipper)" +#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:4 +msgid "" +"AutoConnectPlus reconnects the printer using the connection you last " +"configured in OctoPrint's connection dialog (serial, Moonraker, Bambu, " +"...). The connection parameters are taken from OctoPrint directly, so " +"there is nothing to duplicate here." +msgstr "" +"AutoConnectPlus stellt die Verbindung mit der Verbindung wieder her, die " +"du zuletzt im Verbindungsdialog von OctoPrint eingerichtet hast (Seriell," +" Moonraker, Bambu, ...). Die Verbindungsparameter werden direkt von " +"OctoPrint übernommen, es muss hier also nichts doppelt eingetragen " +"werden." -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:8 -msgid "Bambu (local)" -msgstr "Bambu (lokal)" +#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:12 +msgid "Enable automatic (re)connect" +msgstr "Automatisches (Wieder-)Verbinden aktivieren" -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:11 +#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:15 msgid "" -"Moonraker and Bambu require OctoPrint 2.0+ with the matching connector " -"plugin installed." +"When disabled, AutoConnectPlus stays idle and never reconnects the " +"printer." msgstr "" -"Moonraker und Bambu benötigen OctoPrint 2.0+ mit installiertem passendem " -"Connector-Plugin." +"Wenn deaktiviert, bleibt AutoConnectPlus untätig und verbindet den " +"Drucker nicht erneut." -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:17 +#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:21 +msgid "Detected connection" +msgstr "Erkannte Verbindung" + +#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:29 +msgid "Read-only. Taken from OctoPrint's preferred connection." +msgstr "Nur-Lesen. Wird aus der bevorzugten Verbindung von OctoPrint übernommen." + +#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:35 msgid "Retry interval (seconds)" msgstr "Wiederholungsintervall (Sekunden)" -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:27 +#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:40 +msgid "How often to attempt a reconnect while the printer is disconnected." +msgstr "" +"Wie oft versucht wird, die Verbindung wiederherzustellen, während der " +"Drucker getrennt ist." + +#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:46 msgid "Forced serial port" msgstr "Erzwungener serieller Port" -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:32 -msgid "Optional. Used only when the global serial port is unset or AUTO." +#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:51 +msgid "" +"Serial connections only. Optional. Used only when OctoPrint's serial port" +" is unset or AUTO." msgstr "" -"Optional. Wird nur verwendet, wenn der globale serielle Port nicht gesetzt " -"oder AUTO ist." - -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:41 -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:67 -msgid "Host" -msgstr "Host" - -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:48 -msgid "Port" -msgstr "Port" - -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:55 -msgid "API key" -msgstr "API-Schlüssel" - -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:59 -msgid "Optional, depending on your Moonraker configuration." -msgstr "Optional, abhängig von deiner Moonraker-Konfiguration." - -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:74 -msgid "Serial" -msgstr "Seriennummer" +"Nur für serielle Verbindungen. Optional. Wird nur verwendet, wenn der " +"serielle Port von OctoPrint nicht gesetzt oder AUTO ist." -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:81 -msgid "Access code" -msgstr "Zugangscode" diff --git a/translations/messages.pot b/translations/messages.pot index 46c2295..74261dc 100644 --- a/translations/messages.pot +++ b/translations/messages.pot @@ -1,79 +1,63 @@ -# Translations template for OctoPrint-AutoConnectPlus. -# Copyright (C) 2026 ajimaru -# This file is distributed under the same license as the -# OctoPrint-AutoConnectPlus project. +# Translations template for PROJECT. +# Copyright (C) 2026 ORGANIZATION +# This file is distributed under the same license as the PROJECT project. # FIRST AUTHOR , 2026. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: OctoPrint-AutoConnectPlus 1.0.0\n" -"Report-Msgid-Bugs-To: ajimaru_gdr@pm.me\n" -"POT-Creation-Date: 2026-06-17 20:34+0200\n" +"Project-Id-Version: PROJECT VERSION\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2026-12-01 19:38+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.17.0\n" +"Generated-By: Babel 2.18.0\n" -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:3 -msgid "Connection type" -msgstr "" - -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:6 -msgid "Serial (legacy / auto)" -msgstr "" - -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:7 -msgid "Moonraker (Klipper)" -msgstr "" - -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:8 -msgid "Bambu (local)" -msgstr "" - -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:11 +#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:4 msgid "" -"Moonraker and Bambu require OctoPrint 2.0+ with the matching connector " -"plugin installed." +"AutoConnectPlus reconnects the printer using the connection you last " +"configured in OctoPrint's connection dialog (serial, Moonraker, Bambu, " +"...). The connection parameters are taken from OctoPrint directly, so " +"there is nothing to duplicate here." msgstr "" -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:17 -msgid "Retry interval (seconds)" -msgstr "" - -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:27 -msgid "Forced serial port" +#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:12 +msgid "Enable automatic (re)connect" msgstr "" -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:32 -msgid "Optional. Used only when the global serial port is unset or AUTO." +#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:15 +msgid "" +"When disabled, AutoConnectPlus stays idle and never reconnects the " +"printer." msgstr "" -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:41 -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:67 -msgid "Host" +#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:21 +msgid "Detected connection" msgstr "" -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:48 -msgid "Port" +#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:29 +msgid "Read-only. Taken from OctoPrint's preferred connection." msgstr "" -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:55 -msgid "API key" +#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:35 +msgid "Retry interval (seconds)" msgstr "" -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:59 -msgid "Optional, depending on your Moonraker configuration." +#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:40 +msgid "How often to attempt a reconnect while the printer is disconnected." msgstr "" -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:74 -msgid "Serial" +#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:46 +msgid "Forced serial port" msgstr "" -#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:81 -msgid "Access code" +#: octoprint_autoconnectplus/templates/autoconnectplus_settings.jinja2:51 +msgid "" +"Serial connections only. Optional. Used only when OctoPrint's serial port" +" is unset or AUTO." msgstr ""