I want a user to browse to a website, move one radio button and one slider, and a Raspberry Pi which is listening to that website will control a few LED strips connected to it depending on the user’s choices (the whole set up includes a video camera as well and some other minor details). This is not meant to be used by tons of users, or even multiple users. I’m pretty sure there would be just one user at a time.
I have the RPI (version 4) connected via an ethernet cable to the web, so it’s always online. I know how to control the LED strips from the RPI itself (mainly using Python’s
adafruit-circuitpython-dotstar). I kind of know how to use
Blink.jl. What I don’t know is how to build that website, nor how to host and listen to that website from the RPI.
I assume that the easiest thing to do is for the RPI itself to host that website – I mean, unless the RPI is on the LED strips won’t be on and there will be no point for a user to fiddle with the widgets on that website, so RPI on -> website on -> controlling the LEDs becomes possible.
Here are my concrete questions:
- How do I code a website like that (I literally need one radio button and one slider) and
- how do I serve this website from the RPI (unless there is an even simpler way to server it)?
- How does the RPI fetch the choices of the user, preferably, as s/he moves the sliders etc?
Much thanks! And keep in mind that I am not a web developer, so the more details the better…