Enhancement: allow api auth with moonraker service (#2934)

---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
pull/2941/head
Steven de Jong 10 months ago committed by GitHub
parent 36585a2c44
commit b0dd810b49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -12,3 +12,12 @@ widget:
type: moonraker
url: http://moonraker.host.or.ip:port
```
If your moonraker instance has an active authorization and your homepage ip isn't whitelisted you need to add your api key ([Authorization Documentation](https://moonraker.readthedocs.io/en/latest/web_api/#authorization)).
```yaml
widget:
type: moonraker
url: http://moonraker.host.or.ip:port
key: api_keymoonraker
```

@ -1,8 +1,8 @@
import genericProxyHandler from "utils/proxy/handlers/generic";
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
const widget = {
api: "{url}/printer/objects/query?{endpoint}",
proxyHandler: genericProxyHandler,
proxyHandler: credentialedProxyHandler,
mappings: {
print_stats: {

Loading…
Cancel
Save