-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Octopi as WiFi Hotspot #396
Comments
It might be worth writing a CustomPiOS module for that now |
I since have started using repetier since it has a front end that I can use
with my touchscreen.
Not a big fan of paying 60 lbs though.
…On Fri, Oct 13, 2017 at 6:15 PM, Guy Sheffer ***@***.***> wrote:
It might be worth writing a CustomPiOS module for that now
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#396 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AB40OQctvf2qLF296OqysrVSXBgI2eSqks5sr-DmgaJpZM4OubJd>
.
|
Update: the WiFi Hotspot linked above works fine with the OctoPi 0.14 stable release. It does not work on OctoPi 0.15 nightly release from 2017-12-23, or any Raspian-Stretch based image that I have tried. There appears to have been a change to /etc/network/interfaces in Raspian-Stretch. Figuring that out is above my pay grade. |
Started writing a wofi hotspot module in my spare time. Its mmoving slowly but I have some code |
Last I heard, @kennethjiang was thinking of updating the WiFi Hotspot referenced in the first post here to work with Raspian-Stretch and OctoPi 0.15 when he got some time. I'm not sure if he's started on that yet or not. |
Added a wifi module that implements this guide. You could make this an OctoPi variant easily. |
This is great guys. I've been ignoring this lately because life, but I'm
going to dig into this again.
…On Mar 5, 2018 15:44, "Guy Sheffer" ***@***.***> wrote:
Added a wifi module that implements this guide
<http://www.raspberryconnect.com/network/item/330-raspberry-pi-auto-wifi-hotspot-switch-internet>
.
See this folder in CustomPiOS
<https://github.com/guysoft/CustomPiOS/tree/CustomPiOS/src/modules/auto-hotspot>.
Born on this commit
<guysoft/CustomPiOS@d0c259a>
.
You could make this an OctoPi variant easily.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#396 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AB40Oe0XspSv7IhrCYvedrKPP8NQtghKks5tbaO8gaJpZM4OubJd>
.
|
@APAeroDan I don't think this will be a default shipping, aat best a variant you could build. So what exactly would you like? |
Originally, I needed the pi to act as a hotspot so I could control the pi
with my laptop without having a Network. In the time since I have built a
local network so I may not need this feature anymore (I don't have internet
access here). It would be a nice feature for plug and play setup though.
Just run the image and it would setup a hotspot that one could connect to
and use as is, or use the link to setup the connection to your local
network. It could streamline the setup process. Just a thought.
…On Mar 5, 2018 16:00, "Guy Sheffer" ***@***.***> wrote:
@APAeroDan <https://github.com/apaerodan> I don't think this will be a
default shipping, aat best a variant you could build. So what exactly would
you like?
Also would like to hear @foosel <https://github.com/foosel> if she agrees
or not.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#396 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AB40OWf96WVnwoImUnSPp1X4FXqiBBohks5tbaeKgaJpZM4OubJd>
.
|
Actually, after looking at @foosel's work with netconnectd we might ship this. I think the only change should be that the wifi should not go up if the ethernet manages to connect successfully. |
Isn't one of the cases that someone wants to share their Pi's ethernet internet connection via a WiFi Hotspot from the Pi? |
@John-Mc Yes, and thats why it would be an option in the module. |
@foosel Do you think we should add the hostpost module as nightly and see if its a good move? I can also add scripts that control it, then OctoPrint could let you set ssid and password, and enable/disable |
@guysoft It's your image ;) But sure, go ahead. Keep in mind that OctoPrint runs (and should continue to keep running) as user, not root, so for any kind of configuration of network stuff from within OctoPrint you'll need a solution to configure that stuff that preferably does not require full blown root access (security). That was the whole point why netconnectd runs with this server/client scheme communicating over a unix domain socket. |
@foosel we could set at /etc/suders.d/hotspot_permissions something like this
That should let pi execute a single command as root without password. Would that help? |
Yeah, sure. |
Ok, so there other more mature projects out, such as: or https://github.com/balena-io/wifi-connect (cc @drphil3d ). I am not as familiar with what might work best, if I push this to nightly, or make an experimental build, is this something anyone around here is willing to test? |
@guysoft - I'd be happy to poke around with a wifi hotspot setup to see if I can find problems. I'll be no help on the code itself, but I'm pretty good at poking around and findout out what works and what doesn't (I did a fair amount of that when Ken was writing the hotspot mentioned in the first post in this thread). We were able to give it a good workout when I was helping out at a local elementary school. (The school's IT guy was not nuts about our little project being on "his" network.) My free time tends to run hot & cold, but I will look at whatever you put up as soon as I can. |
Yes I would be, I’ve used WiFi-connect in the past and it was very reliable
--
Philip Mally
3D Printing & Rapid Prototyping Services
530-205-3210
pmally@gmail.com
|
so when wifi-connect is initiated it can be set to use any port number specified, you should also be able to proxy octoprint through as well. If we want to use the captive portal then port 80. I have to look into the config file for wifi-connect. it has an html page that you can just add a link to in order to access octoprint. |
Sorry this keeps getting delayed, my nightly build system is up to no good. |
@APAeroDan was asking on another issue thread about setting up OctoPi as a WiFi Hotspot. Guysoft suggested he open a separate issue.
Here's a a solution to do that by Kenneth Jiang:
https://medium.com/@kennethjiang/painless-wi-fi-for-octoprint-4e6b68005400
Scroll partway down to get to the WiFi Hotspot section. This set-up will first try to connect to any known networks you have entered in to
octopi-wpa-supplicant.txt
. If it is not successful in that, it will set up its own WiFi Hotspot.I used this successfully with OctoPi 0.13 and with one of the release candidates for 0.14. I have not yet tried it with the stable release of OctoPi 0.14. Note that this setup is not dependent on OctoPi. It should work with a regular Raspian installation.
EDIT: the hotspot mentioned above does not work on OctoPi 0.15 and later (or any other Raspian-Stretch based system)
The text was updated successfully, but these errors were encountered: