✨ Add extensible chart markings support (#4658)

- Replace add_marking with CHART_MARKED event
- Allow for arbitrary markings in the JS UI

Example plugin usage:

```python
self._event_bus.fire(Events.CHART_MARKED, {
    "type": "pluginname_eventname",
    "label": "Event",
})
```
This commit is contained in:
Ryan Finnie authored and GitHub committed 2022-10-26 17:21:45 +02:00
1 parent b9db623b38
commit 7deb2ba673
5 files changed
+79 -43

No files matched your search

+11
View File
@@ -605,6 +605,17 @@ GcodeScript${ScriptName}Finished
.. versionadded:: 1.6.0
ChartMarked
A time-based marking has been made on the UI's temperature chart.
Payload:
* ``type``: the marking's ID. Built-in types are ``print``, ``done``, ``cancel``, ``pause``, and ``resume``. Plugins may set arbitrary types
* ``label``: the human-readable short label of the marking
* ``time``: the epoch time of marking
.. versionadded:: 1.9.0
.. _sec-events-available_events-gcode_processing:
GCODE processing