Hello all,
I have an Asus RT-N66R router which supports UPNP. I have it talking to hass, and it’s giving me some default sensors. I’d like to create a card on my system monitor page that displays how much bandwidth I’ve downloaded from my ISP on a per month basis. I already have a sensor for “bytes received” and I can format that to display in mbs, and then gbs, etc. The problem is, if the router gets reset (or loses power) that number resets down to zero.
I’m not quite sure what I need to be looking into to try and accomplish what I want. Can anyone help point me in the right direction, so I can research how I can do this? Maybe having a database entry which takes the bytes received and every 5-10 seconds compares the difference between the current bytes reading and what’s in the database, then adds that difference to the database? I’m not really sure, as I’ve never used MariaDB either. So I’m willing to go any direction with this.
Thanks!