Hours of direct sun for an apartment, for the listing
What you get
Give the address, floor and window direction and get how many hours of direct sun the windows get in December and June, with neighbouring buildings' shadows taken into account.
Why this combination
A solar-power engineering library calculates where the sun is each minute, and building outlines and heights from OpenStreetMap supply the shadows: a selling point no listing site offers.
Parts
What was checked
On November 26, 2026 a script checked all 3 parts: each exists, is not archived, was updated within the last 12 months and has a known licence. The parts were chosen so their inputs and outputs fit together.
Nobody has yet run this exact combination end to end on real data. Build it on a copy of your data first; the prompt below asks your AI agent to tell you plainly what does not work.
Limits, honestly
Building heights are missing in parts of OpenStreetMap; the result is an estimate, so say so in the listing and add a photo.
How to start
It runs on your own computer. Copy the prompt into an AI agent (Claude Code or similar); it installs the parts, joins them, and runs a test with sample data before your real files.
Prompt for your AI agent
Build this for me: Hours of direct sun for an apartment, for the listing. What I want to get: Give the address, floor and window direction and get how many hours of direct sun the windows get in December and June, with neighbouring buildings' shadows taken into account. Use these open projects and data: - pvlib-python: https://github.com/pvlib/pvlib-python (BSD-3-Clause) - osmnx: https://github.com/gboeing/osmnx (MIT) - OpenStreetMap: https://www.openstreetmap.org/copyright (ODbL, check its terms of use) Why this combination: A solar-power engineering library calculates where the sun is each minute, and building outlines and heights from OpenStreetMap supply the shadows: a selling point no listing site offers. Known limits: Building heights are missing in parts of OpenStreetMap; the result is an estimate, so say so in the listing and add a photo. Run it on my computer. Tell me first what you will install and where. Explain each step in plain words for someone who does not program. Do not ask me for passwords or keys and do not use administrator rights. Before installing anything, check that each project is still maintained and its licence allows my use. Do not add other agent skills, MCP servers or plugins without showing me their code first. When it works, tell me how to open it again. If something does not work, say so plainly.