Giter VIP home page Giter VIP logo

arduino_spotify's Introduction

Arduino Uno Spotify Playing Song Display

This project is a simple Arduino Uno project that displays the currently playing song on a Spotify account. It uses the Spotify API to get the currently playing song and displays it on a 16x2 i2c LCD screen.

Example Video

example.mp4

Getting Started

Prerequisites

  • Arduino Uno
  • 16x2 i2c LCD Screen
  • Spotify API Client ID and Client Secret

Installing On Arduino

  1. Clone the repository
  2. Open the Arduino IDE
  3. Install the LiquidCrystal_I2C library
  4. Open the main.ino file
  5. Upload the code to your Arduino Uno

Setting Up Spotify API

  1. Go to the Spotify Developer Dashboard
  2. Create a new application
  3. Copy the Client ID and Client Secret
  4. Paste the Client ID and Client Secret into the example_config.json file
  5. Rename the example_config.json file to config.json
  6. Run the code

Built With

  • LiquidCrystal_I2C - The library used to control the LCD screen (it is also available in the Arduino IDE library manager)
  • Spotify API - The API used to get the currently playing song

For automation

  • you can use the windows task scheduler to run the python script on at log on (Don't forget to change the Start in directory to the directory of the python script)

If you like it please leave a star on the project. Also feel free to fork it and say Hi :)

arduino_spotify's People

Contributors

duoslow avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

gtindi

arduino_spotify's Issues

Arduino code improvement

Describe the bug
Sometimes there is a problem in Line2_scrolling and the text is missing at the end

To Reproduce
Steps to reproduce the behavior:

  1. Long text

Expected behavior
it should be correct text, it should be written incompletely like this

Spotipy token expires

Describe the bug
token expires after a certain time.

HTTP Error for GET to https://api.spotify.com/v1/me/player/currently-playing with Params: {} returned 401 due to The access token expired
Traceback (most recent call last):
  File "spotipy\client.py", line 271, in _internal_call
  File "requests\models.py", line 1021, in raise_for_status
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.spotify.com/v1/me/player/currently-playing

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 11, in <module>
  File "spotipy\client.py", line 1232, in current_user_playing_track
  File "spotipy\client.py", line 323, in _get
  File "spotipy\client.py", line 293, in _internal_call
spotipy.exceptions.SpotifyException: http status: 401, code:-1 - https://api.spotify.com/v1/me/player/currently-playing:
 The access token expired, reason: None
[24120] Failed to execute script 'main' due to unhandled exception!

To Reproduce
Steps to reproduce the behavior:

  1. run for a long time

Expected behavior
token needs to be renewed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.