mandarons / icloudpy

iCloud web service interface library in Python
Other
188 stars 19 forks source link

[BUG] Reminders Lists are not Current #42

Open Quintin9801 opened 2 months ago

Quintin9801 commented 2 months ago

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:

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.

mandarons commented 2 months ago

The library uses iCloud.com. Can you share what do you see on your iCloud.com reminders page?