Help with Klipper using raspberry pi hotspot

Hello! I'm not using ratOS but I have a question about the ability to use Klipper off of a raspberry pis hotspot. I know during the initial setup if a ratrig you connect to the printer through a hotspot and configure it. I am wondering if I can do something similar in regular Klipper because my college has restrictions on WiFi usage for devices that aren't school computers. I figured out how to get Klipper running perfectly fine and how to get the hotspot running. The issue lies with actually connecting because I get an error message that states "unauthorized" when using the .local IP and the numeric one. I tried messing around in the file Moonraker tells you to add connecting IPs into and it didn't help. The only time it works is if it's connected to a mobile hotspot or my home WiFi. Does anyone know a workaround? Thanks!
8 Replies
Aloe
AloeOP•6mo ago
No description
TheTik
TheTik•6mo ago
Hopefully someone has some ideas, I'm following the thread because that is a very interesting question.
blacksmithforlife
blacksmithforlife•6mo ago
you can try copying the hotspot code from ratos copy the files from these folders to the same named folders in your root directory of the pi: https://github.com/Rat-OS/RatOS/tree/v2.1.x/src/modules/hotspot/filesystem/root edit lines 27-29 to add the hotspot name, password, and channel 6 - then run the install script https://github.com/Rat-OS/RatOS/blob/v2.1.x/src/modules/hotspot/start_chroot_script so for example, you would copy https://github.com/Rat-OS/RatOS/blob/v2.1.x/src/modules/hotspot/filesystem/root/etc/dhcp/dhclient-exit-hooks.d/prefix_delegation to /etc/dhcp/dhclient-exit-hooks.d/prefix_delegation
Aloe
AloeOP•6mo ago
It isn't using ratOS it's using standard Klipper How does ratOS create it's hotspot because I can follow the same method and see if it'll work I manually installed Klipper onto the pi so I have the standard desktop pi/Linux operating system loaded
blacksmithforlife
blacksmithforlife•6mo ago
This is standard Linux setup, Rat-OS just packages things together. You should be able to reuse this, which is why I suggested it
Aloe
AloeOP•6mo ago
Oh I read your message before wrong 😭 I'll see if it'll work when I go back on monday Thank you for the help I'm going to try it on a spare cb1 at home rn and see if itll work
blacksmithforlife
blacksmithforlife•6mo ago
no, the CB1 is different. Use a raspberry pi If you must use a CB1 then you will have to follow https://github.com/Rat-OS/RatOS/tree/v2.1.x/src/modules/hotspot_cb1 instead
Aloe
AloeOP•6mo ago
I didnt have a pi on hand but I just ordered one to test this out on ok so i figured out a good workaround i am using fluidd as the web interface and whenever i am using the Pis hotspot since it is considered unsecure mainsail just wont let me connect however fluidd allows you to create a user for the interface and sign in whenever the connection is "unsecure" so i think the issue lies with a mainsail config not the hotspot itself

Did you find this page helpful?