Skip to content

Latest commit

 

History

27 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

solarpuzzle

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 that include the base layout and reassign variables (last-wins).

Render a SCAD config

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.scad

License

MIT — see LICENSE.

About

Interactive solar panel layout planner for two-sided pitched roofs (HTML + OpenSCAD)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages