QuinnDamerell / OctoPrint-OctoEverywhere

Cloud Empower Your OctoPrint, Klipper, and Bambu Lab 3D Printers With Free, Private, And Secure Remote Access, AI Print Failure Detection, Real-time Notifications, Live Streaming, and More!
https://octoeverywhere.com
GNU Affero General Public License v3.0
166 stars 14 forks source link

[Feature Request] Bypass user input on install #58

Closed jhaydter closed 2 months ago

jhaydter commented 6 months ago

Currently install relies on user input to generate configuration for Bambu Lab Printer (SN, Access Code), not allowing automation in cases such as Dockerfile build, silent install, etc.

I'd like the ability to pass all configuration bypassing all input.

One workaround I'm investigating is constructing the configuration files pre-install, to not trigger a new setup.

Stack Trace:
Traceback (most recent call last):
File "/home/ubuntu/octoeverywhere/py_installer/Installer.py", line 23, in Run
self._RunInternal()
File "/home/ubuntu/octoeverywhere/py_installer/Installer.py", line 134, in _RunInternal
configure.Run(context)
File "/home/ubuntu/octoeverywhere/py_installer/Configure.py", line 137, in Run
bc.EnsureBambuConnection(context)
File "/home/ubuntu/octoeverywhere/py_installer/NetworkConnectors/BambuConnector.py", line 37, in EnsureBambuConnection
ipOrHostname, port, accessToken, printerSn = self._SetupNewBambuConnection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/octoeverywhere/py_installer/NetworkConnectors/BambuConnector.py", line 78, in _SetupNewBambuConnection
accessCode = input("Enter your printer's Access Code: ")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
EOFError: EOF when reading a line
QuinnDamerell commented 6 months ago

This is a really interesting idea; I will try to add it as I add the docker support. Thanks for the suggestion!

QuinnDamerell commented 2 months ago

I moved this to my TODO list, so I'm closing this issue for now!