It is currently May 17th, 2024, 6:13 am

Spotify Plugin Released! Now with less bugs!

Plugins and Addons popular with the Community
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:So what you are asking is if i can extend Playing to return 0 when spotify isnt running, and 2 when paused?

Code: Select all

[mStateButton]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=Playing
Substitute="0":"#@#Play.png","1":"#@#Pause.png"
Nvm, I completely missed the Type=Playing option in the documentation :oops: Guess that's what I get for rainmeter coding instead of sleeping :p

Anyways, the plugin is running nice and smooth with Rainmeter 3.2 and the latest version of Spotify. No bugs as far as I can tell except for the special characters issue that others already pointed out.
Image
LewaBolt
Posts: 11
Joined: March 25th, 2015, 8:22 pm

Re: Spotify Plugin Released! Now with less bugs!

Post by LewaBolt »

Ok, i was able to get most but the album name and album art to work....
I'm going to leave a download so it's easyer to help fix.

http://sta.sh/01ohdw3w0yd4

also need to figure how to add the visualizer in right....
[Rainmeter]
Update=100

[Metadata]
Name=StylePlayer
Config=
Description=Just click play and listen to some music :3
Instructions=
Version=6.5.5
;It's set to work with iTunes, but if you need to make it

work with other Players just follow this instruccions:
;///Right click in the skin, then to the option "Edit

Skin", then, bellow Pancakes, search for

"PlayerName=iTunes"
;These are the values you have to enter replacing "iTunes"
;-AIMP/For AIMP Player
;-MediaMonkey/For Media Monkey Player
;-CAD/For Music Bee Player
;-Winamp/For Winamp Player
;-WMP/For Windows Media Player
;-Spotify

===========================Variables======================

=====
Color1=255,255,255,255
Color2=00137F
Player=Spotify
FontFace=Errorize

===========================Pancakes=======================

===

[MeasurePlayer]
Measure=Plugin
Plugin=NowPlaying
PlayerName=Spotify
PlayerType=TITLE

[MeasureLED]
Measure=CALC
Formula=Counter % 60

[MeasureLoadingBar]
Measure=CALC
Formula=Counter % 8

[MeasureTitle]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=#player#
Type=TRACKNAME
Substitute="":"Nope"

[MeasureArtist]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=#player#
Type=ARTISTNAME
Substitute="":"Nope"

[MeasureAlbum]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[MeasurePlayer]
PlayerType=ALBUM
Substitute="":"Nope"

Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[MeasurePlayer]
PlayerType=COVER=AlbumArt
Res=300

[MeasureDuration]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[MeasurePlayer]
PlayerType=DURATION

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

[MeasureActualTime]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[MeasurePlayer]
PlayerType=POSITION

[MeasureTMinute]
Measure=Calc
Formula=(MeasureActualTime - (MeasureActualTime % 60)) /60

[MeasureTSecond]
Measure=Calc
Formula=MeasureActualTime % 60

[MeasureTZero]
Measure=Calc
Formula=(MeasureActualTime % 60) < 10 ? 0 : 1
Substitute="1":""

[MeasureStateButton]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[MeasurePlayer]
PlayerType=STATE

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

===========================ImportantStuff=================

=======

[MeterVinyl]
Meter=Image
ImageName=Silver.png
H=200
W=400

[Image4]
Meter=Image
ImageName="control_bg.png"
X=115
Y=143
W=150
H=70


[Previous]
Meter=Image
ImageName=Previous.png
X=130
Y=175
W=20
H=20
LeftMouseUpAction=[!CommandMeasure MeasurePlayer

"Previous"]

[Play]
Meter=Button
ButtonImage=[mStateButton]
X=180
Y=160
LeftMouseUpAction=[!CommandMeasure MeasurePlayer

"PlayPause"]
DynamicVariables=1

