Skip to content

[BUG] Reminders Lists are not Current #42

@qfixit

Description

@qfixit

Describe the bug
I wrote a small script to pull my current reminders lists for testing, but it came back with some lists that I deleted a long time ago (When I was in college about 2 years ago) and didn't show any of my current lists.

To Reproduce
Steps to reproduce the behavior:

from icloudpy import ICloudPyService
from icloudpy.exceptions import ICloudPyFailedLoginException

def list_icloud_reminder_lists():
    try:
        # Authenticate with iCloud
        api = ICloudPyService('email@example.com', 'Password')
        if api.requires_2fa:
            code = input("Enter the 2FA code: ")
            api.validate_2fa_code(code)

        # Refresh reminders data to ensure it's up-to-date
        api.reminders.refresh()

        # List all available reminder lists
        print("Available reminder lists:")
        for list_name in api.reminders.lists:
            print(f" - {list_name}")

    except ICloudPyFailedLoginException as e:
        print(f"Login failed: {e}")

if __name__ == "__main__":
    list_icloud_reminder_lists()

After running, I get this result

Available reminder lists:
 - DMACC
 - School

Expected behavior
The current lists in my Reminders app are:

  • All
  • Home
  • Guitar
  • Shopping

Screenshots
image
remindersapp

Configuration
N/A - I don't think?

Additional context
So, my goal with this script is to sync my Amazon Shopping list from my Echo devices, to my iOS Reminders app for easier use. This used to be accomplished by IFTTT, but both Amazon and Apple have moved away from IFTTT. I'm hoping to create a better solution to run periodically on my Raspberry Pi. I tried the pyicloud library first, only to realize that it is way out of date and isn't being maintained. Hoping that this active library can assist better.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions