As well as setting the limits through the preferences (GTK UI only, for now), you can also create a file called `~/.config/deluge/trafficlimits` containing a label, the upload limit, and the download limit (in bytes), each on a line by themselves. For example:
I need some help on how to use this plugin.
My situation is this:
During the day its par per gig,
Then at night I get some free bandwidth which is up and down combined.
I use the schedulere plugin to run deluge at night, but sometimes I dl stuff during the day using the toggle plugin.
What I want is that traffic is monitored and limited during the nightime part only. Cron is great, no probs there, I just dont understand the sample provided, sorry.
deluged is on the house server, accessed via deluge-gtk on local network.
SpmP wrote:What I want is that traffic is monitored and limited during the nightime part only. Cron is great, no probs there, I just dont understand the sample provided, sorry.
Add a cronjob that runs at the start of the evening. Have it create a file called ~/.config/deluge/trafficlimits with the following contents:
Nighttime
<upload limit in bytes>
<download limit in bytes>
Then add a second cronjob that runs at the start of the day, overwriting the file with the following. This will reset the counters and make both upload and download unlimited.
mavit wrote:
Add a cronjob that runs at the start of the evening. Have it create a file called ~/.config/deluge/trafficlimits with the following contents:
Nighttime
<upload limit in bytes>
<download limit in bytes>
Then add a second cronjob that runs at the start of the day, overwriting the file with the following. This will reset the counters and make both upload and download unlimited.
I need monthly accounting, how can I avoid resetting the counter, or save the counter to a file (then reload).
My ISP counts traffic, up and down summed together... total traffic (ie up+down) be used , or a provision made for it in your code?
ie:
label
up limit
down limit
total limit
or implied total limit if
label
total limit (i.e only 1 line)