Flash LED Script

[youtube]
https://www.youtube.com/watch?v=ZrId0YXRBA8&feature=youtu.be
[/youtube]

Pretty simple script, but might save someone the hassle of writing it themselves, this could be useful for if you arte talking to someone at a remote location and need to indicate which device they need to manipulate.

# Set the amount of flashes in count
# Set the led to use in led either wlan-led or user-led
:local count 15
:local led wlan-led
# Do Not Edit Below This Line
:local numb 0
:local test [ /system leds find leds~"$led" ]
:if ($test = "") do={ /system leds add leds=$led type=on }
:local test2 [ /system leds find leds~"$led" ]
:local state [ /system leds get value-name=type number=$test2 ]
:while ($numb < $count) do={
  :set $numb ($numb + 1)
  /system leds set numbers=$test2 type=on
  :delay 0.5
  /system leds set numbers=$test2 type=off
  :delay 0.5
}
/system leds set type=$state numbers=$test2