It is currently March 29th, 2024, 10:35 am

Sonarr calendar

Get help with creating, editing & fixing problems with skins
User avatar
Mr. Spock
Posts: 46
Joined: August 5th, 2013, 6:07 pm
Location: The Netherlands

Sonarr calendar

Post by Mr. Spock »

Sorry if i'm posting double but my first topic was more or less asking if somebody could help me build a HTPC plugin for the program sonarr
https://sonarr.tv/
But i didn't do anything myself (no reading didn't try anything)
So i started to read and read some more and start to try.
But now i'm stuck and hope that somebody can help me
First the goal i want to make a scrollable top bar which shows a poster (small jpg), The title of the tvserie, The episode name, Season number, Episode number, and airdate
I want to make it so that it shows a whole week, and when the airdate has passed it shows the next airdate

Now after reading i put together this myself (yeah just a starting Noob :( )

Code: Select all

[Rainmeter]
DynamicWindowSize=1
BackgroundMode=2
SolidColor=0,0,0,255

[Variables]
Font=Calibri
Colour=FFFFFF
Size=15
Effect=000000

[MeasureSite]
Measure=Plugin
Plugin=WebParser
URL= http://127.0.0.1:8989/api/calendar?start=2015-02-07T22%3A00%3A00.000Z&end=2015-

02-28T22%3A00%3A00.000Z&apikey=xxxxxxxxxxxxxxxxxxxxxxx
RegExp=(?siU)
sortTitle": "(.*)"title": "(.*)"seasonNumber": "(.*)"episodeNumber": "(.*)"airDate": 

"(.*)"coverType": "poster"
UpdateRate=3600

[MeasuresortTitle]
Measure=Plugin
Plugin=WebParser.dll
URL=[MeasureSite]
StringIndex=1

[Measuretitle]
Measure=Plugin
Plugin=WebParser.dll
URL=[MeasureSite]
StringIndex=2

[MeasureseasonNumber]
Measure=Plugin
Plugin=WebParser.dll
URL=[MeasureSite]
StringIndex=3

[MeasureepisodeNumber]
Measure=Plugin
Plugin=WebParser.dll
URL=[MeasureSite]
StringIndex=4

[MeasureairDate]
Measure=Plugin
Plugin=WebParser.dll
URL=[MeasureSite]
StringIndex=5

[MeasurecoverType]
Measure=Plugin
Plugin=WebParser.dll
URL=[MeasureSite]
StringIndex=6
Download=1


[MetersortTitle]
Meter=String
MeasureName=MeasureSortTitle
FontColor=#Colour#
FontSize=#Size#
FontFace=#Font#
StringStyle=Bold
AntiAlias=1

[Metertitle]
Meter=String
MeasureName=Measuretitle
FontColor=#Colour#
FontSize=#Size#
FontFace=#Font#
StringStyle=Bold
AntiAlias=1

[MeterseasonNumber]
Meter=String
MeasureName=MeasureseasonNumber
FontColor=#Colour#
FontSize=#Size#
FontFace=#Font#
StringStyle=Bold
AntiAlias=1

[MetersepisodeNumber]
Meter=String
MeasureName=MeasureseasonNumber
FontColor=#Colour#
FontSize=#Size#
FontFace=#Font#
StringStyle=Bold
AntiAlias=1

[MetersairDate]
Meter=String
MeasureName=MeasureseasonNumber
FontColor=#Colour#
FontSize=#Size#
FontFace=#Font#
StringStyle=Bold
AntiAlias=1

[MeterImage]
Meter=Image
MeasureName=MeasurecoverType
Y=2R
W=80
H=60
PreserveAspectRatio=2
LeftMouseUpAction=["[MeasurecoverType]"]
DynamicVariables=1
(replaced apikey with xxxxxxxxxxxxx in ini file use orginal one)

from the http://127.0.0.1:8989/api/calendar?start=2015-02-07T22%3A00%3A00.000Z&end=2015-02-28T22%3A00%3A00.000Z&apikey=xxxxxxxxxxxxxxxxxxxxxxx

I get the following ouput

Code: Select all

[
  {
    "seriesId": 11,
    "episodeFileId": 0,
    "seasonNumber": 1,
    "episodeNumber": 13,
    "title": "The Nuclear Man",
    "airDate": "2015-02-10",
    "airDateUtc": "2015-02-11T01:00:00Z",
    "overview": "After Ronnie attacks a physicist, Barry and the team realize they need to go after Caitlin's fiancé who is now a dangerous meta-human. Barry struggles to balance his duties as The Flash and his relationship with Linda Park. Joe enlists Cisco's help to reinvestigate the murder of Nora Allen. General Eiling returns to Central City.",
    "hasFile": false,
    "monitored": true,
    "absoluteEpisodeNumber": 13,
    "tvDbEpisodeId": 0,
    "series": {
      "title": "The Flash (2014)",
      "sortTitle": "flash 2014",
      "seasonCount": 1,
      "episodeCount": 0,
      "episodeFileCount": 0,
      "sizeOnDisk": 0,
      "status": "continuing",
      "overview": "After a particle accelerator causes a freak storm, CSI Investigator Barry Allen is struck by lightning and falls into a coma. Months later he awakens with the power of super speed, granting him the ability to move through Central City like an unseen guardian angel. Though initially excited by his newfound powers, Barry is shocked to discover he is not the only \"meta-human\" who was created in the wake of the accelerator explosion – and not everyone is using their new powers for good. Barry partners with S.T.A.R. Labs and dedicates his life to protect the innocent. For now, only a few close friends and associates know that Barry is literally the fastest man alive, but it won't be long before the world learns what Barry Allen has become... The Flash.",
      "network": "The CW",
      "airTime": "20:00",
      "images": [
        {
          "coverType": "fanart",
          "url": "http://thetvdb.com/banners/fanart/original/279121-9.jpg"
        },
        {
          "coverType": "banner",
          "url": "http://thetvdb.com/banners/graphical/279121-g7.jpg"
        },
        {
          "coverType": "poster",
          "url": "http://thetvdb.com/banners/posters/279121-10.jpg"
        }
      ],
      "seasons": [
        {
          "seasonNumber": 1,
          "monitored": true
        }
      ],
      "year": 2014,
      "path": "F:\\TV\\The Flash (2014)",
      "profileId": 3,
      "seasonFolder": true,
      "monitored": true,
      "useSceneNumbering": false,
      "runtime": 60,
      "tvdbId": 279121,
      "tvRageId": 36939,
      "firstAired": "2014-10-06T22:00:00Z",
      "lastInfoSync": "2015-02-07T04:52:38.1362705Z",
      "seriesType": "standard",
      "cleanTitle": "theflash2014",
      "imdbId": "tt3107288",
      "titleSlug": "the-flash-2014",
      "certification": "TV-14",
      "genres": [
        "Action",
        "Adventure",
        "Drama",
        "Science-Fiction"
      ],
      "tags": [],
      "added": "2015-01-25T08:41:50.8767261Z",
      "qualityProfileId": 3,
      "id": 11
    },
    "id": 777
  },
(Just 1 serie out of more)

But all it shows is a little black box and in my log i get 6 times the warning WebParser not enough substrings.
Could somebody please help me to figur out where i'm going wrong

Thx infront.