diff --git a/.gitignore b/.gitignore index 4b06905..1dac76a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ +.cache +.DS_Store *.log *.png -.cache inky/* \ No newline at end of file diff --git a/README.md b/README.md index d5a35ee..2d29970 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,36 @@ -# Spotipi E-Ink -### Overview -This project is to display information on a 5.7" e-ink from the Spotify web api. -### Getting Started -* Create a new application within the [Spotify developer dashboard](https://developer.spotify.com/dashboard/applications)
-* Edit the settings of the application within the dashboard. - * Set the redirect uri to any local url such as http://localhost/redirect - -* Enable SPI and I2C under "Interface Options" with the command: -``` +# SpotiPi E-Ink + +## Overview + +This project is to display information on a 5.7" e-ink using the [Spotify web api](https://developer.spotify.com/documentation/web-api), check out a demo on [YouTube](https://www.youtube.com/watch?v=uQYIAYa27ds). + +--- + +## Quick Start + +### Create Spotify Developer Account + +- Create a new application within the [Spotify developer dashboard](https://developer.spotify.com/dashboard/applications) +- Edit the settings of the application within the dashboard + - Set the redirect uri to any local url such as http://localhost/redirect + +### Configure RaspberryPi + +- Enable `SPI` and `I2C` under "Interface Options" + +```sh sudo raspi-config ``` -* Download the install script -``` +- Download the install script + +```sh wget https://raw.githubusercontent.com/ryanwa18/spotipi-eink/main/setup.sh chmod +x setup.sh ``` -* Install the software:
-``` +- Install the software + +```sh sudo bash setup.sh ``` diff --git a/images/default.png b/images/default.png index 3326c18..b919e04 100644 Binary files a/images/default.png and b/images/default.png differ diff --git a/python/client/app.py b/python/client/app.py index 8b5ebf0..881bc09 100644 --- a/python/client/app.py +++ b/python/client/app.py @@ -82,5 +82,5 @@ def handle_refresh_rate(): job = manager.RestartUnit('spotipi.service', 'fail') return render_template('index.html', brightness = brightness, width = width, height = height, refresh_rate = int(request.form['refresh_rate']), power = power) -app.run(host='0.0.0.0', port=80) +app.run(host='0.0.0.0', port=80) diff --git a/python/client/spotipi.html b/python/client/spotipi.html index c46fa87..b9b5205 100644 --- a/python/client/spotipi.html +++ b/python/client/spotipi.html @@ -1,98 +1,122 @@ - - - - -
- -
-
-

- Are You Feeling Sad? -

-

- Little Dragon -

-
- + @font-face { + font-family: "CircularStd-Bold"; + src: url("./static/CircularStd-Bold.otf"); + } + + + +
+ +
+
+

Are You Feeling Sad?

+

Little Dragon

+
+ diff --git a/python/client/static/kanye.jpg b/python/client/static/kanye.jpg index 75138ab..81d729f 100644 Binary files a/python/client/static/kanye.jpg and b/python/client/static/kanye.jpg differ diff --git a/python/client/static/logo.png b/python/client/static/logo.png index 661ac2e..fcf2738 100644 Binary files a/python/client/static/logo.png and b/python/client/static/logo.png differ diff --git a/python/client/templates/index.html b/python/client/templates/index.html index 8229128..923bd30 100644 --- a/python/client/templates/index.html +++ b/python/client/templates/index.html @@ -10,7 +10,7 @@ - + @@ -37,12 +37,12 @@ } - + - +