From bdeb765f75f4faa75770f3f1b97b1eeadab08ca6 Mon Sep 17 00:00:00 2001 From: Charlie Powell <31997505+cp2004@users.noreply.github.com> Date: Sat, 5 Dec 2020 10:29:44 +0000 Subject: [PATCH 1/3] Fix /api/job example response Closes #3860 --- docs/api/job.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/api/job.rst b/docs/api/job.rst index 8c0954c39..2679a9b51 100644 --- a/docs/api/job.rst +++ b/docs/api/job.rst @@ -205,8 +205,10 @@ Retrieve information about the current job }, "estimatedPrintTime": 8811, "filament": { - "length": 810, - "volume": 5.36 + "tool0": { + "length": 810, + "volume": 5.36 + } } }, "progress": { From a2d4fc08a5cdfacb6f7e351aded286082120d128 Mon Sep 17 00:00:00 2001 From: Charlie Powell <31997505+cp2004@users.noreply.github.com> Date: Sat, 5 Dec 2020 16:41:33 +0000 Subject: [PATCH 2/3] :pencil: Document new virtual printer options in 1.5.0 --- docs/development/virtual_printer.rst | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/development/virtual_printer.rst b/docs/development/virtual_printer.rst index 2ff4f2323..5e7a31e4d 100644 --- a/docs/development/virtual_printer.rst +++ b/docs/development/virtual_printer.rst @@ -200,6 +200,31 @@ There many configuration options via ``config.yaml`` for the virtual printer tha # Simulated ambient temperature in °C ambientTemperature: 21.3 + + # Response to M105 when there is a target + # Placeholders: + # - heater: The heater id (eg. T0, T1, B) + # - actual: The actual temperature of the heater + # - target: The target temperature of heater + m105TargetFormatString: {heater}:{actual:.2f}/ {target:.2f} + + # Response to M105 when there is no target + # Placeholders: + # - heater: The heater id (eg. T0, T1, B) + # - actual: The actual temperature of the heater + m105NoTargetFormatString: {heater}:{actual:.2f} + + # Enable virtual EEPROM + # If enabled, a file `eeprom.json` will be created in the plugin data folder + # to enable settings persistence across connections. Enables M500/1/2/4 commmands + # And a selection of other settings commands. Responses modeled on Marlin 2.0 + enable_eeprom: true + + # Support M503 + support_m503: true + + # Resend ratio to simulate noise on the line + resend_ratio: 0 .. _sec-development-virtual-printer-log: From 3124c08927b96198b20a21fe0b186455ddc37e90 Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Thu, 10 Dec 2020 04:40:06 -0600 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=94=80=20Add=20canary=20job=20for=20t?= =?UTF-8?q?rigger=20docker=20workflow=20(#3863)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * update event-type in trigger-docker workflow * add dispatch_canary job * change canary to trigger from maintenance * add bleeding release type for trigger_docker.yml * make things uglier to make prettier happy --- .github/workflows/trigger_docker.yml | 33 ++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/.github/workflows/trigger_docker.yml b/.github/workflows/trigger_docker.yml index 5f5c57251..38f0a4e13 100644 --- a/.github/workflows/trigger_docker.yml +++ b/.github/workflows/trigger_docker.yml @@ -4,15 +4,44 @@ on: types: - released - prereleased + push: + branches: + - maintenance + - devel jobs: - trigger: + dispatch_releases: runs-on: ubuntu-latest + if: github.event_name != 'push' steps: - name: 🚀 Repository Dispatch uses: peter-evans/repository-dispatch@v1 with: token: ${{ secrets.DOCKER_ACCESS_TOKEN }} repository: ${{ github.repository_owner }}/octoprint-docker - event-type: github.event.action + event-type: ${{ github.event_name }} client-payload: '{"tag_name": "${{ github.event.release.tag_name }}"}' + + dispatch_canary: + runs-on: ubuntu-latest + if: github.event_name == 'push' && github.ref == 'refs/heads/maintenance' + steps: + - name: 🚀 Repository Dispatch + uses: peter-evans/repository-dispatch@v1 + with: + token: ${{ secrets.DOCKER_ACCESS_TOKEN }} + repository: ${{ github.repository_owner }}/octoprint-docker + event-type: "canary" + client-payload: '{"tag_name": "${{ github.sha }}"}' + + dispatch_bleeding: + runs-on: ubuntu-latest + if: github.event_name == 'push' && github.ref == 'refs/heads/devel' + steps: + - name: 🚀 Repository Dispatch + uses: peter-evans/repository-dispatch@v1 + with: + token: ${{ secrets.DOCKER_ACCESS_TOKEN }} + repository: ${{ github.repository_owner }}/octoprint-docker + event-type: "bleeding" + client-payload: '{"tag_name": "${{ github.sha }}"}'