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.


    Keeping the display on

    Pythonista
    2
    5
    6231
    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.
    • amjoconn95
      amjoconn95 last edited by

      Thanks for Pythonista, it is a sweet app.

      I wrote a count down timer and it works great but after 6 or 7 minutes the iPad turns off the display. Is there a way programatically to tell the iPad not to sleep until the program is done? Possibly a hack using the libraries available to us?

      Thanks again!

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

        First make sure that Settings / General / Auto-Lock is set to the longest time.

        If changing that setting is not sufficient for your purposes then you can look at sending yourself a Notification but I am unsure if this will help or not. Search this forum for 'Notifications' for a sample app called 'Quick Reminders.py' as a starting point. Let us know if you solve it.

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

          It Works!!! See noDoze.py below...

          https://gist.github.com/cclauss/6383054

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

            Thanks! Increasing the Auto-Lock help with my situation. I haven't fully tested the noDoze.py code yet, but I will keep working on it and hopefully I can post the result.

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

              This looks like a far better solution...

              console.set_idle_timer_disabled(flag)

              Disable or enable the idle timer (which puts the device to sleep after a certain period of inactivity).

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