Configuring PrusaSlicer for Octoprint
I'm trying to set up Octoprint on an MK3S. Octoprint is running on the RPi and in my browser. It can see the Prusa and displays the contents of the SD card. But I can't get PrusaSlicer to configure for it. When I try to configure the Octoprint printer, I enter the following for the Hostname:
https:192.168.1.191
And I get the following error when I try to Test:
Could not connect to Octoprint: URL using bad/illegal format or missing URL: port number ended with “.”
If I enter the following Hostname:
https:Username:Password:192.168.1.191
I get the following error:
Could not connect to Octoprint: URL using bad/illegal format or missing URL: port number ended with “U”
I entered the API Key copied from the Octoprint server.
Try just entering the IP address, eg 192.168.40.195. That's how my physical printer profiles are configured. Also, don't forget to set a static IP address for your printer on your router.
Formerly known on this forum as @fuchsr -- until all hell broke loose with the forum software...
Nevermind....
I was trying to follow the popup guide in the configure window. If I just enter the IP address for the Hostname, it seems to work.
static IP
Just make sure that the IP you're using is static.
I may be wrong here but a host name isn't a web page so no https:// should not be used.
Static IP
Fuchsr says to set up a static IP address on my router, but it seems to me the router has no effect on the IP address of the RPi 4. As far as I can tell from my reading, this would have to be done by editing the dhcpcd.conf file in the Pi.
Is this right?
Okay, now we're getting into networking basics. Most networks use DHCP, that is, the devices on the network get their IP addresses dynamically assigned by the router. That means if a device or the router reboots there's no guarantee the devices will end up with the same IP address as before. But in your router settings you can bind a specific IP address to the MAC address of your device's network interface, thus creating a static IP address.
Formerly known on this forum as @fuchsr -- until all hell broke loose with the forum software...
Sorry... dhcpd.conf is a file read by the DHCP server program and only relevant is a pi is used as a DHCP server. But in most cases the Pi is a client connecting to your primary network router.
Formerly known on this forum as @fuchsr -- until all hell broke loose with the forum software...
IP address reservation
Never too old to learn something new. I've used the router to map ports, but never to reserve IP addresses. I have always told my devices to use static. But I see now how to configure my Apple router to assign an IP address to a MAC address.
How is it that you can make a REPLY to the forum without a TITLE, but when I try to do that, it demands I enter a title?
Can't spill the secret!
No, seriously, it's easy. I *am* entering a comment. It's just a blank character!
Formerly known on this forum as @fuchsr -- until all hell broke loose with the forum software...
URL Format
Anything after a single colon (:) is interpreted as a port number. As mentioned, proper format would be http://ipaddress:port
Usually the :port is not necessary.
correction
Anything after a single colon (:) is interpreted as a port number. As mentioned, proper format would be http://ipaddress:port
Usually the :port is not necessary.
I can't edit my last but of course you're correct, PrusaSlicer is talking to OctoPrints web interface.
dnsmasq is a great DHCP server
For those of you rolling your own home network, dnsmasq is a nice DHCP server. If I connect with a new device, it automatically creates a dynamic dns entry for that device using the hostname. For example, I have configured 3 OctoPrint instances with my printer names (mk3, swx1, mpc). Once the printer starts, entries are automatically made for mk3.mydomain.com, swx1.mydomain.com, and mpc.mydomain.com. I can ping any of them by just the hostname (e.g., ping mk3). If the Raspberry Pi changes addresses, dns is automatically updated.
It's also worth getting bonjour working on Windows. I can always ping an OctoPrint installation as mk3.local, for example.
I haven't had to futz with static IP addresses in years.
and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan
octopi.local
Try with the following:
octopi.local
it should work