Morse Code Xmas Lights!
Enter your message and it will be displayed in morse code during the night at bzztistan (my house):
I know I can't be the first one to do this, but I did it anyways. The pieces involved are:
- PHP script on the server to accumulate messages to display
- A Python script that polls the webserver and grabs new messages. Then it sends it to an old Arduino I have laying around
- An arduino + sketch with a relay to control the xmas lights
0 && strlen($newData) < 100)
{
$theData = $newData . "\n" . $theData;
$fh = fopen($messages, 'w') or die("asdf2");
fwrite($fh, $theData);
fclose($fh);
}
?>
Current messages:
";
echo $theData;
echo "";
?>