https://github.com/spooky12/pi-thing
An unofficial Raspberry Pi companion app for Spotify, inspired by the Car Thing
https://github.com/spooky12/pi-thing
dart flutter music raspberry-pi spotify
Last synced: 4 months ago
JSON representation
An unofficial Raspberry Pi companion app for Spotify, inspired by the Car Thing
- Host: GitHub
- URL: https://github.com/spooky12/pi-thing
- Owner: Spooky12
- License: mit
- Created: 2024-11-12T09:13:18.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-29T23:03:30.000Z (about 1 year ago)
- Last Synced: 2025-01-16T07:15:42.139Z (about 1 year ago)
- Topics: dart, flutter, music, raspberry-pi, spotify
- Language: Dart
- Homepage:
- Size: 13.3 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PiThing

An unofficial Raspberry Pi companion app for Spotify inspired by the Car Thing and the [DeskThing](https://github.com/ItsRiprod/DeskThing)
/!\ Only works for Spotify premium users
## Setup
If you want to run the app on your Raspberry Pi you need to follow the instructions on the [flutter-pi repository](https://github.com/ardera/flutter-pi) ortherwise you can run it on Windows/Linux/Macos with a regular Flutter.
To build the app for Raspberry Pi 3 :
```sh
flutterpi_tool build --release --cpu=pi3 --dart-define-from-file=.env
```
Then to transfer it :
```sh
rsync -avzh --progress --stats ./build/flutter_assets/ pi@raspberrypi:/home/pi/pi_thing
```
Finally to run it on the Raspberry Pi :
```sh
flutter-pi --release /home/pi/pi_thing
```
## Spotify configuration
To get the clientId and clientSecret you need to create an app on the [Spotify Developer Dashboard](https://developer.spotify.com/dashboard/applications) and check `Web API`.
The redirect url must be set to `http://{deviceIp}:8888/callback`
Once you have clientId and clientSecret, add them to the `.env`
## Hardware
The PiThing app is developped using this :
- Raspberry Pi 3B Rev 1.2
- 7-inch touchscreen display with a resolution of 1024 × 600 ([docs](https://www.waveshare.com/wiki/7inch_HDMI_LCD_(C)))