Battery Level Indicator of iOS Device

Hey guys, I thought of a new project.

I have a EM83 Tube at home and I want to build a charging station for my iPhone and Apple Watch with it.
I planned this so that the tube will sit in the middle of the station and on the left and right of the tube the wireless chargers for my device. Then I want to display the current battery percentage of both devices on each of the displays of the tube.

The controlling of the tube is no problem for me, but where I am stuck is the transmitting of the battery level to the ESP. I thought about UDP Packets which I will receive on the ESP but I don't know what i should use on the iPhone to transmit the battery level. Maybe you guys have an idea if there is already an app out there that can be used for something like this or if i need to code it myself.
I want to send an update to the ESP if the batterylevel changes or every minute, but not longer than that becuase i want it quite "realtime".

If it makes it easier, my iPhone is jailbroken and has iOS 13.3

Thank you all :slight_smile:

EDIT: I want to update/send the packets only when the phone is on the chargingpad and charging.

Guys just found the answer...

On my phone I use the tweak "Activator" to execute a shortcut in the official Shortcut-App from Apple when I plug my charging cable in. This shortcut just has a loop in it which calls the "API" of the ESP every minute until it is unplugged.