Page 1 of 1
Limiting total downloads between certain times
Posted: April 14th, 2009, 7:56 am
by Vertigo1
I am lucky enough to have 20mb cable here in the UK and, whilst there is no total daily or monthly download limit, their traffic management imposes a download limit of 6GB between 10am and 3pm and 3GB between 4pm and 9pm. If I hit these limits then my speed drops to 5mb for five hours.
I have thus configured sabnzbd to pause all downloading during these periods. Whilst this works well, what would be really useful is a way of telling it to limit the total amount downloaded between certain times, so I could tell it that it can download a few GB during the limited periods but should then stop until the period ends.
Just a thought

Re: Limiting total downloads between certain times
Posted: April 14th, 2009, 1:25 pm
by markus101
You could have SAB impose a speed limit during those times, based on speed/hours.
IE between 4pm and 9pm (5 hours) if you had the maximum download set to 174 (Actual 174.76266666666666666666666666667) you would download just shy of 3GB.
5 hours = 18,000 Seconds
3GB = 3,145,728 KB
3145728/18000 = 174.76266666666666666666666666667 rounded down to 174 (or less if you plan on doing surfing at that time).
10am to 3pm you would just double the download rate as you get 2x the amount of bandwidth during that time frame. It's not the prettiest solution, but still beats pausing it and having no downloads during those times.
-Markus
Re: Limiting total downloads between certain times
Posted: April 15th, 2009, 7:50 am
by MageMinds
+1 for the Vertigo1's solution ... And SABnzbd is already able to handle that solution.
But that could cause frustration, if you want to download something like right now, you would have to wait because your download speed is chooked even if you don't plan to download anything else that day... Personally I would not mind, since I really never need that stuff right now when I download from sabnzbd.
MageMinds
Re: Limiting total downloads between certain times
Posted: April 15th, 2009, 9:29 am
by shypike
Don't count on this specific issue being implemented directly into SAbnzbd.
However, we are working on a plugin system that would enable you to
add functionality.
Maybe in the form of an extended API that would be used by a user script in
launched by the scheduler.
Re: Limiting total downloads between certain times
Posted: April 15th, 2009, 9:36 am
by MageMinds
Does the API can control the speed?
If yes you could have a 3-party software can monitor the bandwidth and then stop or choke sabnzbd using the API.
Don't ask me which 3-party software though ... But if you know a good programmer he could probably do that for you, but hooking to the kernel network process can be difficult, I'm a programmer and I never did that, never had to, I would have to make a lot a research to be able to do it without causing problems with the OS, unless I can find a Open Source Windows software already able to do it, so I can modify it to my needs.
MageMinds
Re: Limiting total downloads between certain times
Posted: April 15th, 2009, 12:39 pm
by shypike
http://sabnzbd.wikidot.com/automation-support
It contains a speed entry.
The API will be expanded in 0.5.0