def add_station_sheet(wbb, stations):
    """ Add a worksheet called Stations to the workbook with details of the stations
    referenced. Certificate details for each station will appear in a seperate sheet
    (one per station).
    """
    ws = wbb.add_sheet('Stations')
    row = 0
    col = 0
    ws.write(row, 0, 'Station Details')
    row = 2
    for tit in ['Name', 'Accreditation Number', 'Scheme', 'Technology',
        'Capapcity']:
        ws.write(row, col, tit)
        col += 1
    row += 1
    for station in stations:
        ws.write(row, 0, station.name)
        ws.write(row, 1, station.generator_id)
        ws.write(row, 2, station.scheme)
        ws.write(row, 3, station.technology)
        ws.write(row, 4, station.capacity)
        row += 1
