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.


    Today Widget

    Pythonista
    4
    6
    6006
    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.
    • RainmanNoodles
      RainmanNoodles last edited by

      Wondering if there's any plan to include a Today widget. I've seen it mentioned before but most people overlook one of the main advantages.

      With a Today widget, it would (theoretically) be possible to run a script without needing to open the app at all, and even without unlocking the device. Currently, there are several ways to run scripts via URLs, Workflow, etc. but they all require you to switch to the app and unlock the device if it's locked. With a Today widget, I could pull down, trigger a background script, get a notification (or a status indicator in the Today widget) when it had finished, and be on my way much faster. I have several plans for scripts that I really want to be able to trigger from the lock screen, and this would allow me to do that.

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

        Any confirmation of whether or not this feature is planned?

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

          Not planned at the moment. I've experimented in this direction, but I found that the memory limitations for Today widgets are too severe for most use cases. A Today widget only gets about 10MB of RAM before it's terminated by the system, and it's very easy to run into this limit with even relatively simple scripts.

          1 Reply Last reply Reply Quote 1
          • dgelessus
            dgelessus last edited by

            Out of curiosity... how much RAM does the Python interpreter need to run, i. e. how much does it use once it's started up and ready to run code? 10 MB really isn't a lot. This would be a situation where Lua would be a lot more suitable, after all one of its main features is that it is very memory-light.

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

              I see, so there's no way to have the Today widget trigger a background task without the memory limit?

              I guess the limit makes sense, if you had lots of Today widgets that used a bunch of memory you could have all sorts of problems.

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

                If all you're trying to do is launch a pythonista script you could use something like the launch center pro today widget with an action that launches a pythonista script via callback url.

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