raspberry pi as access point with captive portal - raspberry-pi

I recently got a raspberry pi. I have it set up as an access point in a standalone network (not connected to the internet). I can also serve a static website on this network. Ive been trying to set up a captive portal so that when a user joins the network it automatically takes them to this website.
Looking at these tutorials:
raspberrypi.org/documentation/configuration/wireless/access-point.md (this is how I set up the access point)
pimylifeup.com/raspberry-pi-captive-portal/ (for captive portal using nodogsplash)
So the access point is working but honestly I have no clue about how the captive portal works with this. Im wondering whether the pi has to be connected to the internet for the captive portal to work? If anyone knows anything useful, I will forever be in your debt.
Best,
L

You can make the captive portal work without internet by adding this to /etc/dnsmasq.conf
address=/#/your.rpi.IP
This points all DNS queries to your raspberry pi making the nodogsplash work.

Related

Is it possible to bypass the Wi-Fi confirmation pop-up for this Raspberry Pi application

I tried to articulate my question better but that was my best. Basically I want to make a headless setup for a Raspberry Pi and want it to connect Wi-Fi automatically to be used for an MQTT application.
My challenge is, I most of the time work in a cafe shop and it requires user to push/confirm a button(no password needed) as shown below, to be able to connect to internet. And after certain hours it will drop you from internet you need to repeat the same again.
In this case is there any setup that would by pass this step?

Can't log in on Unity: Sorry, this link is no longer valid

I am having a problem when trying to log in on Unity Hub and https://id.unity.com/, searching for a solution I try allowing Unity througth firewall and changing my network to private (it was already in private but I try changing it to public and then private again), none of this solutions worked for me. The only "solution" I found was connecting to my phone network, what is wrong with my home network? Here is a screenshot of the error message.
I hope you can help me, thank you.
I have exactly the same issue on my house network.
In all the machines that I connect I receive this error.
No matter if I connect using WIFI or Ethernet (Using cable).
No matter if I try to log in on a web browser or on the Unity Hub.
Always the same.
The solution that I found was to use the 4G internet of my Android device on my Laptop, creating a "Mobile Hotspot" (Wifi Point on your Android device) and connect your computer to that Wifi network:
(Disable the Wifi on you Android device, and enable Data Usage -> Mobile Data), make sure you purchased an internet packet for your Android device, or you have montly internet plan.
Another solution could be just to connect using another Wifi network, for example a network from a Shopping Mall.
The problem is something related to the network configuration, so the fastest solution is to use another network just to log in into your Unity account, and then use your network for the rest (Keep your session active as long as possible to avoid doing this again and again).

Secure, local IoT Device Discovery using PWA without a remote server

I'm looking for a way to managing and controlling IoT devices without the (constant) need for a remote server to be part in it and with a PWA instead of a native application on the managing device. The resulting goal is an IoT device that keeps working when a product eventually goes obsolete (no more server running/allocated) and having an application that has PWA benefits like always up-to-date, easy to replicated and cheaply hosted on something like S3.
As an example, let's say I have one or more IoT devices of different classes like an ESP8266 and a Raspberry Pi for instance. Just as with any new IoT device I want to add it to the network and from there on manage its state from an app. The app in this case is a PWA instead of full blown native app.
1) Traditionally, in the initial setup a native app would scan for wifi networks, connecting automatically to one that has the right name. Using PWA's we are limited to just the "state" of the network. So users would have to manually switch to the network of the newly connected IoT device. This is okay.
2) Next up, the user would need to enter his/her wifi credentials. There might be methods to set this up automatically using a native app, but I don't believe this is the case on a PWA. This, also, is okay.
3) The device then restarts, tries to connect to the network set up in (2). If set up correctly it should get its IP using DHCP. And now things get difficult. I want to 'discover' that network from my PWA. There used to be a way to retrieve the IP from a device using the WebRTC API. but that since has changed to show an obfuscated mdns that resolves to localhost. The ip leak would have allowed for a browser based network scan, but that is no longer possible. I always hoped that Android would default to using a users router as a DNS server, but that is not the case. The result is that simply using an mDNS isn't an option either. I do not want user having to check their router, install an app like fing or do anything else that disrupts the flow from a UX perspective.
Step (3) needs to run every time the app starts so you'd want something reliable. Scanning for devices isn't possible using a PWA, so I need to find another method. I was thinking of something like the way Docker containers can find each other in between networks (see etcd for example), using a predefined key that is shared during installation. The problem with this, is that it requires a remote server to store the IPs attached to that key. I don't want that.
Ideas on how to solve this are very much appreciated! I want to be able to offer a solution that would work even when WAN is out. That being said, I am aware that a connection to a remote server is needed if the end user would want to enable any voice assistant or wants to control a device from WAN.

No wireless cards found when attempting to use fluxion

Recently I have installed fluxion on my Pi 2. There wasn't any problem in the installation process, but when I tried to use fluxion, (after choosing the language) I got the message no wireless cards found ....
It is strange because I was able to see wlan0 (and also connect to the internet) before I had selected language. And also the light on my Wi-Fi dongle goes off.
Is there any solution to fix this problem?
Finally, I could solve the problem. I bought a new wireless usb adapter. For those who are curious I will introduce model of the device. I purchased TP-Link TL-WN722N which is suitable for hacking tools in raspberry pi. It also supports monitor mode. For more information you can visit the official website.

End-to-End communication between two networks

I studied your article (CoAP) in https://www.rfc-editor.org/rfc/rfc7228.
we are developing Home automation Solution with IoT enabled devices.
I have following doubts to provide the seamlessly solution for Home Automation.
1. I have some appliance with Wi-Fi enabled controllers
2. These controllers are connected to One Standard Router (ex:- CISCO,TP-Link, D-Link). All appliance connected to one router through Wi-Fi.
3. These appliance controlled through local handheld devices by using our proprietary protocol with in the Home network.
Now, we want to give a one feature like operate these appliance by using Handheld device from Remotely.
Internet is enabled to this Router & also register one domain name.
But our problem is how to send commands or data from remote devices through Internet to home appliances.
Note:-
1.I don’t want to develop or place controller between IoT devices &
Remote handheld devices.
2. Request is initiated by remote handheld device only.
I hope, any body can guide to me for better solution.
Thanks in advance
Even if it's not a programming question I would like to make some references that can help you with decisions:
AllSeenAlliance AllJoyn Framework SmartHome Working Group. I think, it will guid you how to develop better solution.
HomeOS by Microsoft Research