Feature request: REST API endpoint for DVR free / used / total disk space
Added by Christian . over 5 years ago
The Tvheadend GUI contains values for free, used and total disk space of the DVR component's storage. These values are probably requested via a HTSP connection .
I'm already using the REST API and would like to monitor the storage values. Unfortunately, these values are not part of the REST API yet. I'd like to avoid implementing the HTSP protocol just for this reason.
Thus, it would be nice if the values could be made available via a REST endpoint.
Replies (4)
RE: Feature request: REST API endpoint for DVR free / used / total disk space - Added by Dave Pickles over 5 years ago
See https://github.com/tvheadend/tvheadend/pull/1018 for a patch (and the reason it was rejected).
RE: Feature request: REST API endpoint for DVR free / used / total disk space - Added by Christian . over 5 years ago
Thanks!
RE: Feature request: REST API endpoint for DVR free / used / total disk space - Added by Dave H over 5 years ago
It would be easy enough to implement a service to transmit disk stats without using TVH at all. Any available transport mechanism could be used - an HTTP service, SSH, Redis, MQTT etc etc.
RE: Feature request: REST API endpoint for DVR free / used / total disk space - Added by Christian . over 5 years ago
That's correct and should be sufficient in most cases. However, since these stats are taken from the system, you don't have access to the value used by Tvheadend which is calculated by Tvheadend internally.