def getUserConfiguration():
    configList = getConfigurations()
    currentDate = datetime.datetime.now().date()
    currentTime = datetime.datetime.now().strftime('%H:%M')
    for config in configList:
        if (((config['id'] + str(currentDate)) not in playbackStampRecords) and (currentTime >= config['settings'][0]['starttime']) and (currentTime <= config['settings'][0]['endtime'])):
            email = config['settings'][0]['amemail']
            password = config['settings'][0]['ampassword']
            name = config['settings'][0]['name']
            playbackInformation = config['settings'][0]['info']
            if ((currentTime >= '00:00') and (currentTime < '12:00')):
                dayTimeDescriptor = 'morning'
            elif ((currentTime >= '12:00') and (currentTime <= '16:00')):
                dayTimeDescriptor = 'afternoon'
            else:
                dayTimeDescriptor = 'night'
            playbackStampRecords.append((config['id'] + str(currentDate)))
            return [email, password, dayTimeDescriptor, name, playbackInformation]
def getUserConfiguration():
    configList = getConfigurations()
    currentDate = datetime.datetime.now().date()
    currentTime = datetime.datetime.now().strftime('%H:%M')
    for config in configList:
        if (((config['id'] + str(currentDate)) not in playbackStampRecords) and (currentTime >= config['settings'][0]['starttime']) and (currentTime <= config['settings'][0]['endtime'])):
            email = config['settings'][0]['amemail']
            password = config['settings'][0]['ampassword']
            name = config['settings'][0]['name']
            playbackInformation = config['settings'][0]['info']
            if ((currentTime >= '00:00') and (currentTime < '12:00')):
                dayTimeDescriptor = 'morning'
            elif ((currentTime >= '12:00') and (currentTime <= '16:00')):
                dayTimeDescriptor = 'afternoon'
            else:
                dayTimeDescriptor = 'night'
            playbackStampRecords.append((config['id'] + str(currentDate)))
            return [email, password, dayTimeDescriptor, name, playbackInformation]