Chris Brannon's Blog rss

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.

Posted 20 Dec 2023 12:08 by chris Updated: 30 Mar 2024 15:47
Tagged: Fennel HTMX