A few questions about hardware and software for my pms

Hey,
I have a few questions. Some regarding hardware, some regarding software.

Software
API:
In a bash script of mine, I used the plex api to check if someone was watching when the scripts was run. When I was trying out the api (this was the first time that I used any api), I got the message that I was unautharised. I searched it up and someone suggested adding your ipadress under unauthenticated devices to access the server. So I added my servers ipadress (as the scripts was run on the server) and it worked.
But now I’m thinking about the word ‘unauthenticated’. I realised that it was probably not the right way to do it. There had to be a safe and secure way to do it, and there is ofcourse; and API key.

With the api, you can see the history of everything that was watched on a server (using /status/sessions/history/all). A friend (that has access to my server) watched a movie lately, so I accessed the API, and did /status/sessions/history/all to see if he actually did (not that I don’t trust him, I don’t care if he watched, but I checked because I wanted to learn the api and see how it works). I got a big list of all the series and movies watched, but couldn’t find the movie he watched. I concluded that it only showed what I watched on my account, nothing of what that friend watched. He watched Spider-Man, so I did | grep "Spider", but it couldn’t find anything.

Questions:
How do I generate an api key for pms to use in my bash script?

How do I integrate it in an request (aka where do I put/type/insert the key)?

What do ? and & mean in a api command/request? How do you use them in a command/request?

Is the api key a general key, or binded to an ip adress, or binded to a computer (aka can the key be used by everyone that has it, or is the key only valid when it is used by a specific ip adress for example)?

When you watch the watchhistory, do you only see the history of the owner of the server? Can you change the history to view the watchhistory of someone else that has access to the server?

Hardware
I am going to build my new server (my current is so old it can’t handle a single 1080p 10bit stream to a chromecast). It is going to run pms mostly, but also pihole, sonarr, radarr, deluge and guacamole. It will have max two 1080p 10bit x265 streams at the time, or one 4k stream. Most of the time one 1080p/720p stream. My plans are the following for hardware:

AMD ryzen 3 3200G with integrated graphics, as I won’t have a gpu because I don’t have plex pass. And I’ll be using the included cooler.

Gigabyte B450 I AORUS PRO WIFI

Kingston DDR4 HyperX FURY 1x8GB 3200mhz (I have 1x8 instead of 2x4 so that I could upgrade to 16gb if I want to)

Seagate 2tb hdd (I already have 1.7tb in my current server, the 2tb will be added to that)

Gigabyte 256B nvme m.2 ssd

Questions:

The thing is the following. I need a case but I just can’t find one. I’m searching for one like the SilverStone Technology DS380. Small, has enough bays for the hdd’s, etc. I need 4 3.5" bays for hdd’s, and I’d prefer an additional place for an 2.5" ssd. I’d prefer the case under 100 euros. And I need to find a psu, but there is a chance with these kind of cases that there is a psu included. What case do you advice?

The 256gb m.2 isn’t big enough for the os and all the applications (currently everything without plexmedia is 550gb). My plan is for a 1TB 2.5" ssd instead of the M.2. What do you think?

Do you think this is good enough hardware to run those streams?

Any help would be greatly appreciated!

I’m no expert and can’t answer most of the questions, but as far as the API, I believe it is based on REST

I believe that ? part is the method or command or operation to be requested/performed, and & are ancillary options or parameters for the requested operation.

as far as the session history, I believe that is YOUR history, not the user you are referring to.

you might check out the web app TAUTULLI, the code there may better inform you on what api calls can do/can provide for you.

this post @ Big Media folder? Make smaller video preview thumbnails! gives an example of using the api via command line, and a link to a simple way how to get a token.

see also @ Authenticating with Plex

if you just want an easy way to see history within a browser, just go to @ Plex Web > settings > dashboard > scroll down to history section (this may require plex pass I don’t know)

full history will get a filterable list of all history
image

May I direct you to our support pages where many of the questions are already answered.

Keyword searches may also be performed.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.