A junction box includes an enclosable housing that includes a bottom with a bottom interior surface and a bottom exterior surface. The housing is configured to mount to a roof of a structure with a slope. The junction box includes a central area of the bottom configured for penetrations into the roof. The junction box includes a flashing integral to the bottom of the housing and extending away from the bottom in a direction away from the housing.