From b8e2b5d6ca37daf826e729209435b546984351cf Mon Sep 17 00:00:00 2001 From: Mubaraq Olayinka Date: Mon, 8 Jul 2024 12:37:00 +0100 Subject: [PATCH] first-commit --- .gitignore | 5 +++++ README.md | 14 ++++++++++++++ camera.py | 0 location.py | 0 requirements.txt | 4 ++++ sound.py | 0 6 files changed, 23 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 camera.py create mode 100644 location.py create mode 100644 requirements.txt create mode 100644 sound.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..595f9e4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +venv/ +recordings/ +__pycache__/ +*.pyc +*.pyo diff --git a/README.md b/README.md new file mode 100644 index 0000000..ab4a34f --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# Only Motion Detector + +This project consists of three components: + +1. **Motion Detection**: Detects motion using cameras (MacBook and iPhone) and publishes notifications to an MQTT topic. +2. **Sound Detection**: Detects sound using a microphone and publishes notifications to an MQTT topic. +3. **Location Tracking**: Tracks location using MQTT messages and publishes updates to an MQTT topic. + +## Installation + +1. Clone the repository: + ```bash + git clone https://github.coventry.ac.uk/4005CMD2425MAYSEP/only_motion_detector.git + cd only_motion_detector diff --git a/camera.py b/camera.py new file mode 100644 index 0000000..e69de29 diff --git a/location.py b/location.py new file mode 100644 index 0000000..e69de29 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..1a0e893 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +numpy==2.0.0 +opencv-python==4.10.0.84 +paho-mqtt==2.1.0 +PyAudio==0.2.14 diff --git a/sound.py b/sound.py new file mode 100644 index 0000000..e69de29