You are browsing as a guest. Sign up (or log in) to start making projects!

6h 0m logged

Alright, so today i was able to pick up the switch, but before i add it i want the core mechanics working first.

First thing i had ta do was figure out how to store the API keys, and how to add and remove em.

I already had an idea going since the start, and thats also one of the reasons i used an ESP32 - you see the ESP has Bluetooth and WiFi.

That means it can fetch stuff from the internet.

So my first idea for adding/removing API keys was this :

The ESP32 fetches data from the API of a pwd manager app - so the flow for adding and removing passwords and API keys is
just to add them to your password manager - simple right ? answer is no, as most of these API’s arent well documented and would add unnecessary complexity, and
the device wouldn’t work if im not at home, as it would need WiFi to fetch stuff.

Then i thought maybe i could just directly flash the Keys, but i scrapped that pretty quickly cause then id have ta open an IDE, manually change code, etc.
Also it would have to be plugged into my laptop, even though i wanted to keep the possibility of turning the entire thing bluetooth alive.

The idea that finally clicked needed a bit of research :

You see, i was scrolling youtube and saw one of those “top 3 things to use an ESP for” videos, and watched till the end - and the first
thing the dude showed was that an ESP can actually broadcast its OWN WiFI that can host webpages. I mean how cool is that ?

So i got my ESP to broadcast a network called APIKey.

Then with a bit of help from opencode, i was able to code a nice frontend to just add/remove passwords.

Then i decided i also wanted to implement a pin, so noone can get their grubby lil fingers on py passwords.
So i added that to my website, and i will later add that to the physical key too - ill enter the pin by using the 2 way switch to select numbers from 0 - 9.

Now your probably wondering how ta open the website, and thats the simplest part - its literally just hosted locally on the ESP, so ya
just enter http://192.168.4.1 and tadaaaa :

for now the wifi password is literally apikey123 and the pin is a symbolic 1 2 3 4

Thats it for today, but on a side note, i picked up the switch and will add it tmrw :D

0
2

Comments 0

No comments yet. Be the first!