You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -79,24 +97,26 @@ The system can be configured through a JSON configuration file that allows users
79
97
80
98
81
99
## Hardware Requirements
82
-
- Raspberry Pi 3b or 4 (NOT RPI5!)
83
-
-- Amazon Affiliate Link: Raspberry Pi 4 4GB (https://amzn.to/4dJixuX)
84
-
- Adafruit RGB Matrix Bonnet/HAT
85
-
-- https://www.adafruit.com/product/3211
86
-
- 2x LED Matrix panels (64x32) (Designed for 128x32 but has a lot of dynamic scaling elements that could work on a variety of displays, pixel pitch is user preference)
87
-
-- https://www.adafruit.com/product/2278
88
-
- 5V 4A DC Power Supply for Adafruit RGB HAT
89
-
-- https://www.adafruit.com/product/1466
100
+
- Raspberry Pi 3b or 4 (NOT RPI5!) : Amazon Affiliate Link: Raspberry Pi 4 4GB (https://amzn.to/4dJixuX)
- 2x LED Matrix panels (64x32) (Designed for 128x32 but has a lot of dynamic scaling elements that could work on a variety of displays, pixel pitch is user preference) : https://www.adafruit.com/product/2278
103
+
- 5V 4A DC Power Supply for Adafruit RGB HAT : https://www.adafruit.com/product/1466
90
104
91
105
## Optional but recommended mod for Adafruit RGB Matrix Bonnet
92
106
- By soldering a jumper between pins 4 and 18, you can run a specialized command for polling the matrix display. This provides better brightness, less flicker, and better color.
93
-
- If you do the mod, we will use the command: --led-gpio-mapping=adafruit-hat-pwm, otherwise just use --led-gpio-mapping=adafruit-hat
107
+
- If you do the mod, we will use the default config with led-gpio-mapping=adafruit-hat-pwm, otherwise just adjust your mapping in config.json to adafruit-hat
94
108
- More information available: https://github.com/hzeller/rpi-rgb-led-matrix/tree/master?tab=readme-ov-file
I 3D printed stands to keep the panels upright and snug. STL Files are included in the Repo but are also available at https://www.thingiverse.com/thing:5169867 Thanks to "Randomwire" for making these for the 4mm Pixel Pitch LED Matrix.
114
+
115
+
These are not required and you can probably rig up something basic with stuff you have around the house. I used these screws: https://amzn.to/4mFwNJp (Amazon Affiliate Link)
1.Edit `config/config.json` with your preferences via `sudo nano config/config.json`
236
-
237
-
238
-
## API Keys
239
-
240
-
For sensitive settings like API keys:
241
-
1. Copy the template: `cp config/config_secrets.template.json config/config_secrets.json`
242
-
243
-
2. Edit `config/config_secrets.json` with your API keys via `sudo nano config/config_secrets.json`
244
-
245
-
3. Ctrl + X to exit, Y to overwrite, Enter to save
246
-
247
-
248
-
249
-
250
-
### YouTube Display Configuration
251
-
252
-
The YouTube display module shows channel statistics for a specified YouTube channel. To configure it:
253
-
254
-
1. In `config/config.json`, add the following section:
255
-
```json
256
-
{
257
-
"youtube": {
258
-
"enabled": true,
259
-
"update_interval": 300// Update interval in seconds (default: 300)
260
-
}
261
-
}
262
-
```
263
-
264
-
2. In `config/config_secrets.json`, add your YouTube API credentials:
265
-
```json
266
-
{
267
-
"youtube": {
268
-
"api_key": "YOUR_YOUTUBE_API_KEY",
269
-
"channel_id": "YOUR_CHANNEL_ID"
270
-
}
271
-
}
272
-
```
273
-
274
-
To get these credentials:
275
-
1. Go to the [Google Cloud Console](https://console.cloud.google.com/)
276
-
2. Create a new project or select an existing one
277
-
3. Enable the YouTube Data API v3
278
-
4. Create credentials (API key)
279
-
5. For the channel ID, you can find it in your YouTube channel URL or use the YouTube Data API to look it up
280
-
281
-
### Calendar Display Configuration
253
+
## Calendar Display Configuration
282
254
283
255
The calendar display module shows upcoming events from your Google Calendar. To configure it:
284
256
@@ -313,7 +285,7 @@ The calendar display will show:
313
285
- Event title (wrapped to fit the display)
314
286
- Up to 3 upcoming events (configurable)
315
287
316
-
###Music Display Configuration
288
+
## Music Display Configuration
317
289
318
290
The Music Display module shows information about the currently playing track from either Spotify or YouTube Music (via the [YouTube Music Desktop App](https://ytmdesktop.app/) companion server).
319
291
@@ -335,7 +307,7 @@ The Music Display module shows information about the currently playing track fro
335
307
*`"spotify"`: Only uses Spotify. Ignores YTM.
336
308
*`"ytm"`: Only uses the YTM Companion Server. Ignores Spotify.
337
309
338
-
## Spotify Authentication for Music Display
310
+
###Spotify Authentication for Music Display
339
311
340
312
If you are using the Spotify integration to display currently playing music, you will need to authenticate with Spotify. This project uses an authentication flow that requires a one-time setup. Due to how the display controller script may run with specific user permissions (even when using `sudo`), the following steps are crucial:
341
313
@@ -389,6 +361,37 @@ The `authenticate_spotify.py` script, when run with `sudo`, creates `config/spot
389
361
390
362
The system can display currently playing music information from [YouTube Music Desktop (YTMD)](https://ytmdesktop.app/) via its Companion server API.
391
363
364
+
### YouTube Display Configuration & API Key
365
+
366
+
The YouTube display module shows channel statistics for a specified YouTube channel. To configure it:
367
+
368
+
1. In `config/config.json`, add the following section:
369
+
```json
370
+
{
371
+
"youtube": {
372
+
"enabled": true,
373
+
"update_interval": 300// Update interval in seconds (default: 300)
374
+
}
375
+
}
376
+
```
377
+
378
+
2. In `config/config_secrets.json`, add your YouTube API credentials:
379
+
```json
380
+
{
381
+
"youtube": {
382
+
"api_key": "YOUR_YOUTUBE_API_KEY",
383
+
"channel_id": "YOUR_CHANNEL_ID"
384
+
}
385
+
}
386
+
```
387
+
388
+
To get these credentials:
389
+
1. Go to the [Google Cloud Console](https://console.cloud.google.com/)
390
+
2. Create a new project or select an existing one
391
+
3. Enable the YouTube Data API v3
392
+
4. Create credentials (API key)
393
+
5. For the channel ID, you can find it in your YouTube channel URL or use the YouTube Data API to look it up
394
+
392
395
**Setup:**
393
396
394
397
1.**Enable Companion Server in YTMD:**
@@ -418,6 +421,7 @@ The system can display currently playing music information from [YouTube Music D
418
421
* Connection errors: Double-check the `YTM_COMPANION_URL` in `config.json` matches what YTMD's companion server is set to.
419
422
* Ensure your firewall (Windows Firewall) allows YTM Desktop app to access local networks.
0 commit comments