D
Darkplug
Open Sourceπ Alt to Commercial Darkroom TimersTurn your iPhone and a smart plug into an f-stop timer for film
π³ Self-Hostableπ No Sign-upβ‘ Editorial Signal: 76/100β
78 Stars
# Open web application directly in browser:
open "https://peterszentkiralyi.eu/darkplug/"Darkplug repurposes consumer hardware, combining an iPhone and an inexpensive smart plug to function as a precise photographic f-stop timer. It bridges the gap between expensive analog darkroom equipment and modern DIY tech for film enthusiasts.
Uses your iPhone's processing power and screen as the control interface for exposure timing.
Triggers an off-the-shelf smart plug to accurately switch the enlarger light on and off.
Provides logarithmic timing adjustments crucial for advanced analog printing techniques.
Controlling an analog photo enlarger lamp with precise exposure timings
Setting up a budget-friendly darkroom automation system using spare household items
Experimenting with f-stop printing methods without investing in dedicated professional hardware
Unlike expensive dedicated darkroom timers, Darkplug achieves precise f-stop control utilizing hardware you likely already own for a fraction of the cost.
Analog film photographers and DIY hardware hackers looking to build an affordable darkroom timer.
Darkplug is engineered to eliminate critical operational friction in open source alternatives. From an architectural standpoint, the system adopts a local-first, self-contained deployment posture, ensuring streamlined onboarding and minimal setup overhead.
Because the underlying code is fully open-source, engineering teams can audit security implementations, inspect telemetry vectors, and extend functionality via custom fork without risk of sudden vendor deprecation.
Darkplug is an iOS application engineered to interface directly with local Wi-Fi smart relaysβspecifically the Shelly Plus and Gen2/Gen3 IoT plug familiesβoperating across a local IPv4 wireless subnet. Its architectural core intentionally bypasses cloud broker infrastructure, MQTT cloud bridges, and vendor SaaS servers. Instead, Darkplug establishes direct HTTP REST and JSON-RPC network connections (`http://<plug-ip>/rpc/Switch.Set`) directly across the local LAN. To achieve the rigorous sub-second precision required for photographic enlarger lamps, the iOS execution loop utilizes `mach_absolute_time()` counters and high-priority Grand Central Dispatch (`DispatchSourceTimer`) queues to maintain microsecond-accurate internal timing state. Local WebSocket event listeners capture real-time switch state confirmations directly from the relay hardware, maintaining synchronized exposure counters across application viewports without polling overhead. Crucially, to eliminate network jitter on the shut-off edge from corrupting exposure accuracy, Darkplug does not issue independent turn-on and turn-off packets over Wi-Fi. Instead, it dispatches an atomic RPC command containing a hardware-enforced `auto_off` duration parameter executed deterministically by the Shelly plug's onboard ESP32 microcontroller firmware. The photometric computation engine replaces linear seconds with logarithmic f-stop mathematics ($t = t_0 \times 2^{\Delta EV}$), supporting 1/12th, 1/6th, 1/4th, 1/3rd, and 1/2-stop test strip progressions, dual-channel split-grade contrast exposures, and multi-step dodging and burning plans.
The user and developer ergonomics in Darkplug are meticulously customized for darkroom laboratory conditions. The interface is rendered entirely in monochromatic deep red (wavelength ~650nm) against a pitch-black background, engineered specifically to protect human scotopic (night) vision and eliminate optical fogging on orthochromatic and variable-contrast silver gelatin photographic paper. Darkroom workflows are structured into intuitive guided modules: interactive test strip generation, base exposure calculation, dual-channel split-grade printing (separate soft and hard contrast filter channels), and step-by-step dodging and burning sequences. Haptic feedback sequences on the iPhone vibrate subtly at key exposure milestones, allowing darkroom technicians to time paper agitation and filter adjustments without glancing away from developing chemical trays. Print recipes and timing plans can be serialized into compact alphanumeric plan codes or QR codes for darkroom notebooks, enabling exact experimental reproducibility across printing sessions. Device configuration leverages zero-configuration local discovery protocols (mDNS / Bonjour) to automatically identify Shelly relays on the local subnet. IP addresses, port assignments, and mechanical relay latency calibration offsets are persisted in local iOS storage. Diagnostic telemetry screens display real-time Wi-Fi ping roundtrip histograms and relay connection health before initiating an exposure cycle, alerting photographers to network jitter before valuable photographic emulsion is exposed.
Darkplug is distributed as a standalone iOS mobile application with zero recurring monthly subscription charges, gated feature tiers, or proprietary vendor hardware lock-in. The hardware relay interface utilizes standard HTTP/JSON-RPC protocols supported by off-the-shelf commercial hardware. From a total cost of ownership perspective, Darkplug represents an extraordinary economic breakthrough for analog photographers. Dedicated professional darkroom f-stop timers (such as the RH Designs StopClock Pro or Ilford electronic timers) routinely cost between $350 and $650 on the specialty analog market. Darkplug replaces these specialized laboratory timers with an off-the-shelf $15β$25 Shelly Plus smart plug and an existing iPhone or iPad. Unlike commercial darkroom equipment subject to proprietary component shortages and high repair costs, replacement smart plugs are ubiquitously available from consumer electronics vendors worldwide. Operational overhead is virtually zero: there are no cloud hosting fees, server maintenance costs, or database infrastructure expenses. Power consumption is limited to the nominal 1W standby draw of the smart plug and standard mobile battery usage. Furthermore, Darkplug enforces an absolute air-gapped privacy posture: zero analytics beacons, advertising trackers, or outbound telemetry packets are compiled into the binary, ensuring complete confidentiality for darkroom practitioners and proprietary photographic archives.
Darkplug is a robust, field-tested production solution for analog photographers, art school darkroom labs, and commercial printmakers seeking precise f-stop exposure control without paying exorbitant legacy hardware markups. Its atomic RPC dispatch architecture ensures rock-solid repeatability for standard darkroom exposures ranging from 2 seconds to several minutes. However, it is not recommended for ultra-short strobe exposures or high-speed photographic exposures under 0.3 seconds, where physical relay contact bounce (3β5ms) and tungsten enlarger bulb filament thermal rise and fall times introduce measurable exposure variance. Additionally, dense radio-frequency interference on congested 2.4GHz Wi-Fi networks can delay initial UDP discovery packets. Laboratory technicians should ensure the enlarger lamp cold-filament surge current does not exceed the Shelly relay's 16A resistive switching rating. Installing an inline snubber circuit protects the relay contacts against inductive arcing when switching high-wattage cold-light heads or heavy step-down transformers. For production deployment, photographers should connect their iPhone and Shelly relay to a dedicated, offline 2.4GHz Wi-Fi router without an active uplink to the public internet. Assign a static DHCP reservation to the Shelly plug, and configure Darkplug's relay calibration offset to 80ms in application settings to compensate for mechanical relay armature closure delay, ensuring laboratory-grade repeatability.
Darkplug is 100% free and open-source under an open software license. There are no mandatory monthly subscription fees to access the source code or run it locally.
Unlike expensive dedicated darkroom timers, Darkplug achieves precise f-stop control utilizing hardware you likely already own for a fraction of the cost.
Yes. Darkplug is designed for self-hosting via Docker or direct server deployment. Running on your own infrastructure allows you to maintain direct control over your local compute, database storage, and operational environment.
No account creation or credit card is required to evaluate Darkplug. You can immediately access core features or run it locally without onboarding friction.
You can launch or test Darkplug quickly using the following command: # Open web application directly in browser: open "https://peterszentkiralyi.eu/darkplug/" Visit the official portal at https://peterszentkiralyi.eu/darkplug/ for documentation and guides.
ToolsRadar maintains strict editorial independence. This review of Darkplug was conducted using our standardized 5-pillar evaluation framework (Setup, Code Auditability, Maintenance Vitality, Cost Advantage, and Community Signal). We do not accept paid placements to inflate benchmark scores.
Maintainers of Darkplug and community advocates can display this real-time verification badge in your GitHub README, official documentation, or landing page.
[](https://lordorange.top/tool/darkplug)<a href="https://lordorange.top/tool/darkplug" target="_blank"><img src="https://lordorange.top/badge/darkplug.svg" alt="Featured on ToolsRadar" /></a>Compare other trending developer tools and open-source projects in this space.
Cross-referenced architectural playbooks and category rankings featuring Darkplug.
High-signal, production-tested utilities with transparent codebases and active communities.
Take back data ownership by replacing expensive monthly cloud subscriptions with self-hosted software.
The definitive guide to escaping SaaS subscription sprawl with Coolify, Traefik, Tailscale, and automated S3 backup pipelines.
Navigate the shifting legal landscape of modern open-source licensing, cloud relicensing controversies, and commercial risk.