staffingopk.blogg.se

Install plex server on raspberry pi
Install plex server on raspberry pi










Wherever you’re using the API to grab data – be it inside a while loop or just in straight-forward code – you need to have this line first. Plex_url = 'YOUR URL HERE' API Authorisation Then you add a couple of lines for your authorisation token and URL that we grabbed in the last section: Importsįrom rver import PlexServer API Authorisation Details Let’s run through a simple example of using the API to get your head around what needs to go where. There’s no point trying to make the LCD work at the same time as the API, so I initially just got the API to print into a terminal to allow me to work out how to use it in a quick and easy way.

install plex server on raspberry pi

Now you have everything you need to start using the API. Your token should look something like this ( a big mess of numbers and letters – mine is 20 characters long): Your URL should look something like this ( starts with the https part, ends with 32400): Your Plex URL and token are taken from the XML page URL You can do this on your PC/laptop – you don’t have to do it on the Pi: First, log in to your Plex server using a desktop browser. You can get both the token and URL in one hit. Naturally you can’t start poking around inside someone’s server without authorisation, so we need to grab a token and server URL to prove it’s yours. That’s the library installed, nothing more to it. Then use this command to install the library (I use sudo here as it wouldn’t work quite right without it): Make sure you’re in your home directory first: I used the following commands to add the Plex API Python library to my Pi.

install plex server on raspberry pi

It’s a bit of fun really, none of this information is vital to me, but it’s just another interesting thing to have on my desk. Number of users currently streaming from the server.I have very little experience with APIs so I only opted to pull a few pieces of data for this Plex server monitor project: Plex API is an unofficial Plex API that lets you read data and do all sorts of fun stuff with your Plex server. I thought it’d be fund to use some old Raspberry Pi kit to create a little Plex server monitor using the unofficial PlexAPI and a 20×4 LCD module. I ripped my DVD collection on to a hard drive a long time ago, and I now stream that collection to my devices using a Plex server. No sir.Īs you can imagine, I’m not one to be pushing plastic into holes to watch a film.

install plex server on raspberry pi

They have no place in today’s world of self-driving cars, WiFi thermostats and smart washing machines. DVDs – why do they still exist? Archaic space-consuming biscuits of polycarbonate.












Install plex server on raspberry pi