Giter Club home page Giter Club logo

tracked-media's Introduction

Tracked Media - A Trakt.tv API powered Alexa skill

CI codecov

A simple Alexa app/skill to connect to the Trakt.tv API via your own trakt.tv account.

This skill will let you

  • Add/Remove movies from any of your Trakt lists.
  • Add/Remove shows from any of your Trakt lists.
  • Get and readout popular lists supported lists are
    • Box Office
    • Trending
    • Popular
    • Watched
    • Collected
    • Anticipated
  • Add all missing movies/shows from the supported lists
  • Change your default list (initally this is set to watchlist)
    • This lets you save time later by not have to mention the list you want to add too
  • Send notifications to Discord/Slack about the shows/movies added

Installation

You will need to create a Trakt.tv app from here to get your Client ID & Client Secret.

You will need both when you create your own Alexa app here

You need to enable account linking in your Alexa app, settings should look something like this

sample linking info

With that done, You can use the JSON editor and copy all of package.json into the JSON editor

After that you need to upload the lambda folder to either Alexa hosted or your own host. You will need to edit config.py to your own liking but most importantly remember to set your Trakt.tv API key with

client_id = "your-api-key-goes-here" Don't remove the quotes!

Save & build and then deploy, and you should be good to enable the app in your Alexa app.

"SKILLS AND GAMES" -> "Your Skills" -> "Dev"

Enabling the app should take you to trakt.tv where you login and grants your own app access to your trakt.tv account.

Usage

Adding/removing movies or shows

"Alexa tell %myinvocationname to add the movie iron man"

"Alexa tell %myinvocationname to add the movie iron man to my list 'test' "

"Alexa tell %myinvocationname to remove the movie iron man"

"Alexa tell %myinvocationname to add the show The walking dead"

Changing your default list

"Alexa tell %myinvocationname set my list to watch list"

"Alexa tell %myinvocationname set my list to 'example'"

Finding what's on your calendar

"Alexa ask %myinvocationname what is on Trakt today"

"Alexa ask %myinvocationname what movies are on tomorrow"

"Alexa ask %myinvocationname what shows are on trakt next week"

Finding if a movie or show is on your list

"Alexa ask %myinvocationname if the movie Avatar on a list"

"Alexa ask %myinvocationname if the show The walking dead on a list"

Getting the popular list (this only works with movies)

"Alexa ask %myinvocationname Check the list box office"

"Alexa ask %myinvocationname Check the list trending"

"Alexa ask %myinvocationname Check the list popular"

"Alexa ask %myinvocationname Check the list watched"

"Alexa ask %myinvocationname Check the list collected"

"Alexa ask %myinvocationname Check the list Anticipated"

This app/skill uses the Trakt.tv API

License

MIT

The reason for this skill

I needed a way to add movies/shows from alexa to radarr/sonarr but there was no app/skill or source code that didnt require opening your own server up to the internet. This gets around that by only having other apps read from the trakt.tv lists and removes the need to open ports on your server.

tracked-media's People

Contributors

1337-server avatar imgbotapp avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tracked-media's Issues

there was a problem with the selected skills response

Hi,
I've followed the instructions but getting a: 'there was a problem with the selected skills response' message.

The only part in the installation guide that wasn't completely clear to me was what to put as redirect uri in the trakt app. I've put https://layla.amazon.com/api/skill/link/******* in. Linking was also successfull. Any ideas where I could have gone wrong? I've uploaded the lambda folder in the alexa skill app and adjusted the config file.

I did not create a lambda function as I dont think that is neccessary right?

Edit: I'm an idiot I hosted as JS instead of python. However I am getting: Im having a little trouble try again in a little while.

Edit2: this can be closed I had to put the language of the skill as english UK but the device was english US. Syncing that solved it

Alexa Skill Account Link Error to Trakt

Thank you for the taking the time to put this together and share! I'm on the last step, trying to link Trakt.tv account from inside my Alexa Skill, but I get an error:

oauth error
The requested redirect uri is malformed or doesn't match client redirect URI.

I'm using urn:ietf:wg:oauth:2.0:oob in my Trakt API App, which is the only solution I've found to this problem online. I've been reading Amazon and Trakt OAuth and URI documents, but I can't see what my mistake is. Is "urn:ietf:wg:oauth:2.0:oob" suppose to be somewhere in the code on Alexa Developer Console?

Any advice would be greatly appreciated! Excited to get it working.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.