Tools for laying out solar panels on a two-sided pitched roof.
planner.html— single-file browser app. Open it locally to draw rails, rectangular and polygonal obstacles (e.g. Velux windows), set per-column panel orientation (portrait/landscape), and live-preview panel counts and kWp for both east and west sides simultaneously. Round-trips with the SCAD format (upload an existing layout, edit, export).solar_layout.scad— OpenSCAD 2D panel-layout generator. Drives the rendered PNGs via the OpenSCAD CLI.configs/*.scad— per-variation configs thatincludethe base layout and reassign variables (last-wins).
The planner is fully self-contained — planner.html draws the layout in
SVG and you do not need OpenSCAD to use it. OpenSCAD is only required
if you want to render a .scad config to PNG (e.g. for a print-ready
plan):
Install OpenSCAD: https://openscad.org/downloads.html
(macOS: brew install --cask openscad. Linux: apt install openscad
or your distro's equivalent.)
Then:
openscad -o out.png --imgsize=2200,3700 \
--camera=0,0,0,0,0,0,1 --projection=ortho --viewall --autocenter \
configs/path_a.scadMIT — see LICENSE.