[Next]
Meter=Image
ImageName=Next.png
X=230
Y=175
W=20
H=20
LeftMouseUpAction=[!CommandMeasure MeasurePlayer "Next"]

[MeterSquares]
Meter=BITMAP
MeasureName=MeasureLED
BitmapImage=Bitmap\Squares.png
X=0
Y=104
BitmapFrames=60
BitmapExtend=1

[MeterArtist]
Meter=String
MeasureName=MeasureArtist
X=0
Y=35
H=23
W=290
ClipString=1
FontFace=Orbitron
FontSize=13
StringEffect=SHADOW
FontEffectColor=003399
StringAlign=LEFT
AntiAlias=1
FontColor=000000
Hidden=0

[MeterTitle]
Meter=String
MeasureName=MeasureTitle
X=r
Y=20r
H=22
W=295
ClipString=1
FontFace=Orbitron
FontSize=11
StringEffect=SHADOW
FontEffectColor=009999
StringAlign=LEFT
AntiAlias=1
FontColor=000000
Hidden=0

[MeterAlbum]
Meter=String
MeasureName=MeasureAlbum
X=r
Y=18r
H=23
W=290
ClipString=1
FontFace=Orbitron
FontSize=13
StringEffect=SHADOW
FontEffectColor=003399
StringAlign=LEFT
AntiAlias=1
FontColor=000000
Hidden=0

[MeterTime]
Meter=String
MeasureName=MeasureDuration
X=110
Y=155
H=20
W=150
ClipString=1
FontFace=Errorize
FontSize=14
StringEffect=SHADOW
FontEffectColor=000000
StringAlign=LEFT
StringStyle=Bold
AntiAlias=1
FontColor=003399
Hidden=0

[MeterActualTime]
Meter=String
MeasureName=MeasureTMinute
MeasureName2=MeasureTZero
MeasureName3=MeasureTSecond
X=118r
Y=r
H=16
W=150
StringAlign=LEFT
StringStyle=Bold
FontColor=003399
FontFace=Errorize
FontSize=14
StringEffect=SHADOW
FontEffectColor=000000
AntiAlias=1
Text="%1.%2%3"
Hidden=0

[MeterArtwork]
Meter=Image
MeasureName=MeasureArtwork
X=0
Y=104
H=90
W=90

[MeterOverTheSillyLine]
MeasureName=MeasurePosition
Meter=Bar
X=0
Y=194
W=285
H=6
BarColor=003399
BarOrientation=HORIZONTAL
Flip=1

[MeterBar]
Meter=BITMAP
MeasureName=MeasureLoadingBar
BitmapImage=Bitmap\Loading_bar_r.png
X=0
Y=194
BitmapFrames=8
BitmapExtend=1



;---------------------------
; Visualizer
;---------------------------

[MeasureAudioRaw_Out]
; This measure is the heart of the visualizer.
; Documentation: viewtopic.php?f=18&t=18802
Measure=Plugin
Plugin=AudioLevel
Port=Output
;RMSAttack=0
;RMSDecay=100
;RMSGain=0.0
;PeakAttack=20
;PeakDecay=80
;PeakGain=10
FFTSize=2048
FFTOverlap=1024
FFTAttack=40
FFTDecay=60
Bands=39
FreqMin=10
FreqMax=15000
Sensitivity=55

[measureAudioOut_01]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=1

[measureAudioOut_02]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=1

[measureAudioOut_03]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=2

[measureAudioOut_04]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=3

[measureAudioOut_05]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=4

[measureAudioOut_06]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=5

[measureAudioOut_07]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=6

[measureAudioOut_08]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=7

[measureAudioOut_09]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=8

[measureAudioOut_10]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=9

[measureAudioOut_11]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=10

[measureAudioOut_12]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=11

[measureAudioOut_13]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=12

[measureAudioOut_14]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=13

[measureAudioOut_15]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=14

[measureAudioOut_16]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=15

[measureAudioOut_17]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=16

