Skip to content

(FEAT) volume control, like functionality, progress-bar,dimming#3

Open
OfekiAlm wants to merge 1 commit into
fatihak:mainfrom
OfekiAlm:feat/some_enhacements
Open

(FEAT) volume control, like functionality, progress-bar,dimming#3
OfekiAlm wants to merge 1 commit into
fatihak:mainfrom
OfekiAlm:feat/some_enhacements

Conversation

@OfekiAlm
Copy link
Copy Markdown

PrestoDeck Enhancement PR

🎉 Overview

This PR adds several exciting features to enhance the PrestoDeck Spotify controller experience!

✨ New Features

1. 🔊 Volume Control

  • Added volume up/down buttons on the right side of the screen
  • Volume adjusts in 10% increments
  • Current volume level is displayed on screen
  • Synchronized with Spotify's actual volume

2. ❤️ Like/Unlike Songs

  • New heart button to save/remove tracks from your Spotify library
  • Visual feedback with filled/empty heart icons
  • Automatically checks if current track is liked when switching songs

3. ⏱️ Track Progress Bar

  • Beautiful progress bar showing current playback position
  • Time display showing current time and total duration (MM:SS format)
  • Updates in real-time while playing

4. 🌙 Auto-Dim Display

  • Screen automatically dims after 30 seconds of inactivity
  • Returns to full brightness on any interaction
  • Helps save power and reduce screen burn-in

🛠️ Technical Changes

API Enhancements

  • Added new Spotify Web API methods:
    • set_volume() - Control playback volume
    • check_saved_track() - Check if a track is liked
    • save_track() - Add track to user's library
    • remove_saved_track() - Remove track from library
    • delete() method in Session class for DELETE requests

State Management

  • Enhanced State class with new properties:
    • volume - Current volume level (0-100)
    • is_liked - Whether current track is liked
    • progress_ms - Current playback position
    • duration_ms - Track duration
    • last_activity - Timestamp for auto-dim feature
    • is_dimmed - Current dim state

💡 Future Enhancements

Potential future additions:

  • Swipe gestures for next/previous
  • Queue display
  • Playlist selection
  • Audio visualizer
  • Custom themes

Thanks for the inspiration and the original codebase!

@brrock
Copy link
Copy Markdown

brrock commented Aug 25, 2025

The future additions look amazing, but could you try local files playing to like a bluetooth device from the presto @OfekiAlm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants