Claude Coding

Various software libraries and applications developed through “vibe coding” with Claude. Each provides both the resultant library or application, as well as the interactive conversation and intermediate outputs that led to the result.

Curvulator

A simple webpage calculator that will compute the radius, chord length, or rise (sagitta) of an arc given the other two parameters. Useful in determining values for arched workboards and braces in guitar making. Vibe-coded using Claude AI – here’s the conversation that created the calculator (took under an hour).

Solar Azimuth Calculator

A Python library for calculating the time at which the sun reaches a particular azimuth (the direction angle from north from which the sun’s rays appear). This was used in the Home Assistant home automation system to control motorized window shades, opening them when the sun was no longer able to shine into the room, i.e., when the sun’s azimuth angle was parallel to the window pane. Vibe-coded using Claude AI – here’s the conversation that produced the Python library and some intermediate outputs. Note that the final library referenced in the link in the heading was modified from that produced by Claude to include some Home Assistant-specific operations (assigning the time to a supplied Home Assistant input_datetime entity).

However, this information is actually obsolete, as the Home Assistant system already contains solar azimuth and elevation attributes as part of the sun Entity. I didn’t realize these were already available as a standard part of the Home Assistant installation when I embarked on my Claude-coding escapade, though I have to say I enjoyed the adventure, and am keeping this posted here just for Claude-coding informational purposes. But you don’t need to use the Claude-coded Python module discussed in this article to use Home Assistant triggers based on solar azimuth – they’re built-in.

Computing, lutherie, mathematics, finance, and other resources