It is currently March 29th, 2024, 7:48 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 the old topic was more or less asking if somebody would built a skin for me and that's a no no
So i started to read and read some more then i start to try

Goal I want to built a top scroll bar from sonarr tv program
https://sonarr.tv/
It has to show a little poster of the tvshow and beside it the serie name, episode name, season number, episode number, and coming air date.
If the airdate has passed i want that it gone show the next airdate

Now i came this far

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 orginal apikey with xxxxxxxxxx)

With help of the tutorial i got the following JSON output

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
        }
(just 1 tv show from more)

Now i end up with a little black box and in my rainmeter log the warning Webparser error not enough substrings

Can anybody help this noob to at least show wher i'm going wrong
If i have this first part working then at least i can continue