Intro:
Lets start with the brief history of Morse Code. Morse code is a way of sending messages using patterns of sounds or lights. Each letter, number, or punctuation mark has a unique pattern of short and long signals (Original language of dots and dashes). From its inception by Samuel Morse to its role in long-distance communication, Morse Code has left an indelible mark on the world. Morse code was widely used for long-distance communication until the mid-20th century, especially by the military and the shipping industry. It was also used for radio communication and space exploration. In this tutorial we will delve into the Minionized realm of Morse Code, exploring the captivating blend of banana-fueled antics and the precision of dots and dashes. We would leverage power automate to turn your messages into a symphony of beeps and banana whispers.
Setup:
The first step is to define a data dictionary. Here, we'll give each letter of the alphabet its unique pattern of dots and dashes, transforming the ordinary into the extraordinary. A is now dot-dash, B is dash-dot-dot-dot, and so on – it's like creating a secret language.
{
"A": ".-", "B": "-...", "C": "-.-.",
"D": "-..", "E": ".", "F": "..-.",
"G": "--.", "H": "....", "I": "..",
"J": ".---", "K": "-.-", "L": ".-..",
"M": "--", "N": "-.", "O": "---",
"P": ".--.", "Q": "--.-", "R": ".-.",
"S": "...", "T": "-", "U": "..-",
"V": "...-", "W": ".--", "X": "-..-",
"Y": "-.--", "Z": "--..", " ": "/"
}
Logic:
Below is the graph that transforms the user's ordinary text input, navigate through the Morse Code dictionary, translating each character into its dots-and-dashes equivalent.
The cool trick here is dynamic iteration where we navigate through each character obtained from the user input and retrieve its corresponding Morse Code pattern.
"body('Parse_JSON')?[items('Apply_to_each')]"
Power
DevTo
Hope you enjoyed reading through how in power automate we could build our own Minion Morse Code Translator, turning your messages into a symphony of beeps and banana whispers.
Further Read:
1) Wiki MorseCode
2) Kids summer activity
3) Morsecode translator
Top comments (3)
@wyattdave : Thanks for the cool tip on the dynamic lookup . Would have never crossed my mind
No worries, loving your work, want to see my flow beep at me in morse code now 🙂
Will find time to do that !!!