Automatic Time Tracking From Plex
July 09, 2020
I have a Webhook in Plex that goes to a zap in Zapier. That zap will start a Toggl timer (Watching Video) whenever I start or resume a movie or tv show. It will also start another timer (Personal time) whenever I pause or stop watching (but only if the Watching Video timer is running).
Plex webhook -> Zapier -> Toggl API
I time track everything, including time spent watching video. I want as much metadata in the description as possible, but I don’t want to type it by hand and I want it in a consistent format. Most of my video watching is done on Plex, so that’s where this automation comes in.
I used to use the Toggl action inside of Zapier, but it was getting too complicated and it wasn’t really possible to do everything I wanted. I had an “Only Continue if…” block to make sure it was the right user on Plex and the right event type (play/pause/stop/resume). And there was no good way to handle pause/stop without making another zap, or using Paths. And if I made another zap, I would be running through my limited number of tasks/month more quickly, which is currently capped at 750/month.
- It’s just one zap for play/pause/resume/stop.
- It starts another timer when you finish so that you don’t have to worry about starting another timer when you pause/stop.
- If you pause and then stop, it doesn’t start the “pause” timer again.
- It supports multiple users.
accounts object. You’ll need to know the pid (project ids) from your Toggl account and your Toggl API Token (base64 encoded). If you wanted, you could also customize the description or make it an empty string if you don’t want a description.