How ivadim/fruitnanny works
Project type and purpose
• Fruitnanny is a full-stack, Docker-based IoT streaming application (“DIY geek baby monitor”) built on Node.js.
• It runs on a Raspberry Pi, captures video/audio via a NoIR camera and GStreamer pipelines, reads temperature/humidity/light/motion via Python scripts, provides a custom Web UI, and uses WebRTC (Janus Gateway) to stream media to browsers.
File structure
• Top-level directories and their roles:
• bin/ – Python and shell scripts to read sensors or trigger recording.
• docker/ – Dockerfiles for each service: fruitnanny (Node.js app), gstreamer (media pipelines), janus (WebRTC gateway), notification.
• configuration/ – Janus, nginx, systemd, SSL configs.
• server/ – Express app entrypoint (app.js/app.ts) and route handlers for sensors, buttons, light, DHT.
• public/ & views/ – Static assets (JS widgets, CSS, third-party libraries) and EJS templates for the UI.
• docker-compose*.yml – Orchestrates services into a single Docker network.
README for additional insights
• Confirms use of Node.js, WebRTC via Janus, GStreamer for audio/video capture, sensors via Python.
• Describes that browsers connect over HTTP(S) for UI and negotiate WebRTC sessions with Janus directly.
• Installation uses Docker Compose to deploy all services on the Pi.