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 🙏

© 2026 – Pkg Stats / Ryan Hefner

homebridge-plex-daily-recommendations

v0.1.3

Published

🎬 Homebridge plugin for daily Plex recommendations via HomeKit notifications with detailed movie info and direct Plex links

Readme

Homebridge Plex Daily Recommendations

Ein Homebridge Plugin, das dir täglich um eine bestimmte Uhrzeit (z.B. 20:00 Uhr) eine HomeKit-Benachrichtigung sendet, wenn neue Filme oder Serien auf deinem Plex Server hinzugefügt wurden.

Installation

1. Plugin installieren

sudo npm install -g homebridge-plex-daily-recommendations

Oder falls du es lokal installiert hast:

npm install homebridge-plex-daily-recommendations

2. Dependencies installieren

Das Plugin brauch folgende NPM-Pakete:

  • axios - fĂĽr HTTP-Requests zur Plex API
  • node-cron - fĂĽr tägliche Planung

Diese werden automatisch mit dem Plugin installiert.

3. Konfiguration – Zwei Optionen

Option A: Homebridge UI-X (Empfohlen! 🎨)

Das Plugin hat eine benutzerfreundliche Oberfläche für Homebridge UI-X!

  1. Ă–ffne Homebridge UI-X: http://localhost:8581
  2. Gehe zu Accessories → "+"
  3. Wähle "Plex Daily Recommendations"
  4. FĂĽlle das Formular mit deinen Daten aus
  5. Klick "Save"

Detaillierte Anleitung: HOMEBRIDGE-UI-SETUP.md

Option B: Manuelle config.json Konfiguration

FĂĽge dies zu deiner Homebridge config.json hinzu:

{
  "platforms": [
    {
      "platform": "PlexDailyRecommendations",
      "name": "Plex Daily Recommendations",
      "plexUrl": "http://192.168.178.3:32400",
      "plexToken": "DEIN_PLEX_TOKEN",
      "machineId": "DEINE_SERVER_MACHINE_ID",
      "notificationTime": "20:00",
      "hoursBack": 24
    }
  ]
}

Wichtig: Das Plugin ist eine Platform, nicht ein einzelnes Accessory. Stelle sicher, dass du es unter platforms (nicht accessories) in der config.json einträgst.

Konfigurationsoptionen

| Option | Beschreibung | Standard | | ------------------ | --------------------------------------------------- | ---------------------------- | | name | Name des Accessories in HomeKit | "Plex Recommendations" | | plexUrl | URL deines Plex Servers | "http://192.168.178.3:32400" | | plexToken | Dein Plex API Token | - (erforderlich) | | machineId | Machine ID deines Plex Servers | - (erforderlich) | | notificationTime | Uhrzeit für tägliche Benachrichtigung (HH:MM) | "20:00" | | hoursBack | Wie viele Stunden zurück nach neuen Inhalten suchen | 24 |

Child Bridge Support (Empfohlen!)

Dieses Plugin unterstützt Homebridge Child Bridges für bessere Stabilität und Performance.

Vorteile von Child Bridges:

  • 🛡️ Stabilität: Plugin-Crashes beeinflussen nicht die Hauptbridge
  • 🔄 Unabhängiges Neustarten: Plugin kann einzeln neu gestartet werden
  • ⚡ Performance: Bessere Resource-Nutzung durch Prozess-Isolation
  • 🔍 Debugging: Einfacheres Troubleshooting durch isolierte Logs

Aktivierung in Homebridge UI-X:

  1. Ă–ffne Homebridge UI-X
  2. Gehe zu Plugins → Plex Daily Recommendations → Settings
  3. Aktiviere "Bridge Settings" → "Run As Separate Child Bridge"
  4. Speichern und Homebridge neu starten

Das Plugin läuft dann als eigene Bridge mit eigenem Port!

Wie es funktioniert

  1. Das Plugin erstellt einen Occupancy Sensor in HomeKit
  2. Um die angegebene Uhrzeit (z.B. 20:00) wird automatisch ĂĽberprĂĽft, ob neue Inhalte auf deinem Plex Server hinzugefĂĽgt wurden
  3. Wenn neue Inhalte gefunden werden, wird der Sensor kurz aktiviert → HomeKit sendet eine Benachrichtigung
  4. Die neuen Inhalte werden in den Homebridge Logs angezeigt

HomeKit Automation einrichten

Nach der Installation kannst du eine Automation in der Home App erstellen:

  1. Ă–ffne die Home App
  2. Gehe zu "Automation" → "+"
  3. Wähle "Ein Accessory wird aktiviert"
  4. Wähle "Plex Empfehlungen" aus
  5. Konfiguriere die Aktion (z.B. "Benachrichtigung senden")

Debugging

FĂĽr detaillierte Logs, starte Homebridge mit Debug-Flag:

homebridge -D

Dort siehst du:

  • Wenn der Cron-Job ausgelöst wird
  • Wieviele neue Inhalte gefunden wurden
  • Details zu jedem neuen Film/Serie mit Zeitstempel

Plex Token und Machine ID finden

Plex Token:

  1. Gehe zu https://app.plex.tv/web/
  2. Ă–ffne Developer Console (F12)
  3. Gehe zum Tab "Network"
  4. Lade eine Seite neu
  5. Suche nach einem Request zu plex.tv
  6. In den Headers siehst du X-Plex-Token=...

Machine ID:

  1. Ă–ffne http://DEIN_PLEX_SERVER:32400/?X-Plex-Token=DEIN_TOKEN im Browser
  2. Suche nach machineIdentifier=

Troubleshooting

Plugin wird nicht geladen:

  • ĂśberprĂĽfe deine config.json auf Syntax-Fehler
  • Stelle sicher, dass plexToken und machineId korrekt sind

Keine Benachrichtigungen:

  • ĂśberprĂĽfe, ob die Zeit korrekt ist (Format: HH:MM im 24h-Format)
  • Schau in den Homebridge Logs nach Fehlermeldungen
  • Teste manuell: curl "http://PLEX_SERVER:32400/library/sections?X-Plex-Token=TOKEN"

Falsche Benachrichtigungszeit:

  • Das System nutzt die lokale Zeitzone des Homebridge-Servers
  • ĂśberprĂĽfe die Systemzeit mit date

Lizenz

MIT