Sensors from CamON Live Streaming app

Hi all,
Some time ago I’ve setup an old Android phone as a garage camera for use with Frigate. For the video part I wanted to use rtsp of course, but I also wanted to know the battery state and to be able to switch the torch on/off.
I found CamOn Live Streaming app satisfies all my needs. The video part was easy, but I couldn’t find any integration for the sensors.
So I wrote it myself: repo
Crude as it is, maybe someone finds it useful or even improve on it. Enjoy!