mistic100 / Rainmeter-NowPlayingPlex

A Rainmeter plugin to read the currently playing track on Plex.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NowPlayingPlex.dll

A Rainmeter plugin to read the currently playing track on Plex.

Usage

The plugin works similarly to the NowPlaying measure : there is a main measure doing the query and child measures connected to the main.

Options

PlexToken (required on main measure)

Main measure only. Your personnal access token (how to get it).

PlexServer (default: http://localhost:32400)

Main measure only. The url of your Plex server.

PlexUsername

Main measure only. Your Plex username, this is used to filter the sessions if other users are using your server. If not defined, the first session will be used.

PlayerName (required on child measures)

Child measures only. Name of the main measure.

PlayerType (required)

Type of the measure value. Valid values are:

  • Artist : Track artist.
  • Album : Current album.
  • Title : Track title.
  • Number : Track number.
  • Year : Track year.
  • Cover : URL to cover art.
  • File : Path to the playing media file.
  • Duration : Total length of track in seconds.
  • Position : Current position in track in seconds.
  • Progress : Percentage of track completed.
  • State : 0 for stopped, 1 for playing, and 2 for paused.

Notes: With measures of type Duration or Position, the string value is in the form MM:SS and the number value is the actual number of seconds.

DisableLeadingZero (default: 0)

Main measure only. If set to 1, the format of Duration and Position is M:SS instead of MM:SS.

Example

[Rainmeter]
Update=1000

[Variables]
PlexToken=XXXXXX
PlexUsername=JohnDoe

[MeasureTitlePlex]
Measure=Plugin
Plugin=NowPlayingPlex
PlexToken=#PlexToken#
PlexUsername=#PlexUsername#
PlayerType=Title

[MeasureArtistPlex]
Measure=Plugin
Plugin=NowPlayingPlex
PlayerName=MeasureTitlePlex
PlayerType=Artist

[MeasureAlbumPlex]
Measure=Plugin
Plugin=NowPlayingPlex
PlayerName=MeasureTitlePlex
PlayerType=Album

[MeasureDurationPlex]
Measure=Plugin
Plugin=NowPlayingPlex
PlayerName=MeasureTitlePlex
PlayerType=Duration
Substitute="00:00":""

[MeasurePositionPlex]
Measure=Plugin
Plugin=NowPlayingPlex
PlayerName=MeasureTitlePlex
PlayerType=Position
Substitute="00:00":""

License

MIT

About

A Rainmeter plugin to read the currently playing track on Plex.

License:MIT License


Languages

Language:C# 72.0%Language:C++ 28.0%