-
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 think you can use my Termux:GUI plugin for that. At least you can get events when the display is turned on or off. And you can check if the device is locked, which should always be the case when the display is off. Though directly checking the display status is also not possible, but maybe it's enough for your use case.
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.