docs: update documentation for latest changes

Signed-off-by:  Eric Callahan <arksine.code@gmail.com
This commit is contained in:
Arksine 2021-01-31 07:41:16 -05:00
parent 980912270e
commit 81104a6618
4 changed files with 32 additions and 2 deletions

View File

@ -21,4 +21,4 @@ Users:\
[user_changes.md](/docs/user_changes.md) - December 31st 2020
Developers:\
[api_changes.md](/docs/api_changes.md) - January 22nd 2021
[api_changes.md](/docs/api_changes.md) - January 31st 2021

View File

@ -1,5 +1,12 @@
This document keeps a record of all changes to Moonraker's web APIs.
### January 31st 2021
- The `GET /server/temperature_store` endpoint now only returns fields
that each sensor reports. For example, if a particuarly temperature
sensor does not report "target" or "power", then the corresponding
fields will not be reported for that sensor in response to the
`temperature_store` request.
### January 22nd 2021
- The `POST /machine/update/client` endpoint now requires a `name`
argument. This change added multiple client support

View File

@ -302,6 +302,10 @@ repo:
# meteyou/mainsail to update Mainsail. This parameter must be provided.
path:
# The path to the client's files on disk. This parameter must be provided.
persistent_files:
# A list of newline separated file names that should persist between
# updates. This is useful for static configuration files, or perhaps
# themes. The default is no persistent files.
```
This second example is for git repositories that have a service that need

View File

@ -240,6 +240,23 @@ websocket. See the `notify_status_update` notification for details.
1 second by default, containing a total of 1200 values (20 minutes). The
array is organized from oldest temperature to most recent (left to right).
Note that when the host starts each array is initialized to 0s.
```json
{
extruder: {
temperatures: [],
targets: [],
powers: []
},
temperature_fan my_fan: {
temperatures: [],
targets: [],
speeds: [],
},
temperature_sensor my_sensor: {
temperatures: []
}
}
```
### Fetch stored gcode info
- HTTP command:\
@ -267,7 +284,8 @@ websocket. See the `notify_status_update` notification for details.
gcode_store: [
{
message: <string>,
time: unix_time_stamp
time: unix_time_stamp,
type: <string>
}, ...
]
}
@ -282,6 +300,7 @@ for (let resp of result.gcode_store) {
// Do something with date and resp.message ...
}
```
The `type` field will either be "command" or "response".
### Restart Server
- HTTP command:\