A roofing system includes battens and hangers for installing slate roofing shingles on a roof. Electrical conductors and other electronics are incorporated into the battens and the battens are connected together to form an electrical transmission grid beneath the shingles. Solar panels are installed in place of slate shingles in some locations on the roof and are configured to match or complement the surrounding slate shingles. Each solar panel includes a connector that connects the solar panel to the electrical transmission grid. The grid thus collects the electrical energy generated by all of the solar panels and delivers it for storage or use in a home. Microinverters may be coupled to smaller groups of the solar panels for converting their DC voltage to AC voltage and the outputs of the microinverters connected to a remote location for use or storage.