mirror of
https://github.com/mkuf/prind.git
synced 2025-10-29 17:26:26 +01:00
Add moonraker-obico service (#89)
* add moonraker-obico service * config: add moonraker-obico basic config * docs: moonraker-obico profile * moonraker-obico: simplify linking process * moonraker-obico: use root when linking a new printer * docs: update docs for moonraker-obico profile * docs: update changelog
This commit is contained in:
@@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
<!--
|
<!--
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
### Added
|
### Added
|
||||||
|
- profile: moonraker-obico via #89
|
||||||
### Fixed
|
### Fixed
|
||||||
### Changed
|
### Changed
|
||||||
- docker: update repo url for KlipperScreen
|
- docker: update repo url for KlipperScreen
|
||||||
|
|||||||
26
README.md
26
README.md
@@ -154,6 +154,32 @@ The default configuration provided with this repository contains everything need
|
|||||||
docker compose --profile mainsail --profile mobileraker_companion up -d
|
docker compose --profile mainsail --profile mobileraker_companion up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### moonraker-obico
|
||||||
|
> This profile is incompatible with OctoPrint, choose Fluidd or Mainsail instead.
|
||||||
|
|
||||||
|
[moonraker-obico by TheSpaghettiDetective](https://github.com/TheSpaghettiDetective/moonraker-obico) can be enabled via the `moonraker-obico` Profile.
|
||||||
|
|
||||||
|
The default configuration provided with this repository contains everything needed to access the webcam and use the tunnel with obico Cloud. This requires an account at https://obico.io.
|
||||||
|
If you use a self hosted instance of [obico-server](https://github.com/TheSpaghettiDetective/obico-server), you'll have to change the `[server].url` at `config/moonraker-obico.cfg`.
|
||||||
|
|
||||||
|
For further configuration options, see the [Official Documentation](https://www.obico.io/docs/user-guides/moonraker-obico/config/).
|
||||||
|
|
||||||
|
Follow these steps to link your printer and start the profile:
|
||||||
|
|
||||||
|
1. Add a new `Klipper`-Type Printer via the Webinterface
|
||||||
|
2. Klick `Next` when prompted to *Install Obico for Klipper*, not executing the shown Commands
|
||||||
|
3. Change to the root of the prind repository and start the linking process
|
||||||
|
```bash
|
||||||
|
docker compose -f docker-compose.extra.link-obico.yaml run --rm link-obico
|
||||||
|
```
|
||||||
|
4. Enter the *6-digit verification code*
|
||||||
|
5. Check if `[server].auth_token` is set in `config/mooonraker-obico.cfg`
|
||||||
|
6. Start the stack
|
||||||
|
```bash
|
||||||
|
docker compose --profile mainsail --profile moonraker-obico up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Updating
|
## Updating
|
||||||
Images are built daily and tagged with latest and the first seven chars of the commit-sha of the remote repo.
|
Images are built daily and tagged with latest and the first seven chars of the commit-sha of the remote repo.
|
||||||
Example:
|
Example:
|
||||||
|
|||||||
21
config/moonraker-obico.cfg
Normal file
21
config/moonraker-obico.cfg
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
[server]
|
||||||
|
url = https://app.obico.io
|
||||||
|
auth_token =
|
||||||
|
|
||||||
|
[moonraker]
|
||||||
|
host = moonraker
|
||||||
|
port = 7125
|
||||||
|
|
||||||
|
[webcam]
|
||||||
|
disable_video_streaming = False
|
||||||
|
snapshot_url = http://webcam:8080/snapshot
|
||||||
|
stream_url = http://webcam:8080/stream
|
||||||
|
|
||||||
|
[logging]
|
||||||
|
path = /opt/printer_data/logs/moonraker-obico.log
|
||||||
|
level = INFO
|
||||||
|
|
||||||
|
[tunnel]
|
||||||
|
dest_host = traefik
|
||||||
|
dest_port = 80
|
||||||
|
dest_is_ssl = False
|
||||||
8
docker-compose.extra.link-obico.yaml
Normal file
8
docker-compose.extra.link-obico.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
services:
|
||||||
|
link-obico:
|
||||||
|
image: ghcr.io/thespaghettidetective/moonraker-obico:latest
|
||||||
|
user: 0:0
|
||||||
|
entrypoint: /opt/venv/bin/python
|
||||||
|
command: ["-m", "moonraker_obico.link", "-c", "/opt/printer_data/config/moonraker-obico.cfg"]
|
||||||
|
volumes:
|
||||||
|
- ./config:/opt/printer_data/config
|
||||||
@@ -158,6 +158,17 @@ services:
|
|||||||
labels:
|
labels:
|
||||||
org.prind.service: hostmcu
|
org.prind.service: hostmcu
|
||||||
|
|
||||||
|
moonraker-obico:
|
||||||
|
image: ghcr.io/thespaghettidetective/moonraker-obico:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- ./config:/opt/printer_data/config
|
||||||
|
- log:/opt/printer_data/logs
|
||||||
|
profiles:
|
||||||
|
- moonraker-obico
|
||||||
|
labels:
|
||||||
|
org.prind.service: moonraker-obico
|
||||||
|
|
||||||
## Accompanying Services/Infra
|
## Accompanying Services/Infra
|
||||||
##
|
##
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user