
Script
RouterOS script, scheduler, automation: all dojo articles on this topic.
Image generated locally with ComfyUI from randomly selected elements. How the images are created

Netwatch on MikroTik: Get Telegram Alerts When a Device Goes Down
Netwatch is the sentinel of RouterOS: it pings an address and, when it stops responding or comes back, runs a script. We use it to monitor a camera and the internet line, with alerts sent to Telegram, and we look at the thresholds and the behavior after a reboot that the manuals do not mention.
DojoConnect MikroTik to Telegram: Router Alerts on Your Phone
A router that messages you on Telegram when something happens is worth more than ten graphs reviewed the next day. In seven steps, we create the bot, find the chat_id, and write a reusable Telegram script. Other Dojo how-tos use it to send alerts: Netwatch, reboots, rogue DHCP.
DojoSend emails from MikroTik with Gmail: SMTP and app passwords
A MikroTik can send emails (alerts, backups, reports) using a Gmail account as the SMTP server: smtp.gmail.com, port 587, STARTTLS. However, the password is not the account password: you need an app password, which Google only issues when two-step verification is enabled. In RouterOS 7, the configuration is located in /tool e-mail.
DojoWireless scan on a remote MikroTik without losing the result
A frequency scan stops the radio for a few seconds: if you reach the remote router through that wireless link, you lose the connection and the result. The solution is to run the scan in the background on the router itself, saving the result to a file to read once the link is back. In RouterOS 7, this is done with :execute and the file= parameter, which works with both the wifi and wireless packages.
DojoMikroTik DHCP server: run a script on every lease
The RouterOS DHCP server can run a script every time it assigns or releases an address: this is the lease-script. Inside the script, variables such as $leaseBound, $leaseActIP, and $leaseActMAC are already available, allowing you to log new devices, send email notifications, or add the client to an address list with an expiration.