An Application that utilizes a sensor on a Raspberry Pi to detect motion and collect the data. It provides an App UI to configure actions, which will then be triggered by the sensor.
About The Project · Requirements · Server Installation · Tech Stack · Author
motion-detector-preview_720.mp4
- Motion Detector App installed (MacOS, Windows, Ubuntu)
- Raspberry Pi
- 64-bit OS
- Bun installed
- Python 3 and GPIO zero installed
- Server (RPi) must only be reached in local network
- Raspberry Pi with Infrared Sensor connected on GPIO Pin
- Clone the repository onto your Raspberry Pi:
git clone https://github.com/lukesthl/motion-detector.git
cd backend; bun i
- Setup the Environment:
cp .env.example .env
Edit SERVER_ORIGIN to your preffered name and change the GPIO_PIN to your connected sensor pin.
- Start Server:
bun run prod
- Tauri – Tauri is a framework for building tiny, blazingly fast binaries for all major desktop platforms
- SvelteKit – SvelteKit is built on Svelte, a UI framework for making interactive webpages
- Vite – Vite is a build tool for Frontends. It allows for faster development thanks to fast Hot Module Reload (HMR)
- TailwindCSS - Tailwind CSS is basically a utility-first CSS framework for rapidly building custom user interfaces
- Bun – Bun is a fast all-in-one JavaScript runtime like nodejs or deno
- SQLite – SQL database engine (only one currently supported by bun)
- Dashboard
- Add more Actions (E-Mail, Phillips Hue, Sound)
- Mobile App Support (https://tauri.app/blog/2022/12/09/tauri-mobile-alpha/)
- Multiple Server/Sensor Support
- MacOS Notifications not popping up (only shown in notification panel): tauri-apps/tauri#5488
- Bun Docker build with aarch64: oven-sh/bun#1219
- Luke Stahl (@lukesthl)