alex2108 / syncthing-tray

trayicon to display status of syncthing
MIT License
57 stars 9 forks source link

request: more info in tooltip #18

Closed kowach closed 8 years ago

kowach commented 8 years ago

It would be nice to have more info in icon tooltip text like

alex2108 commented 8 years ago

sry for the late reply, definately makes sense and I will see what I can do.

One problem is that I noticed the text does not update at all on Ubuntu after a while so this should be fixed before doing that. (not sure if it's a bug in trayhost, or my program, testing if it happens with a more simple program...)

alex2108 commented 8 years ago

Problem with not updating text is now hopefully fixed by changing the tray library used, will test that for some time and if it works I will start working on putting more info in there.

kowach commented 8 years ago

This will be great. I have another issue, my tray icon constantly shows red arrow (upload). WebGUI says constant 1-2 B/s Upload Rate, but I think that is not the problem. I have device that is in constant Syncing State because I have set ignore patterns that partially sync one folder on first device and same folder fully sync on other. I have searched Syncthing forum and there is sad that this is the way Syncthing works.

As I can see syncthing-tray reads completion instead upload/download rate?

alex2108 commented 8 years ago

As I can see syncthing-tray reads completion instead upload/download rate?

yes it does, it should show the same thing as the GUI. When one remote device has completion<100 it is considered "syncing".

As soon as I have the upload rate in the tooltip it could easily be used to optionally set the icon based on this.

kowach commented 8 years ago

But in my case I have folder that never completes (because ignore pattern) - in GUI it looks like stuck on 74% but that is "feature" - annoying thing. I looked into Syncthing code and they calculate current UL/DL bandwidth from two queries on /rest/system/connections, they calculate inbps = (inBytesTotal second - inBytesTotal first) / time between queries.

alex2108 commented 8 years ago

rates are now shown and can be used to determine upload/download state with command line option -R