Remote Mega Download
Noah Nauman last edited by Noah Nauman
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?
mega-get https://mega.nz/folder/bGAmWLBI#iRuLe8LRlvSrUyzCw7iiGA/file/DHRGjTzD B:\Downloads\files
So 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 Paste Mega Link Below
set /p input=
if %input% == 1 goto ech
mega-get %input% B:\Downloads\files
Russ last edited by Russ
@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.
Russ last edited by
@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
Russ last edited by
@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