Content pfp
Content
@
0 reply
0 recast
0 reaction

Steve pfp
Steve
@stevedylandev.eth
I've gotten to a place I'm pretty happy with and I plan to add more stuff as time goes on, but figured I would share the code I'm using in case anyone is curious to play around with it themselves! Live site: https://pi.stevedylan.dev Repo: https://github.com/stevedylandev/pi-widget
2 replies
2 recasts
12 reactions

Steve pfp
Steve
@sdv.eth
This is super neat! What does the networking look like to get this working securely and also so responsively?
1 reply
0 recast
1 reaction

Steve pfp
Steve
@stevedylandev.eth
Ty!! 🙏🏻 It’s a couple of things. The server is just two endpoints, a root / and /events. The root serves an HTML page that establishes an SSE connection to the events endpoint which constantly serves the data. The functions are only querying the data once per second but it could be even faster if I wanted to. Once the server is started and maintained on a daemon the connection to the outside web with a Cloudflare Tunnel which makes it a one way connection to the port. As far as I know it’s pretty secure but I’m also pretty new to most of this so if someone finds an issue would love to learn about it 😅 thankfully it’s just a Pi so it’s a great experiment piece
0 reply
0 recast
0 reaction