> Markdown version of [/videos/1273-how-to-automate-your-murder-mystery?t=0](https://www.wearedevelopers.com/videos/1273-how-to-automate-your-murder-mystery?t=0). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # How to Automate your Murder Mystery Ever wondered how to trigger real-world electrical circuits using standard JavaScript? Learn how to combine Svelte, Home Assistant, and a Raspberry Pi to automate an immersive murder mystery. - **Speakers:** Daphne Oakes, Tiger Oakes - **Event:** WeAreDevelopers LIVE - **Published:** December 16, 2024 - **Duration:** 22:00 - **URL:** https://www.wearedevelopers.com/videos/1273-how-to-automate-your-murder-mystery ## Summary Transforming a traditional paper-and-pen murder mystery party into a tech-driven interactive experience requires merging web development, smart home orchestration, and foundational hardware skills. To solve the common issue of guests forgetting character identities throughout the night, a digital character sheet app was built using Svelte for its built-in CSS and animation support, paired with Convex for real-time network data syncing. To ensure professional UI formatting across diverse user-generated photos, the application integrates Thumbmark—an ML-powered image processing API that automatically detects faces and crops them uniformly via a simple URL request, entirely bypassing the need for complex backend image blob processing. Elevating the dramatic tension of the event requires breaking out of traditional client-side applications and into the physical environment. A dramatic murder sequence of dimming lights and sound effects was orchestrated using Home Assistant and Node-RED, proving that complex, multi-room hardware sequencing can be achieved via intuitive drag-and-drop interfaces without extensive custom coding. For physical clue retrieval, a DIY electronic treasure chest was engineered using a Raspberry Pi, a relay, and an electromagnetic lock. By leveraging the NPM `onoff` library to manipulate GPIO pins, a standard Node.js HTTP server listens for POST requests from a SvelteKit-powered password form—demonstrating how basic web interactions can seamlessly toggle physical electrical circuits. Ultimately, building immersive event technology reveals that hardware integration is highly accessible for web developers, often requiring little more than following basic wiring instructions and applying existing JavaScript knowledge. This intersection of acting, puzzle design, and engineering highlights how software can transcend standard enterprise apps, transforming everyday code into a medium for local showmanship and real-world gaming. **Keywords:** murder mystery computer automation, svelte framework applications, convex real-time database, machine learning image cropping api, home assistant iot orchestration, node-red visual programming, smart home lighting sequences, raspberry pi gpio control, javascript hardware integration, electromagnetic relay circuits, physical computing with sveltekit, interactive escape room puzzles, npm onoff hardware library, event showmanship through code ## Chapters 1. **Upgrading traditional murder mystery games with custom software** (00:00) — Addressing the limitations of paper game kits by integrating smart home automation and custom web applications. 1. **Building a real-time responsive directory with Svelte and Convex** (03:44) — Overcoming the difficulty of tracking multiple characters by developing a synchronized guest application. 1. **Standardizing guest photos automatically using Thumbor machine learning** (05:23) — Eliminating manual photo formatting at the door by automatically detecting and cropping faces through an open-source processor. 1. **Scripting atmospheric lighting routines with Home Assistant and Node-RED** (08:20) — Amplifying narrative tension during the event by choreographing smart light automations over a centralized local API. 1. **Designing a programmable escape room chest with external hardware** (11:50) — Elevating static puzzle elements by wiring together an electromagnet and a Raspberry Pi to create physical locks. 1. **Creating a hardware unlock interface utilizing a SvelteKit server** (18:06) — Enabling guests to interact with physical hardware by passing form inputs through a lightweight local web server. 1. **Finding creative applications for software skills in everyday hobbies** (20:13) — Encouraging developers to push beyond standard utility programming by applying their technical knowledge to entertaining physical scenarios. ## Related Moments - [Introduction to escape rooms and automation](https://www.wearedevelopers.com/videos/735-building-a-fully-automated-escape-room) (from "Building a fully automated escape room") - [Business and player problems in escape rooms](https://www.wearedevelopers.com/videos/735-building-a-fully-automated-escape-room) (from "Building a fully automated escape room") - [Preserving retro tech demos and interactive browser captchas](https://www.wearedevelopers.com/videos/1723-wearedevelopers-live-graalvm-in-action-static-analysis-insights-and-more) (from "WeAreDevelopers LIVE - GraalVM in action, Static Analysis insights and more") - [Learning modern programming techniques through hackable web games](https://www.wearedevelopers.com/videos/1309-wearedevelopers-live-the-weekly-developer-show-with-chris-heilmann-and-daniel-cranney) (from "WeAreDevelopers LIVE - the weekly developer show with Chris Heilmann and Daniel Cranney") - [Designing an interactive IoT buzz wire game for conferences](https://www.wearedevelopers.com/videos/590-building-your-way-to-a-serverless-powered-iot-buzzwire-game) (from "Building your way to a serverless powered IOT Buzzwire game") - [Evaluating the logistical challenges of hosting live developer coding events](https://www.wearedevelopers.com/videos/1284-dev-digest-end-of-year-recap) (from "Dev Digest End of Year Recap") ## Related Articles - [Dev Digest 112 - The True Crime of AI Development](https://www.wearedevelopers.com/magazine/421-dev-digest-112-the-true-crime-of-ai-development) - [Dev Digest 138 - Are you secure about this?](https://www.wearedevelopers.com/magazine/486-dev-digest-138-are-you-secure-about-this) - [Dev Digest 115 password beefstew is not Strog/|n0FF](https://www.wearedevelopers.com/magazine/429-dev-digest-115-password-beefstew-is-not-strog-n0ff) - [Dev Digest 118 - not a total recall](https://www.wearedevelopers.com/magazine/452-dev-digest-118-not-a-total-recall) ## Related Jobs - [Senior Software Engineer, Fraud](https://www.wearedevelopers.com/jobs/ext/1280398-senior-software-engineer-fraud) at **Twilio** - [Remote Senior Full-Stack Engineer](https://www.wearedevelopers.com/jobs/ext/679408-remote-senior-full-stack-engineer) at **Edge Impulse** - [Remote Senior Full-Stack Engineer](https://www.wearedevelopers.com/jobs/ext/639235-remote-senior-full-stack-engineer) at **Edge Impulse** - [Remote Senior Full-Stack Engineer](https://www.wearedevelopers.com/jobs/ext/682327-remote-senior-full-stack-engineer) at **Edge Impulse** - [Remote Senior Full-Stack Engineer](https://www.wearedevelopers.com/jobs/ext/646086-remote-senior-full-stack-engineer) at **Edge Impulse** - [Remote Senior Full-Stack Engineer](https://www.wearedevelopers.com/jobs/ext/645320-remote-senior-full-stack-engineer) at **Edge Impulse**