-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I'm not sure about turning on or off, but there is a very nice project, https://github.com/troglobit/xplugd, that keeps a daemon running and reacting to when a display is connected or disconnected, or a keyboard or a mouse, and then runs a shell script which you can then run xrandr commands, for example. It won't be triggered on turning a monitor on or off, but it will work on disconnecting or connecting. It is also does not depend on your window manager, doesn't matter if it is Qtile or something else. It is a nice project, I use and really like it, but I'm not sure it is 100% what you want here. ):
Not sure if it can detect on/off but this might work: https://www.ddcutil.com/