Script, Scheduler, Fetch -> LG developer mode session time reset

Hi,

I am still using ROS 6.49.19 and I am trying to do a simple thing. Not so simple for me unfortunately. Long story short. I want to reset time on my LG TV developer mode session via link and I want to do that repeatedly using my Mikrotik.

Its LG developer mode on LG TV which has to be enabled If you want to install external application which are not at LG store. I need to extend the time via link automatically otherwise the app will be deleted after developer time session expire (Default is 999h).

BUT I am strugling with policy. When I give to script and scheduler "all" policy (policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon) it works. When I give just policy=test it doesnt work. I read that for fetch only policy=test is needed.

Could you please explaind what is wrong please?

/system script

add dont-require-permissions=no name=LGLINK owner=myuser policy=test source="/tool fetch url=\"https://developer.lge.com/secure/ResetDevModeSession.dev\?sessionToken=MyToken\" mode=https check-certificate=no keep-result=no"

/system scheduler

add interval=4d name=SCHELGLINK on-event=LGLINK policy=test start-date=feb/10/2026 start-time=23:30:00

Thanks in advance

Not a direct answer to your question, but maybe useful, JFYI:

I think you need "read" as well. Otherwise, scheduler may not be able to find the script since it cannot read it.

Also, cannot recall on V6, but you might try an output=none.

What do you mean by that “Also, cannot recall on V6, but you might try an output=none.“? Where shoud I put output=none?

I don't have V6 test system, but in V7 it's generally perfered to use output=none instead of keep-results=no. AFAIK it does not hurt to provide them both if you're trying to troubleshoot, so you can try at the end of you're fetch. As "double protection" that it should not write any output (which you'd need write permissions).

I still think issue is the read rights, since I have to imagine keep-results=no does what it says.

You were right. It was the “read“ right missing. Also I changed the keep-results=no to output=none as keep-results=no is deprecated.

this is what works and thank you a lot for helping me.

/system script

add dont-require-permissions=no name=LGLINK owner=myuser policy=read,test source="/tool fetch url=\"https://developer.lge.com/secure/ResetDevModeSession.dev\?sessionToken=MyToken\" mode=https check-certificate=no output=none"

/system scheduler

add interval=4d name=SCHELGLINK on-event=LGLINK policy=read,test start-date=feb/10/2026 start-time=23:30:00

1 Like