forked from viewit/KX-Bridge-Release
fix: Dockerfile für flache Release-Struktur angepasst, config.ini.example hinzugefügt
This commit is contained in:
20
Dockerfile
20
Dockerfile
@@ -2,19 +2,19 @@ FROM python:3.11-slim
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY bridge/requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
COPY bridge/kobrax_moonraker_bridge.py .
|
COPY kobrax_moonraker_bridge.py .
|
||||||
COPY bridge/config_loader.py .
|
COPY config_loader.py .
|
||||||
COPY bridge/env_loader.py .
|
COPY env_loader.py .
|
||||||
COPY bridge/kobrax_client.py .
|
COPY kobrax_client.py .
|
||||||
COPY bridge/anycubic_slicer.crt .
|
COPY anycubic_slicer.crt .
|
||||||
COPY bridge/anycubic_slicer.key .
|
COPY anycubic_slicer.key .
|
||||||
COPY bridge/config/config.ini.example /app/config/config.ini.example
|
COPY config.ini.example /app/config/config.ini.example
|
||||||
|
|
||||||
# config/ ist ein Volume-Mountpoint – beim Start wird config.ini aus .env migriert
|
# config/ is a volume mount point – on first start, config.ini is migrated from .env
|
||||||
# falls noch keine config.ini vorhanden ist.
|
# if no config.ini exists yet.
|
||||||
RUN mkdir -p /app/config
|
RUN mkdir -p /app/config
|
||||||
|
|
||||||
EXPOSE 7125
|
EXPOSE 7125
|
||||||
|
|||||||
34
config.ini.example
Normal file
34
config.ini.example
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
# KX-Bridge Konfigurationsdatei
|
||||||
|
# Kopiere diese Datei nach config.ini und trage deine Werte ein:
|
||||||
|
# cp config.ini.example config.ini
|
||||||
|
#
|
||||||
|
# Credentials mit extract_credentials.exe (Windows) oder
|
||||||
|
# extract_credentials (Linux) aus dem laufenden AnycubicSlicerNext auslesen.
|
||||||
|
|
||||||
|
[connection]
|
||||||
|
# IP-Adresse des Druckers im lokalen Netzwerk
|
||||||
|
printer_ip = 192.168.x.x
|
||||||
|
|
||||||
|
# MQTT-Port (Anycubic Kobra X Standard: 9883)
|
||||||
|
mqtt_port = 9883
|
||||||
|
|
||||||
|
# MQTT-Zugangsdaten (druckerspezifisch, beginnt mit "user")
|
||||||
|
username = userXXXXXXXXXX
|
||||||
|
password = XXXXXXXXXXXXXXX
|
||||||
|
|
||||||
|
# Geräte-ID (32-stelliger Hex-String, druckerspezifisch)
|
||||||
|
device_id = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||||
|
|
||||||
|
# Modell-ID (Kobra X Standard: 20030)
|
||||||
|
mode_id = 20030
|
||||||
|
|
||||||
|
[print]
|
||||||
|
# Standard-AMS-Slot für Einfarbdruck (auto = alle belegten Slots, 0-3 = fixer Slot)
|
||||||
|
default_ams_slot = auto
|
||||||
|
|
||||||
|
# Auto-Leveling vor jedem Druck (1 = an, 0 = aus)
|
||||||
|
auto_leveling = 1
|
||||||
|
|
||||||
|
[bridge]
|
||||||
|
# Poll-Intervall in Sekunden
|
||||||
|
poll_interval = 3
|
||||||
Reference in New Issue
Block a user