I still have to figure out how to get plexamp to start on boot. Go to the url provided, copy claim code, paste into terminal window where indicated. (if you use rpi-imager you can do all that at one shot.) Write Raspberry Pi OS 64 bit (full, not lite) to sd card.ĭo updates, set locales, etc if you didn't do that while writing Rasbpios to sd card. Overall, the biggest changes: This is a beta release, so we’d appreciate your feedback on it. The audio engine inside is the exact same upgraded piece of awesome which powers our iOS and Android apps. Most all of my music is in flac format, so trying to eliminate anything that would downgrade that (whether I could hear the difference is up for argument, but hey, it makes me feel better!) Instructions (terse) follow: We’re pleased to announce the next release of Plexamp for Raspberry Pi, with massive internal changes and improvements. I now have 4 instances of plexamp running, 2 on old PCs and 2 on pi4s. I also have it running on a spare linux (xubuntu 22.04lts) box, a Dell pc with intel hd audio on the motherboard, it sounds much better than the pi using the onboard 3.5mm audio jack. Note that I am currently using the 3.5mm audio jack on the pi, I have a dac hat on order, it'll be here tomorrow. I say kinda because I had to install plexamp headless on a full version of raspberry pi os 64 bit when I did it on 64 bit lite the sound was muddy and hard to even tell what song was playing. After a few days of failures, I finally got plexamp running headless (kinda) on a raspberry pi 4b. get ( "PLEX_TOKEN" ) BASE_URL = f " /* Make tap overlays transparent */ md-card. get ( "PLEX_SERVER" ) PLEX_TOKEN = environ. get ( "MQTT_BROKER" ) PLEX_SERVER = environ. Since I wanted to update Node-RED and everything else in the house already speaks MQTT, the way forward was obvious, and it took me all of 60 lines of Python to build a simple MQTT relay for Plex playback events.Īnd since it’s a 12-factor app deployed on piku, you can even call it a microservice:įrom functools import lru_cache from json import dumps from os import environ from sys import exit from plexapi.base import PlexObject from plexapi.client import PlexClient from rver import PlexServer from time import sleep import as mqtt MQTT_BROKER = environ. With the UI mocked up, I decided to get started on how to actually tap into Plex. For extra polish, I also designed this so that I could set the -grey CSS variable when playback was paused (which, alas, I had to give up on).Set the cover art width to auto (unlike shown) and you will also be able to show movie posters and the like (if you want to).Using the :before pseudo-element can be both friend and foe.Rotating the cover art 180 o before blurring it and sticking it as a background gives a very nice look (and saves you one HTTP request for another image, etc.).The first part was laying out the UI, which I quickly mocked up in VS Code: Yeah, I have a fair amount of Portuguese music CDs ripped on my Plex server. This meant talking to the Node-RED instance that runs the display, customizing the dashboard to include tailored HTML and CSS and delving a bit into the Plex APIs. The display turns off every few minutes automatically, and it needs to come back on to display the album art.The display defaults to showing my office dashboard, and I can’t just take it over (or waste it on a single purpose).I wanted to have both my Echo Listen or PlexAmp update the display. As it happens, yesterday I came across this neat “Now Playing” desktop display build, and since I have an official 7” Raspberry Pi LCD on my desk for controlling my lights, I decided to do something similar, but to display what’s currently playing on Plex (since I use PlexAmp on my Mac or Windows laptop to listen to my music collection).Īs usual, things got slightly out of hand, because: Today’s a bank holiday, so I decided to spend a little while having fun. 10 min read Building a Now Playing Display.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |