How to retrieve in a script the amount of available disk space of the DVR?

I am interested in getting the amount of available disk space that is shown on the admin settings page:

image

I am not a website programmer (but could learn if I had to) so I tried something very simple by just scraping (I think this is the right technical term?) the settings page at http://127.0.0.1:8089/admin/settings. In return, I got some HTML code that referenced a couple of java scripts but no plain text that contained the desired information.

Ideally, that would be available with an API call but this is not the case, unless I missed something.

Maybe a clue from the developers? :grin:

It's in x:8089/dvr

1 Like

http://127.0.0.1:8089/dvr

1 Like

Got it. Thanks! :slight_smile:

For the number:

$ curl -s http://127.0.0.1:8089/dvr | jq .disk.free