Code Monkey home page Code Monkey logo

netspeed's People

Contributors

abbyck avatar athian avatar aunetx avatar c84c avatar depau avatar ebeem avatar f-i-f avatar fastbyte01 avatar fenglc avatar frnogueira avatar hedayaty avatar jleb avatar jordimas avatar julieni avatar junquera avatar l3nn4rt avatar lkundrak avatar muhammadyusuf-kurbonov avatar norwayfun avatar orhanenginokay avatar serdarsaglam avatar timoschwarzer avatar vibe-hu avatar vistaus avatar wsxy162 avatar zanymonk avatar zhanghai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

netspeed's Issues

Display in the middle

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

Missing NMClient Typelib

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

Changes in size of "PanelMenu"

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.

Some code called array.toString() on a Uint8Array instance

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]

change icon depending on active interface and network status

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

missing different menu languages

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, $(LANGUAGES), locale/$(LANGUAGE)/LC_MESSAGES/$(GETTEXT_PACKAGE).mo)`

Fonts to big on retina screen

Using this plugin on a retina screen only shows three dots (...) as up/download. The fonts seem to be too big. You can see this here:

screenshot from 2015-09-05 12-49-12

Gnome 3.14.1 support required

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!

Failed to open file

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
@

:1

Any idea?

[Feature Request] Binary units

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.

text appears cut off

When text is enlarged using accessibility, the text in the top bar and in the tooltip menu appears cut off.

visual bug - icons next to speed turn to white boxes

The netspeed icons next to speed turn to white boxes in arch-linux after I uninstalled gnome-extra. I checked the dependencies and packages under gnome-extra. And there's no appropriate package I could found there. I tried uninstalling and installing NetSpeed extension, but no use.
screenshot from 2018-10-13 14-45-28

[Feature] Optionally display speeds on two lines

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.

Measured speed inaccurately double

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.

Can't get it to work on Gnome-shell 3.24 (Ubuntu Zesty)

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).

JS ERROR: Error: Missing metadata.json

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

netspeed-gnomefreeze.txt

g_param_spec_unref: assertion 'G_IS_PARAM_SPEC (pspec)' failed

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

Fixed-Width Display

The forever-modulating statistics in the panel are quite distracting. It would be much-less-so if the display were fixed-width. Points:

  • Pad the units, so that B/s, KB/s, MB/s, ... all consume equal space
  • Pad with zeroes so that the statistics always consume three digits
  • Use negative metric prefixes mB/s, µB/s, nB/s, .. since the period subtly shifts all digits.

The arrows are too small

In the mode with separate download/upload speed in bps the arrows are too small:
captura_20171230_0916

I think it would be better another icon like and or something similar:
captura_20171230_0922

Another option :
captura_20171230_0935

Or this and :
captura_20171230_0954

Or 🡳 and 🡱:
captura_20171230_0959

What do you think?

Does not work anymore on Ubuntu 13.10

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.

Improvement suggestions

Hi,

Very useful extension here are some improvement suggestions:

  1. 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)

  2. 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

  3. The spacing in menu label is bad even at 100 pixels size

  4. Another nice option is to select the arrow icons from some given options.

Thanks

121

223

334

Settings widget still shows English text when system is configured to use other locales

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.

fix vertical alignment

Great extension! My one little nag is a cosmetic issue. It seems like the text in the status bar is not aligned the same way the rest is (see attached screenshot).

netspeed_crop

failed to open file (schemas/gschemas.compiled not found)

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
@

:1

Fedora 25
GNOME Shell 3.22.2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.