This repository contains a MikroTik script designed to play the "Happy Birthday" melody using the router's beep command. This script is intended for use in the MikroTik RouterOS environment.
Before you begin, ensure you have:
- A MikroTik router running RouterOS.
- Basic familiarity with MikroTik RouterOS and its WebFig or WinBox interfaces.
First, download the happy_birthday.rsc
script from this repository.
Upload the script to your MikroTik router. This can be done through the WebFig or WinBox interface.
- For WebFig: Go to Files and drag and drop the
.rsc
file into the file list. - For WinBox: Open Files and drag the
.rsc
file into the WinBox window.
- Access your router using WebFig or WinBox.
- Navigate to System > Scripts.
- Click on Add New or the
+
icon. - Give the script a name, e.g.,
HappyBirthday
. - In the Source field, either:
- Paste the contents of the
happy_birthday.rsc
file directly, or - Use the command
/import file-name=happy_birthday.rsc
to load the script from the file you uploaded.
- Paste the contents of the
For more detailed information about MikroTik scripts, visit the MikroTik Scripting Manual.
To run the script:
- Navigate to System > Scripts in WebFig or WinBox.
- Select the
HappyBirthday
script from the list. - Click on Run Script or the
Start
button.
The script uses specific frequencies to play the "Happy Birthday" melody. You can customize the melody, tempo, and duration as per your requirements. Frequencies used in this script are based on a simplified scale. For a detailed reference on musical note frequencies, visit Musical Note Frequencies.
Your contributions are welcome! If you have suggestions or improvements, please open an issue or submit a pull request.
This script is released under the MIT License. See the LICENSE file for more details.
- Thanks to the MikroTik community for their valuable resources and support.
- This script was inspired by the versatility of MikroTik RouterOS scripting capabilities.