Hellowlol / HTPC-Manager

A fully responsive interface to manage all your favorite software on your Htpc.
MIT License
344 stars 48 forks source link

Feature Request: live Bandwidth counter #483

Open Rsslone opened 8 years ago

Rsslone commented 8 years ago

Hello! Really amazing work on the fork but I found a bug and have a small but important functionality request. When attempting to set the update branch to Master2 from Master, it does not save the settings and when you attempt to update it says you're 12 versions behind even though that can't be the case since its a fresh install from the Master2 branch. As for the functionality request, I can't believe that the PC stats app does not show current upload and download bandwidth. Is there any way we can have a bandwidth monitor??

THANKS!

Reporting Issues:

Make sure you provide the following information below:

Hellowlol commented 8 years ago

I have made 0 efforts to be compatible styxit version. Ill recommend you clone my repo. If you want to switch branches (in case one of them is behind you need to press save then forceupdate button in the settings page)

As for the bandwidth counter, there is one in the stats module. Just look for the arrow down and up. But that isnt that good, you should use somthing like vnstats to monitor you bandwidth usage.

Rsslone commented 8 years ago

I was not trying to update to the styxit version. Correct me if I am wrong but Master2 branch is your version and the Master is the old version. Last time I attempted to update from the Master branch instead of yours it broke it obviously.

The bandwidth module is showing session traffic not current useage. http://puu.sh/pT9YP/c383434903.png

Hellowlol commented 8 years ago

You shouldnt get a message that your behind if you use a clean install. It it installed via git? Did you copy over the db? To get live bandwidth usage you need to use vnstat

Rsslone commented 8 years ago

Its installed via git, the reason I think its saying its behind is because its trying to update with the master branch instead of master2. Does vnstat work with windows? I checked it out and I didnt see documentation for windows.

Hellowlol commented 8 years ago

If you start with a clean install the default branch is master2 so there is no switching. Did you switch from master2 to master manually? Im afraid there is no windows support. Many ppl install vnstat on there router so they have a better picture over the total data usage.

Rsslone commented 8 years ago

No by default its set to Master and I am unable to change it. Is there no way psutil can be used to grab current network use? My current router would not support it.

Hellowlol commented 8 years ago

I would advice you to do a clean reinstall (dont use the old db) as the default branch is master2, im 100% sure. Yeah, you could use psutil to do that by pulling the data over time, but you need to get your hands dirty.. See https://github.com/giampaolo/psutil/blob/master/scripts/nettop.py for example.

Rsslone commented 8 years ago

I don't think I have the know how to implement something like this myself. I've done a couple fresh installs including the db to try and fix it before coming here with no luck, maybe its just me. Regardless thanks for your hard work on the project.

Hellowlol commented 8 years ago

Ill leave this open incase im bored one day and want something to tinker with :P

Hellowlol commented 8 years ago

Anyway regarding the update, just select master2 click save then forceupdate.

Rsslone commented 8 years ago

I did, seemed to have worked. Branch is now showing master2 as well.