Beispiel #1
0
def getFSMInputVars():
    fileName = "ProgramDataFiles\_FSM_INPUT.json"
    jsInput = FileUtilitiy.readFileToJSON(fileName)
    # print jsInput
    userName = jsInput['userName']
    userNumber = jsInput['userNumber']
    interactionType = jsInput['interactionType']
    lastInteraction = jsInput['lastInteraction']
    print
    print "userName: "******" | userNumber: ", userNumber, " | interactionType: ", interactionType, " | lastInteraction: ", lastInteraction
    print
    # select your activity to run
    # activityConsultant = "Consultant By Appointment"
    if 'morning' in interactionType.lower():
        activityInteractionType = "Daily Companion Morning"
    else:
        activityInteractionType = "Daily Companion End of Day"

    return [userName, userNumber, activityInteractionType, lastInteraction]
Beispiel #2
0
def getNAOIP():
    fileName = "ProgramDataFiles\_FSM_INPUT.json"
    jsInput = FileUtilitiy.readFileToJSON(fileName)
    naoIP = str(jsInput['naoIP'])
    return naoIP