-- Leo's gemini proxy

-- Connecting to the-brannons.com:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

Playing with HTMX


HTMX is pretty awesome. We have a few Bluetooth LE sensors in various rooms of our apartment to keep track of temperature and humidity. They are sampled periodically, with readings written to an sqlite database. Up until now, I've just been showing the current data with a little command-line script. But tonight I wrote this stupid little CGI script in Fennel that displays a table of house data and then polls every minute to refresh the table. A dynamic webpage, with no JavaScript other than htmx.min.js! It's so refreshingly simple, and I hope HTMX gets some wide adoption.


HTMX Homepage

My houseweather script

Indoor conditions in my apartment, in real time.

-- Response ended

-- Page fetched on Tue May 21 10:54:11 2024