Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1424

Help: Rainmeter Skins • Re: Converting from Übersicht to Rainmeter

$
0
0
I'll attach what I've got and the Rainmeter.log is included in the file. This is my first attempt at doing a Rainmeter skin so go easy on me. Any help is greatly appreciated.
There are some issues with the WebParser measures of the posted skin ([MeasureWeather] and [MeasureIconCode]). Namely:
  • Never, BUT ABSOLUTELY NEVER put the comments into the same line as the option. You've put such comments after some of the used variables. For instance the Units variable of the posted code looks this way: Unit=imperial ; 'metric' for Celsius, 'imperial' for Fahrenheit. Unlike programming languages (what Rainmeter is not), Rainmeter can't and doesn't ignor what you have in the same line after a comma (;). Comments have to go to another line. Some details here. Accordingly you have to remove the comments from the Unit, IconSet, Latitude and Longitude variables:

    Code:

    [Variables]...Unit=imperial ; 'metric' for Celsius, 'imperial' for FahrenheitIconSet=white ; Options: 'black', 'white', 'blue'; Derived variablesLatitude=56.197201 ; You can use a Rainmeter plugin or set manuallyLongitude=-3.173100 ;
  • Replace the RegExp option of the [MeasureWeather] measure by this: RegExp=,"icon":"(.*)"}],"base":"stations","main":{"temp":(.{3,8}),.
  • Using the above RegExp, you have to replace the StringIndex options of both WebParser measures as well. Some other minor inhancements requires to replace the two measures by these:

    Code:

    [MeasureWeather]Measure=WebParserUpdateRate=600URL=#URL#RegExp=,"icon":"(.*)"}],"base":"stations","main":{"temp":(.{3,8}),UserAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36 Edg/92.0.902.84StringIndex=2[MeasureIconCode]Measure=WebParserURL=[MeasureWeather]StringIndex=1
    Note what have been done:
    • The WebParser measure are not anymore plugin measures and should be treated accordingly. This is why I replaced the Measure=Plugin and Plugin=Plugins\WebParser.dll option pairs by the single Measure=WebParser (but this is not something which could prevent the measures to work).
    • I converted [MeasureIconCode] to a child measure of the [MeasureWeather], which this way became the parent measure. WebParser measure should have to follow this structure: one parent measure and all others (in this case the only other) child measure(s).
    • Removed a few options, especially from the child measure.
  • An extremely important thing is to re-encode the AuthenticWeather.ini file to UTF-16LE. It's a UTF-8, but this is not the proper encoding for Rainmeter skins. Details here.
Have you succeeded getting the skin working this way?

Statistics: Posted by balala — Yesterday, 8:44 pm



Viewing all articles
Browse latest Browse all 1424

Trending Articles