💾 Archived View for the-brannons.com › htmx captured on 2024-06-16 at 12:22:41. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-12-28)

-=-=-=-=-=-=-

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.