Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] network info #1

Open
biner88 opened this issue Jan 29, 2024 · 3 comments
Open

[Feature request] network info #1

biner88 opened this issue Jan 29, 2024 · 3 comments

Comments

@biner88
Copy link

biner88 commented Jan 29, 2024

Very great project, can you support obtaining network information? Such as upload speed, download speed, total upload traffic and total download traffic

@Necoo33
Copy link
Owner

Necoo33 commented Jan 29, 2024

Very great project, can you support obtaining network information? Such as upload speed, download speed, total upload traffic and total download traffic

I think we can support obtaining download speed with some way but your other requests are probably cannot done with such general purpose liblary for following reasons:

1 - for measuring the upload speed, we need to upload some file to somewhere and we need to take a response about the median upload speed. I checked many speed tester website on the internet and as i see none of them give you that answer with simple http connection, they done it with ajax or/and websocket. Because of that, if you need that kind of feature i recommend you to create a server that measures the speed of file uploads.
2 - Measuring total upload and download traffic we need to check either every browser's all download and upload(since there is bunch of browsers, that's very hard) records or we basically need to break into users modem, which cannot be done with a general purpose liblary.

Thanks for feedback, i'll apply measuring download speed in future release. If you wan't to implement that, you can make a pull request and i'll test in windows and linux and accept if it works fine.

@Necoo33 Necoo33 closed this as completed Jan 29, 2024
@Necoo33 Necoo33 reopened this Jan 29, 2024
@biner88
Copy link
Author

biner88 commented Jan 29, 2024

There may be a misunderstanding. What I mean is not to test the network speed. It is the data received by the network card per second and the data sent per second. It is the total amount of data received and sent within a period of time.

@biner88 biner88 closed this as completed Jan 29, 2024
@biner88 biner88 reopened this Jan 29, 2024
@biner88
Copy link
Author

biner88 commented Jan 29, 2024

This is macOS activity monitor data. What I need more is the windows implementation.
Screenshot 2024-01-29 at 22 06 16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants