hedayaty / netspeed Goto Github PK
View Code? Open in Web Editor NEWAn extension for gnome 3 to show internet speed
An extension for gnome 3 to show internet speed
I think it would nice to have an option to change the location of net-speed to show in the middle of the panel,
Thanks
Instances of text like "SOME DESCRIPTIVE TITLE" should be replaced with an actual descriptive title. Same for author, email address, and copyright year.
Error: Requiring NMClient, version none: Typelib file for namespace 'NMClient' (any version) not found
Stack trace:
@/home/tony/.local/share/gnome-shell/extensions/[email protected]/prefs.js:26:7
Application<._getExtensionPrefsModule@resource:///org/gnome/shell/extensionPrefs/main.js:75:13
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
Application<._selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:90:31
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
Application<._onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:246:17
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
main@resource:///org/gnome/shell/extensionPrefs/main.js:402:5
@<main>:1:43
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.0 (stretch)
Release: 9.0
Codename: stretch
Just like the title says
Hi,
I have done several changes in size of labels of PanelMenu
to avoid the movement of the other icons in panel.
const unitsize = 35;
const unitlabelsize = 30;
.....
PanelMenu.Button.prototype._init.call(this, 0.0);
this._box = new St.BoxLayout();
this._icon = this._get_icon ("");
this._upicon = this._get_icon ("up");
this._downicon = this._get_icon ("down");
this._up = new St.Label({ text: "--", style_class: 'sm-label'});
this._upUnit = new St.Label({ text: "B/s", style_class: 'sm-unit-label'});
this._down = new St.Label({ text: "--", style_class: 'sm-label'});
this._downUnit = new St.Label({ text: "B/s", style_class: 'sm-unit-label'});
this._up.set_width (unitsize);
this._upUnit.set_width (unitlabelsize);
this._down.set_width (unitsize);
this._downUnit.set_width (unitlabelsize);
....
I have changed the stylesheet.css
too:
.sm-label {
color: #bbb;
font-size: 12px;
text-align: right;
}
.sm-unit-label {
color: #aaa;
font-size: 8px;
text-align: right;
padding: 5px 2px 0px 0px;
}
I hope this help you.
Thanks for your work.
Please update the extension to be compatible with Gnome version 3.20
According to my gnome-shell, the addon will soonish break due to an upcoming change in gjs.
I find:
Sep 14 13:37:26 mtop gnome-shell[1490]: Some code called array.toString() on a Uint8Array instance. Previously this would have interpreted the bytes of the array as a string, but that is nonstandard. In the future this will return the bytes as comma-separated digits. For the time being, the old behavior has been preserved, but please fix your code anyway to explicitly call ByteArray.toString(array).
(Note that array.toString() may have been called implicitly.)
0 _update() ["/home/malte/.local/share/gnome-shell/extensions/[email protected]/net_speed.js":183]
1 _update() ["self-hosted":975]
Hello,
It would be nice if the icon on right of throughput display changed, depending on the type of active interface for default route (either wireless, wired ethernet, or ppp) and the network status (active or not), like it was in Gnome 2 netspeed applet (and is still in Mate netspeed applet). The latter would be most useful to know at first sight if the network is active or not.
Thanks,
Denis
Some of the limits on element sizes for the UI don't allow high enough values to avoid elipsizing on hidpi displays.
Ideally the settings values should be hidpi aware so that the defaults are reasonable there :)
different menu languages are not available, these are not created by the Makefile.
these are considered by the following patch:
`--- Makefile.orig 2018-10-26 08:13:41.749524434 +0200
+++ Makefile 2018-10-26 08:14:11.566508520 +0200
@@ -3,7 +3,7 @@
GETTEXT_PACKAGE = $(PACKAGE)
UUID = [email protected]
-LANGUAGES=de fa en_CA it fr pt_BR zh_CN zh_TW
+LANGUAGES=de fa en_CA es_ES it nl_NL fr pt_BR tr zh_CN zh_TW
DOC_FILES=CHANGELOG README
SRC_FILES=extension.js prefs.js layout_menu_item.js net_speed.js net_speed_status_icon.js
MO_FILES=$(foreach LANGUAGE,
Actually it doesn't save the config when I reboot.
hello,
your extension does not install/work anymore for the last update on Ubuntu raring 13.04 - gnome shell 3.6.3.1.
Thanks for your help.
When I use docker, the menu gets really cluttered.
I need to find a way to filter them out.
Dear developer,
I ask you to enhance the extension you have developed to be compatible also with Gnome 3.14.1.
I really love this one - because it gives a practical overview on the network connection.
I an really looking forward to use your precisious plugin further on.
Thanks in advance!
Hi,
Got the following error message on Debain jessie w/Gnome 3.14
GLib.FileError: Failed to open file '/home/u292242/.local/share/gnome-shell/extensions/[email protected]/schemas/gschemas.compiled': open() failed: No such file or directory
Stack trace:
@/home/u292242/.local/share/gnome-shell/extensions/[email protected]/prefs.js:31
Application<._getExtensionPrefsModule@resource:///org/gnome/shell/extensionPrefs/main.js:80
wrapper@resource:///org/gnome/gjs/modules/lang.js:169
Application<._selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:95
wrapper@resource:///org/gnome/gjs/modules/lang.js:169
Application<._onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:260
wrapper@resource:///org/gnome/gjs/modules/lang.js:169
main@resource:///org/gnome/shell/extensionPrefs/main.js:398
@
Any idea?
I would like an option to display network speeds in binary units (e.g. KiB/s, MiB/s) and optionally abbreviated as 26K for 26KiB/s, as seen in the network speed monitor MATE applet.
I seen other applets such nvidia that keep the text at center with any theme without using the stylesheet css, you can't do the same here?
When text is enlarged using accessibility, the text in the top bar and in the tooltip menu appears cut off.
It would be very useful if upload and download speeds could be displayed on two lines, especially when using extensions like Dash to Panel.
But even without Dash to Panel, I would prefer having them displayed with a super small font on two lines with a regular panel.
Seems measured speed for me is double of what it should be, checked with iptraf-ng. I am suspecting it is measuring both bridge and physical interface at the same time because I have such setup. And because measured speed peaks at around double of what my Internet provider is delivering to me.
Hi,
when the extension is enabled, the menu (audio, network, vpn, user, lock, logout, ...) is displayed in english, not current locale (french for me).
The extension was working fine with previous versions, but after the update to Zesty the extensions website (https://extensions.gnome.org/extension/104/netspeed/) will only show "ERROR". On a different computer with a fresh install, the extension will be downloaded but not activated, but no error is reported - it simply flicks back to "off".
No error is reported via Looking Glass that I've been able to find (new to debugging Gnome Shell extensions, so probably not looking in the right place).
I've been getting freezes with gnome-shell 3.22 for couple of seconds and extensions sometimes disappearing. Not sure if related, but noticed some errors happens at the same time. Sample from log, full log attached.
Apr 30 23:13:47 machine gnome-shell[2127]: JS ERROR: Error: Missing metadata.json
createExtensionObject@resource:///org/gnome/shell/misc/extensionUtils.js:100
reloadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:201
_onVersionValidationChanged@resource:///org/gnome/shell/ui/extensionSystem.js:279
Apr 30 23:13:49 machine gnome-shell[2127]: JS ERROR: TypeError: this._setting is null
NetSpeed<._load@/home/user/.local/share/gnome-shell/extensions/[email protected]/net_speed.js:258
wrapper@resource:///org/gnome/gjs/modules/lang.js:178
NetSpeed<._reload@/home/user/.local/share/gnome-shell/extensions/[email protected]/net_speed.js:284
wrapper@resource:///org/gnome/gjs/modules/lang.js:178
Hi,
I'm already working with Fedora 29 in a VMWare and would like use the package
gnome-shell-extension-netspeed
I am the package maintainer of gnome-shell-extension-netspeed [1]
Can somebody have a look on this package what's going wrong here.
I do not need to ask updstream, because I can not answer.
When i run the settings, the following message appears:
$ gnome-tweaks
(gnome-shell-extension-prefs:85491): GLib-GObject-CRITICAL **: 13:24:32.585:
g_param_spec_unref: assertion 'G_IS_PARAM_SPEC (pspec)' failed
[1] https://koji.fedoraproject.org/koji/packageinfo?packageID=26429
Thanks
Martin
The forever-modulating statistics in the panel are quite distracting. It would be much-less-so if the display were fixed-width. Points:
it would be better if you reduce the text-size of units like system-monitor does: https://extensions.gnome.org/extension/120/system-monitor/
It will be useful if daily or hourly total internet usage can be shown. It will be useful for those on metered network.
This is about all I can report: With netspeed enabled, the locale of the entire shell reproducibly switches to English. My default locale is de_DE. UTF-8
Ubuntu 12.10
network-manager
uninstalled
Gnome-shell 3.6.2
In options Device to monitor
only it shows ALL
. Why can't I select eth0 or eth1?
I used to have this extension in Ubuntu 12.04. I've used it extensively.
It would be great if you can add 13.10 support to this extension.
Thanks.
Hi,
Very useful extension here are some improvement suggestions:
When you want to monitor both up&down stream there have to be a gap between their labels in order to show all digits and units. The minimum requirement for me to see all digits and units is 37 label size, 32 unit label size (see pics with 35 and 24 respectively) it's not pretty nor stylish and takes a lot of space in my tray bar. The way to solve this is to have the option to put them one on top of the other (vertical display) instead of side by side (horizontal display)
Another thing that is missing is the option to choose the between constant unit measurement (B/s ,KB/s MB/s , Kb/s ,Mb/s are the most common) and changing one (the current default) which changes with speed increasement
The spacing in menu label is bad even at 100 pixels size
Another nice option is to select the arrow icons from some given options.
Thanks
It would be great if it could change the speed units.
👍
Hi @hedayaty,
On extensions.gnome.org, you applied your patch to move to version 26: https://extensions.gnome.org/review/6097
However, this github repo is still on the version 25. Are you planning on updating the github repo, or is there a new place for the source?
Thanks,
Sam
Today, I installed NetSpeed from extensions.gnome.org. I opened GNOME Settings > Region & Language, and changed Language from English to German. I logged out of GNOME Shell, and logged back in. Throughout GNOME Shell, all text labels were in German, but the NetSpeed settings menu still used English for all text labels. I also tried this with French, but with the same results --- French used throughout the shell, but not for the NetSpeed settings.
I'm using the latest version of NetSpeed from the extensions website, with GNOME 3.22, on Fedora 25 Workstation x86_64.
Let me know if I can provide any other debugging information to help figure out this issue.
This extension cannot be enabled via gnome-tweak-tool or extensions.gnome.org but it works in 3.8 after adding "3.8" into metadata.json file.
please add GNU GENERAL PUBLIC LICENSE file from
https://www.gnu.org/licenses/gpl-3.0.de.html
When you select a network interface on the extension settings, the setting is not applies and the next time you open the extension settings, the default one is selected.
I tested it selecting the "default gw" option and the wireless interface wlp0s20f3.
Env:
GLib.FileError: Failed to open file '/usr/share/gnome-shell/extensions/[email protected]/schemas/gschemas.compiled': open() failed: No such file or directory
Stack trace:
@/usr/share/gnome-shell/extensions/[email protected]/prefs.js:31
Application<._getExtensionPrefsModule@resource:///org/gnome/shell/extensionPrefs/main.js:74
wrapper@resource:///org/gnome/gjs/modules/lang.js:178
Application<._selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:89
wrapper@resource:///org/gnome/gjs/modules/lang.js:178
Application<._onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:239
wrapper@resource:///org/gnome/gjs/modules/lang.js:178
main@resource:///org/gnome/shell/extensionPrefs/main.js:377
@
Fedora 25
GNOME Shell 3.22.2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.