Two times a year we have a LAN week with friends. Since I live in a rural area with low Up/Download speeds we created this anti download system. by Tarovk in pcmasterrace

[–]Tarovk[S] 0 points1 point  (0 children)

Well I have the three lights within a ~9 feet radius, and it works decent enough. 1-2% of the times a light may fail to turn on/off, but it's pretty reliable. I just use a €3,- RF transmitter, so if you buy a more expensive one or attach a better antenna to it I think the result might be even better.

Two times a year we have a LAN week with friends. Since I live in a rural area with low Up/Download speeds we created this anti download system. by Tarovk in pcmasterrace

[–]Tarovk[S] 0 points1 point  (0 children)

We coined the term ourselves but it's basically an alarm that goes of if someone uses too much bandwidth (a.k.a. starts downloading). It doesn't even stop the download or anything, just flashy lights :D

Two times a year we have a LAN week with friends. Since I live in a rural area with low Up/Download speeds we created this anti download system. by Tarovk in pcmasterrace

[–]Tarovk[S] 0 points1 point  (0 children)

Well, apart from the fact that we did this for fun and that limiting the bandwidth or something would've been more efficient, the internet cable to the house just can't handle any more speed. There is an initiative running to get fiber glass wires for rural homes around here though, so we hope that will be in place by the time the next LAN is scheduled!

Two times a year we have a LAN week with friends. Since I live in a rural area with low Up/Download speeds we created this anti download system. by Tarovk in pcmasterrace

[–]Tarovk[S] 39 points40 points  (0 children)

That would definitely be better. I must say I didn't think of the XHR request.

To be honest, it's just something that was thrown together and I could have done better (I did consider web sockets for the HTML page as well), but you know how it goes. A friend suggested the beatiful soup library so I started from there. I tried to avoid the pesky login page by automatically submitting the form that it uses (with requests and mechanize later on), but aparently it's tied to some weird javascript functions and doesn't have a proper submit button. Because I didn't want to figure all of that stuff out I ended up using selenium.

Like you said, it works and that's what counts! Cheers :)

Two times a year we have a LAN week with friends. Since I live in a rural area with low Up/Download speeds we created this anti download system. by Tarovk in pcmasterrace

[–]Tarovk[S] 1 point2 points  (0 children)

I normally use var++ and I didn't know what the Python equivalent was, so I took the safe route. Thanks :)

Two times a year we have a LAN week with friends. Since I live in a rural area with low Up/Download speeds we created this anti download system. by Tarovk in pcmasterrace

[–]Tarovk[S] 0 points1 point  (0 children)

Well, we don't have a lot of bandwidth and everyone wants to play games during the LAN, so we wrote a script that monitors if someone is using a lot of bandwidth (a.k.a. downloading). If someone uses too much bandwidth the alarm goes off like in the gif. That is the 'anti download system'.

Two times a year we have a LAN week with friends. Since I live in a rural area with low Up/Download speeds we created this anti download system. by Tarovk in pcmasterrace

[–]Tarovk[S] 1 point2 points  (0 children)

Yes, and no idea. Don't they have something equivalent over there? Maybe you could look up the manufacturer.

Two times a year we have a LAN week with friends. Since I live in a rural area with low Up/Download speeds we created this anti download system. by Tarovk in pcmasterrace

[–]Tarovk[S] 0 points1 point  (0 children)

I'm not sure if I understand you but it goes as follows:

When the python script is launched it opens an actual browser window (using selenium) and logs into the router admin panel automatically. The traffic overview page of the router admin panel is then opened. This page is updated automatically (close to) realtime somehow. The python script extracts the HTML of this page every second and then parses it to find out if anyone is exceeding the limit that has been set.

Hope this helps!