Skip to content

misery1x/CPP-Spotify-RPC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Spotify RPC Monitor

A real-time Spotify playback monitor that displays your currently playing track information in a clean console interface.

Features

  • 🎡 Real-time track monitoring
  • πŸ‘€ Secure Spotify authentication
  • 🎨 Clean console interface
  • πŸ”„ Automatic playback status updates
  • ⚑ Low resource usage
  • πŸ›‘ Graceful shutdown handling

Prerequisites

Setup

  1. Clone the repository:
git clone https://github.com/yourusername/spotify-rpc.git
cd spotify-rpc
  1. Create a Spotify Application:

    • Go to the Spotify Developer Dashboard
    • Create a new application
    • Add http://localhost:8888/callback to the Redirect URIs
    • Note down your Client ID and Client Secret
  2. Configure the application:

    • Open RPC/spotify_auth.h
    • Replace YOUR_CLIENT_ID with your Spotify application's Client ID
    • Replace YOUR_CLIENT_SECRET with your Spotify application's Client Secret
  3. Build the project:

    • Open the solution in Visual Studio
    • Select Release configuration
    • Build the solution (Ctrl + Shift + B)

Usage

  1. Run the compiled executable
  2. First-time usage will open your browser for Spotify authentication
  3. Grant the requested permissions
  4. The console will display your currently playing track information
  5. Press Ctrl+C to exit cleanly

Features in Detail

Real-time Track Monitoring

  • Displays current track name
  • Shows artist information
  • Displays album name
  • Updates playback status

Clean Interface

Spotify Now Playing Monitor
-------------------------
Track: Song Name
Artist: Artist Name
Album: Album Name
Status: Playing

Authentication

  • Secure OAuth2 authentication
  • Automatic token refresh
  • Persistent token storage
  • Safe credential handling

Dependencies

  • Windows HTTP API (winhttp)
  • Windows Sockets API (ws2_32)
  • nlohmann/json for JSON parsing

Building from Source

Requirements

  • Visual Studio 2019 or later
  • C++20 compatible compiler
  • Windows SDK 10.0 or later

Build Steps

  1. Open Spotify RPC.sln in Visual Studio
  2. Select your desired configuration (Debug/Release)
  3. Build the solution

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Support

If you encounter any issues or have questions, please open an issue on GitHub.

About

🎡 A lightweight, real-time Spotify track monitor with a clean console interface. Perfect for streamers, developers, and music enthusiasts. Zero configuration, just authenticate and go.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages