Skip to content

Instantly share code, notes, and snippets.

View markkvdb's full-sized avatar

Mark van der Broek markkvdb

View GitHub Profile

DroidCam + OBS (Flatpak) on Arch Linux: The Complete Guide

This guide covers how to set up an Android or iPhone as a webcam using DroidCam on Arch Linux, specifically when using OBS Studio via Flatpak. It includes steps for USB support (iOS/Android), High Definition (1080p), Microphone setup, and using the camera outside of OBS (Zoom, Discord, etc.).

Prerequisites: Host System Setup

Even though OBS is in a Flatpak, the drivers must be installed on your host Arch system.

1. Install Kernel Headers and Loopback Drivers

You need v4l2loopback to create the virtual camera device.

@markkvdb
markkvdb / sonoff_trvzb_external_temp_sync.yaml
Last active February 12, 2026 20:38
Syncs an external temperature sensor to a Sonoff TRVZB.
blueprint:
name: Sonoff TRVZB External Temp Sync (Fixed)
description: >
Syncs an external temperature sensor to a Sonoff TRVZB.
This version fixes the 'UndefinedError' by mapping inputs to variables.
domain: automation
input:
external_temp_sensor:
name: External Temperature Sensor
description: The sensor that provides the actual room temperature.
blueprint:
name: Ultimate Hue Remote Controller via Z2M
description: >
Configure Hue Remote buttons via Zigbee2MQTT with Device Triggers.
**Features:**
- Synthetic Double Click
- Organized settings by button
- Visual Section Headers