npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@devbab/plex-tags

v1.0.9

Published

Add Faces and Places tags to photos in Plex Database

Downloads

2

Readme

plex-tags

Plex is an amazing software to organize, stream, and share your personal multimedia collections, including photos.

Plex however lacks two capabilities:

  • Add Faces tags from EXIF in photos, which can be automatically recognised by software like Tag That Photo.
  • Add country, city, district names of the location where your photos were taken.

This package allows you to scan your Plex photo database, so as to extract the FACE tags and the GPS location.

 


Warning - Achtung - Alarm - Attention

1/ Windows only

This package has been tested on Win10 only. Macos, Linux remains to be checked !

 

2/ The various scripts interact directly with Plex database.

Make sure you have done a backup of your database before using this script.

In case of any issues, restore your database.

 

It is certainly a good idea to stop your Plex server while performing any actions.

To locate the database file, run node plex-tools.js -h. The last line will tell you where the database is.

 


Installation

1/ it is assumed that node.js >16.0 and npm are already installed.

Install the package as follow:

npm install plex-tags

 


Usage

1/ Start by doing a BACKUP of your database. Then double check that your backup is successful.

2/ Register for a free account at HERE Maps and create a API_KEY.

3/ put this key in a .env file, see env-example for the format.

4/ Patch your database to add a few useful fields for this tool.

node plex-tools.js --patch

5/ Scan your database of photo.

node plex-scan.js --scan

Have a coffee while it's running... Once finished, if some of the photos do have a GPS location, the script wil indicate:

XX coords sent for reverse geocoding
To check status: node plex-geo.js --check 2hToOzrzZmuu9UXyIJUDWBElXIOUTUVH

Wait a few seconds/minutes and run the command that was indicated

node plex-geo.js --check 2hToOzrzZmuu9UXyIJUDWBElXIOUTUVH

If the database has tens of thousands of photo, you may have to repeat step 5.

6/ Go to Plex and enjoy your photos !

 


A few options

you may list faces, places, etc using plex-tools.js

See all options by running:

node plex-tools.js --help

 

Missing thumbnails

sometimes, thumbnails are missing for some photos.

run the following command to regenerate them:

node plex-thumb.js

 


© 2022 devbab