-
Notifications
You must be signed in to change notification settings - Fork 17
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
How to auto-detect on 'sub network' #100
Comments
Huh, I thought there was a hardware limitation which prevent this. I understood you had to shut down the access point in order to connect to another one. What version of the Pi is this and how did you achieve it? I think the multicast UDP packets used by mDNS broadcasts are limited to a single subnet. It might be possible to configure Avahi to forward these packets between subnets using |
Interesting, thanks. I'm bending over backwards to make sure it's all possible without changing anything in the linux config files (which made enabling a hotspot while being connected via wifi even more of a challenge), so I suspect I can's really make a change in the avahi config files. I had a look at this project earlier, which perhaps does the same thing? It didn't seem to work when I tried it though. But I guess this is the right direction?
I want to turn this into an addon, so I can share the code if you like. I have it running on a pi 4, haven't tested it on a pi 3 yet. |
Hi @flatsiedatsie, This looks great! This discourse sever might be because you at one point enabled notifications from that website? How to know which domains to block and which to allow? I suppose some Wifi devices might not work at all via WebThings if their OEM server isn't available? I'm not sure how easy it would be to make a UI in the Gateway to do this, do you think it would need to be done in a config file? It could also be used to allow/block addresses for devices which aren't Webthings at all, e.g. I've got a Sonoff switch I still use their cloud for, and that isn't connected to my WebThings gateway. Anyway, this looks great and I think my first use case for this sort of thing would be the kind of Wifi devices which initially need to be registered (some bulbs?) but can then be controlled via Webthings. Cheers 🙂 |
@madb1lly thanks :-) Here's a sneak preview of the current build. As you can see, even on a different tablet I see the connection to Overall it's really quite interesting and educational to be able to see what domains devices are attempting to connect to in such a simple way. The screenshot above shows how many things an android tablet tries to connect to in the background. |
I've managed to start a wifi hotspot from a Raspberry Pi Gateway while the gateway is itself connected via wifi to my home network. This was done using
hostapd
anddnsmasq
, and without modifying any files on the gateway outside of the addon directory. The goal is to have a locked down network for smart home devices that use wifi. So the pi kind of acts like a router. It uses NAT to 'sandbox' this network. Or that's the idea at least.I've also managed to get a webthing on this 'sub network' to succesfully connect to the Gateway. But only by adding it manually.
E.g.
http://192.168.12.14:8889
worked.But I haven't been able to get the Gateway to auto-detect the webthing on this subnetwork.
I'm trying to understand why this is, and if there is something I could do to get the gateway to also 'scan' on this sub network. Any suggestions?
The text was updated successfully, but these errors were encountered: