News for hackers. Stuff that matters.
Re:Show HN: Ding Dong Doorbell – use a QR code as your doorbell by dirkc on Tuesday October 29, 2024 @08:49AM (#41983322)
Thanks for the feedback. I agree that the UX needs lots of improving - I'm wondering if more instructions on the QR code or the page for the doorbell would work better?

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?

Re:Show HN: Ding Dong Doorbell – use a QR code as your doorbell by gruez on Tuesday October 29, 2024 @09:48AM (#41983810)
>I'm wondering if more instructions on the QR code or the page for the doorbell would work better?

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...

Re:Show HN: Ding Dong Doorbell – use a QR code as your doorbell by dylan604 on Tuesday October 29, 2024 @10:14AM (#41984037)
If you're at the point of asking permissions, might as well grab the location data as well. You could then verify that the person hitting the QR code is actually on your front step which would eliminate all of the false positives like the replay attacks, copies being used in other locations, etc.
Re:Show HN: Ding Dong Doorbell – use a QR code as your doorbell by dirkc on Tuesday October 29, 2024 @10:29AM (#41984201)
100% agree with explaining before asking permission.

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

Re:Show HN: Ding Dong Doorbell – use a QR code as your doorbell by dylan604 on Tuesday October 29, 2024 @10:12AM (#41984023)
There are tons of cheap wireless units available that just use a bit of sticky tape to "install" the button to the door and then you can place the receiver/bell where ever you want. These work well and are much more understood by visitors.

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

Re:Show HN: Ding Dong Doorbell – use a QR code as your doorbell by biercarsten on Tuesday October 29, 2024 @10:56AM (#41984473)
So while I find that idea interesting, I would rather prefer knocking or texting on the doorstep of peoples homes.

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.