It is currently April 19th, 2024, 12:47 pm

Spotify Plugin Released! Now with less bugs!

Plugins and Addons popular with the Community
Diehard40k
Posts: 8
Joined: August 27th, 2015, 2:58 am

Re: Spotify Plugin Released! Now with less bugs!

Post by Diehard40k »

Here's a link to the full skin: https://www.dropbox.com/s/g1km3g8zizkahva/Spotify%20Player.rar?dl=0

Here's the code if you just want to read it:
[Rainmeter]
Update=1000

[Variables]
Font=Trebuchet MS
Size=7
Size2=8
Opacity=255
skinWidth=170
skinHeight=230
Colour=FFFFFF
Colour2=80C0FF

MusicPlayer=Spotify
SpotifyPATH=C:\Users\ \AppData\Roaming\Spotify\spotify.exe


[mProcessPID]
Measure=Plugin
Plugin=Process
ProcessName=spotify.exe

[mRunning]
Measure=Calc
Formula=mProcessPID
ifEqualValue=1
ifEqualAction=[!RainmeterHideMeter MeterTitle][!RainmeterShowMeter MeterPaused][!RainmeterShowMeter MeterTrack][!RainmeterShowMeter MeterAlbum][!RainmeterShowMeter MeterArtist][!RainmeterHideMeter PlaySpotify][!RainmeterShowMeter PauseSpotify][!RainmeterShowMeter MeterCover][!RainmeterHideMeter MeterCoverSpotify]
ifBelowValue=1
ifBelowAction=[!RainmeterShowMeter MeterTitle][!RainmeterHideMeter MeterPaused][!RainmeterHideMeter MeterTrack][!RainmeterHideMeter MeterAlbum][!RainmeterHideMeter MeterArtist][!RainmeterShowMeter PlaySpotify][!RainmeterHideMeter PauseSpotify][!RainmeterHideMeter MeterCover][!RainmeterShowMeter MeterCoverSpotify]
;UpdateDivider=0,0001

[mState]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=SpotifyMainWindow
IfMatch=Spotify
IfMatchAction=[!RainmeterShowMeter MeterPaused][!RainmeterHideMeter MeterTrack][!RainmeterHideMeter MeterAlbum][!RainmeterHideMeter MeterArtist][!RainmeterShowMeter PlaySpotify][!RainmeterHideMeter PauseSpotify]
IfNotMatchAction=[!RainmeterHideMeter MeterPaused][!RainmeterShowMeter MeterTrack][!RainmeterShowMeter MeterAlbum][!RainmeterShowMeter MeterArtist][!RainmeterHideMeter PlaySpotify][!RainmeterShowMeter PauseSpotify]
IfMatchMode=1

[MeasureTrack]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=TrackName
UpdateDivider=100

[MeasureAlbum]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=AlbumName
UpdateDivider=100

[MeasureArtist]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=ArtistName
UpdateDivider=100

[MeasureCover]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=AlbumArt
Res=300

; METERS
[MeterBG]
Meter=IMAGE
MeterStyle=styleBorder
W=#skinWidth#
H=#skinHeight#
;SolidColor=250,0,0,50
SolidColor=0,0,0,1

