mirror of
https://github.com/JakeStanger/webhooks-notifications.git
synced 2026-07-11 07:54:46 +01:00
Use Plex webhooks to display desktop notifications and control playback with media keys
- JavaScript 100%
| .gitignore | ||
| index.js | ||
| isPlaying | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
In order to run this app:
- Install node.js.
- Clone the repository.
- Install dependencies using
npm install. - Get an API token using these instructions.
- Figure out the identifier of the player you want to control by hitting https://plex.tv/api/resources.xml?auth_token=api-token and grab the
clientIdentifiervalue for the player.
Then run the app as follows:
$ TOKEN=api-token PLAYER=client-identifier-to-control OPTION=[option] node index.js
Where option is one of:
play
pause
next
back
Finally, add the webhook to https://app.plex.tv/web/app#!/account/webhooks (it'll be http://localhost:10000). (webhooks are currently broken as the program terminates after running the script)