question

Alexis C avatar image
Alexis C asked ·

Unable to find reminders i created

Hey !

I found a way to create a reminder in my skill, its working fine.

Alexa remind my on time and when i ask her, she save it, I even can find it in my Alexa app.

Now i want to be able before I set my reminder, to check if same one already exist ? With the text for instance.

So I do this code to get all my reminders:

    list_reminders = GetRemindersResponse()
    logger.info(list_reminders)

But unfortunately, even I have set reminders before, I get this in my logs :

{'alerts': None, 'links': None, 'total_count': None}

What did i miss ?

Thanks

alexa skills kitalexareminders
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Andy Whitworth avatar image
Andy Whitworth answered ·

You've just created an empty GetRemindersResponse object, not actually invoked a service.

Try calling the get_reminders() method of the reminder management service (the same service you used when creating the reminder).

https://alexa-skills-kit-python-sdk.readthedocs.io/en/latest/models/ask_sdk_model.services.reminder_management.html#module-ask_sdk_model.services.reminder_management.reminder_management_service_client

2 comments
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Please, can you tell me why i have error in my logs <hen i try to get my reminders information :

Failed to parse  into 'datetime' object

my code :

    now = datetime.datetime.now(pytz.timezone("Europe/Paris"))
    five_min_from_now = now + datetime.timedelta(minutes=+5)
    notification_time = five_min_from_now.strftime("%Y-%m-%dT%H:%M:%S")
    logger.warning(notification_time)


I cant see where I'm wrong because I give the good datetime format..

Thanks

0 Likes 0 ·
Sorry, not a python coder.
0 Likes 0 ·
Alexis C avatar image
Alexis C answered ·

Thanks mate its working perfectly fine now !

10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.