Quantcast
Viewing all articles
Browse latest Browse all 705

Help: Rainmeter Skins • Re: Couple things with running my first Rainmeter skin

1) Weather: I imagine you're talking about the ...\Info\Info.ini skin in that package, which has an obsolete method to retrieve weather data. I suggest rewriting that skin entirely and replicating how it looks in your rewritten version. Anyway, here's a tutorial by eclectic-tech for a weather skin that uses weather.com as a source:
https://forum.rainmeter.net/viewtopic.php?t=36016
to get you started with this. As for making it dissappear when there's no internet, see this post by jsmorley:
https://forum.rainmeter.net/viewtopic.php?t=33768#p167107

2) Visualizer: Unless there's a plugin that I'm not aware of which is doing that, there's no way to get the entire waveform from an audio file in Rainmeter, only the current audio level in general, like you already have in the ...\Visualizer\Visualizer.ini file from that package. Now, if your sound level is too low to relevantly display in that skin, there should be an easy solution to that, just multiply each of the [MeasureNN] parts in the MyPath option from the [MeterGradientBar] meter with a factor like 2 or 3 or 5 as desired, in order to make those curves steeper and the overall shape taller in the skin. You might want to also increase the Y value of that meter accordingly so that the shape is not cut off / cropped by the top edge of the skin (absolute coordinates in a skin are always positive since any negative coordinate will be "outside" the skin area).

3) Scaling: This is indeed more ambitious but not because the principle is hard or complex, but because it's quite laborious to scale an already made unscaled skin, it's much easier to write a skin with scaling in mind from the start. In any case, the long and short of it is that you need to multiply every coordinate value of every meter in the skin with a Scale factor, which can be stored as a variable or measure, and then dynamically changed on, say, mouse scroll, or even chosen from some predefined values. To do this automatically based on the current resolution of your monitor, you can use the built-in monitor variables in your scaling formulas. Here's a basic example on how to do it:

Code:

[Variables]BaseScreenAreaWidth=1920Scale=1[Rainmeter]Update=1000AccurateText=1DynamicWindowSize=1---Measures---[CurrentScale]Measure=CalcFormula=(#SCREENAREAWIDTH#/#BaseScreenAreaWidth#)IfCondition=([CurrentScale]<>#Scale#)IfTrueAction=[!SetVariable Scale [CurrentScale]][!UpdateMeter *][!Redraw]IfConditionMode=1DynamicVariables=1---Meters---[MeterOne]Meter=ImageX=(0*#Scale#)Y=(0*#Scale)W=(100*#Scale)H=(100*#Scale)SolidColor=255,0,0,255DynamicVariables=1[MeterTwo]Meter=ImageX=(120*#Scale#)Y=(10*#Scale)RW=(75*#Scale)H=(50*#Scale)SolidColor=0,255,0,255DynamicVariables=1
This is untested, as I wrote it from my phone, but it should work if I didn't omit something. The idea is that you first define a BaseScreenAreaWidth variable for which you want the Scale variable to be 1 (aka "unchanged" coordinates). Then, on each skin update, you check if the value of the [CurrentScale] measure (aka how does the current screen area width relates to the base screen area width in terms of values) is different from the value of the existing or "old" Scale variable, and if so, set the Scale variable to be this "new" [CurrentScale] Measure value, update all meters and redraw the skin. In other words, the skin should resize itself proportionally, from its top left corner, when the monitor resolution changes, given that the values of every meter coordinate in the skin is multiplied by the value of the Scale variable. Now, if by any chance you need to resize it from its center or some other point in the skin, you'll need to first set the appropriate anchor from an OnRefreshAction option in the [Rainmeter] section of the skin:
https://docs.rainmeter.net/manual/bangs/#SetAnchor
https://docs.rainmeter.net/manual/skins/rainmeter-section/#OnRefreshAction

Hopefully this will be enough to provide you with some directions you can explore to do what you want with that package. Image may be NSFW.
Clik here to view.
;)

Statistics: Posted by Yincognito — Today, 2:07 pm



Viewing all articles
Browse latest Browse all 705

Trending Articles