mkuf / prind

print in docker - Deploy a containerized Klipper Stack for your 3D Printer
GNU General Public License v3.0
321 stars 82 forks source link

Access moonraker through/in a third party app #35

Closed adrianocr closed 1 year ago

adrianocr commented 1 year ago

I'm trying to use the iOS app "mobileraker". When I go add a printer it asks me for moonraker's IP address. I put in my docker host's 192.168.x.x address and the port number 7125.

Unfortunately the app fails to connect. Is there something I need to modify in the traefik config to allow it to accept connections other than through fluidd?

adrianocr commented 1 year ago

For anyone in the future you're going to need to do the following:

  1. Since the [authorization] block is enabled in moonraker.cfg you'll need to grab an api key. You can do that by directing a browser on your local network to http://[docker-host-ip]/access/api_key
  2. The moonraker address is not the http://[docker-host-ip]:7125; it is http://[docker-host-ip]:[traefik-port]/websocket. Enter that in the "printer address" section of the app
  3. Enter your api key from #\1 above in the api key section in the app