omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Taskpaper and reminders recurring tasks

    Pythonista
    taskpaper
    2
    3
    3064
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • rol46
      rol46 last edited by ccc

      I use taskpaper for tasks, but Reminders for recurring tasks. I am intrigued by the idea of using pythonista to load recurring tasks due today into taskpaper every morning.

      I have found this pythonista script

      import reminders
      todo = reminders.get_reminders(completed=False)
      print('TODO List')
      print('=========')
      for r in todo:
          print('[ ] ' + r.title)
      done = reminders.get_reminders(completed=True)
      print('DONE')
      print('====')
      for r in done:
          print('[x] ' + r.title)
      

      Which seems like a good starting point, but a) I don't know pythonista, and I don't understand the data structure of Reminders.

      So even when I changed the line

      ' + r.title)

      To

      ' + r.title + ' ' + r.due_date)

      it gives me incomprehensible error messages.

      I am very willing to learn how to do this, but can anybody one help with these questions?

      • Is this a good idea, and has anyone done it already?
      • what is the data structure for a Reminder?
      • how can I filter on items due by tonight at midnight?

      Rol

      1 Reply Last reply Reply Quote 0
      • ccc
        ccc last edited by ccc

        Change:

        print('[ ] ' + r.title + ' ' + r.due_date)
        # to...
        print('[ ] {} {}'.format(r.title, r.due_date))
        
        If you do a google search on those "incomprehensible error messages" you will sometimes find good explanations / solutions.
        1 Reply Last reply Reply Quote 0
        • rol46
          rol46 last edited by

          Thanks for both ideas, I appreciate it. Of course, I should have thought of Google Search by myself, I use it all the time. But I blanked in the face of a new kind of quandary.

          And the formatting correction is very helpful, thanks for that as well.

          Rol

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors