140 points · by dirkc · 2y ago · 231 comments
Here is an example of the QR code I have on my door. You can scan it and say hello: https://www.thebacklog.net/img/2024/10/show-hn.png
This was also a great excuse to build my first app for Android and iPhone.
I’d love to get some feedback before I spend more time polishing the app. Please try it out and feel free to ask me any questions! No logins or accounts needed.
If I’m out and about you’ll be able to contact me, and I can tell you that I’m unable to answer the door right now but I value your visit.
All in real time!
Let’s get started: simply solve the puzzle below. The solution will let you work out the code to unlock the box next to my door.
When you unlock the box scan the QR code inside, which will allow you to connect to my WiFi guest network.
Once you’re connected scan the second QR code to open the virtual doorbell selector. You can then select the appropriate message for your visit.
Unable to connect?
Simply knock on the door and wait. If I’m home I’ll surely answer soon enough. If I’m not home or don’t want to be disturbed you should use your own judgement: if it’s urgent trying shouting through the letterbox, or maybe wait a while and then return later!
But I agree I wouldn't want a static QR code linked to anything that could bother me.
Oh.
I don’t mean this in a mean way and realise that your comment was mention the spirit of the conversation :)
Static QR codes make no sense by themselves because they can be replayed. Same goes for "pay with your face" biometrics. The person is supposed to confirm something on THEIR OWN phone, to authenticate themselves and their location. Then the QR code to scan can indeed be static. Since the person's phone has to have the Internet anyway to make requests, simply change the interface on the PHONE.
QR codes printed on a flyer or wherever are meant to "start the conversation". The authentication can happen right after. But keep in mind that, by themselves, they are not enough. For example, if you're trying to do a ticketing system or attendance where people scan a QR code, they can just forward it to their friend. Better to have them PRESENT a QR code to be scanned.
Having said that, WiFi access points and captive portals are better. Because once you authenticate, the next time is seamless. They can be used to take attendance in classrooms, and much more, seamlessly. (Except if it a person's phone is off. So then they have to come up and manually register, or you have to find that out by having a challenge during class that actually requires phones.)
ATTENDANCE ONLINE:
While I'm at it, I will mention one more thing. Authentication and "presence" can also include face recognition and eye tracking. There are lots of models for Tensorflow's JS port, such as "blazeface", that can do it in real-time. You can present a computer interface on your own wall and the person is authenticated with their face. But remember, once again, that this should only be used for your own software within your own organization, which you presumably trust. Because it can be replayed and spoofed by whoever has access to the back-end.
Anyway, for remote learning, this becomes really useful because (e.g. during the pandemic) the teacher can have an on/off signal which M of N students are paying attention, and which are drifting off or walked away from the computer -- all WITHOUT seeing their video feeds. So it enhances privacy.
We've built a simple tool where students can open a background tab for instance, which watches where their attention is, while they use whatever sites. The tool is deployed by the teachers.
If you want to prevent tech-savvy students from spoofing this attendance, you have to ship some of the code, signed with your own HMAC or private key, every time, and do it in a third-party iframe so their JS code can't simply override it. They would have to rewrite the code in the time that the secret key for the HMAC changes (every 10 minutes). For that, they'd need to install their own user-agent, and very few students are going to go that far. But yes, if people do have their own user-agent, then they can pretty much do any kind of replay attack for attendance. Something to keep in mind.
The only way I have found, to do attendance reliably online, in the presence of adversaries capable of wielding their own user-agents and rewriting code on the fly, is to have them join a videoconference and show a signed QR code on their phone while also completing challenges with their face. The private key might have to come from an agency that saw them arrive in person. The only way to defeat this is to corrupt the agency, making it give out a lot of private keys, and then deploy deepfake video avatars at scale (the kind DARPA wants to do) to complete all challenges. At that point, they AI is probably good enough that you prefer the bots to humans anyway LOL.
SYBIL ATTACKS
I will also say a word about sybil attacks. The best ways I have found to prevent them are imposing a cost (but those who can recoup the cost will still do it) or grandfathered accounts. The problem with grandfathered accounts is that people can deploy software to automate existing accounts, and do it occassionally enough to avoid detection. The only way to prevent cheating in tests, for example, is to flip the classroom and have the students take the test in class. They can do it on their phones, as long as their phones notify the teacher when they put the app in the background. (However, there are still problems with phones that allow multiple apps side by side and don't tell the apps.)
In case you are wondering, we are building some of this stuff on https://teaching.app
I'm sure your app doesn't actually stream the video back to the server, but how do I as the user, know that? All I can see is you requesting camera permissions and you saying "trust us bro" that you're not streaming the feed back to your server.
The way I understood the submission is that if you don't have a doorbell - or especially a smart one - scanning the qr code replaces pressing the button.
Others have mentioned that it would be easy enough to copy it and circulate elsewhere but while that's a big issue in my books I don't see the link to captive portals, student attendance etc.
People could also print flyers with your phone number on them. Add your email address to spam lists. Etc etc.
But again, still more hassle than helpful and if you forget to switch it the problem remains.
1. Get a QR code to put at your door
2. Visitors scan the QR code using their smartphone camera
3. Get a notification on your phone wherever you are!
OR
1. Install doorbell at your door.
2. Visitors press the doorbell using any of their extremities.
3. Get a notification on your phone wherever you are!
Just because they are at your door for some reason does not mean they want to give up what has become their mobile ID. People are starting to get protective of it with good reason, since there are so many attacks using the Mobile #/ID...
Also, as pointed out elsewhere, the static easily duplicated QR code has issues for you, but it would also be easy for someone to slap a malicious QR code over your static one, disabling yours and enabling their scam...
Maybe I'm just the wrong generation, or live in a place that still has winter, but a QR code where I need to get out my phone, take off my glove in winter, activate the camera to scan, etc., seems a lot less welcoming.
One thing that is good about your QR code option is that you do receive notice anywhere and you do have their mobile number, so you can reply immediately with a text or call, such as "sorry, I'm running late, not quite home yet, I'll be there in 10min". Ofc, you could also post your mobile number below the wireless doorbell.
Perhaps Option #3 would be a doorbell that can display a scrolling message, so
— wireless doorbell
— sends text to you
— you can reply to doorbell (e.g., "coming downstairs now", or "traffic, be there in 5min", "pls call me at 987-654-3210", etc.)
This way, no one needs to reveal their mobile number, but everyone has the advantage of mobile communications, albeit with a small bandwidth.
?
From what I read it says to scan the code and get a notification anytime it's scanned. Just looked at the android app listing and there seems to be something about taking a selfie which seems rather useless but hey maybe some people like it.
Also love how people keep suggesting wireless doorbells when the whole point of this is not to install any hardware that could be to expensive, harder to setup/maintain than a QR code, or maybe stolen/damaged or not allowed to be installed
OK, maybe the point is to not install any hardware (beyond a sticker), but it seems people are pointing out that a QR code introduces more problems than it solves (trust, spoofing, copying, misdirecting, inconvenience, etc.). If he wants to install no hardware and get a text on his phone, perhaps the easiest thing is to post a sticker with "pls text me at [mobile number]" at the location of the doorbell or QR code?
Knock on the door while ignoring anonymous QR code that could have been left by anyone
Scenario 1 (QR code) puts 100% of the infrastructure on the client (visitor) side, and scenario 2 (Nest, Ring, etc) puts 100% of the infrastructure on the server (resident) side. [Edit: strained metaphor perhaps, and yes both scenarios require connectivity infrastructure]
So these are completely different methods of achieving the same goal, and there are easily imaginable cases where one scenario would be preferable over the other.
Usually, server-side makes the most sense. Certainly in the case of a traditional wired or wireless dumb doorbell, it's simpler.
But there are cases where server-side is difficult or impossible, especially if you want "smart" features like photos or routing or two-way interaction. Higher cost, permission from property owner if renting, etc.
Pushing the infrastructure to client-side solves these problems. Most users will have the client infrastructure in their pocket already. No wires. No new piece of hardware to maintain, repair, keep charged, etc.
Knocking or a physical doorbell noise is fine for my house. But if I’m not home, they have no way to communicate with me unless they leave a note on the door, which requires them to have paper and me to not be traveling for days.
For security of course it'll be an SSID that doesn't connect to anything else, because hey, we care about security. ;-)
Another app is: "connect to this SSID and ping6 2345:0425:2CA1:0000:0000:0567:5673:23b5 to ring doorbell!".
Overall this feels too complicated. Unfriendly to people without smartphone or mobile internet. I understand this is DIY equivalent of camera doorbell, but I would definitely prefer some no-name chinese radio doorbell both as one ringing and maintaining it.
While a cheap radio doorbell might be better in many cases, there are still circumstances where it's not suitable. I'm trying to figure out which those are?
In general you should display a prompt explaining why a permission is needed (eg. "we need access to your camera to camera to take a picture to send to the owner, click allow on the next screen to allow."), and only ask for permissions after the user accepts the first prompt.
However in this particular case you shouldn't have to request camera access directly. Using <input type="file" accept="image/*" capture="user> will display an system interface (ie. from the browser or OS) to allow the user to take/select an existing picture. It also already has preview and front/back camera selector built in, so you don't have to implement that yourself.
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes...
I'll have a look at using the `capture` attribute on an input. My initial idea was to do video over webRTC, but the selfie version works okay for a first version
Of course, you would not have learned your first iOS/Android app with that approach. Maybe that's the better lesson to learn though--not everything needs to be an app
I might have a situation where the QR Code makes sense though. I'm renting a location for a party at the top of a building, which is only accessible by transponder cards. So there is no door bell or anything. Instead of having someone letting the guests in, this could be an alternative.
I do very strongly prefer a QR code thing to something like a Ring (as long as the QR code isn't going to a service such as Ring), though, but neither is better than knocking.
I don't like even being in neighborhoods where these things are in common use. Privacy issues aside, I take a prevalence of surveillance systems as an indication that the area they're in is an undesirable place to be. Either it's actually dangerous, or the people living in them think it's dangerous. Either way, that's a bad sign.
Cheap wireless doorbell is $5 delivered from Amazon. That's your biggest competition for the straightforward case. And that's easier to install, and easier to use.
There are plenty of scenarios where a Qr -> optional form -> notification is useful, eg hosting an event -- so maybe explore/emphasize those rather than the simple approach.
Fighting abuse and the resulting customer service, bad reviews, etc will be a constant drain/challenge.
There might be some market overlap with generic notification apps like Pushover.
Agree also with the "scan this code when you arrive to the party" => are you here? Y/N => notification. Pop a geo-permissions prompt and geo-fence "YES" in certain cases, and you're getting somewhere.
Obviously there's 100's of easier ways to manage things which is why I haven't done anything on it yet. It just seemed like an adjacent use-case worth sharing to the creator.
I'm not wiring up a "doorbell" to my back garage, but popping an "approve/deny" thing that eventually hits an API endpoint or IFTTT integration (with geo-location?) isn't that far off from what he has and is an entirely different value-prop of utility.
Yeah, yeah, hackers, open API endpoints, DOS, rate limiting, etc., but it's an interesting use case: "Virtual Keypads" near doors.
I wouldn't call it a real replacement, but I can see a dozen uses.
The other one was a party at someone's apartment and I only had their IRC and twitter handle but not their phone number, and they had a key pad at the entrance (long story, not their fault) and I didn't have the number. And yes, I tried to ping them but they seemed to ignore their phone so I had to wait for other guests to arrive anyway.
My third example would be temporary event locations where there simply is no door bell or the organizers are not where it would ring and again, a phone works but it would leak the caller's number and the organizer's number whereas I suppose you can just uninstall the app or have different URLs generated that stop buzzing after a while.
Situational, as I said.
Also, a real traditional doorbell is mechanically coupled to the bell, with no electricity at all.
What reason would you want to be notified of unknown visitors knocking on your doors when you're away? The only people I can see fitting this description are delivery drivers & salesmen?
Further, what if you're home and your phone is in another room, is on silent, or is dead?
What is you have a spouse or housemate? Do both of you get notified?
And there's also a subset of people who get frustrated by having to use QR codes in restaurants, who I suspect would be equally frustrated by this.
One thing I've found useful so far is that the notification sound is different from my phone/message chime, so when I hear it I know it's someone at the door.
I'm curious to hear what other people think?
Kinda silly in any case. If you want to use a QR, just point it to your phone number so I can call you and talk to you.
Expecting guests and random strangers to go out of their way to accomodate that is not ideal. I don't know how I would react if I had to scan a QR code to ring a doorbell but chances are I would leave.
> Replace your doorbell with a QR code
The purpose of the app is to create a doorbell for instances/contexts where there isn't one. Not to replace currently working doorbells.
My suggestion: find a niche, like a doorbell for hearing impaired home owners. Otherwise you'll be recreating Nest. Google won't buy identical product twice, to kill it. A generic Nest-like product has little chances to take over the market.
A button feels more natural and is much more approachable over an QR code. QR may be a nice fail-over for when no one is opening the door in reaction to knocking or pushing a button. But QR as the main method? Maybe for evolving markets or harsh neighborhoods where wireless doorbells get stolen - if that's even a thing.
You're looking into providing value to home-owners, by making it easier for someone outside their homes. In most cases this dumb button that makes some sound inside the house just works. Little area for improvement here, for most people.
Your potential market for people willing to stick a QR code on their door are:
> "I'm hearing-impaired. Please use below QR code if I don't hear you knock"
> "I'm not opening? chat with me here [QR code]"
↑ this is your potential target. You already see that most comments in this thread tell you that people don't want QR codes on their doors. You have an idea for a solution still looking for a problem. Accessibility around hearing loss may be one.
You can help people. And from a business perspective, you may be able to get government grants for such project, which may be better for you than crowd-sourcing. And, you may get customers who get their purchases partially covered by gov health programs, if you properly interact with related accessibility-related gov bodies (YMMV around the world of course), apply for getting your stuff assessed for free advertisements inside hearing loss-related clinics etc. And again - you can make a product that makes impaired folks' lives better. Win-win.
There are multiple ESP32-based doorbell projects (I like this one[0]) that can be expanded easily with code changes. I can't really see how a QR code is better. Make your product either equally interesting to public or covering some niche use-case. And again: Nest...
Except those pin codes are now commonly disabled for security reasons. So, I was waiting downstairs wondering what to do and in the end just called my friend after which he came downstairs to open the door. That works of course but a QR code would be a good alternative.
Even if it just contained a tel:// link with the phone number. I love QR codes for low tech solutions like this.
This stuff doesn't have to be hard. And you don't even need an app for this. Just print your own code with your phone number, email address, etc. (from any of a vast number of web based generators) and put it near the door with some instructions.
About a decade before that, we kids basically only had SMS text messaging, and it was very expensive in my country, mobile data doubly so. There was however a "please call me" feature, where you could send a "please call me" text to a friend free of charge. We used to send please call me's to one another all the time, not because we wanted to be called, it was just the cheapest form of digital communication.
I wonder if instead of complexity you should call this a cheaper alternative to a smart doorbell?
I don't think many of us think of smart doorbells as particularly complex. However, they could be out of budget for many.
Alternatively, you could market as privacy respecting, where a smart doorbell is always recording.
- I would never use a random QR code in public and I wouldn’t ask anyone else to.
- Pranking seems like an issue.
- If I know someone, they’ll text me they’ve arrived. If I don’t know someone, there are two main cases: delivery person, who is going to pound the door and leave immediately (and I’ll get a notification of delivery); and religious proselytizers, political door-knockers, and solar company sales people, none of whom I care remotely about talking to.
Again, as a project, this is delightful. But as a thing to incorporate into my home, I can’t see the use case.
EDIT: Also, criminals. They’re not going to use a QR code to see if I’m home.
I built much of the code front end and back end then abandoned it because I just could not summon the belief in the idea as a startup.
I was focused on QR codes as entry points to buildings and companies, with integrated guest book functionality.
This was pre-covid so QR codes had not yet become something everyone knew how to drive and mobile phone implementation was not yet universal.
Also being pre-covid every still went to the office to go to work.
I came up with many names and registered many domains I think one of them was paperdoorbell.com and many other such variants.
Easily add a control panel to machines that can't easily have one (because of cost etc). Or a debugging panel for improved UX over the usual "three LEDs giving you a code you have to look up in the user manual".
NFC is better UX (less user taps).
For an easy PoC, make an NFC tag that connects you to an SSID and opens the captive portal usually used for Wi-Fi auth as the control panel.
It seems a bit convoluted, though. Is there a DPST momentary button I can use instead (removing the need for the hall effect sensor)? I searched on digikey but 'DPST momentary' came back with results that were too bare (just the button), expensive ($50 per unit) and had a long lead time (8 weeks).
Just tap the dc leg between the bell and the chime into a voltage divider - for a 16V doorbell to a 3.3V esp32 io pin, r1=15k and r2=3.3k is exact - and you're done.
Feedback: Teach people to never ever scan a QR code if they don't know for a fact who created it. For if you don't, you'll be part of the crowd who is conditioning people to scan all the QR codes they can find without thinking...
I guess my implementation would just be sending a notification to my phone on a messaging platform, or send an email. Maybe use https://ntfy.sh and the more generic app to get these notifications.
I'd be very curious to hear more about it
Now I have to scan another QR code just to meet you?
I prefer looking for new friends.
I'm considering setting up an ESP to integrate my old bell's chime with the QR code.
On a side note, a delivery person might actually not want to scan the QR code because (a) if you do this all the day long, it take much more time than pushing doorbell buttons, and (b) if they use their professional devices to do this, they might either have that URL blocked, or scanning a "random" QR code might be against their company's policies because it might expose them to security risks (imagine a phishing page with the login interface of the delivery company, or a site serving malware).
Most phones have an NFC reader as well so should work with Android too.
Similar concept:
1) person taps phone against “door bell”
2) sends notification to user(s)
3) optionally, send “selfie”
IIRC, app clips needed to be very small in size. So something like this could work, even in low bandwidth situations (ie, poor signal strength)
* Install a lock that does not have any external mechanism to unlock it. No key holes, no password pad, nothing. So there will be no lock picking in any way.
* Use your peep hole as a camera.
* Show a QR code to said camera.
* Door unlocks if QR code is correct.
Battery-powered locks.. well.. they die a lot more than 0 times
The failsafe mode for losing a backup key is getting a locksmith to come out and fashion you a new key.
Wish you the best with it though. Could catch on
Might be nice to play a "ding dong" sound in the browser?
seeing as you need an internet connection to access whether the doorbell has been rung, you may as well connect a physical doorbell to an app that monitors this and gives you a notification on your phone without the need for a QR code
the QR code is just a hassle
https://reddit.nerdvpn.de/r/mildlyinfuriating/comments/1gg37...
Scanning QR codes outside a trusted environment (e.g. a workplace stock keeping system) is asking for trouble. Security advice now routinely recommends not deploying QR codes on your products, nor encouraging your employees/users to scan strange codes.
It's like 1995 all over again.
EDIT: In response to doubters below https://www.bbc.co.uk/news/articles/cz472gy8nd9o
Besides, to paraphrase Dubya: "Goatse me once, shame on...shame on you. Goatse me—you can't get goastsie'd again."
So, use common sense here. Links and QR codes are everywhere. And people click or scan them all the time at their own discretion.
This is not like 1995 all over again. All the same protection mechanisms that we've put up since then for links also work for QR codes. There's no real difference between a link I email you and a QR code that you encounter in the wild. You click or scan them and a browser opens and does its thing. I mention email here because email clients typically don't really restrict what you can do with links in them. There's a reason for that: people send a lot of links via email and links are useful. So the fact that some bad actors send people evil links via spam, is not enough reason to disable the feature.
QR codes are just a way to provide links for people to "click". It's not even a new way because they've been around for quite long. The US and Europe are late to this party. Most of the rest of the world already runs on QR codes for quite some time. Especially places like China and Japan.
Ps. I run a company that uses QR codes a lot. They solve a lot of issues for us. IMHO they are severely underused currently.
Other than that, it's the same as clicking a link on an email, yes.
QR codes can contain a limited set of data. There's no possibility of a buffer-overflow or malicious program.
Every QR reader I've seen shows you the destination before taking you there.
It might be a scam website - but that's no different to seeing an poster and manually typing in the address.
Yes, QR codes can contain an auto-generated email or premium SMS. But they won't send automatically. The user remains in control.
Disagree, because:
* QR codes are opaque to humans. You can't visually tell if one is legit or not.
* QR codes often use URL shorteners, so that the URL contained is just https://exam.ple/4pTF6x4M9 is not unusual.
Someone can replace a QR code with a sticker overlay and link to a phishing site. Replacing a URL on a poster is also possible, of course, but harder to make look convincing in the first place and significantly simpler to detect.
* Printed URls often contain shortened links.
I'd argue that most QR sticker overlays are also pretty inept. See a sample at https://shkspr.mobi/blog/2024/07/qr-code-hijacking-attempts-...
Source?
I'm not sure if your and my definition of complicated are the same in this case
I mean this could be a okay solution for a very certain set of circumstances, but making your visitors scan a QR-Code seems like bad UX, why not have them fill out a form while you're at it?
If I had a situation where it was impossible to run wires through the wall I'd install a old-school knocker on the door and a knock sensor on the inside. UX is intuitive and the knock sensor can still send me things to the phone if I like that.
Wireless doorbells can be found for tens of dollars. You can get them with multiple receivers you can place around your house.
This is even supposing that I want to do that to begin with (I know for sure delivery drivers are never doing it).
Good job on the project, I really mean it. It doesn't matter what you do, it matters that you've achieved it and for that, congrats. But as a practical semi-object, this has to be one of the worst ways possible to solve the problem.
From the owner's perspective I imagine it's at least a little bit simpler to install an app and put up a QR code. Although if they have to print it out themselves I guess all bets are off.
> Good job on the project, I really mean it. It doesn't matter what you do, it matters that you've achieved it and for that, congrats. But as a practical semi-object, this has to be one of the worst ways possible to solve the problem.
Thank you, those are kind words. I doubt that this is the worst possible way in every context, but working towards better solutions is why we share stuff and ask/give feedback :)