Do LED flashes

Hello, I want the LED to flash if no internet is available. I want to do this with netwatch.
I have the command just off and on but how can to make the flash?

system leds set 0  type=off
system leds set 0  type=on

Can somebody help me?
Thanks

There is no specific command for flashing. You have to write your own script to do this.

Thanks for your reply, i now that i use a script but i’m not so good to writing scrips.
If anybody help me to write this script

On down:

/system leds; :local a "true"; :do {set 0 type=off; :delay 2s; set 1 type=on;} while ($a);

On up:

/system leds set 0 type=on;

I have not tested it. and $a is always true and on up the led setting is overwritten. If the blinking does not stop then go to /system scripts environment jobs and kill the job.

Hello msatter, it don’t work but thanks for your help.
If you no what’s wrong let me know please.
Greatings

I made a string of a boolean so change it to:

:local a "true"; --> :local a true;