noroadsleft000 / gnome-network-stats

Gnome extension for showing network speed and data usage.
MIT License
24 stars 7 forks source link

Feature request: only show data usage over metered connections #34

Open Flimm opened 2 years ago

Flimm commented 2 years ago

Is there a way to show data usage, only counting data used over metered connections?

In GNOME, it's possible to mark certain connections as metered connections. It would be useful to know how much data has been consumed so as to keep an eye on costs.

noroadsleft000 commented 2 years ago

@Flimm I hope you have tried the extension. Right now it displays data consumed for each interface separately. You can control what to show in status bar from settings. data_used

We didn't understand your requirement. Can you give an example, or may point to some software where similar feature is there.

Flimm commented 2 years ago

Thanks. I'm not looking for data consumed per connection (Ethernot, Wi-Fi, etc). Rather, I'm interested in seeing how much data has been consumed over metered connections.

When connecting to a Wi-Fi network, GNOME allows me to indicate if that connection is a metered connection or not. See this screenshot:

Screenshot

It would be very useful for the indicator to show me how much data has been consumed today over metered connections, so that I can tell if I am about to run out, and estimate how much money I am spending.

noroadsleft000 commented 2 years ago

@Flimm Thanks for the clarity. I will add it to Todo list.

noroadsleft000 commented 1 year ago

1.) get the metered status of the current connection via D-Bus. busctl get-property org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager Metered

2.) Gnome API to watch for metered connection. here