BRiTriggered User Guide
Introduction
BRiTriggered is a powerful application designed specifically for slot car enthusiasts who want to enhance their layouts with motion-triggered actions. Using IP cameras with RTSP support, BRiTriggered can detect motion in specific areas of your track and trigger various actions like playing sounds, sending keystrokes, or launching programs.
This guide will walk you through setting up and using BRiTriggered effectively with your slot car layout.
Getting Started
System Requirements
- Operating System: Windows 10/11 (64-bit)
- Memory: 64GB RAM recommended
- Graphics: NVIDIA RTX 3060 or better
- Software: Python 3.8 or later
- Hardware: IP camera with RTSP support
- Additional Software: OBS Studio (if you're using this for automated scene switching)
Installation
- Download BRiTriggered from the official source
- Extract the zip file to your preferred location
- Run
Setup.exe
as Administrator
- Choose "Full Install" and follow the on-screen prompts
- Once complete, run BRiTriggered.exe
Important: Only download from the official source at
techfocus.org to ensure you get the authentic, malware-free software.
Alternative Installation Methods
If you prefer not to use the automatic installer, BRiTriggered offers two alternative installation methods:
Install Dependencies Only
If you already have Python installed or prefer to use your own Python environment:
- Run
Setup.exe
- Select "Dependencies Only" at the installation options menu
- Wait for the installation to complete
- When completed, run BRiTriggered.exe
Manual Installation with requirements.txt
For complete control over the installation process:
- Install Python 3.10 or later:
- Visit the Python download page: https://www.python.org/downloads/release/python-31011/
- Scroll down to "Files" and click on "Windows installer (64-bit)"
- Once downloaded, double-click the installer file
- IMPORTANT: Check the box that says "Add Python 3.10 to PATH"
- Click "Install Now" and wait for installation to complete
- Open a command prompt as Administrator
- Navigate to the BRiTriggered directory:
cd path\to\BRiTriggered
- Install dependencies via pip:
pip install -r requirements.txt
- Once dependencies are installed, run BRiTriggered.exe
The requirements.txt file includes all necessary dependencies such as PyQt5, OpenCV, NumPy, PyGame, cryptography, and more.
Troubleshooting Common Installation Issues
- If "Python was not found" appears: Make sure you checked "Add Python to PATH" during installation
- If "pip is not recognized": Try using
python -m pip install -r requirements.txt
instead
- For package installation errors: Make sure you have a good internet connection
- If you see "DLL missing" errors: Install the Microsoft Visual C++ Redistributable 2015-2022:
https://www.microsoft.com/en-us/download/details.aspx?id=48145
Uninstallation
To remove BRiTriggered:
- Simply delete the BRiTriggered folder
If you want to uninstall Python (optional):
- Go to Windows Settings > Apps
- Find "Python 3.10" and "Python Launcher" in the list
- Select each and click Uninstall
Note: If you're not sure whether you should remove Python, it's safer to leave it installed as it may be used by other applications on your system.
First Run
When you first launch BRiTriggered, you'll need to configure your camera and set up your first hotspot:
- Click the Camera icon in the toolbar to set up your camera connection
- Enter your camera credentials (see Camera Setup section for details)
- Once connected, you'll see the camera feed in the main window
- Use the Hotspot Editor to create your first motion detection area
Camera Setup
Camera Connection
To connect BRiTriggered to your camera:
- Click the Camera icon in the top toolbar
- Enter the following information:
- Username: Your camera's username (typically "admin")
- Password: Your camera's password
- IP Address: Your camera's IP address on your network
- Port Number: The RTSP port (typically 80 or 554)
- Adjust the Motion Sensitivity slider to set detection sensitivity
- Click "Save" to connect to your camera
If you need to start over with default camera settings, click the "Reset Camera" button in the lower left of the dialog. This will restore all settings to default values.
RTSP Configuration
BRiTriggered works best with Amcrest UltraHD 4K PoE cameras, but should work with any camera that supports RTSP streaming. The RTSP URL is typically formatted as:
rtsp://username:password@ip-address:port/cam/realmonitor?channel=1&subtype=0
BRiTriggered will automatically construct this URL from the camera settings you provide.
Security Considerations
BRiTriggered takes security seriously:
- Password Encryption: For your security, as soon as you enter your camera password, it is immediately encrypted using machine-specific encryption
- Passwords are never stored in plain text, and all config files use the encrypted version
- Decryption only happens in memory at the moment of establishing a connection with your camera
- For added security, consider setting up your cameras on a separate network segment
Working with Hotspots
Creating Hotspots
Hotspots are areas in the camera view where motion will be detected:
- Click the "Add Hotspot" button in the toolbar
- Click and drag on the camera feed to define the hotspot area
- In the configuration dialog that appears:
- Give your hotspot a descriptive name
- Select what action should trigger when motion is detected
- Set a specific cooldown time (optional)
- Choose a color for the hotspot outline
- Click "Save" to create the hotspot
Editing Hotspots
To modify an existing hotspot:
- Right-click on the hotspot in the camera view
- Select "Edit Hotspot" from the context menu
- Make your changes in the configuration dialog
- Click "Save" to apply your changes
You can also resize a hotspot by clicking and dragging its corners.
Deleting Hotspots
To remove a hotspot:
- Right-click on the hotspot in the camera view
- Select "Delete Hotspot" from the context menu
- Confirm the deletion when prompted
Trigger Actions
Keystrokes
You can configure BRiTriggered to send keyboard shortcuts when motion is detected:
- When creating or editing a hotspot, select "Keystroke" as the action type
- Click in the "Key Combination" field
- Press the key or key combination you want to trigger
- The keystroke will be recorded and displayed in the field
Common uses include F-keys (F1-F12) for OBS scene switching or media control keys.
Sound Effects
To play a sound when motion is detected:
- When creating or editing a hotspot, select "Sound" as the action type
- Click "Browse" to select a sound file (.wav or .mp3)
- Adjust the volume slider if needed
- Click "Test" to preview the sound
BRiTriggered comes with sample sounds in the "sounds" folder, but you can use any .wav or .mp3 file.
Launching Programs
You can launch external applications when motion is detected:
- When creating or editing a hotspot, select "Program" as the action type
- Click "Browse" to select an executable (.exe) file
- Optionally enter command-line arguments
- Choose whether the program should run minimized
This feature is useful for launching scripts or utilities when specific events occur on your layout.
OBS Integration
Complete Documentation: For detailed instructions, you can download our
OBS Integration Guide (PDF) with step-by-step setup instructions and screenshots.
Scene Switching
One of the most powerful features of BRiTriggered is its ability to control OBS Studio scenes:
- Ensure OBS Studio is installed and configured with your scenes
- In OBS, go to File > Settings > Hotkeys
- Assign hotkeys to each scene you want to control
- In BRiTriggered, create hotspots that use the same keystrokes
When motion is detected, BRiTriggered will send the keystroke to OBS, switching to the corresponding scene.
Setting Up Hotkeys
For optimal OBS integration:
- Use function keys (F1-F12) for scene switching
- Ensure the hotkeys don't conflict with other applications
- Test each hotkey to verify it triggers the correct scene
- Consider using modifier keys (Ctrl, Alt, Shift) for more combinations
Best Practices
Tips for the best OBS integration experience:
- Keep OBS running before launching BRiTriggered
- Set appropriate cooldown times to prevent rapid scene switching
- Position your camera to minimize false triggers
- Consider using Studio Mode in OBS for smoother transitions
- Use the "Global Cooldown" option if you want to prevent multiple scenes from triggering at once
Settings & Configuration
Cooldown Control
Cooldown prevents excessive triggering when continuous motion is detected:
- Global Cooldown: When enabled, all hotspots share a single cooldown timer
- Cooldown Duration: Time to wait after a trigger before allowing new triggers
- Per-Hotspot Cooldown: Each hotspot can have its own cooldown time, overriding the global setting
To access cooldown settings, click the gear icon in the toolbar and go to the "Cooldown" tab.
Motion Sensitivity
Adjusting sensitivity helps reduce false triggers or increase responsiveness:
- Higher sensitivity detects smaller movements but may cause false triggers
- Lower sensitivity requires more significant motion but reduces false triggers
- The optimal setting depends on your camera positioning and lighting conditions
You can adjust sensitivity in the Camera Setup dialog.
Debug Logging
For troubleshooting issues, BRiTriggered offers comprehensive logging:
- Click the gear icon in the toolbar
- Go to the "Advanced" tab
- Enable "Debug Logging"
Log files are stored in the "logs" folder with the following characteristics:
- Date-time filename format for easy identification
- Automatic rotation when files reach 90MB in size
- Only the 5 most recent logs are kept to conserve disk space
Troubleshooting
Camera Issues
Problem |
Solution |
Cannot connect to camera |
- Verify the camera's IP address is correct
- Check username and password
- Ensure the camera is powered on and connected to your network
- Try the "Reset Camera" button to restore default settings
|
Camera feed is laggy |
- Check your network connection
- Reduce the resolution in your camera settings
- Close other applications using network bandwidth
|
Camera disconnects frequently |
- Check for network issues or interference
- Ensure your camera has a stable power supply
- Update your camera's firmware
|
Common Errors
Error Message |
Solution |
"Failed to connect to camera" |
- Check camera credentials and network connectivity
- Verify the camera supports RTSP streaming
- Make sure the port is not blocked by a firewall
|
"Could not trigger action" |
- Ensure the target application (e.g., OBS) is running
- Check that the keystroke doesn't conflict with other applications
- Verify that the sound file or program path still exists
|
"Configuration file corrupted" |
- Restore from a backup if available
- Delete the corrupted config file and let BRiTriggered create a new one
- You'll need to reconfigure your settings and hotspots
|
Credits & Acknowledgements
BRiTriggered was inspired by the amazing slot car community and I'd like to express my sincere thanks to everyone who has helped me along in the hobby:
- Boone Haury
- Steve Socks
- Neil Guerriero
- Dave Volk
- Mark Tuma
- Everyone in Boone's Patreon group
- Joe Irreras
- John Webber
- Rob Wessling
- Patrick Langa
- Greg Gaub
- Kevin Sharpe
- And most especially to Ann, my wife, who has patiently listened to countless programming complaints and supported this project from the beginning!
Thank you for your support, advice, and friendship along the way! Your suggestions and encouragement inspire me to create stuff like this!
Frequently Asked Questions
How many cameras can I use with BRiTriggered?
While BRiTriggered technically supports multiple cameras, each additional camera significantly increases CPU and memory usage. For optimal performance, it's recommended to use 1-2 cameras per instance of BRiTriggered. If you need more cameras, consider running multiple instances on separate computers.
For slot car layouts, a single camera mounted on the ceiling looking down at the entire track is typically the most efficient setup. This is the approach used by the developer for all OBS scene switching on his own layout.
Does BRiTriggered work with wireless cameras?
Yes, as long as your wireless camera supports RTSP streaming and is on the same network as your computer. However, wired cameras typically provide more stable and higher-quality streams, which may result in better motion detection reliability.
Can I use BRiTriggered with cameras other than Amcrest?
Yes, BRiTriggered should work with any camera that supports RTSP streaming. However, it has been specifically tested and optimized for Amcrest UltraHD 4K PoE cameras. You may need to adjust your camera's RTSP URL format in the advanced settings.
Will BRiTriggered work on Linux or macOS?
Currently, BRiTriggered is only available for Windows 10/11 (64-bit). There are no plans for Linux or macOS support at this time.
Can I trigger custom scripts or batch files?
Yes, you can use the "Program" action type to launch any executable file, including .bat or .ps1 files (for PowerShell scripts). This allows for virtually unlimited customization of triggered actions.
How can I back up my BRiTriggered configuration?
Your configuration is stored in the "config/config.json" file. To back it up, simply make a copy of this file. To restore, replace it with your backup copy. Note that camera passwords are encrypted specifically for your machine, so restoring on a different computer may require re-entering camera credentials.
Is there a limit to how many hotspots I can create?
There is no hard-coded limit to the number of hotspots you can create. However, each active hotspot requires processing power, so performance may degrade with too many hotspots. For optimal performance, it's recommended to use no more than 10-15 hotspots per camera.
How sensitive is the motion detection?
Motion detection sensitivity is adjustable using the sensitivity slider in the Camera Setup dialog. The algorithm detects changes in pixel values between frames, so factors like lighting conditions, camera quality, and the nature of the motion all affect detection reliability.
Can I get support for issues with BRiTriggered?
Due to time constraints, support is limited. Please check this guide and the FAQ thoroughly before requesting help. If you do need assistance, include detailed information about your issue, your system specifications, and any relevant log files when contacting the developer.
What are the third-party dependencies used by BRiTriggered?
BRiTriggered uses several open-source libraries, including:
- PyQt5 (GPL v3) - GUI framework
- OpenCV (BSD 3-Clause) - Video processing and motion detection
- NumPy (BSD) - Numerical operations
- Pygame (LGPL) - Sound playback
- keyboard (MIT) - Keyboard input handling
- cryptography (BSD/Apache 2.0) - Secure storage of camera credentials
- PyMuPDF (AGPL v3) - PDF rendering for documentation
- pathlib (MIT) - Cross-platform path handling
For detailed version information, see the requirements.txt file included in the download.