[MeterBorder1]
Meter=IMAGE
MeterStyle=styleBorder
X=10
W=(#skinWidth#-20)
H=1
SolidColor=255,255,255,50

[MeterTitle]
Meter=String
Text=Spotify Player#CRLF#Click to launch
X=10
Y=5R
W=(#skinWidth#-20)
H=(#skinHeight#-10)
FontColor=#Colour2#
FontSize=#Size2#
FontFace=#Font#
StringStyle=BOLD
;StringEffect=SHADOW
FontEffectColor=000000
AntiAlias=1
;SolidColor=250,0,0,50
SolidColor=0,0,0,1
LeftMouseUpAction=!Execute ["#SpotifyPATH#"]

[MeterPaused]
Meter=String
Text=Spotify Player#CRLF#Paused
X=0r
Y=0r
W=(#skinWidth#-20)
H=#skinHeight#
FontColor=#Colour2#
FontSize=#Size2#
FontFace=#Font#
StringStyle=BOLD
AntiAlias=1

[MeterTrack]
Meter=STRING
MeasureName=MeasureTrack
X=0r
Y=0r
Text=%1
FontColor=#Colour#
FontSize=#Size2#
FontFace=#Font#
StringStyle=BOLD
AntiAlias=1
ClipString=2

[MeterAlbum]
Meter=STRING
MeasureName=MeasureAlbum
X=0r
Y=0R
W=(#skinWidth#-20)
H=14
Text=%1
FontColor=#Colour2#
FontSize=#Size#
FontFace=#Font#
;SolidColor=20,0,0,127
AntiAlias=1
ClipString=2

[MeterArtist]
Meter=STRING
MeasureName=MeasureArtist
X=0r
Y=0R
W=(#skinWidth#-20)
H=14
Text=%1
FontColor=#Colour2#
FontSize=#Size#
FontFace=#Font#
;SolidColor=20,0,0,127
AntiAlias=1
ClipString=2

[MeterCoverSpotify]
Meter=Image
ImageName=Spotify.png
X=0r
Y=50
W=(#skinWidth# - 20)
H=(#skinWidth# - 20)
DynamicVariables=1
SolidColor=0,0,0,1

[MeterCover]
Meter=Image
ImageName=[MeasureCover]
X=0r
Y=0R
W=(#skinWidth# - 20)
H=(#skinWidth# - 20)
DynamicVariables=1
SolidColor=0,0,0,1

[PauseSpotify]
Meter=Image
ImageName=Pause.png
X=(#skinWidth#/2)-13
Y=-25R
AntiAlias=1
SolidColor=0,0,0,100

[PlaySpotify]
Meter=Image
ImageName=Play.png
X=0r
Y=0r
AntiAlias=1
SolidColor=0,0,0,100

[PlayPauseHotspot]
Meter=Image
;ImageName=Play.png
X=0r
Y=0r
H=25
W=25
SolidColor=0,0,0,1
LeftMouseUpAction=["#CURRENTPATH#spotifyctrl.exe" /playpause]

[PrevSpotify]
Meter=Image
ImageName=Prev.png
X=-25r
Y=0r
AntiAlias=1
SolidColor=0,0,0,100
LeftMouseUpAction=["#CURRENTPATH#spotifyctrl.exe" /prev]

[NextSpotify]
Meter=Image
ImageName=Next.png
X=25R
Y=0r
AntiAlias=1
SolidColor=0,0,0,100
LeftMouseUpAction=["#CURRENTPATH#spotifyctrl.exe" /next]
User avatar
.raptor
Posts: 220
Joined: April 3rd, 2013, 11:03 pm
Location: Norway

Re: Spotify Plugin Released! Now with less bugs!

Post by .raptor »

Diehard40k wrote:Here's a link to the full skin: removed link

Here's the code if you just want to read it:
[Rainmeter]
Update=1000

[Variables]
Font=Trebuchet MS
Size=7
Size2=8
Opacity=255
skinWidth=170
skinHeight=230
Colour=FFFFFF
Colour2=80C0FF

MusicPlayer=Spotify
SpotifyPATH=C:\Users\ \AppData\Roaming\Spotify\spotify.exe


[mProcessPID]
Measure=Plugin
Plugin=Process
ProcessName=spotify.exe

[mRunning]
Measure=Calc
Formula=mProcessPID
ifEqualValue=1
ifEqualAction=[!RainmeterHideMeter MeterTitle][!RainmeterShowMeter MeterPaused][!RainmeterShowMeter MeterTrack][!RainmeterShowMeter MeterAlbum][!RainmeterShowMeter MeterArtist][!RainmeterHideMeter PlaySpotify][!RainmeterShowMeter PauseSpotify][!RainmeterShowMeter MeterCover][!RainmeterHideMeter MeterCoverSpotify]
ifBelowValue=1
ifBelowAction=[!RainmeterShowMeter MeterTitle][!RainmeterHideMeter MeterPaused][!RainmeterHideMeter MeterTrack][!RainmeterHideMeter MeterAlbum][!RainmeterHideMeter MeterArtist][!RainmeterShowMeter PlaySpotify][!RainmeterHideMeter PauseSpotify][!RainmeterHideMeter MeterCover][!RainmeterShowMeter MeterCoverSpotify]
;UpdateDivider=0,0001

[mState]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=SpotifyMainWindow
IfMatch=Spotify
IfMatchAction=[!RainmeterShowMeter MeterPaused][!RainmeterHideMeter MeterTrack][!RainmeterHideMeter MeterAlbum][!RainmeterHideMeter MeterArtist][!RainmeterShowMeter PlaySpotify][!RainmeterHideMeter PauseSpotify]
IfNotMatchAction=[!RainmeterHideMeter MeterPaused][!RainmeterShowMeter MeterTrack][!RainmeterShowMeter MeterAlbum][!RainmeterShowMeter MeterArtist][!RainmeterHideMeter PlaySpotify][!RainmeterShowMeter PauseSpotify]
IfMatchMode=1

[MeasureTrack]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=TrackName
UpdateDivider=100

[MeasureAlbum]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=AlbumName
UpdateDivider=100

[MeasureArtist]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=ArtistName
UpdateDivider=100

[MeasureCover]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=AlbumArt
Res=300

; METERS
[MeterBG]
Meter=IMAGE
MeterStyle=styleBorder
W=#skinWidth#
H=#skinHeight#
;SolidColor=250,0,0,50
SolidColor=0,0,0,1

[MeterBorder1]
Meter=IMAGE
MeterStyle=styleBorder
X=10
W=(#skinWidth#-20)
H=1
SolidColor=255,255,255,50

[MeterTitle]
Meter=String
Text=Spotify Player#CRLF#Click to launch
X=10
Y=5R
W=(#skinWidth#-20)
H=(#skinHeight#-10)
FontColor=#Colour2#
FontSize=#Size2#
FontFace=#Font#
StringStyle=BOLD
;StringEffect=SHADOW
FontEffectColor=000000
AntiAlias=1
;SolidColor=250,0,0,50
SolidColor=0,0,0,1
LeftMouseUpAction=!Execute ["#SpotifyPATH#"]

[MeterPaused]
Meter=String
Text=Spotify Player#CRLF#Paused
X=0r
Y=0r
W=(#skinWidth#-20)
H=#skinHeight#
FontColor=#Colour2#
FontSize=#Size2#
FontFace=#Font#
StringStyle=BOLD
AntiAlias=1

[MeterTrack]
Meter=STRING
MeasureName=MeasureTrack
X=0r
Y=0r
Text=%1
FontColor=#Colour#
FontSize=#Size2#
FontFace=#Font#
StringStyle=BOLD
AntiAlias=1
ClipString=2

[MeterAlbum]
Meter=STRING
MeasureName=MeasureAlbum
X=0r
Y=0R
W=(#skinWidth#-20)
H=14
Text=%1
FontColor=#Colour2#
FontSize=#Size#
FontFace=#Font#
;SolidColor=20,0,0,127
AntiAlias=1
ClipString=2

[MeterArtist]
Meter=STRING
MeasureName=MeasureArtist
X=0r
Y=0R
W=(#skinWidth#-20)
H=14
Text=%1
FontColor=#Colour2#
FontSize=#Size#
FontFace=#Font#
;SolidColor=20,0,0,127
AntiAlias=1
ClipString=2

[MeterCoverSpotify]
Meter=Image
ImageName=Spotify.png
X=0r
Y=50
W=(#skinWidth# - 20)
H=(#skinWidth# - 20)
DynamicVariables=1
SolidColor=0,0,0,1

[MeterCover]
Meter=Image
ImageName=[MeasureCover]
X=0r
Y=0R
W=(#skinWidth# - 20)
H=(#skinWidth# - 20)
DynamicVariables=1
SolidColor=0,0,0,1

[PauseSpotify]
Meter=Image
ImageName=Pause.png
X=(#skinWidth#/2)-13
Y=-25R
AntiAlias=1
SolidColor=0,0,0,100

[PlaySpotify]
Meter=Image
ImageName=Play.png
X=0r
Y=0r
AntiAlias=1
SolidColor=0,0,0,100

[PlayPauseHotspot]
Meter=Image
;ImageName=Play.png
X=0r
Y=0r
H=25
W=25
SolidColor=0,0,0,1
LeftMouseUpAction=["#CURRENTPATH#spotifyctrl.exe" /playpause]

[PrevSpotify]
Meter=Image
ImageName=Prev.png
X=-25r
Y=0r
AntiAlias=1
SolidColor=0,0,0,100
LeftMouseUpAction=["#CURRENTPATH#spotifyctrl.exe" /prev]

[NextSpotify]
Meter=Image
ImageName=Next.png
X=25R
Y=0r
AntiAlias=1
SolidColor=0,0,0,100
LeftMouseUpAction=["#CURRENTPATH#spotifyctrl.exe" /next]
Have no idea what was wrong, but i tried to simplify it a bit. Works the way i assumed it should now. You can remove the [!SetVariable State ""] bangs, they where just for debugging (and in case you need them at some point later).

Code: Select all

[Rainmeter]
Update=1000

[Variables]
Font=Trebuchet MS
Size=7
Size2=8
Opacity=255
skinWidth=170
skinHeight=230
Colour=FFFFFF
Colour2=80C0FF
SpotifyPATH=C:\Users\raptor\AppData\Roaming\Spotify\spotify.exe

[mPlaying]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=Playing

[mProcessPID]
Measure=Plugin
Plugin=Process
ProcessName=spotify.exe
; Not running
IfCondition=(mProcessPID = -1)
IfTrueAction=[!ShowMeterGroup Inactive][!HideMeterGroup Playing][!HideMeterGroup Paused][!HideMeterGroup Active][!SetVariable State "Inactive"]
; Running, paused
IfCondition2=(mProcessPID = 1) && (mPlaying = 0)
IfTrueAction2=[!HideMeterGroup Inactive][!HideMeterGroup Playing][!ShowMeterGroup Paused][!ShowMeterGroup Active][!SetVariable State "Paused"]
; Running, playing
IfCondition3=(mProcessPID = 1) && (mPlaying = 1)
IfTrueAction3=[!HideMeterGroup Inactive][!ShowMeterGroup "Playing"][!HideMeterGroup "Paused"][!ShowMeterGroup Active][!SetVariable State "Playing"]
DynamicVariables=1

[MeasureTrack]
Measure=Plugin
Plugin=SpotifyPlugin
Type=TrackName

[MeasureAlbum]
Measure=Plugin
Plugin=SpotifyPlugin
Type=AlbumName

[MeasureArtist]
Measure=Plugin
Plugin=SpotifyPlugin
Type=ArtistName

[MeasureCover]
Measure=Plugin
Plugin=SpotifyPlugin
Type=AlbumArt
Res=300
CoverPath="cover.png"

; METERS
[MeterBG]
Meter=IMAGE
MeterStyle=styleBorder
W=#skinWidth#
H=#skinHeight#
;SolidColor=250,0,0,50
SolidColor=0,0,0,1

[MeterBorder1]
Meter=IMAGE
MeterStyle=styleBorder
X=10
W=(#skinWidth#-20)
H=1
SolidColor=255,255,255,50

[MeterTitle]
Meter=String
Text=Spotify Player#CRLF#Click to launch
X=10
Y=5R
W=(#skinWidth#-20)
H=(#skinHeight#-10)
FontColor=#Colour2#
FontSize=#Size2#
FontFace=#Font#
StringStyle=BOLD
;StringEffect=SHADOW
FontEffectColor=000000
AntiAlias=1
;SolidColor=250,0,0,50
SolidColor=0,0,0,1
LeftMouseUpAction=!Execute ["#SpotifyPATH#"]
Group=Inactive

[MeterPaused]
Meter=String
Text=Spotify Player#CRLF#Paused
X=0r
Y=0r
W=(#skinWidth#-20)
H=#skinHeight#
FontColor=#Colour2#
FontSize=#Size2#
FontFace=#Font#
StringStyle=BOLD
AntiAlias=1
Group=Paused

[MeterTrack]
Meter=STRING
MeasureName=MeasureTrack
X=0r
Y=0r
Text=%1
FontColor=#Colour#
FontSize=#Size2#
FontFace=#Font#
StringStyle=BOLD
AntiAlias=1
ClipString=2
Group=Playing

[MeterAlbum]
Meter=STRING
MeasureName=MeasureAlbum
X=0r
Y=0R
W=(#skinWidth#-20)
H=14
Text=%1
FontColor=#Colour2#
FontSize=#Size#
FontFace=#Font#
;SolidColor=20,0,0,127
AntiAlias=1
ClipString=2
Group=Playing

[MeterArtist]
Meter=STRING
MeasureName=MeasureArtist
X=0r
Y=0R
W=(#skinWidth#-20)
H=14
Text=%1
FontColor=#Colour2#
FontSize=#Size#
FontFace=#Font#
;SolidColor=20,0,0,127
AntiAlias=1
ClipString=2
Group=Playing

[MeterCoverSpotify]
Meter=Image
ImageName=Spotify.png
X=0r
Y=50
W=(#skinWidth# - 20)
H=(#skinWidth# - 20)
;DynamicVariables=1
SolidColor=0,0,0,1
Group=Inactive

[MeterCover]
Meter=Image
ImageName=[MeasureCover]
X=0r
Y=0R
W=(#skinWidth# - 20)
H=(#skinWidth# - 20)
DynamicVariables=1
SolidColor=0,0,0,1
Group=Active

[PauseSpotify]
Meter=Image
ImageName=Pause.png
X=(#skinWidth#/2)-13
Y=-25R
AntiAlias=1
SolidColor=0,0,0,100
Group=Playing

[PlaySpotify]
Meter=Image
ImageName=Play.png
X=0r
Y=0r
AntiAlias=1
SolidColor=0,0,0,100
Group=Paused

[PlayPauseHotspot]
Meter=Image
;ImageName=Play.png
X=0r
Y=0r
H=25
W=25
SolidColor=0,0,0,1
LeftMouseUpAction=["#CURRENTPATH#spotifyctrl.exe" /playpause]

[PrevSpotify]
Meter=Image
ImageName=Prev.png
X=-25r
Y=0r
AntiAlias=1
SolidColor=0,0,0,100
LeftMouseUpAction=["#CURRENTPATH#spotifyctrl.exe" /prev]
Group=Active

[NextSpotify]
Meter=Image
ImageName=Next.png
X=25R
Y=0r
AntiAlias=1
SolidColor=0,0,0,100
LeftMouseUpAction=["#CURRENTPATH#spotifyctrl.exe" /next]
Group=Active
User avatar
exper1mental
Posts: 269
Joined: January 9th, 2013, 7:52 pm
Location: Clemson University

Re: Spotify Plugin Released! Now with less bugs!

Post by exper1mental »

.raptor wrote:Got a fix in mind, but I'm going to need a few examples of any such tracks. (Can't find anything without album art, except local tracks)
I thought I had encountered some other instances but right now its only local songs that are getting the "stock cover." I'll toy around with Spotify when I have more time and see if I find other situations where this would be handy.

I've also been noticing that in many cases the album art from local songs doesn't get displayed for some reason, is only displayed in Spotify, or even more baffling is only displayed by the Spotify plugin.
benjiman0 wrote:Here's an example of the code used in my visualizer setup, this may or may not help assuming I understood what you wanted

Code: Select all

[MeasureCover]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=AlbumArt
Substitute="":"#@#images\nocover.png"
UpdateDivider=100
Where 'Substitute' is the default cover to use if Spotify doesn't specify one
I've already tried using this to no avail. This works great for when I'm not using Spotify as my music player. The problem with Spotify (the program not the plugin) is that it reverts to a "stock cover" whenever it can't get the actual album cover. This means that AlbumArt will still return a value because Spotify has substituted no album cover for a "stock album cover."

I think its easier to understand if you play a local track that doesn't have album art so you see what I'm talking about.
Image
Falkuric
Posts: 1
Joined: October 1st, 2015, 1:45 am

Re: Spotify Plugin Released! Now with less bugs!

Post by Falkuric »

I am using the rainmeter skin "Mazio", which was running NowPlaying stock, which current doesn't work with spotify. I was able to rework the MeasureTrack, MeasureAlbum, and MeasureArtist to give me all that data, but I cannot find anything on how to redo the buttons. Currently they look like this for next song and all the other ones (prev track, play, pause) using different strings in the last part:

Code: Select all

LeftMouseUpAction=[!CommandMeasure "MeasurePlayer" "Next"]. 
Currently, because this is a NowPlaying bang with its own !CommandMeasure, it doesn't work anymore for using the spotifyplugin. How would I redo this to make the buttons work?

Edit: I have seen people doing

Code: Select all

LeftMouseUpAction=!Execute ["#CURRENTPATH#spotifyctrl.exe" /next]
but that doesn't seem to be working for me either
flip
Posts: 19
Joined: August 15th, 2015, 11:22 pm

Re: Spotify Plugin Released! Now with less bugs!

Post by flip »

Falkuric wrote:I am using the rainmeter skin "Mazio", which was running NowPlaying stock, which current doesn't work with spotify. I was able to rework the MeasureTrack, MeasureAlbum, and MeasureArtist to give me all that data, but I cannot find anything on how to redo the buttons. Currently they look like this for next song and all the other ones (prev track, play, pause) using different strings in the last part:

Code: Select all

LeftMouseUpAction=[!CommandMeasure "MeasurePlayer" "Next"]. 
Currently, because this is a NowPlaying bang with its own !CommandMeasure, it doesn't work anymore for using the spotifyplugin. How would I redo this to make the buttons work?

Edit: I have seen people doing

Code: Select all

LeftMouseUpAction=!Execute ["#CURRENTPATH#spotifyctrl.exe" /next]
but that doesn't seem to be working for me either
You don't need to redo the buttons. NowPlaying can already do Spotify buttons, and so their functionality was not redone in this plugin (at least, this is what is says on the OP).

This is my setup for a next button, for example:
[MeasureSpotify]
Measure=Plugin
Plugin=NowPlaying
PlayerName=Spotify

[MeterNext]
Meter=Image
X=145
Y=77
SolidColor=0,0,0,1
ImageName=#NextButton#
LeftMouseUpAction=[!CommandMeasure "MeasureSpotify" "Next"]
User avatar
FuzzyLizard530
Posts: 75
Joined: August 5th, 2014, 2:09 am

Re: Spotify Plugin Released! Now with less bugs!

Post by FuzzyLizard530 »

I'm having sort of an issue with this Spotify Plugin. It's simply not working. I have the latest version from this topic, and... blank everything, no matter whether I use the included skin, Someone else's creation, or something of my own...

Specs:
Spotify 1.0.14.124.g4dfabc51

Code: Select all

3.3.0 beta r2461 64-bit (Aug 15 2015)
Windows 10 Home 64-bit (build 10240)
Path: C:\Program Files (x86)\Rainmeter\
IniFile: C:\Users\FuzzyLizard530\AppData\Roaming\Rainmeter\Rainmeter.ini
SkinPath: C:\Users\FuzzyLizard530\Documents\Rainmeter\Skins\
I may or may not have a signature in this, very location...
borsTiHD
Posts: 7
Joined: June 27th, 2014, 8:09 am

Re: Spotify Plugin Released! Now with less bugs!

Post by borsTiHD »

Hi,

I'm using your plugin for ages now and I'm really happy with it. :)
But since the last update I don't got my album art to work.

I installed the new beta version for rainmeter today and also installed your newest plugin (the one with the example skin).

Now... if I load your example skin, it works fine... If I load my skin after it, it works too.
If I now close your skin, it still works with my own skin.

BUT, if I close rainmeter and start rainmeter with only my skin, I don't see any cover.
If I open up your skin again I can see the cover image (on both skins).

So it seems that my paths are wrong? But why did it work after I open your skin too?



In the meanwhile I found out that I got the newest album arts in the ressource folder from your skin ( C:\Users\xxx\Documents\Rainmeter\Skins\SpotifyPlayer\@Resources ), after I started your skin.

So... how can I let the plugin create the images in "my" ressource folder?

Thanks for helping and awesome work. :)
Keep it up.

€dit:
Adding screenshot.
rainmeter_spotify.PNG
rainmeter_spotify2.PNG
rainmeter_spotify3.PNG
rainmeter_spotify4.PNG

€dit 2:
Solved... 2 posts nexts.
You do not have the required permissions to view the files attached to this post.
Last edited by borsTiHD on October 9th, 2015, 2:16 pm, edited 1 time in total.
JoshuaVL1988
Posts: 37
Joined: April 25th, 2015, 10:41 am

Re: Spotify Plugin Released! Now with less bugs!

Post by JoshuaVL1988 »

Hello, I'm editing a rmskin to work with the spotifyplugin and have almost got it done. There's only two spots i need help with. I need to know what to replace the code for the album art and the volume part with. Here's the current ini for it.

Code: Select all


[Rainmeter]
Update=99


[mPlayer]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=Spotify
PlayerType=TITLE
PlayerPath=
DisableLeadingZero=0
Substitute=
; Return value is 1 on error
IfEqualValue=1
IfEqualAction=!Execute [!RainmeterShowMeter ErrorMessage][!RainmeterRedraw]


[mArtist]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=ArtistName
Substitute="":""

[mAlbum]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=AlbumName
Substitute="":"N\A"

[MeasureCover]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=AlbumArt
Res=300
DefaultPath=#@#Default.png
CoverPath=#@#Cover.png

[mPosition]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=POSITION

[mDuration]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=DURATION

[mProgress]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=Progress
Decimals=2

[mRating]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=RATING

[mStateButton]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=STATE
Substitute="0":"Play.png","1":"Pause.png","2":"Play.png"

[mStateButton1]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=STATE

[animation]
Measure=Calc
Formula=[mStateButton1]
IfEqualValue=0
IfEqualAction=!Execute [!RainmeterHideMeterGroup extra]
IfAboveValue=0
IfAboveAction=!Execute [!RainmeterShowMeterGroup extra]
UpdateDivider=0,0001
DynamicVariables=1

[mVolume]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=VOLUME

[bg1]
Meter=Image
Imagename=ctrl.png
X=15
Y=90

[MeterITProgress]
MeasureName=MProgress
Meter=bar
X=12
Y=162
W=338
H=3
BarColor=255,255,255,255
BarOrientation=Horizontal
Flip=0
StringStyle=Bold
StringAlign=LEFT
StringEffect=Shadow
AntiAlias=1
Hidden=0
SolidColor=000000


[Cover]
Meter=Image
ImageName=[MeasureCover]
X=240
Y=-113R
W=110
H=110
DynamicVariables=1
MaskImageName=Mask.png



[StyleText]
StringStyle=Bold
StringAlign=LEFT
StringStyle=normal
AntiAlias=1


[Artist]
Meter=STRING
MeterStyle=StyleText
MeasureName=MArtist
FontFace=Segoe ui semibold
FontColor=255,255,255,255
FontEffectColor=20,20,20,60
StringAlign=left
StringEffect=Shadow
FontSize=15
X=9
Y=70
w=300
h=15


[Albums]
Meter=STRING
MeterStyle=StyleText
MeasureName=MAlbum
FontFace=Segoe ui semibold
FontColor=255,255,255,255
FontEffectColor=20,20,20,60
StringAlign=left
StringEffect=Shadow
FontSize=15
X=18
Y=85
w=300
h=15


[Track]
Meter=STRING
MeterStyle=StyleText
MeasureName=mPlayer
FontFace=Segoe ui semibold
StringAlign=Left
StringEffect=Shadow
FontSize=15
FontColor=255,255,255,255
FontEffectColor=20,20,20,60
X=0
Y=55
W=300
H=15
Antialias=1
FontColor=0,0,0,0


[Progress]
Meter=STRING
MeasureName=mProgress
X=198
Y=144
W=50
H=16
StringAlign=left
FontFace=Trebuchet MS
FontSize=14
FontColor=255,255,255,255
AntiAlias=1
Text="%1%"
Group=extra

[Play]
Meter=button
ButtonImage=[mStateButton]
X=102
Y=111
LeftMouseDownAction=!Execute [!RainmeterPluginBang "mPlayer PlayPause"]
DynamicVariables=1

[Next]
Meter=button
ButtonImage=Nextbtn.png
X=45r
Y=r
LeftMouseDownAction=!Execute [!RainmeterPluginBang "mPlayer Next"]

[Prev]
Meter=button
ButtonImage=Prevbtn.png
X=-91r
Y=r
FontColor=255,255,255,0
Text="7"
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer Previous"]

[MeterPlayerPosition]
Meter=STRING
MeterStyle=StyleText
MeasureName=mPosition
X=-46r
Y=123
FontColor=255,255,255,255
FontEffectColor=20,20,20,60
FontFace=Segoe WP light
FontSize=12
StringEffect=Shadow
AntiAlias=1

[MeterPlayerPosition1]
Meter=STRING
MeterStyle=StyleText
MeasureName=mDuration
X=176r
Y=r
FontColor=255,255,255,255
FontEffectColor=20,20,20,60
FontFace=Segoe WP light
FontSize=12
StringEffect=Shadow
AntiAlias=1

[Volume]
Meter=IMAGE
ImageName=Volume.png
X=10
Y=148

[VolumeText]
Meter=STRING
MeasureName=mVolume
X=20
Y=147
W=45
H=16
FontSize=10
FontFace=Trebuchet MS
FontColor=FFFFFFFF
AntiAlias=1
ClipString=1
Text="%1%"

[VolumeUp]
Meter=BUTTON
ButtonImage=VolumeUp.png
X=50
Y=155
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer SetVolume +25"]

[VolumeDown]
Meter=BUTTON
ButtonImage=VolumeDown.png
X=55
Y=150
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer SetVolume -25"]

[OpenPlayer]
Meter=BUTTON
ButtonImage=Open.png
X=75
Y=149
ToolTipText="Open Media Player"
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer OpenPlayer"]

[ClosePlayer]
Meter=BUTTON
ButtonImage=Close.png
X=75r
Y=r
ToolTipText="Close Media Player"
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer ClosePlayer"]

Here's a screenshot for reference.
Untitled.png
---EDIT---

I got the album art fixed, but I still can't figure out how to get the volume part to show up properly. I've replaced the ini in this post with the newly updated version. Any help would be appreciated.
You do not have the required permissions to view the files attached to this post.
User avatar
redsaph
Posts: 30
Joined: October 24th, 2013, 8:15 am

Re: Spotify Plugin Released! Now with less bugs!

Post by redsaph »

Hi, is it me or did the latest Spotify update break the plugin once again?

If Spotify did... wow, they're really sneaky about the usage of their data xD


A restart solved the problem. Sorry for wasting your time.
Rainmeter-er since 2013 :welcome: | My DeviantART
borsTiHD
Posts: 7
Joined: June 27th, 2014, 8:09 am

Re: Spotify Plugin Released! Now with less bugs!

Post by borsTiHD »

My problem is also solved. :D :)
Don't really know why, but I change my "default" paths.

First I used the one in the example (didn't worked):

Code: Select all

DefaultPath=#@#Default.png
CoverPath=#@#Cover.png
Now I'm using this one and it works for me:

Code: Select all

DefaultPath=./@Resources/Default.png
CoverPath=./@Resources/Cover.png
But I think it was a problem on my end, because I'm using a sub folder for my skin:
"C:\Users\borsTiHD\Documents\Rainmeter\Skins\borsTiHD\DasH - mod"

Maybe this was the reason?
But I thought the path "#@#Default.png" would direct to "my" ressource folder in the same folder I have my skin "*.ini" I load. :confused: