Nightlight Uploader is a simple tool written in Rust to automate the process of uploading Dead by Daylight end game scoreboard screenshots to the Nightlight website. It eliminates the manual effort required to capture and upload screenshots, providing convenience for Linux users who cannot use the Windows-only desktop app.
- Takes screenshots of the Dead by Daylight end game scoreboard.
- Uploads the screenshots to the Nightlight website.
- Simple configuration using environment variables or directly in the code.
Before building Nightlight Uploader on linux, ensure you have the following dependencies installed:
- libxcb
- libxrandr
- dbus
- OpenSSL
Nightlight Uploader is built using Cargo, the Rust package manager. Follow these steps to build and install the application:
-
Clone the repository:
git clone https://github.com/Nyjako/nightlight-uploader.git
-
Navigate to the project directory:
cd nightlight-uploader
-
Set
NIGHTLIGHT_API_KEY
varible with your Nightlight API key:-
Export before starting app:
export NIGHTLIGHT_API_KEY="your_api_key"
-
In the
.cargo/config.toml
file:[env] NIGHTLIGHT_API_KEY = "your_api_key"
-
directly in the code:
const API_KEY: &str = "your api key";
-
-
Build the project:
cargo build --release
-
Run the application:
cargo run --release
- Press the configured hotkey (default: CTRL + Numpad1) when the end game scoreboard is visible to take a screenshot.
- Nightlight Uploader will automatically upload the screenshot to the Nightlight website.
- To exit the application, press the exit hotkey (default: CTRL + Numpad2).
- You need to verify your uploads on NightLight website
Hotkeys for capturing screenshots and exiting the application can be customized by modifying the code:
let capture_hotkey = HotKey::new(Some(Modifiers::CONTROL), Code::Numpad1);
let exit_hotkey = HotKey::new(Some(Modifiers::CONTROL), Code::Numpad2);
- Automatic detection of the end game scoreboard to streamline the process further.
Contributions are welcome! Feel free to open an issue or submit a pull request on GitHub.
This project is licensed under the MIT License - see the LICENSE file for details.