diff --git a/backdoor.ogg b/backdoor.ogg new file mode 100644 index 0000000..36f7d26 Binary files /dev/null and b/backdoor.ogg differ diff --git a/chime.ogg b/chime.ogg new file mode 100644 index 0000000..520392c Binary files /dev/null and b/chime.ogg differ diff --git a/frontdoor.ogg b/frontdoor.ogg new file mode 100644 index 0000000..07b14fc Binary files /dev/null and b/frontdoor.ogg differ diff --git a/main.py b/main.py new file mode 100644 index 0000000..9276ec3 --- /dev/null +++ b/main.py @@ -0,0 +1,29 @@ +import time +import secrets +import pygame + +CHIME = 'chime.ogg' +FRONTDOOR = 'frontdoor.ogg' +BACKDOOR = 'backdoor.ogg' + + +def play_sound(filename): + pygame.mixer.music.load(filename) + pygame.mixer.music.play() + + while pygame.mixer.music.get_busy(): + pygame.time.Clock().tick(10) + +def backdoor(): + play_sound(CHIME) + play_sound(BACKDOOR) + + time.sleep(1) + + play_sound(CHIME) + play_sound(BACKDOOR) + +pygame.init() +pygame.mixer.init() + +backdoor() diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..cd80b1c --- /dev/null +++ b/requirements.txt @@ -0,0 +1,15 @@ +certifi==2021.5.30 +charset-normalizer==2.0.6 +idna==3.2 +numpy==1.21.2 +paho-mqtt==1.5.1 +pandas==1.3.3 +pycryptodome==3.10.4 +pyezviz==0.1.9.4 +pygame==2.0.1 +python-dateutil==2.8.2 +pytz==2021.3 +requests==2.26.0 +six==1.16.0 +urllib3==1.26.7 +xmltodict==0.12.0