It is currently April 19th, 2024, 10:12 am

Error Message quietly sounding in the background ... for weeks I guess

Get help with creating, editing & fixing problems with skins
User avatar
CoffeeJoe
Posts: 48
Joined: November 6th, 2019, 4:19 am

Error Message quietly sounding in the background ... for weeks I guess

Post by CoffeeJoe »

I just noticed one of my skins has been triggering an error about every second for as long as its been running (A while)
Image

Anyone know what it means? Skin works as expected even with the error.
Code is a bit long but not too hard to follow

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1

[Metadata]
Name=
Author=
Information=
Version=
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0

[Variables]
BackGroundColor=AF5010FF
DrawerY=0
Step=5
DrawerState=1
Slide=0

;Meters=============================================

[Bounds]
W=310
H=100
Meter=Shape

[DrawerContainer]
X=5
Y=(#DrawerY#+90)
W=300
H=150
MeterStyle=DrawerStyle
SolidColor=000000FF
Meter=String

[DrawerBackGround]
X=5
Y=0r
W=300
H=160
MeterStyle=DrawerStyle
SolidColor=00000001
Meter=String

[Drawer]
X=0
Y=-2r
W=295
H=160
Meter=Shape
MeterStyle=DrawerStyle
Shape=Rectangle 0,0,300,150,18  | Fill RadialGradient Grad03
Grad03=0,-75,0,-25,400,180 | 303030FF ; 0.0 | 808080FF ; 1.0

[Handle]
X=0r
Y=0r
W=295
H=150
Meter=Shape
MeterStyle=DrawerStyle
Shape=Rectangle 100,133,96,17  | Fill LinearGradient Grad02 | StrokeWidth 2
Grad02=90 | 8F8F8FFF ; 0.0 | CFCFCFFF ; 0.499 | FFFFFFFF ; 0.5 | CFCFCFFF ; 0.501 | 8F8F8FFF ; 1.0 
LeftMouseUpAction=[!UpdateMeasure DrawerStateCalc]

[MainContainer]
X=0
Y=0
W=310
H=100
SolidColor=#BackGroundColor#
Meter=Shape

[BackGround]
W=310
H=100
Meter=Shape
SolidColor=#BackGroundColor#
Container=MainContainer

[H-Space01]
X=-20
W=5
Meter=String
MeterStyle=BallStyle

[FirstBall]
Meter=Shape
MeterStyle=BallStyle

[FirstNumber]
Meter=String
MeterStyle=NumberStyle
MeasureName=First
Text=%1

[SecondBall]
Meter=Shape
MeterStyle=BallStyle

[SecondNumber]
Meter=String
MeterStyle=NumberStyle
MeasureName=Second
Text=%1

[ThirdBall]
Meter=Shape
MeterStyle=BallStyle

[ThirdNumber]
Meter=String
MeterStyle=NumberStyle
MeasureName=Third
Text=%1

[FourthBall]
Meter=Shape
MeterStyle=BallStyle

[FourthNumber]
Meter=String
MeterStyle=NumberStyle
MeasureName=Fourth
Text=%1

[FifthBall]
Meter=Shape
MeterStyle=BallStyle

[FifthNumber]
Meter=String
MeterStyle=NumberStyle
MeasureName=Fifth
Text=%1

[SixthBall]
Meter=Shape
MeterStyle=BallStyle | MegaStyle

[SixthNumber]
Meter=String
MeterStyle=NumberStyle
MeasureName=Mega
Text=%1

[Date]
X=75
Y=25r
W=165
H=30
Meter=String
MeasureName=DrawDate
MeterStyle=TextStyle
StringAlign=Center
FontSize=18
Text=%1

[Megaplier]
X=294
Y=r
W=100
H=30
Meter=String
MeasureName=Multiplier
MeterStyle=TextStyle
StringAlign=Right
Text=%1

;Measures=============================================

[MegaMillions]
Measure=WebParser
URL=https://data.ny.gov/resource/5xaw-6ayf.json?$limit=1
RegExp=.*"draw_date":"(.*)".*"winning_numbers":"(.*)".*"mega_ball":"(.*)".*"multiplier":"(.*)".*
UpdateRate=(1800)

[DrawDate]
Measure=WebParser
URL=[MegaMillions]
StringIndex=1
RegExpSubstitute=1
Substitute="^(\d{1,4}).(\d{1,2}).(\d{1,2}).*":"\2-\3-\1","-":"\"

[Numbers]
Measure=WebParser
URL=[MegaMillions]
StringIndex=2
RegExp=^(\d\d).(\d\d).(\d\d).(\d\d).(\d\d).*

[Mega]
Measure=WebParser
URL=[MegaMillions]
StringIndex=3

[Multiplier]
Measure=WebParser
URL=[MegaMillions]
StringIndex=4
RegExpSubstitute=1
Substitute="0":"x"

[First]
Measure=WebParser
URL=[Numbers]
StringIndex=1

[Second]
Measure=WebParser
URL=[Numbers]
StringIndex=2

[Third]
Measure=WebParser
URL=[Numbers]
StringIndex=3

[Fourth]
Measure=WebParser
URL=[Numbers]
StringIndex=4

[Fifth]
Measure=WebParser
URL=[Numbers]
StringIndex=5

[MeasureSlide]
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat SlideOut,4,24
SlideOut=[!SetVariable DrawerY "(Clamp((#DrawerY#+#Step#),-120,0))"][!UpdateMeasure "MeasureSlide"][!UpdateMeter "DrawerContainer"][!Redraw]
ActionList2=Repeat SlideIn,4,24
SlideIn=[!SetVariable DrawerY "(Clamp((#DrawerY#-#Step#),-120,0))"][!UpdateMeasure "MeasureSlide"][!UpdateMeter "DrawerContainer"][!SetVariable DrawerState 0][!Redraw]
DynamicVariables=1

[DrawerStateCalc]
Measure=Calc
Formula=#DrawerState#
DynamicVariables=1
IfCondition=(#DrawerState# = 0)
IfTrueAction=[!CommandMeasure "MeasureSlide" "Execute 1"][!SetVariable DrawerState 1]
IfCondition2=(#DrawerState# = 1)
IfTrueAction2=[!CommandMeasure "MeasureSlide" "Execute 2"][!SetVariable DrawerState 0]
UpdateDivider=-1

;Style===============================================

[TextStyle]
FontColor=DFDFDFFF
FontFace=Trebuchet MS
FontWeight=600
FontSize=18
InlineSetting=Shadow | 1 | 1 | 0.8 | 404040FF
AntiAlias=1
DynamicVariables=1

[NumberStyle]
X=25r
Y=26r
W=50
H=50
FontColor=000000FF
FontFace=Arial Black
FontSize=18
FontWeight=700
StringAlign=CenterCenter
AntiAlias=1
DynamicVariables=1

[BallStyle]
X=25r
Y=10
W=50
H=50
Grad01=0,0 | 202020B0 ; 0.0 | 80808020 ; 1.0
Grad02=4,-4 | FFFFFFFF ; 0.0 | DFDFDFFF ; 0.7 | 7F7F7FFF ; 1.0
Shape=Ellipse 19,46,21,7 |Fill RadialGradient Grad01 | StrokeWidth 0
Shape2=Ellipse 25,25,21 |Fill RadialGradient Grad02 | StrokeWidth 2 | Stroke Color 585858FF
DynamicVariables=1
AntiAlias=1

[MegaStyle]
Grad02=3,-4 | FFEF40FF ; 0.0 | DFBF20FF ; 0.7 | 9F8F10FF ; 1.0

[DrawerStyle]
Container=DrawerContainer
DynamicVariables=1
AntiAlias=1
Group=Drawer

[DrawerText]
FontColor=DFDFDFFF
FontFace=Arial Black
FontSize=14
FontWeight=600
;StringAlign=CenterCenter
AntiAlias=1
DynamicVariables=1

Last edited by CoffeeJoe on September 14th, 2021, 5:22 am, edited 1 time in total.
User avatar
Duschmoll
Posts: 26
Joined: May 5th, 2021, 6:08 pm

Re: Error Message quietly sounding in the background ... for weeks I guess

Post by Duschmoll »

Hello !

Code: Select all

[DrawerContainer]
X=5
Y=(#DrawerY#+90)
W=300
H=150
MeterStyle=DrawerStyle
SolidColor=000000FF
Meter=String

[DrawerStyle]
Container=DrawerContainer
DynamicVariables=1
AntiAlias=1
Group=Drawer
The error come from the fact that you are putting a container into himself.
DrawContainer is using the DrawerStyle which have a Container=DrawerContainer

I would recommand to remove the MeterStyle and add what's needed for this container to work. It could be that :

Code: Select all

[DrawerContainer]
X=5
Y=(#DrawerY#+90)
W=300
H=150

SolidColor=000000FF
Meter=String
DynamicVariables=1
AntiAlias=1
Group=Drawer

And the group Drawer doesn't seem to have action to it, so you don't need it, expect if it will be used later on.
User avatar
CoffeeJoe
Posts: 48
Joined: November 6th, 2019, 4:19 am

Re: Error Message quietly sounding in the background ... for weeks I guess

Post by CoffeeJoe »

Duschmoll:
You are correct... :oops: Thank you!
I suppose if I had read the message a few times and thought about it - its pretty obvious what the error was trying to tell me.
I fixed it with a "Container=" in the container meter - supersedes that line from the style.
Honestly I had plans for what it all was going to do - then I went down the rabbit hole trying to understand the action timer - now the drawer goes up and down (perfectly, I might add) and wasn't planning to do any more with it...
Initially I wanted it to do all this comparison and tell me how much money I won with "my numbers"...
I look each drawing and I go online to see the 'nothing' I won before the app even updates... likely scrapping it entirely.
Its all good tho, I learned a bunch about webparser, regex & action timer all in one project

Cheers, CJ
User avatar
Duschmoll
Posts: 26
Joined: May 5th, 2021, 6:08 pm

Re: Error Message quietly sounding in the background ... for weeks I guess

Post by Duschmoll »

CoffeeJoe wrote: September 14th, 2021, 5:21 am Duschmoll:
You are correct... :oops: Thank you!
I suppose if I had read the message a few times and thought about it - its pretty obvious what the error was trying to tell me.
I fixed it with a "Container=" in the container meter - supersedes that line from the style.
Honestly I had plans for what it all was going to do - then I went down the rabbit hole trying to understand the action timer - now the drawer goes up and down (perfectly, I might add) and wasn't planning to do any more with it...
Initially I wanted it to do all this comparison and tell me how much money I won with "my numbers"...
I look each drawing and I go online to see the 'nothing' I won before the app even updates... likely scrapping it entirely.
Its all good tho, I learned a bunch about webparser, regex & action timer all in one project

Cheers, CJ
Happy to help !
Haha it's the time to learn new properties of rainmeters, take your time and take breaks, if you like doing skins, you'll always come back to it ;)
Have a good one :)