[measureAudioOut_18]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=17

[measureAudioOut_19]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=18

[measureAudioOut_20]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=19

[measureAudioOut_21]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=20

[measureAudioOut_22]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=21

[measureAudioOut_23]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=22

[measureAudioOut_24]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=23

[measureAudioOut_25]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=24

[measureAudioOut_26]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=25

[measureAudioOut_27]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=26

[measureAudioOut_28]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=27

[measureAudioOut_29]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=28

[measureAudioOut_30]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=29

[measureAudioOut_31]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=30

[measureAudioOut_32]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=31

[measureAudioOut_33]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=32

[measureAudioOut_34]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=33

[measureAudioOut_35]
Measure=Plugin
Plugin=AudioLevel
Parent=measureAudioRaw_Out
Type=Band
BandIdx=34
mr.derek
Posts: 22
Joined: March 26th, 2015, 10:13 am

Re: Spotify Plugin Released! Now with less bugs!

Post by mr.derek »

I'm still learning but I was able to get the album name to load:

Code: Select all

[MeasureAlbum]
Measure=Plugin
Plugin=SpotifyPlugin.dll
PlayerName=[MeasurePlayer]
Type=ALBUMNAME
As for the rest of the problems (album art, track duration and current position etc) it looks like it's to do with the NowPlaying.dll plugin. It doesn't look like it's loading correctly in your file. I have Kaz's plugin running side by side and it loads in that one. I couldn't figure out how to load the NowPlaying.dll correctly, but I'm sure others here will be able to help, good luck!
LewaBolt
Posts: 11
Joined: March 25th, 2015, 8:22 pm

Re: Spotify Plugin Released! Now with less bugs!

Post by LewaBolt »

thanks, though still can't get album art to work
indefinitions
Posts: 3
Joined: March 23rd, 2015, 4:26 pm

Re: Spotify Plugin Released! Now with less bugs!

Post by indefinitions »

If everything else is working, check in the Rainmeter folder in your Documents for "SpotifyPlugin". It should have cover.jpg updating in there if you're able to load everything else.
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 »

LewaBolt wrote:thanks, though still can't get album art to work
This should work:

Code: Select all

[MeasureArtwork]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=AlbumArt
Res=300
Image
LewaBolt
Posts: 11
Joined: March 25th, 2015, 8:22 pm

Re: Spotify Plugin Released! Now with less bugs!

Post by LewaBolt »

exper1mental wrote: This should work:

Code: Select all

[MeasureArtwork]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=AlbumArt
Res=300
I tried that, and didn't work for some stupid reason.
mr.derek
Posts: 22
Joined: March 26th, 2015, 10:13 am

Re: Spotify Plugin Released! Now with less bugs!

Post by mr.derek »

I tried that code in your file and it loaded the album art for me (see attached).

I recommend downloading Kaz's Veronica RM 2 (link a couple of posts before), installing that fresh and seeing if it all works. If not there is something else going on other than the ini file.
You do not have the required permissions to view the files attached to this post.
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 »

I think the string encoding should be working now, had limited testing options here, so feedback would be great! :)
mr.derek
Posts: 22
Joined: March 26th, 2015, 10:13 am

Re: Spotify Plugin Released! Now with less bugs!

Post by mr.derek »

Hey it's Raptor! Thank you for your work on this plugin, I love it! The strings are working for me, everything looks great! =D

Regarding stability - Rainmeter has crashed on me a couple of times, I'm still very new to it, so I'll have to keep an eye on it for a bit to see what's happening.

Just a question for you though - when using the SpotifyPlugin.dll - is it bad practice to load multiple skins that use it? Like two instances of Kaz's skin one small player and one big for the artwork. So they both have their own ini files which have instances of SpotifyPlugin.dll. Earlier on in this thread there was discussion of a possible memory leak on Spotify's end and I was wondering if this could be the cause of the rainmeter crashes?

Thanks again!