2014-12-02 10:57:03 +00:00
|
|
|
.. _sec-api-printerprofiles:
|
|
|
|
|
|
|
|
|
|
**************************
|
|
|
|
|
Printer profile operations
|
|
|
|
|
**************************
|
|
|
|
|
|
|
|
|
|
.. contents::
|
|
|
|
|
|
|
|
|
|
OctoPrint allows the management of Printer profiles that define a printer's physical properties (such as print volume,
|
|
|
|
|
whether a heated bed is available, maximum speeds on its axes etc). The data stored within these profiles is used
|
|
|
|
|
for both slicing and gcode visualization.
|
|
|
|
|
|
|
|
|
|
.. _sec-api-printerprofiles-retrieve:
|
|
|
|
|
|
|
|
|
|
Retrieve all printer profiles
|
|
|
|
|
=============================
|
|
|
|
|
|
|
|
|
|
.. http:get:: /api/printerprofiles
|
|
|
|
|
|
2016-09-21 10:05:17 +00:00
|
|
|
Retrieves a list of all configured printer profiles.
|
|
|
|
|
|
|
|
|
|
Returns a :http:statuscode:`200` with a list of :ref:`profiles <sec-api-printerprofiles-datamodel-profile>`.
|
|
|
|
|
|
|
|
|
|
**Example**
|
|
|
|
|
|
|
|
|
|
.. sourcecode:: http
|
|
|
|
|
|
|
|
|
|
GET /api/printerprofiles HTTP/1.1
|
|
|
|
|
Host: example.com
|
|
|
|
|
X-Api-Key: abcdef...
|
|
|
|
|
|
|
|
|
|
.. sourcecode:: http
|
|
|
|
|
|
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
|
Content-Type: application/json
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"id": "_default",
|
|
|
|
|
"name": "Default",
|
|
|
|
|
"color": "default",
|
|
|
|
|
"model": "Generic RepRap Printer",
|
|
|
|
|
"default": true,
|
|
|
|
|
"current": true,
|
|
|
|
|
"resource": "http://example.com/api/printerprofiles/_default",
|
|
|
|
|
"volume": {
|
|
|
|
|
"formFactor": "rectangular",
|
|
|
|
|
"origin": "lowerleft",
|
|
|
|
|
"width": 200,
|
|
|
|
|
"depth": 200,
|
|
|
|
|
"height": 200
|
|
|
|
|
},
|
|
|
|
|
"heatedBed": true,
|
|
|
|
|
"axes": {
|
|
|
|
|
"x": {
|
|
|
|
|
"speed": 6000,
|
|
|
|
|
"inverted": false
|
|
|
|
|
},
|
|
|
|
|
"y": {
|
|
|
|
|
"speed": 6000,
|
|
|
|
|
"inverted": false
|
|
|
|
|
},
|
|
|
|
|
"z": {
|
|
|
|
|
"speed": 200,
|
|
|
|
|
"inverted": false
|
|
|
|
|
},
|
|
|
|
|
"e": {
|
|
|
|
|
"speed": 300,
|
|
|
|
|
"inverted": false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"extruder": {
|
|
|
|
|
"count": 1,
|
|
|
|
|
"offsets": [
|
|
|
|
|
{"x": 0.0, "y": 0.0}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "my_profile",
|
|
|
|
|
"name": "My Profile",
|
|
|
|
|
"color": "default",
|
|
|
|
|
"model": "My Custom Printer",
|
|
|
|
|
"default": false,
|
|
|
|
|
"current": false,
|
|
|
|
|
"resource": "http://example.com/api/printerprofiles/my_profile",
|
|
|
|
|
"volume": {
|
|
|
|
|
"formFactor": "rectangular",
|
|
|
|
|
"origin": "lowerleft",
|
|
|
|
|
"width": 200,
|
|
|
|
|
"depth": 200,
|
|
|
|
|
"height": 200
|
|
|
|
|
},
|
|
|
|
|
"heatedBed": true,
|
|
|
|
|
"axes": {
|
|
|
|
|
"x": {
|
|
|
|
|
"speed": 6000,
|
|
|
|
|
"inverted": false
|
|
|
|
|
},
|
|
|
|
|
"y": {
|
|
|
|
|
"speed": 6000,
|
|
|
|
|
"inverted": false
|
|
|
|
|
},
|
|
|
|
|
"z": {
|
|
|
|
|
"speed": 200,
|
|
|
|
|
"inverted": false
|
|
|
|
|
},
|
|
|
|
|
"e": {
|
|
|
|
|
"speed": 300,
|
|
|
|
|
"inverted": false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"extruder": {
|
|
|
|
|
"count": 1,
|
|
|
|
|
"offsets": [
|
|
|
|
|
{"x": 0.0, "y": 0.0}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
2014-12-02 10:57:03 +00:00
|
|
|
.. _sec-api-printerprofiles-add:
|
|
|
|
|
|
|
|
|
|
Add a new printer profile
|
|
|
|
|
=========================
|
|
|
|
|
|
|
|
|
|
.. http:post:: /api/printerprofiles
|
|
|
|
|
|
2016-09-21 10:05:17 +00:00
|
|
|
Adds a new printer profile based on either the current default profile
|
|
|
|
|
or the profile identified in ``basedOn``.
|
|
|
|
|
|
|
|
|
|
The provided profile data will be merged with the profile data from the
|
|
|
|
|
base profile.
|
|
|
|
|
|
|
|
|
|
If a profile with the same ``id`` does already exist, a :http:statuscode:`400`
|
|
|
|
|
will be returned.
|
|
|
|
|
|
|
|
|
|
Returns a :http:statuscode:`200` with the saved profile as property ``profile``
|
|
|
|
|
in the JSON body upon success.
|
|
|
|
|
|
2016-09-22 14:27:06 +00:00
|
|
|
Requires admin rights.
|
|
|
|
|
|
2016-09-21 10:05:17 +00:00
|
|
|
**Example 1**
|
|
|
|
|
|
|
|
|
|
Creating a new profile ``some_profile`` based on the current default profile.
|
|
|
|
|
|
|
|
|
|
.. sourcecode:: http
|
|
|
|
|
|
|
|
|
|
POST /api/printerprofiles HTTP/1.1
|
|
|
|
|
Host: example.com
|
|
|
|
|
X-Api-Key: abcdef...
|
|
|
|
|
Content-Type: application/json
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
"profile": {
|
|
|
|
|
"id": "some_profile",
|
|
|
|
|
"name": "Some profile",
|
|
|
|
|
"model": "Some cool model"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.. sourcecode:: http
|
|
|
|
|
|
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
|
Content-Type: application/json
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
"profile": {
|
|
|
|
|
"id": "some_profile",
|
|
|
|
|
"name": "Some profile",
|
|
|
|
|
"color": "default",
|
|
|
|
|
"model": "Some cool model",
|
|
|
|
|
"default": false,
|
|
|
|
|
"current": false,
|
|
|
|
|
"resource": "http://example.com/api/printerprofiles/some_profile",
|
|
|
|
|
"volume": {
|
|
|
|
|
"formFactor": "rectangular",
|
|
|
|
|
"origin": "lowerleft",
|
|
|
|
|
"width": 200,
|
|
|
|
|
"depth": 200,
|
|
|
|
|
"height": 200
|
|
|
|
|
},
|
|
|
|
|
"heatedBed": true,
|
|
|
|
|
"axes": {
|
|
|
|
|
"x": {
|
|
|
|
|
"speed": 6000,
|
|
|
|
|
"inverted": false
|
|
|
|
|
},
|
|
|
|
|
"y": {
|
|
|
|
|
"speed": 6000,
|
|
|
|
|
"inverted": false
|
|
|
|
|
},
|
|
|
|
|
"z": {
|
|
|
|
|
"speed": 200,
|
|
|
|
|
"inverted": false
|
|
|
|
|
},
|
|
|
|
|
"e": {
|
|
|
|
|
"speed": 300,
|
|
|
|
|
"inverted": false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"extruder": {
|
|
|
|
|
"count": 1,
|
|
|
|
|
"offsets": [
|
|
|
|
|
{"x": 0.0, "y": 0.0}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
**Example 2**
|
|
|
|
|
|
|
|
|
|
Creating a new profile ``some_other_profile`` based on existing profile
|
|
|
|
|
``some_profile``.
|
|
|
|
|
|
|
|
|
|
.. sourcecode:: http
|
|
|
|
|
|
|
|
|
|
POST /api/printerprofiles HTTP/1.1
|
|
|
|
|
Host: example.com
|
|
|
|
|
X-Api-Key: abcdef...
|
|
|
|
|
Content-Type: application/json
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
"profile": {
|
|
|
|
|
"id": "some_other_profile",
|
|
|
|
|
"name": "Some other profile",
|
|
|
|
|
"heatedBed": false,
|
|
|
|
|
"volume": {
|
|
|
|
|
"formFactor": "circular",
|
|
|
|
|
"origin": "center",
|
|
|
|
|
"width": "150",
|
|
|
|
|
"height": "300"
|
|
|
|
|
},
|
|
|
|
|
"extruder": {
|
|
|
|
|
"count": 2,
|
|
|
|
|
"offsets": [
|
|
|
|
|
{"x": 0.0, "y": 0.0},
|
|
|
|
|
{"x": 21.6, "y": 0.0}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"basedOn": "some_profile"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.. sourcecode:: http
|
|
|
|
|
|
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
|
Content-Type: application/json
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
"profile": {
|
|
|
|
|
"id": "some_other_profile",
|
|
|
|
|
"name": "Some other profile",
|
|
|
|
|
"color": "default",
|
|
|
|
|
"model": "Some cool model",
|
|
|
|
|
"default": false,
|
|
|
|
|
"current": false,
|
|
|
|
|
"resource": "http://example.com/api/printerprofiles/some_other_profile",
|
|
|
|
|
"volume": {
|
|
|
|
|
"formFactor": "circular",
|
|
|
|
|
"origin": "center",
|
|
|
|
|
"width": 150,
|
|
|
|
|
"depth": 150,
|
|
|
|
|
"height": 300
|
|
|
|
|
},
|
|
|
|
|
"heatedBed": false,
|
|
|
|
|
"axes": {
|
|
|
|
|
"x": {
|
|
|
|
|
"speed": 6000,
|
|
|
|
|
"inverted": false
|
|
|
|
|
},
|
|
|
|
|
"y": {
|
|
|
|
|
"speed": 6000,
|
|
|
|
|
"inverted": false
|
|
|
|
|
},
|
|
|
|
|
"z": {
|
|
|
|
|
"speed": 200,
|
|
|
|
|
"inverted": false
|
|
|
|
|
},
|
|
|
|
|
"e": {
|
|
|
|
|
"speed": 300,
|
|
|
|
|
"inverted": false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"extruder": {
|
|
|
|
|
"count": 2,
|
|
|
|
|
"offsets": [
|
|
|
|
|
{"x": 0.0, "y": 0.0},
|
|
|
|
|
{"x": 21.6, "y": 0.0}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2014-12-02 10:57:03 +00:00
|
|
|
.. _sec-api-printerporfiles-update:
|
|
|
|
|
|
|
|
|
|
Update an existing printer profile
|
|
|
|
|
==================================
|
|
|
|
|
|
|
|
|
|
.. http:patch:: /api/printerprofiles/(string:profile)
|
|
|
|
|
|
2016-09-21 10:05:17 +00:00
|
|
|
Updates an existing printer profile by its ``profile`` identifier.
|
|
|
|
|
|
|
|
|
|
The updated (potentially partial) profile is expected in the request's body as part of
|
|
|
|
|
an :ref:`Add or update request <sec-api-printerprofiles-datamodel-update>`.
|
|
|
|
|
|
|
|
|
|
Returns a :http:statuscode:`200` with the saved profile as property ``profile``
|
|
|
|
|
in the JSON body upon success.
|
|
|
|
|
|
2016-09-22 14:27:06 +00:00
|
|
|
Requires admin rights.
|
|
|
|
|
|
2016-09-21 10:05:17 +00:00
|
|
|
**Example**
|
|
|
|
|
|
|
|
|
|
.. sourcecode:: http
|
|
|
|
|
|
|
|
|
|
PATCH /api/printerprofiles/some_profile HTTP/1.1
|
|
|
|
|
Host: example.com
|
|
|
|
|
X-Api-Key: abcdef...
|
|
|
|
|
Content-Type: application/json
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
"profile": {
|
|
|
|
|
"name": "Some edited profile",
|
|
|
|
|
"volume": {
|
|
|
|
|
"depth": "300"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.. sourcecode:: http
|
|
|
|
|
|
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
|
Content-Type: application/json
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
"profile": {
|
|
|
|
|
"id": "some_profile",
|
|
|
|
|
"name": "Some edited profile",
|
|
|
|
|
"color": "default",
|
|
|
|
|
"model": "Some cool model",
|
|
|
|
|
"default": false,
|
|
|
|
|
"current": false,
|
|
|
|
|
"resource": "http://example.com/api/printerprofiles/some_profile",
|
|
|
|
|
"volume": {
|
|
|
|
|
"formFactor": "rectangular",
|
|
|
|
|
"origin": "lowerleft",
|
|
|
|
|
"width": 200,
|
|
|
|
|
"depth": 300,
|
|
|
|
|
"height": 200
|
|
|
|
|
},
|
|
|
|
|
"heatedBed": true,
|
|
|
|
|
"axes": {
|
|
|
|
|
"x": {
|
|
|
|
|
"speed": 6000,
|
|
|
|
|
"inverted": false
|
|
|
|
|
},
|
|
|
|
|
"y": {
|
|
|
|
|
"speed": 6000,
|
|
|
|
|
"inverted": false
|
|
|
|
|
},
|
|
|
|
|
"z": {
|
|
|
|
|
"speed": 200,
|
|
|
|
|
"inverted": false
|
|
|
|
|
},
|
|
|
|
|
"e": {
|
|
|
|
|
"speed": 300,
|
|
|
|
|
"inverted": false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"extruder": {
|
|
|
|
|
"count": 2,
|
|
|
|
|
"offsets": [
|
|
|
|
|
{"x": 0.0, "y": 0.0},
|
|
|
|
|
{"x": 21.6, "y": 0.0}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2014-12-02 10:57:03 +00:00
|
|
|
.. _sec-api-printerprofiles-delete:
|
|
|
|
|
|
|
|
|
|
Remove an existing printer profile
|
|
|
|
|
==================================
|
|
|
|
|
|
|
|
|
|
.. http:delete:: /api/printerprofiles/(string:profile)
|
|
|
|
|
|
2016-09-21 10:05:17 +00:00
|
|
|
Deletes an existing printer profile by its ``profile`` identifier.
|
|
|
|
|
|
|
|
|
|
If the profile to be deleted is the currently selected profile, a :http:statuscode:`409` will be
|
|
|
|
|
returned.
|
|
|
|
|
|
|
|
|
|
Returns a :http:statuscode:`204` an empty body upon success.
|
|
|
|
|
|
2016-09-22 14:27:06 +00:00
|
|
|
Requires admin rights.
|
|
|
|
|
|
2016-09-21 10:05:17 +00:00
|
|
|
**Example**
|
|
|
|
|
|
|
|
|
|
.. sourcecode:: http
|
|
|
|
|
|
|
|
|
|
DELETE /api/printerprofiles/some_profile HTTP/1.1
|
|
|
|
|
Host: example.com
|
|
|
|
|
X-Api-Key: abcdef...
|
|
|
|
|
|
|
|
|
|
.. sourcecode:: http
|
|
|
|
|
|
|
|
|
|
HTTP/1.1 204 No Content
|
|
|
|
|
|
|
|
|
|
|
2014-12-02 10:57:03 +00:00
|
|
|
.. _sec-api-printerprofiles-datamodel:
|
|
|
|
|
|
2016-09-22 14:27:06 +00:00
|
|
|
Data model
|
|
|
|
|
==========
|
2014-12-02 10:57:03 +00:00
|
|
|
|
|
|
|
|
.. _sec-api-printerprofiles-datamodel-profilelist:
|
|
|
|
|
|
|
|
|
|
Profile list
|
|
|
|
|
------------
|
|
|
|
|
|
|
|
|
|
.. list-table::
|
|
|
|
|
:widths: 15 5 10 30
|
|
|
|
|
:header-rows: 1
|
|
|
|
|
|
|
|
|
|
* - Name
|
|
|
|
|
- Multiplicity
|
|
|
|
|
- Type
|
|
|
|
|
- Description
|
|
|
|
|
* - ``profiles``
|
|
|
|
|
- 1
|
|
|
|
|
- Object
|
|
|
|
|
- Collection of all printer profiles available in the system
|
|
|
|
|
* - ``profiles.<profile id>``
|
|
|
|
|
- 0..1
|
|
|
|
|
- :ref:`Profile <sec-api-slicing-datamodel-profile>`
|
|
|
|
|
- Information about a profile stored in the system.
|
|
|
|
|
|
2015-03-02 15:03:37 +00:00
|
|
|
.. _sec-api-printerprofiles-datamodel-update:
|
2014-12-02 10:57:03 +00:00
|
|
|
|
|
|
|
|
Add or update request
|
|
|
|
|
---------------------
|
|
|
|
|
|
|
|
|
|
.. list-table::
|
|
|
|
|
:widths: 15 5 10 30
|
|
|
|
|
:header-rows: 1
|
|
|
|
|
|
|
|
|
|
* - Name
|
|
|
|
|
- Multiplicity
|
|
|
|
|
- Type
|
|
|
|
|
- Description
|
|
|
|
|
* - ``profiles``
|
|
|
|
|
- 1
|
|
|
|
|
- :ref:`Profile <sec-api-slicing-datamodel-profile>`
|
2016-09-21 10:05:17 +00:00
|
|
|
- Information about the profile being added/updated. Only the values to be overwritten need to be supplied.
|
|
|
|
|
Unset fields will be taken from the base profile, which for add requests will be the
|
|
|
|
|
current default profile unless a different base is defined in the ``basedOn`` property
|
|
|
|
|
of the request. For update requests the current version of the profile to be updated will
|
|
|
|
|
be used as base.
|
|
|
|
|
* - ``basedOn``
|
|
|
|
|
- 0..1
|
|
|
|
|
- ``string``
|
|
|
|
|
- Only for add requests, ignored on updates: The identifier of the profile to base the
|
|
|
|
|
new profile on, if different than the current default profile.
|
2014-12-02 10:57:03 +00:00
|
|
|
|
2015-03-02 15:03:37 +00:00
|
|
|
.. _sec-api-printerprofiles-datamodel-profile:
|
2014-12-02 10:57:03 +00:00
|
|
|
|
|
|
|
|
Profile
|
|
|
|
|
-------
|
|
|
|
|
|
|
|
|
|
.. list-table::
|
|
|
|
|
:widths: 15 5 10 30
|
|
|
|
|
:header-rows: 1
|
|
|
|
|
|
|
|
|
|
* - Name
|
|
|
|
|
- Multiplicity
|
|
|
|
|
- Type
|
|
|
|
|
- Description
|
|
|
|
|
* - ``id``
|
|
|
|
|
- 0..1
|
|
|
|
|
- ``string``
|
|
|
|
|
- Identifier of the profile. Will always be
|
2016-09-21 10:05:17 +00:00
|
|
|
returned in responses, is mandatory in add requests but
|
|
|
|
|
can be left out of update requests.
|
2014-12-02 10:57:03 +00:00
|
|
|
* - ``name``
|
|
|
|
|
- 0..1
|
|
|
|
|
- ``string``
|
|
|
|
|
- Display name of the profile. Will always be
|
2016-09-21 10:05:17 +00:00
|
|
|
returned in responses, is mandatory in add requests but
|
|
|
|
|
can be left out of update requests.
|
2014-12-02 10:57:03 +00:00
|
|
|
* - ``color``
|
|
|
|
|
- 0..1
|
|
|
|
|
- ``string``
|
|
|
|
|
- The color to associate with this profile (used in the UI's title bar). Valid values are "default", "red", "orange",
|
|
|
|
|
"yellow", "green", "blue", "black". Will always be
|
|
|
|
|
returned in responses but can be left out of save/update requests.
|
|
|
|
|
* - ``model``
|
|
|
|
|
- 0..1
|
|
|
|
|
- ``string``
|
|
|
|
|
- Printer model of the profile. Will always be
|
|
|
|
|
returned in responses but can be left out of save/update requests.
|
|
|
|
|
* - ``default``
|
|
|
|
|
- 0..1
|
|
|
|
|
- ``boolean``
|
|
|
|
|
- Whether this is the default profile to be used with new connections (``true``) or not (``false``). Will always be
|
|
|
|
|
returned in responses but can be left out of save/update requests.
|
|
|
|
|
* - ``current``
|
|
|
|
|
- 0..1
|
|
|
|
|
- ``boolean``
|
|
|
|
|
- Whether this is the profile currently active. Will always be returned in responses but ignored in save/update
|
|
|
|
|
requests.
|
|
|
|
|
* - ``resource``
|
|
|
|
|
- 0..1
|
|
|
|
|
- ``URL``
|
|
|
|
|
- Resource URL of the profile, will always be returned in responses but can be left out of save/update requests.
|
|
|
|
|
* - ``volume``
|
|
|
|
|
- 0..1
|
|
|
|
|
- Object
|
|
|
|
|
- The print volume, will always be returned in responses but can be left out of save/update requests.
|
|
|
|
|
* - ``volume.formFactor``
|
|
|
|
|
- 0..1
|
|
|
|
|
- ``string``
|
|
|
|
|
- The form factor of the printer's bed, valid values are "rectangular" and "circular"
|
2016-09-21 10:05:17 +00:00
|
|
|
* - ``volume.origin``
|
|
|
|
|
- 0..1
|
|
|
|
|
- ``string``
|
|
|
|
|
- The location of the origin on the printer's bed, valid values are "lowerleft" and "center"
|
2014-12-02 10:57:03 +00:00
|
|
|
* - ``volume.width``
|
|
|
|
|
- 0..1
|
|
|
|
|
- ``float``
|
2016-09-21 08:45:40 +00:00
|
|
|
- The width of the print volume. For circular beds, the diameter of the bed.
|
2014-12-02 10:57:03 +00:00
|
|
|
* - ``volume.depth``
|
|
|
|
|
- 0..1
|
|
|
|
|
- ``float``
|
2016-09-21 08:45:40 +00:00
|
|
|
- The depth of the print volume. For circular beds, this is the diameter of the bed and will be forced to be the same
|
|
|
|
|
as ``volume.width`` upon saving.
|
2014-12-02 10:57:03 +00:00
|
|
|
* - ``volume.height``
|
|
|
|
|
- 0..1
|
|
|
|
|
- ``float``
|
|
|
|
|
- The height of the print volume
|
|
|
|
|
* - ``heatedBed``
|
|
|
|
|
- 0..1
|
|
|
|
|
- ``boolean``
|
|
|
|
|
- Whether the printer has a heated bed (``true``) or not (``false``)
|
|
|
|
|
* - ``axes``
|
|
|
|
|
- 0..1
|
|
|
|
|
- Object
|
|
|
|
|
- Description of the printer's axes properties, one entry each for ``x``, ``y``, ``z`` and ``e`` holding maxium speed
|
|
|
|
|
and whether this axis is inverted or not.
|
|
|
|
|
* - ``axes.{axis}.speed``
|
|
|
|
|
- 0..1
|
|
|
|
|
- ``int``
|
2016-09-20 11:46:47 +00:00
|
|
|
- Maximum speed of the axis in mm/min.
|
2014-12-02 10:57:03 +00:00
|
|
|
* - ``axes.{axis}.inverted``
|
|
|
|
|
- 0..1
|
|
|
|
|
- ``boolean``
|
|
|
|
|
- Whether the axis is inverted or not.
|
|
|
|
|
* - ``extruder``
|
|
|
|
|
- 0..1
|
|
|
|
|
- Object
|
|
|
|
|
- Information about the printer's extruders
|
2014-12-02 11:41:25 +00:00
|
|
|
* - ``extruder.nozzleDiameter``
|
|
|
|
|
- 0..1
|
|
|
|
|
- ``float``
|
|
|
|
|
- The diameter of the printer's nozzle(s) in mm.
|
2014-12-02 10:57:03 +00:00
|
|
|
* - ``extruder.count``
|
|
|
|
|
- 0..1
|
|
|
|
|
- ``int``
|
|
|
|
|
- Count of extruders on the printer (defaults to 1)
|
|
|
|
|
* - ``extruder.offsets``
|
|
|
|
|
- 0..1
|
|
|
|
|
- Array of ``float`` tuples
|
|
|
|
|
- Tuple of (x, y) values describing the offsets of the other extruders relative to the first extruder. E.g. for a
|
|
|
|
|
printer with two extruders, if the second extruder is offset by 20mm in the X and 25mm in the Y direction, this
|
|
|
|
|
array will read ``[ [0.0, 0.0], [20.0, 25.0] ]``
|
|
|
|
|
|