OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: Alessandro Del Prete on November 09, 2021, 03:31:06 PM

Title: API endpoints for realtime traffic and interface uptime (PPPoE)
Post by: Alessandro Del Prete on November 09, 2021, 03:31:06 PM
Hi,

I'm trying to extract the info in subject to feed my Home Assistant. I spent a some hours with Postman trying several endpoints (Diagnostics, Interfaces, etc.) as per API docs, but couldn't find the bits I need.

Specifically, I need DL/UL traffic rate and the WAN_FTTH interface (PPPoE type) uptime and status (connected/disconnected).

Here's a couple of screenshots with the highlighted info I'm looking for.

(https://i.imgur.com/89A7Cta.png)

(https://i.imgur.com/sZyHDi2.png)

Thanks for any help, hope to be able to solve this.

Alessandro