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.


    How to check battery Apple pencil status by Pythonista?

    Pythonista
    battery pencil
    2
    3
    1717
    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.
    • oscampo
      oscampo last edited by

      Hi!
      I’m a drawing and sketching enthusiast and use apps like Procreate for drawing and painting with Apple pencil 2nd generation. This pencil not have a low battery alert, so it's frustrating when you are in the middle of a drawing a suddenly, your pencil stops working because the battery is drained.
      In the Apple community, the only solution for this disappointing issue is to maintain attached the pencil to magnetic side of the iPad to ensure it is charging...(not an excellent solution for me)
      So, I would like to write a widget or an app that runs in the background while my drawing session, and it checks the battery status of my pencil and alerts me when it is on a critical level

      I was searching for some documentation about how to check the battery status of Apple Pencil via Pythonista, but I only found an example to monitor the iPad battery status. So, please anybody has an idea of suggestions about how to do this for battery pencil?

      mikael 1 Reply Last reply Reply Quote 0
      • mikael
        mikael @oscampo last edited by mikael

        @oscampo, I see couple of challenges. First is getting the battery info, second is making it happen in the background. For the first, I did not find any Apple-provided API for conveniently checking the battery level, but I did find e.g. this, which could help doing it over BLE, if it works with the Pencil.

        Background operation is the bigger challenge: to my knowledge Pythonista is not allowed to do it reliably.

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

          Thanks @mikael . By the while is a starting point.

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