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?
-
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 levelI 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?
-
@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.
-
Thanks @mikael . By the while is a starting point.