It is currently November 28th, 2021, 6:09 am

Sonarr calendar

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 first topic i opend was more or less asking if somebody could built a skin for me.
But that's not how it works so i start reading and read some more after that i start to try.

First my goal i want to try and built for my HTPC a rainmeter skin i already came far but i want some extra's I want to built a sonarr calendar scrolling bar
https://sonarr.tv/
I want it to show a little poster of the serie and beside it Tvserie title, Episode title, Season number, Episode number.
I hope i can make it so that it shows the coming airdate's for one week and after a airdate has past it shows the next airdate.

Now i came this far (not really far) (just a noob starting out to write his first code)

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=xxxxxxxxxxxxxxxxxxx
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 xxxxxxxxxxxxxxx)

With the webparser tutorial i got the following webParserDump.txt

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 of more)

Now all i get is a little black boc and for the rest nothing
In the log file of rainmeter i have the warning WebParser not enough substrings
Can anybody be so kind to help me out