in CBHelper-startScheduledCalls/lambda_function.py [0:0]
def lambda_handler(event, context):
CONTACTS_TABLE= os.environ['CONTACTS_TABLE']
MACHINE_ID= os.environ['MACHINE_ID']
WAKE_INDEX = 'wakeTime'
TIME_ZONE='UTC'
wakeTime=get_time(TIME_ZONE)
contacts = get_contacts(str(wakeTime), CONTACTS_TABLE, WAKE_INDEX)
for contact in contacts:
print ("Iniciando contacto: " + contact['phoneNumber'])
start_machine(contact['phoneNumber'], MACHINE_ID)
return True