# Webusb tutorial

**URL:** <https://crucible.hubbe.net/t/webusb-tutorial/147>\
**Category:** ProffieOS\
**Created:** [March 27, 2021, 8:11am UTC](https://crucible.hubbe.net/t/webusb-tutorial/147 "2021-03-27T08:11:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![profezzorn](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/profezzorn/32/8_2.png) [@profezzorn](https://crucible.hubbe.net/u/profezzorn)\
**Post date:** [March 27, 2021, 8:11am UTC](https://crucible.hubbe.net/t/webusb-tutorial/147/1 "2021-03-27T08:11:28Z")

</div>

I’ve started working on a webusb tutorial for proffieos.  
The idea is to direct users who bought a pre-installed proffie to this tutorial first, and if they are happy with it they won’t need to worry about any of the programming stuff.

[https://fredrik.hubbe.net/lightsaber/webusb.html](https://fredrik.hubbe.net/lightsaber/webusb.html)

---

<div class="post-metadata">

**Author:** ![NoSloppy](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/nosloppy/32/3865_2.png) [@NoSloppy](https://crucible.hubbe.net/u/NoSloppy)\
**Post date:** [March 27, 2021, 2:16pm UTC](https://crucible.hubbe.net/t/webusb-tutorial/147/2 "2021-03-27T14:16:47Z")

</div>

Thank you very much for that. I know this has been there the whole time, but I never really thought of how it can edit so easily. In my mind it was just remote control. This is gold for referring people to in the future!  
Interesting observation: the interface shows presets start at “one” as opposed to zero…which is what presets.ini uses, so does it actually virtually shift by +1 for the GUI?

---

<div class="post-metadata">

**Author:** ![profezzorn](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/profezzorn/32/8_2.png) [@profezzorn](https://crucible.hubbe.net/u/profezzorn)\
**Post date:** [March 27, 2021, 6:47pm UTC](https://crucible.hubbe.net/t/webusb-tutorial/147/3 "2021-03-27T18:47:08Z")

</div>

“one” and “two” are just the names of the presets. (The argument after the styles in the preset array.)

---

<div class="post-metadata">

**Author:** ![NoSloppy](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/nosloppy/32/3865_2.png) [@NoSloppy](https://crucible.hubbe.net/u/NoSloppy)\
**Post date:** [March 28, 2021, 12:09am UTC](https://crucible.hubbe.net/t/webusb-tutorial/147/4 "2021-03-28T00:09:32Z")

</div>

Maybe the note "Make sure your board was programmed with WebUSB support. (Webusb was selected in Arduino-\>Tools-\>Usb type) should be moved up top as part of the setup?

---

<div class="post-metadata">

**Author:** ![profezzorn](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/profezzorn/32/8_2.png) [@profezzorn](https://crucible.hubbe.net/u/profezzorn)\
**Post date:** [March 28, 2021, 1:31am UTC](https://crucible.hubbe.net/t/webusb-tutorial/147/5 "2021-03-28T01:31:18Z")

</div>

Maybe, but since this tutorial is meant for people who bought a hilt with a proffie already in it, that might not make much sense to them.

---

<div class="post-metadata">

**Author:** ![Han-tyumi](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/han-tyumi/32/278_2.png) [@Han-tyumi](https://crucible.hubbe.net/u/Han-tyumi)\
**Post date:** [April 5, 2021, 7:53am UTC](https://crucible.hubbe.net/t/webusb-tutorial/147/6 "2021-04-05T07:53:49Z")

</div>

Hi, i try to use in local (off line) but it makes error whit the service workes…it’s possible to fix it whit a local host?

---

<div class="post-metadata">

**Author:** ![profezzorn](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/profezzorn/32/8_2.png) [@profezzorn](https://crucible.hubbe.net/u/profezzorn)\
**Post date:** [April 5, 2021, 9:12am UTC](https://crucible.hubbe.net/t/webusb-tutorial/147/7 "2021-04-05T09:12:28Z")

</div>

I don’t think it can run from localhost. Webusb requires a secure domain and localhost doesn’t count.

The easy way to run it offline it is to install it.  
Here is how: [Use Progressive Web Apps - Android - Google Chrome Help](https://support.google.com/chrome/answer/9658361?co=GENIE.Platform%3DAndroid&hl=en)
