Live data from Hacker News

What are some interesting uses of WebUSB you have come across?

news.ycombinator.com

21–30 of 101 posts

Re: What are some interesting uses of WebUSB you have come across?

#22

This is cool, but both safari and firefox will not implement it: https://usefulangle.com/web-updates/post/80/firefox-decines-... I assume this is because of security concerns.

Security or privacy (thumbprinting)?

To be fair I'm still exploring it, once you choose a USB device when prompted, is that access for the session or longer?

Re: What are some interesting uses of WebUSB you have come across?

#23
post #7

Does a device need to specifically support WebUSB, or will it work with any USB device so long as the web page supports it? Or is it the browser that needs to support the device? I found contradictory information on this when searching.

Should work with any device. The web page needs to implement the driver/protocol to communicate with the hardware.

Re: What are some interesting uses of WebUSB you have come across?

#24
post #7

Does a device need to specifically support WebUSB, or will it work with any USB device so long as the web page supports it? Or is it the browser that needs to support the device? I found contradictory information on this when searching.

The website has to start the interaction with the USB device, it can be any USB device (not sure anymore, but i think you had to filter for Vendor ID). The browser needs to support WebUSB, currently only Chrome.

On the USB device you can implement the WebUSB descriptor to link to your own website. This will give a notification on your desktop to open your website.

Re: What are some interesting uses of WebUSB you have come across?

#25
post #23
post #7

Does a device need to specifically support WebUSB, or will it work with any USB device so long as the web page supports it? Or is it the browser that needs to support the device? I found contradictory information on this when searching.

Should work with any device. The web page needs to implement the driver/protocol to communicate with the hardware.

What if the device has strict timing requirements?

Re: What are some interesting uses of WebUSB you have come across?

#28

Web based esp32 flasher, specifically for squeezelite-esp32 https://sle118.github.io/squeezelite-esp32-installer/

ESPHome in HomeAssistanat also makes use of WebUSB. It's a pretty seamless and nice interface.

https://www.esphome.io/guides/getting_started_hassio.html

Re: What are some interesting uses of WebUSB you have come across?

#29
I haven't had a good look at WebUSB but the landing page thing interests me if there is a way to user program the configuration.

For instance configure a thumb drive to be storage for a WebApp and the landing page is the WebApp itself. Is this this easily doable (as a file on the drive with WebUSB info) or would it require diving into the thumbdrive firmware itself.

Re: What are some interesting uses of WebUSB you have come across?

#30
VIA, as you mentioned, is one of the niftiest I've seen.

I just wish that VIA was a bit more robust, particularly around macros... I want to do something that does separate key down and key up events with pauses between. Unfortunately, VIA doesn't do that. And worse, my keyboard (Keychron K3 Pro) doesn't yet have a public firmware build for QMK, so I can't do it directly in there either...

(I'm trying to write a macro for blanking the screen in macOS. Normally this is ctrl-shift-eject with eject held for a brief moment, but a macro of that rarely works from VIA. It needs a little delay at the end. If I add a no-op key to the end it then works, but also leaves ctrl and shift stuck down until I manually press each of them, which is no good.)

Post reply on HN