mirror of
https://github.com/bnair123/MusicAnalyser.git
synced 2026-02-25 11:46:07 +00:00
Fixed and added all the stats_service.py methods
This commit is contained in:
@@ -5,7 +5,10 @@ A personal analytics dashboard for your music listening habits, powered by Pytho
|
||||
## Features
|
||||
|
||||
- **Continuous Ingestion**: Polls Spotify every 60 seconds to record your listening history.
|
||||
- **Data Enrichment**: Automatically fetches **Genres** (via Spotify) and **Audio Features** (Energy, BPM, Mood via ReccoBeats).
|
||||
- **Data Enrichment**:
|
||||
- **Genres & Images** (via Spotify)
|
||||
- **Audio Features** (Energy, BPM, Mood via ReccoBeats)
|
||||
- **Lyrics & Metadata** (via Genius)
|
||||
- **Dashboard**: A responsive UI (Ant Design) to view your history, stats, and "Vibes".
|
||||
- **AI Ready**: Database schema and environment prepared for Gemini AI integration.
|
||||
|
||||
@@ -18,6 +21,7 @@ You can run this application using Docker Compose. You have two options: using t
|
||||
- **Spotify Developer Credentials** (Client ID & Secret).
|
||||
- **Spotify Refresh Token** (Run `backend/scripts/get_refresh_token.py` locally to generate this).
|
||||
- **Google Gemini API Key**.
|
||||
- **Genius API Token** (Optional, for lyrics).
|
||||
|
||||
### 2. Configuration (`.env`)
|
||||
|
||||
@@ -28,6 +32,7 @@ SPOTIFY_CLIENT_ID="your_client_id"
|
||||
SPOTIFY_CLIENT_SECRET="your_client_secret"
|
||||
SPOTIFY_REFRESH_TOKEN="your_refresh_token"
|
||||
GEMINI_API_KEY="your_gemini_key"
|
||||
GENIUS_ACCESS_TOKEN="your_genius_token"
|
||||
```
|
||||
|
||||
### 3. Run with Docker Compose
|
||||
|
||||
Reference in New Issue
Block a user