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