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

plex-watcher

v0.1.7

Published

Plex Watcher allows you to know when someone starts, stops, or pauses watching movies on your Plex server. You can be notifed via desktop notification or email. Also you can view the activity via the logs.

Downloads

12

Readme

plex-watcher

Plex Watcher allows you to know when someone starts, stops, or pauses watching movies on your Plex server. You can be notifed via desktop notification or email. Also you can view the activity via the logs.

Install from NPM

  • NodeJS: Download NodeJS here
  • Run: npm i -g plex-watcher

Run

  • Run: plex-watcher [arguments]
  • Either configure the .env (see below) or use the command line arguments
  • Run with arguments example: plex-watcher --v --hostname=192.168.1.1 --port=35000 --username=myname --password=12345 --notify=true --emailSend=true --email=gmail --emailPort=465 [email protected] --emailPassword=s2edwd223 --timer=5000
  • If argument not found, will look for them in the .env file
  • Use flag '--v' for verbose to the console

Install from Github

Dependencies

  • Git: If a Mac, should already be installed. If Windows, install from here.

Get the code

  • Clone the repository by running: git clone https://github.com/gbourne1/plex-watcher.git
  • Run: npm install

Start the Plex Watcher

  • Run: npm run start
  • Use -- before arguments. For example: npm run start -- --v --hostname=192.168.1.1 --port=35000 --username=myname --password=12345 --notify=true --emailSend=true --email=gmail --emailPort=465 [email protected] --emailPassword=s2edwd223 --timer=5000
  • Use flag '--v' for verbose to the console

Configure .env

  1. Copy the .env-example to .env
  2. Modify the .env file and add settings for Plex Server and/or Email

The Plex settings requires your username, password, URL/IP of the Plex server, and port. The (either external or internal) and port can be found under Settings->Server->Remote Access.

You may also set the frequency of checking of activity by setting TIMER_MILLISECONDS. The default time is 5 minutes.

Notifications

  • If you want desktop notification, set SEND_NOTIFY=true otherwise set SEND_NOTIFY=false.
  • If you want an email notification, set SEND_EMAIL=ture otherwise set SEND_EMAIL=false.

Setting email

  1. Enter the email service (i.e. gmail)
  2. The port (gmail is 465)
  3. Your email address
  4. Your email password. You can either use your regular password or if you have 2-FA enabled, you must generate an app password here

Logs

The logs can be viewed as a running tail here