It is currently May 3rd, 2024, 3:46 am

Trakt Skin

Get help with creating, editing & fixing problems with skins
P71Ryan
Posts: 1
Joined: March 5th, 2012, 9:09 pm

Trakt Skin

Post by P71Ryan »

Alright guys, first time using and editing Rainmeter but i love it so far. I have the defauly illustro set right now and currently trying to add a Trakt.tv skin so I can see the schedule for today's episode.

What I have so far:


What I'm hoping to achieve for the schedule:
Image

This is taken from the Trakt.tv website.

API Code for Calender: http://trakt.tv/api-docs/calendar-shows

Code: Select all

[
   {
      "date":"2011-04-16",
      "episodes":[
         {
            "show":{
               "title":"Britain's Got Talent",
               "year":2007,
               "url":"http://trakt.tv/show/britains-got-talent",
               "first_aired":1181372400,
               "country":"United Kingdom",
               "overview":"The search for the next big variety act in the UK is on with ITV's Britain's Got Talent. Popular comedians and hosts Ant and Dec join the judges Simon Cowell, Piers Morgan and Amanda Holden on this highly anticipated show that will culminate in not only a big cash prize of \u00a3100,000 for the winning act, but also a starring slot in a performance attended by Her Majesty the Queen.",
               "runtime":60,
               "network":"ITV2",
               "air_day":"",
               "air_time":"12:00am",
               "certification":"",
               "imdb_id":"tt1034201",
               "tvdb_id":"80727",
               "tvrage_id":"16137",
               "images":{
                  "poster":"http://vicmackey.trakt.tv/images/posters/2760.jpg",
                  "fanart":"http://vicmackey.trakt.tv/images/fanart/2760.jpg",
                  "banner":"http://vicmackey.trakt.tv/images/banners/2760.jpg"
               },
               "genres":["Action","Comedy"]
            },
            "episode":{
               "season":5,
               "number":1,
               "title":"Episode 1",
               "overview":"",
               "url":"http://trakt.tv/show/britains-got-talent/season/5/episode/1",
               "first_aired":1302937200,
               "images":{
                  "screen":"http://vicmackey.trakt.tv/images/fanart/2760-940.jpg"
               }
            }
         }
      ]
   }
}
I'm pretty knew to coding stuff like this so I'm lost when I see all this and getting Rainmeter to grab it if thats even possible. Any help is appreciated.

Thanks, Ryan.
Last edited by smurfier on March 5th, 2012, 9:22 pm, edited 1 time in total.
Reason: Edited to use HSimg tags.
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: Trakt Skin

Post by MerlinTheRed »

If you know beforehand how many shows (maximum) there will be in that time frame you can simply use the WebParser plugin to parse the information. There's plenty of examples and tutorials for that on the forums. I recommend installing RainRegExp to test your regular expressions. Sorting the shows into those time slots might need some additional work with a Lua script, but it's definitely possible.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
wadieb
Posts: 7
Joined: April 27th, 2012, 2:14 am

Re: Trakt Skin

Post by wadieb »

did you end up getting this to work? I'm looking for something very similar