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

Network widget just shows big white rectangle #1

Open
JoanComasFdz opened this issue Feb 8, 2019 · 3 comments
Open

Network widget just shows big white rectangle #1

JoanComasFdz opened this issue Feb 8, 2019 · 3 comments

Comments

@JoanComasFdz
Copy link

  • macOS High Sierra version 10.13.6.
  • Ubersicht v 1.3 (56).

I downloaded the zip file, extract the fodler and copied the folder to the widgets folder of uberischt. All widgets seem to work fine except the nertwork one which just shows a big white rectangle:

ubsersicht network not working

Hiding and unhiding did not fix it.
Restarting ubersicht did not fix it.

@aprowe
Copy link
Owner

aprowe commented Feb 20, 2019

Hm, that's curious-
Perhaps some styling from other widgets is leaking over?
Try disabling other widgets and see if that fixes it.

@zaf00130
Copy link

zaf00130 commented Dec 15, 2019

Hi I was having the exact same issue, if you hold down the uberschict button and drag your cursor over the block it will highlight the error message. My stated that it couldn't find the head or tail command used in assets/network.sh so I changed the code to the following:

#####sourcing the paths of the necessary commands that are usually in different paths just to make sure they work
DIR=$HOME/Library/Application\ Support/Übersicht/widgets/mini-system-charts.widget/assets
whereAwk=$(which awk)
whereCat=$(which cat)
whereNetstat=$(which netstat)
head1=$(which head)
tail1=$(which tail)

foundPaths="${whereCat///cat}:${whereAwk///awk}:${whereNetstat///netstat}"

function getnetwork(){
export PATH="$foundPaths" &&
#netstat -iw 1 H -n3 T -n1 | awk '{print $3 " " $6}' > "$1/network.db" &
netstat -iw 1 | $head1 -n3 | $tail1 -n1 | awk '{print $3 " " $6}' > "$DIR/network.db" &
process=$!
sleep 1.5
pkill -P $process

#in=$(cat "$1/network.db" | awk '{print $1}')
in=$(cat "$DIR/network.db" | awk '{print $1}')
#out=$(cat "$1/network.db" | awk '{print $2}')
out=$(cat "$DIR/network.db" | awk '{print $2}')

echo $in $out
}

The changes I made are in bold and you can see the lines that I commented out from the original code, hope this helps!

@grebenshyo
Copy link

grebenshyo commented Jun 13, 2020

hi aprowe. thx for the great widget.
i've got an issue with the disk chart though, it shows black. other charts works perfectly. but i've got an aftermarket disk, is it possible that some partitioning/registering issue is conflicting with the data being read? any inputs?

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

4 participants