https://github.com/xanderstrike/plex2ifttt
Plex webhooks to IFTTT webhook converter
https://github.com/xanderstrike/plex2ifttt
hacktoberfest ifttt plex plex-webhooks
Last synced: 5 months ago
JSON representation
Plex webhooks to IFTTT webhook converter
- Host: GitHub
- URL: https://github.com/xanderstrike/plex2ifttt
- Owner: XanderStrike
- Created: 2020-07-05T16:56:57.000Z (almost 6 years ago)
- Default Branch: develop
- Last Pushed: 2022-06-10T01:42:32.000Z (almost 4 years ago)
- Last Synced: 2024-11-12T20:48:17.337Z (over 1 year ago)
- Topics: hacktoberfest, ifttt, plex, plex-webhooks
- Language: Go
- Homepage:
- Size: 36.1 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# plex2ifttt
This awesome project transforms Plex webhooks into webhook events for IFTTT.
I use this to automatically dim my lights when my home theater is playing media
on Plex, and raise them once it's done (or paused).
It is currently capable of generating 3 events:
- `plex_play` - A play event (play, resume, scrobble)
- `plex_play_day` - A play event that happens during the day (hardcoded to
US/pacific time right now)
- `plex_pause` - A pause or stop event (pause, stop, finish)
It also filters the webhooks by username and player UUID, which is necessary to
make sure your lights aren't dimming when someone in another room is doing
stuff.
These events are sent to your IFTTT webhook url as the event.
```
https://maker.ifttt.com/trigger//with/key/
```
## setup
Get your IFTTT key by visiting
[https://ifttt.com/maker_webhooks](https://ifttt.com/maker_webhooks/) and
clicking "Documentation."
If you do not know your player's ID, the app logs all unknown player IDs.
You can specify multiple user or player IDs by comma separating them.
Deploy with Docker:
```
docker run \
-e USER_ID=, \
-e PLAYER_UUID=, \
-e IFTTT_KEY= \
-n plex2ifttt \
-p 8080:8080 \
xanderstrike/plex2ifttt
```
You must make this route available to the Plex server, either by colocating on
the same machine, the same network, or making it publicly accessible on the
internet.
Set up Plex to hit your webhook URL at `/hook`.
Create an IFTTT rule to consume a webhook with one of the above events and do a
thing you'd like.