Willing to pay for coding help
Hi, I'm new to python so would be happy to pay someone to help write the following that I could run on iphone Pythonista
Due to slow broadband and fast 4g mobile signal I'd like to use a mobile phone with unlimited data package to automatically download content from my internet seed box to home NAS where plex will present it. (and no I can't just tether my phone as that doesn't count as unlimited bandwidth)
So thinking I just leave a iPhone phone plugged in and automatically doing the following script.
The below process is in two stages
Stage A - Download from SSH/FTP Seed Box to iPhone - via 4g
Stage B - Upload from iPhone to home NAS - via wifi
- Force 4g connectivity (see below)
- Connect to seedbox via ssh or sftp and check if new file or folder in source folder
- If not wait and repeat step 2 in 10 seconds
- If so download file to phone storage via 4g of sftp.
- Once downloaded, check file size the same and if so delete file from seedbox
- Phone enables wifi so it can see NAS on LAN - if via wemo plug then wait 3 min for router to start
- Pushes the same file to NAS watch folder (same for all content). Compare file size, Then delete file from phone. Must transfer with temp filename and then rename as last step so the file is not pickup up mid transfer
Force 4g connectivity
There are 2 ways this could happen
a) Disable wifi router. If a wifi router just for this purpose is used and that router is on a Belkin WeMo plug the the script could send a IFTTT trigger to turn this plug off. Without the wifi router then on the phone will switch to 4g data (wemo on separate wifi) b) The jailbroken iphone if it allows wifi to be toggled from within the script then this is the easiest option
This needs to support also recreating any subfolders
Logging of all actions to a log file that's easily accessible from anywhere (maybe pastebin)
Need to avoid this script running really quickly with a group of small files and turning router plug on and off too quickly. Ideally support batching download by tracking file sizes and also waiting 60 seconds e.g. transfer up to 5Gb to local iphone before switching to second stage of switching on wifi
The script can't automatically turn on/off wifi or force using one or the other. That's simply not possible.
@Webmaster4o Thanks for engaging. Sorry if the description isn't clear on the sneaky way the script can turn wifi on and off. It just need to call the web service from IFTTT which will turn the power on and off to the router, thereby changing how the iphone would connect. Can you see any reason why python could not call a web service like that? There seems to be examples.
I could try and help out I'm on a jail broken iPad so I can help with that.
@mountee Nah, that would work, but still wouldn't be very reliable.
@scj643 That's great, how do I contact you?
While this sounds plausible, I'll leave to someone more experienced to offer their services. But this does make me wonder tangentially - is anybody aware of any bit torrent libraries that would work inside pythonista?