Page 1 of 1
Downloading Speed
Posted: 15 Dec 2015 15:13
by Atbl
Hi,
Is there a way to determine downloading speed??
For E.g.:-
If downloading speed >100 kbps then perform some action.....
Re: Downloading Speed
Posted: 16 Dec 2015 20:20
by Martin
Hi,
You could use action Init Variable Network Traffic twice with a short Sleep in between to measure the transferred data twice and check if it's above your desired threshold. You would have to execute this part in a loop.
Ensure to slow down the loop enough with the Sleep, otherwise you might run into an emergency stop when too many actions are executed in a minute. Also ensure that the loop is not executed when the screen is off, otherwise the flow might consume too much battery when it's executed 24 hours a day.
Regards,
Martin
Re: Downloading Speed
Posted: 18 Dec 2015 14:50
by Atbl
Hi,
I have tried making the flow.
Please check if I am going correctly??
http://automagic4android.com/flow.php?i ... 6580c64924
Re: Downloading Speed
Posted: 18 Dec 2015 20:35
by Martin
Hi,
The flow looks good to me. I would change the flow execution policy to Skip... so that the flow is not executed multiple times in parallel when you activate the proximity sensor rapidly. The flow execution policy can be adjusted by opening the flow and then selecting menu->Options.
Instead of a message dialog you could also use a notification on screen so that it does not pause the video.
Youtube buffers video playback so you will likely not get a steady transfer rate but get a few MBs per second and then zero kb/s for some time.
Regards,
Martin
Re: Downloading Speed
Posted: 19 Dec 2015 03:02
by Atbl
Hi Martin,
I have used proximity sensor and message dialogue only to test flow.
My main objective is to make an UTorrent downloader for downloading movies.
But I want that if downloading speed is greater than 100 mbps (average of 2 minutes), then it should continue downloading else it should wait for some hours and then try again...
So what trigger and action would best suit to me??
Re: Downloading Speed
Posted: 21 Dec 2015 19:32
by Martin
Hi,
A flow like the one you've designed should work for this purpose. Just add a condition Expression to check the download speed instead of using an action to display the current value and then either add an action Sleep: 1h to make the flow wait or let the flow continue to check the download speed.
I don't use UTorrent so I'm not sure how to pause the download. If they don't provide a plugin for automation tools you might have to resort to action Control UI to simulate input.
Regards,
Martin