Microblog
-
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
-
This is great news! This is something that I sorely missed in the template editor. Nice to have that history and be able to roll back changes. Even more important for client sites.
-
I made it to Moonburger over the weekend, the place in Kingston that only makes burgers with Impossible meat. They aren’t a vegan place, though: The cheese is real dairy.
This isn’t the first time I’ve had an Impossible burger, but it was my first Impossible smashburger. It was good! It won’t fool you if you taste test next to a beef burger (smashburgers made with beef render a lot of fat and you can taste it), but it is a good burger on its own. The toppings definitely help. Heck, their toppings alone put them above a lot of burger places, beef or not. We liked the fries with cheese sauce, too.
I think if we were closer I’d probably get it over a regular burger ~20% of the time.
-
Tonight’s tiki drink: Chartreuse Swizzle. Quite good with my homemade falernum. https://imbibemagazine.com/recipe/chartreuse-swizzle-recipe/
-
In reply to .
Ah, thanks for pointing me to the GitHub issue! I weighed in on the conversation, offering an option to reintroduce the Classic functionality without needing to make it a dynamic block by not updating the order in the editor. https://github.com/WordPress/gutenberg/issues/9701#issuecomment-1441197733




