Microblog
-
I write directly into the #WordPress block editor on a daily basis. It has been at least three years since I’ve lost anything I’ve written because it didn’t save.
-
TIL the plant I’ve been calling Moonflower is actually Datura and very toxic to humans. Better not plant them while we have a toddler in the yard.
-
Updated the weather station data forwarding script to fetch and update data every 5 minutes instead of every minute, as I’m starting to hit daily API usage limits from Wunderground now that I added my custom block. It looks like the limit is 1500 requests a day (day resets in UTC time). I’m having trouble finding the limits documented anywhere, but around 1500 I start getting errors back for my requests.
Side note: Don’t use multiple Google Docs for your public API documentation. Makes it very difficult to search across documents.
-
I created a plugin to pull down data from my home weather station and display it in a custom block. The data updates every 10 minutes. I’m also gathering daily summaries behind the scenes for future blocks to come.
Here is the block in action. It is currently “no frills” and needs some styling and a round of code clean up, but I’m happy with the first working version.
Data is not available.
This block will live permanently at https://cagrimmett.com/weather/
You can find the plugin code on GitHub: https://github.com/cagrimmett/wunderground-pws-wp-blocks
-
Today I had trouble with Valet not being properly linked to the correct PHP version installed via Homebrew. Here is how I fixed it. I’m sure I’ll need this again, so putting it here.
brew unlink php && brew link php brew services restart --all composer global update valet start -
Citrus superjuice. Probably a good thing to have on hand for parties!
-
This will run over every single PHP file on the site and check it for syntax errors using the current version of PHP:
find -L /srv/htdocs -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -lUseful for testing PHP upgrades.
h/t Tony Hegyes
-
New federal income tax credits are available through 2032 providing up to $3,200 annually to lower the cost of energy efficient home upgrades by up to 30 percent. Improvements such as installing heat pumps, heat pump water heaters, insulation, doors and windows, as well as electrical panel upgrades, home energy audits and more, are covered by the tax credits and can help families save money on their monthly energy bills for years to come.
In addition to the energy efficiency credits, homeowners can also take advantage of the modified and extended Residential Clean Energy credit, which provides a 30 percent income tax credit for clean energy equipment, such as rooftop solar, wind energy, geothermal heat pumps and battery storage through 2032, stepping down to 22 percent for 2033 and 2034.
h/t Jeremy Felt




