Remote Mega Download
-
So I am trying to get some remote downloads working with megacmd so I can just paste a mega link (like this https://mega.nz/folder/bGAmWLBI#iRuLe8LRlvSrUyzCw7iiGA/file/DHRGjTzD) into the parameters field and have it start downloading the files from that link.
this batch file below runs find when I run it as an admin. But I cant even get it to run when I am using triggercmd let alone change that link for a parameter field to input different links. How Can i get this to work the way I want to?
set PATH=C:\Users\Noah\AppData\Local\MEGAcmd
mega-get https://mega.nz/folder/bGAmWLBI#iRuLe8LRlvSrUyzCw7iiGA/file/DHRGjTzD B:\Downloads\filesSo I got this batch file to work when I run it as admin. But i have no idea how I can get this working with triggercmd. I just dont want to have to remote in just to start a mega download.
@echo off
echo Paste Mega Link Below
set /p input=
if %input% == 1 goto ech
:ech
set PATH=C:\Users\User\AppData\Local\MEGAcmd
mega-get %input% B:\Downloads\files -
@Noah-Nauman, I made it work with the batch file below without using "Run as administrator". When I installed the MEGAcmd tool, I clicked No at this screen. I think that avoids having to run it "as administrator":
These are the contents of my d:\tools\mega_dl.bat file:
%LOCALAPPDATA%\MEGAcmd\mega-get %1 d:\Mega_Downloads
My command looks like this:
I tested it like this:
-
@Russ you're the best. I'll try this later tonight
-
@Russ Got it working. Thank you so much for the help.
-
@Noah-Nauman, awesome. You're welcome.
-
@Russ I have a question for you. this script is still working great but I was wondering if there was a way to get this to work with Home Assistant where I can paste the link into a card to start the downloads. Do you think it is possible? I have had a hard time trying to figure this out
-
@Noah-Nauman, sure, are you having Home Assistant call the TRIGGERcmd API? Can you send me a screenshot to give me some context?
I don't have much experience with HA. I've only tried it out.
-
@Russ well i am having a hard time thinking of a way to even set up a way to send the parameter from home assistant
-
Would Anyone be able to help me do this? I've never used any of these softwares before and I've never done anything like this before so I'm pretty lost. I need to download a 300gb+ Mega folder but I can't afford Mega Pro and I can't find another way to do this.
-
@Russ could you walk me through how to do this in simple terms and lots of clear step by step instructions? I've never used these softwares before so you can imagine how confusing this is for me to understand without having any experience doing anything remotely similar to this.