gdombiak / OctoPod

Free open source client for OctoPrint
Apache License 2.0
229 stars 42 forks source link

Feature suggestion: location-dependent connection #565

Open jonathanalevi opened 2 years ago

jonathanalevi commented 2 years ago

Hi! So, I'm not sure if this is possible, but I wanted to suggest a feature that alters the URL depending on where you are (as determined by your wifi network or whether or not .local is accessible). Basically, my setup is that I have my printers on OctoEverywhere, but that is somewhat slow and limits me to 2 minutes of viewing at a time, so I ALSO have to have each one set up as a .local address, meaning I have 2 printers added for each physical printer.

It would be cool if OctoPod knew this, and used the .local address if I was on my home wifi (or if it was able to ping the .local address without slowing down the viewing experience to first check), and only used the OctoEverywhere tunnel if necessary.

Just a thought :)

image

Thanks for a great app!