It is currently March 28th, 2024, 6:11 pm

Trying to set up Weather and Spotify on older skin

Get help with creating, editing & fixing problems with skins
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Trying to set up Weather and Spotify on older skin

Post by balala »

Murasaki wrote: February 2nd, 2020, 3:43 pm If it doesn't bother you, please help me to create them.
This skin means a lot to me. I'm using this skin almost nine years.
Ok. What format do you want the meters to have? I mean that adding an extremely simple String meter, shows the numeric values you need, but maybe other string meters would also be required in order to make the skin a little bit weller designed. As a first step, I added the meter, below you can see what I got. Please check the following code and let me know what do you think about it. Will work on the design. I commented out the previously existing String meters, didn't remove them, but will when you say the new meter(s) is/are alright.
So, the code:

Code: Select all

[Rainmeter]
Group=NonePower

[Metadata]
Author=XANCI
Version=3.2.6
License=Creative Commons BY-NC-SA 3.0

[Variables]
@Include1=#@#Variables.inc
@Include2=#@#Styles.inc
@Include3=#@#Custom.inc
TextFont=Fira Sans
MediumTextFont=Fira Sans Medium
ThinFont=Fira Sans Light
LabelColor=255,255,255
ValueColor=255,255,255
IconAlpha=200
BackgroundAlpha=200
BackgroundColor=0,0,0,#BackgroundAlpha#
FrameColor=120,120,120,255
ImagePath=#@#Images\Weather\

Language=en-GB
LanguagePath=/#Language#
URLcurrent=https://weather.com/#Language#/weather/today/l/#WeatherCode#
URLtendday=https://weather.com/#Language#/weather/tenday/l/#WeatherCode#
URLhourbyhour=https://weather.com/#Language#/weather/hourbyhour/l/#WeatherCode#

LocationName=(?siU)(?(?=.*<h1 class="h4 today_nowcard-location").* className="h4 today_nowcard-location">(.*)<span class=".*" className=".*"></span></h1>)
TempUnit=<span class="icon icon-font iconset-ui icon-globe" className="icon icon-font iconset-ui icon-globe"></span><span>.*</span><span class="styles__borderLeft__2zhrE">°(\w)</span>
Current=(?siU)(?(?=.*</div></span><p class="today_nowcard-).*timestamp"><span>(.*)<!----> </span><span>(.*)</span>).*(?(?=.*<div class="today_nowcard-section today_nowcard-condition"><div class="condition-icon wx-weather-icon vector).*"><icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon icon-svg icon-svg-.* .* icon-.*">.*</icon></div>)(?(?=.*<div class="today_nowcard-temp").*><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<div class="today_nowcard-phrase).*">(.*)</div>)(?(?=.*<div class="today_nowcard-feels).*"><span class="btn-text">(.*)<!----> </span><span class="deg-feels" className="deg-feels">(.*)<sup>(.*)</sup></span>).*(?(?=.*<div class="today_nowcard-hilo").*><span class="btn-text">.*<!----> </span><span class="deg-hilo-nowcard"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<span class="btn-text">.*<!---->).* </span><span class="deg-hilo-nowcard"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<div class="today_nowcard-sidecar component panel"><table><caption>(.*)</caption><tbody>).*<tr><th>(.*)</th><td><span class="">(.*)</span></td></tr><tr><th>(.*)</th><td><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span></span></span></td></tr><tr><th>.*</th><td><span class="">.*<sup>.*</sup></span></td></tr><tr><th>(.*)</th><td><span class="">(.*)<!---->.*</span></td></tr><tr><th>(.*)</th><td><span class="">(.*)</span></td>)
36HOURS=(?siU)(?(?=.*<div class="today-daypart daypart-0).*  selected" id="daypart-0" data-track-string="today-looking-ahead_lookingAhead0hours" className="today-daypart daypart-0  selected"><div class="today-daypart-content" className="today-daypart-content"><div class="today-daypart-top"><span class="today-daypart-title" id="dp0-daypartName">(.*)</span>)(?(?=.*<span class="today-daypart-wxphrase").* id="dp0-phrase">(.*)</span></div>)(?(?=.*<div class="condition-icon wx-weather-icon").* aria-hidden="true" id="la-part0-icon"><icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon icon-svg icon-svg-.* .* icon-.*">.*</icon></div>)(?(?=.*<div class="today-daypart-hilo" id="dp0-).*highLow">(.*)</div>)(?(?=.*<div class="today-daypart-temp").*><span class="">(.*)<sup>(.*)</sup></span></div>)(?(?=.*<div class="today-daypart-precip").*><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class="precip-val" className="precip-val"><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="today-daypart daypart-1").* id="daypart-1" data-track-string="today-looking-ahead_lookingAhead12hours" className="today-daypart daypart-1"><div class="today-daypart-content" className="today-daypart-content"><div class="today-daypart-top"><span class="today-daypart-title" id="dp1-daypartName">(.*)</span>)(?(?=.*<span class="today-daypart-wxphrase").* id="dp1-phrase">(.*)</span></div>)(?(?=.*<div class="condition-icon wx-weather-icon").* aria-hidden="true" id="la-part1-icon"><icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon icon-svg icon-svg-.* .* icon-.*">.*</icon></div>)(?(?=.*<div class="today-daypart-hilo" id="dp1-).*highLow">(.*)</div>)(?(?=.*<div class="today-daypart-temp").*><span class="">(.*)<sup>(.*)</sup></span></div>)(?(?=.*<div class="today-daypart-precip").*><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class="precip-val" className="precip-val"><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="today-daypart daypart-2").* id="daypart-2" data-track-string="today-looking-ahead_lookingAhead24hours" className="today-daypart daypart-2"><div class="today-daypart-content" className="today-daypart-content"><div class="today-daypart-top"><span class="today-daypart-title" id="dp2-daypartName">(.*)</span>)(?(?=.*<span class="today-daypart-wxphrase").* id="dp2-phrase">(.*)</span></div>)(?(?=.*<div class="condition-icon wx-weather-icon").* aria-hidden="true" id="la-part2-icon"><icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon icon-svg icon-svg-.* .* icon-.*">.*</icon></div>)(?(?=.*<div class="today-daypart-hilo" id="dp2-).*highLow">(.*)</div>)(?(?=.*<div class="today-daypart-temp").*><span class="">(.*)<sup>(.*)</sup></span></div>)(?(?=.*<div class="today-daypart-precip").*><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class="precip-val" className="precip-val"><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="today-daypart daypart-3").* id="daypart-3" data-track-string="today-looking-ahead_lookingAhead36hours" className="today-daypart daypart-3"><div class="today-daypart-content" className="today-daypart-content"><div class="today-daypart-top"><span class="today-daypart-title" id="dp3-daypartName">(.*)</span>)(?(?=.*<span class="today-daypart-wxphrase").* id="dp3-phrase">(.*)</span></div>)(?(?=.*<div class="condition-icon wx-weather-icon").* aria-hidden="true" id="la-part3-icon"><icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon icon-svg icon-svg-.* .* icon-.*">.*</icon></div>)(?(?=.*<div class="today-daypart-hilo" id="dp3-).*highLow">(.*)</div>)(?(?=.*<div class="today-daypart-temp").*><span class="">(.*)<sup>(.*)</sup></span></div>)(?(?=.*<div class="today-daypart-precip").*><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class="precip-val" className="precip-val"><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="today-daypart daypart-4").* id="daypart-4" data-track-string="today-looking-ahead_lookingAhead48hours" className="today-daypart daypart-4"><div class="today-daypart-content" className="today-daypart-content"><div class="today-daypart-top"><span class="today-daypart-title" id="dp4-daypartName">(.*)</span>)(?(?=.*<span class="today-daypart-wxphrase").* id="dp4-phrase">(.*)</span></div>)(?(?=.*<div class="condition-icon wx-weather-icon").* aria-hidden="true" id="la-part4-icon"><icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon icon-svg icon-svg-.* .* icon-.*">.*</icon></div>)(?(?=.*<div class="today-daypart-hilo" id="dp4-).*highLow">(.*)</div>)(?(?=.*<div class="today-daypart-temp").*><span class="">(.*)<sup>(.*)</sup></span></div>)(?(?=.*<div class="today-daypart-precip").*><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class="precip-val" className="precip-val"><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>)
Hourly=(?siU)(?(?=.*<div class="hourly-time").*><span class="dsx-date">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky").* className="twc-table-shadow sticky"></div></div><div class="hourly-date">(.*)</div>).*(?(?=.*<td class="hidden-cell-sm description" headers="description").* data-track-string="ls_hourly_ls_hourly_toggle" className="hidden-cell-sm description"><span>(.*)</span>)(?(?=.*</td><td class="temp" headers="temp").* data-track-string="ls_hourly_ls_hourly_toggle" className="temp"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<td class="precip" headers="precip").* data-track-string="ls_hourly_ls_hourly_toggle" className="precip"><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="hourly-time").*><span class="dsx-date">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky").* className="twc-table-shadow sticky"></div></div><div class="hourly-date">(.*)</div>).*(?(?=.*<td class="hidden-cell-sm description" headers="description").* data-track-string="ls_hourly_ls_hourly_toggle" className="hidden-cell-sm description"><span>(.*)</span>)(?(?=.*</td><td class="temp" headers="temp").* data-track-string="ls_hourly_ls_hourly_toggle" className="temp"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<td class="precip" headers="precip").* data-track-string="ls_hourly_ls_hourly_toggle" className="precip"><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="hourly-time").*><span class="dsx-date">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky").* className="twc-table-shadow sticky"></div></div><div class="hourly-date">(.*)</div>).*(?(?=.*<td class="hidden-cell-sm description" headers="description").* data-track-string="ls_hourly_ls_hourly_toggle" className="hidden-cell-sm description"><span>(.*)</span>)(?(?=.*</td><td class="temp" headers="temp").* data-track-string="ls_hourly_ls_hourly_toggle" className="temp"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<td class="precip" headers="precip").* data-track-string="ls_hourly_ls_hourly_toggle" className="precip"><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="hourly-time").*><span class="dsx-date">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky").* className="twc-table-shadow sticky"></div></div><div class="hourly-date">(.*)</div>).*(?(?=.*<td class="hidden-cell-sm description" headers="description").* data-track-string="ls_hourly_ls_hourly_toggle" className="hidden-cell-sm description"><span>(.*)</span>)(?(?=.*</td><td class="temp" headers="temp").* data-track-string="ls_hourly_ls_hourly_toggle" className="temp"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<td class="precip" headers="precip").* data-track-string="ls_hourly_ls_hourly_toggle" className="precip"><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="hourly-time").*><span class="dsx-date">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky").* className="twc-table-shadow sticky"></div></div><div class="hourly-date">(.*)</div>).*(?(?=.*<td class="hidden-cell-sm description" headers="description").* data-track-string="ls_hourly_ls_hourly_toggle" className="hidden-cell-sm description"><span>(.*)</span>)(?(?=.*</td><td class="temp" headers="temp").* data-track-string="ls_hourly_ls_hourly_toggle" className="temp"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<td class="precip" headers="precip").* data-track-string="ls_hourly_ls_hourly_toggle" className="precip"><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="hourly-time").*><span class="dsx-date">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky").* className="twc-table-shadow sticky"></div></div><div class="hourly-date">(.*)</div>).*(?(?=.*<td class="hidden-cell-sm description" headers="description").* data-track-string="ls_hourly_ls_hourly_toggle" className="hidden-cell-sm description"><span>(.*)</span>)(?(?=.*</td><td class="temp" headers="temp").* data-track-string="ls_hourly_ls_hourly_toggle" className="temp"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<td class="precip" headers="precip").* data-track-string="ls_hourly_ls_hourly_toggle" className="precip"><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="hourly-time").*><span class="dsx-date">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky").* className="twc-table-shadow sticky"></div></div><div class="hourly-date">(.*)</div>).*(?(?=.*<td class="hidden-cell-sm description" headers="description").* data-track-string="ls_hourly_ls_hourly_toggle" className="hidden-cell-sm description"><span>(.*)</span>)(?(?=.*</td><td class="temp" headers="temp").* data-track-string="ls_hourly_ls_hourly_toggle" className="temp"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<td class="precip" headers="precip").* data-track-string="ls_hourly_ls_hourly_toggle" className="precip"><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="hourly-time").*><span class="dsx-date">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky").* className="twc-table-shadow sticky"></div></div><div class="hourly-date">(.*)</div>).*(?(?=.*<td class="hidden-cell-sm description" headers="description").* data-track-string="ls_hourly_ls_hourly_toggle" className="hidden-cell-sm description"><span>(.*)</span>)(?(?=.*</td><td class="temp" headers="temp").* data-track-string="ls_hourly_ls_hourly_toggle" className="temp"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<td class="precip" headers="precip").* data-track-string="ls_hourly_ls_hourly_toggle" className="precip"><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="hourly-time").*><span class="dsx-date">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky").* className="twc-table-shadow sticky"></div></div><div class="hourly-date">(.*)</div>).*(?(?=.*<td class="hidden-cell-sm description" headers="description").* data-track-string="ls_hourly_ls_hourly_toggle" className="hidden-cell-sm description"><span>(.*)</span>)(?(?=.*</td><td class="temp" headers="temp").* data-track-string="ls_hourly_ls_hourly_toggle" className="temp"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<td class="precip" headers="precip").* data-track-string="ls_hourly_ls_hourly_toggle" className="precip"><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="hourly-time").*><span class="dsx-date">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky").* className="twc-table-shadow sticky"></div></div><div class="hourly-date">(.*)</div>).*(?(?=.*<td class="hidden-cell-sm description" headers="description").* data-track-string="ls_hourly_ls_hourly_toggle" className="hidden-cell-sm description"><span>(.*)</span>)(?(?=.*</td><td class="temp" headers="temp").* data-track-string="ls_hourly_ls_hourly_toggle" className="temp"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<td class="precip" headers="precip").* data-track-string="ls_hourly_ls_hourly_toggle" className="precip"><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="hourly-time").*><span class="dsx-date">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky").* className="twc-table-shadow sticky"></div></div><div class="hourly-date">(.*)</div>).*(?(?=.*<td class="hidden-cell-sm description" headers="description").* data-track-string="ls_hourly_ls_hourly_toggle" className="hidden-cell-sm description"><span>(.*)</span>)(?(?=.*</td><td class="temp" headers="temp").* data-track-string="ls_hourly_ls_hourly_toggle" className="temp"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<td class="precip" headers="precip").* data-track-string="ls_hourly_ls_hourly_toggle" className="precip"><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="hourly-time").*><span class="dsx-date">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky").* className="twc-table-shadow sticky"></div></div><div class="hourly-date">(.*)</div>).*(?(?=.*<td class="hidden-cell-sm description" headers="description").* data-track-string="ls_hourly_ls_hourly_toggle" className="hidden-cell-sm description"><span>(.*)</span>)(?(?=.*</td><td class="temp" headers="temp").* data-track-string="ls_hourly_ls_hourly_toggle" className="temp"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<td class="precip" headers="precip").* data-track-string="ls_hourly_ls_hourly_toggle" className="precip"><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*
Forecast=(?siU)(?(?=.*</td><td class="twc-sticky-col" headers="day" .* className="twc-sticky-col").*><div><div><span class="date-time">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky" className="twc-table-shadow sticky").*></div></div><span class="day-detail clearfix">(.*)</span></div>)(?(?=.*</td><td class="description" .* className="description").*><span>(.*)</span>).*(?(?=.*</td><td class="precip" .* className="precip").*><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*</td><td class="twc-sticky-col" headers="day" .* className="twc-sticky-col").*><div><div><span class="date-time">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky" className="twc-table-shadow sticky").*></div></div><span class="day-detail clearfix">(.*)</span></div>)(?(?=.*</td><td class="description" .* className="description").*><span>(.*)</span>)(?(?=.*</td><td class="temp" .* className="temp").*><div><span class="">(.*)<sup>(.*)</sup></span>.*<span class="">(.*)<sup>(.*)</sup></span></div>)(?(?=.*</td><td class="precip" .* className="precip").*><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*</td><td class="twc-sticky-col" headers="day" .* className="twc-sticky-col").*><div><div><span class="date-time">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky" className="twc-table-shadow sticky").*></div></div><span class="day-detail clearfix">(.*)</span></div>)(?(?=.*</td><td class="description" .* className="description").*><span>(.*)</span>)(?(?=.*</td><td class="temp" .* className="temp").*><div><span class="">(.*)<sup>(.*)</sup></span>.*<span class="">(.*)<sup>(.*)</sup></span></div>)(?(?=.*</td><td class="precip" .* className="precip").*><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*</td><td class="twc-sticky-col" headers="day" .* className="twc-sticky-col").*><div><div><span class="date-time">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky" className="twc-table-shadow sticky").*></div></div><span class="day-detail clearfix">(.*)</span></div>)(?(?=.*</td><td class="description" .* className="description").*><span>(.*)</span>)(?(?=.*</td><td class="temp" .* className="temp").*><div><span class="">(.*)<sup>(.*)</sup></span>.*<span class="">(.*)<sup>(.*)</sup></span></div>)(?(?=.*</td><td class="precip" .* className="precip").*><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*</td><td class="twc-sticky-col" headers="day" .* className="twc-sticky-col").*><div><div><span class="date-time">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky" className="twc-table-shadow sticky").*></div></div><span class="day-detail clearfix">(.*)</span></div>)(?(?=.*</td><td class="description" .* className="description").*><span>(.*)</span>)(?(?=.*</td><td class="temp" .* className="temp").*><div><span class="">(.*)<sup>(.*)</sup></span>.*<span class="">(.*)<sup>(.*)</sup></span></div>)(?(?=.*</td><td class="precip" .* className="precip").*><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*</td><td class="twc-sticky-col" headers="day" .* className="twc-sticky-col").*><div><div><span class="date-time">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky" className="twc-table-shadow sticky").*></div></div><span class="day-detail clearfix">(.*)</span></div>)(?(?=.*</td><td class="description" .* className="description").*><span>(.*)</span>)(?(?=.*</td><td class="temp" .* className="temp").*><div><span class="">(.*)<sup>(.*)</sup></span>.*<span class="">(.*)<sup>(.*)</sup></span></div>)(?(?=.*</td><td class="precip" .* className="precip").*><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*</td><td class="twc-sticky-col" headers="day" .* className="twc-sticky-col").*><div><div><span class="date-time">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky" className="twc-table-shadow sticky").*></div></div><span class="day-detail clearfix">(.*)</span></div>)(?(?=.*</td><td class="description" .* className="description").*><span>(.*)</span>)(?(?=.*</td><td class="temp" .* className="temp").*><div><span class="">(.*)<sup>(.*)</sup></span>.*<span class="">(.*)<sup>(.*)</sup></span></div>)(?(?=.*</td><td class="precip" .* className="precip").*><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*</td><td class="twc-sticky-col" headers="day" .* className="twc-sticky-col").*><div><div><span class="date-time">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky" className="twc-table-shadow sticky").*></div></div><span class="day-detail clearfix">(.*)</span></div>)(?(?=.*</td><td class="description" .* className="description").*><span>(.*)</span>)(?(?=.*</td><td class="temp" .* className="temp").*><div><span class="">(.*)<sup>(.*)</sup></span>.*<span class="">(.*)<sup>(.*)</sup></span></div>)(?(?=.*</td><td class="precip" .* className="precip").*><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*
SunRiseSet=(?siU)(?(?=.*<span class="wx-detail-label show-sm">.*</span).*<span class="wx-dsxdate" id="dp0-details-(.*)">(.*)</span>.*<span class="wx-dsxdate" id="dp0-details-(.*)">(.*)</span>)
Details=(?siU)(?(?=.*<td class="twc-sticky-col" headers="day" title="(.*)").* .* className="twc-sticky-col"><div>).*(?(?=.*<td class="twc-sticky-col" headers="day" title="(.*)").* .* className="twc-sticky-col"><div>).*(?(?=.*<td class="twc-sticky-col" headers="day" title="(.*)").* .* className="twc-sticky-col"><div>).*(?(?=.*<td class="twc-sticky-col" headers="day" title="(.*)").* .* className="twc-sticky-col"><div>).*(?(?=.*<td class="twc-sticky-col" headers="day" title="(.*)").* .* className="twc-sticky-col"><div>).*(?(?=.*<td class="twc-sticky-col" headers="day" title="(.*)").* .* className="twc-sticky-col"><div>).*(?(?=.*<td class="twc-sticky-col" headers="day" title="(.*)").* .* className="twc-sticky-col"><div>).*(?(?=.*<td class="twc-sticky-col" headers="day" title="(.*)").* .* className="twc-sticky-col"><div>)
Details36H=(?siU)(?(?=.*{"dayPartName":"(.*)","precipPct":.*,"precipAmt":.*).*,"narrative":"(.*)").*(?(?=.*{"dayPartName":"(.*)","precipPct":.*,"precipAmt":.*).*,"narrative":"(.*)").*(?(?=.*{"dayPartName":"(.*)","precipPct":.*,"precipAmt":.*).*,"narrative":"(.*)").*(?(?=.*{"dayPartName":"(.*)","precipPct":.*,"precipAmt":.*).*,"narrative":"(.*)").*(?(?=.*{"dayPartName":"(.*)","precipPct":.*,"precipAmt":.*).*,"narrative":"(.*)").*
PressureArrow=(?siU)<div class="today_nowcard-sidecar component panel"><table><caption>.*</caption><tbody>.*(?(?=.*<th>.*</th><td><span class="">.*<!----> <span class="icon icon-font iconset-arrows).* icon-arrow-.*-line" className="icon icon-font iconset-arrows icon-(.*)-line"></span>)
SevereAlert=(?siU)(?(?=.*<a class="priority bg-alert-.*" href="#Lang#/weather/alerts/localalerts/l/.*").* title=".*" data-from-string=".*" className="priority bg-alert-.*"><div class="title text text-overflow" className="title text text-overflow"><span class="warning-text" className="warning-text">.*</span><span class="timestamp" className="timestamp">.*</span>)
PriorityAlert=(?siU)(?(?=.*<div class="gm-alerts-time).*"><a class="priority bg-alert-.*" href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*
ALERT=(?siU)(?(?=.*<div id=".*-SevereAlertBar).*-.*"><div><div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*
IconAlert=(?siU)(?(?=.*<div id=".*-SevereAlertBar).*-.*"><div><div>)(?(?=.*<div class="SevereAlertBar" role="banner" aria-label=".*" className="SevereAlertBar">.*<div class="priority bg-alert-.*").* className="priority bg-alert-.*">).*




[StyleTemp]
FontFace=#FontFace2#

[StyleIcon]
ColorMatrix1=0;0;0;0;0
ColorMatrix2=0;0;0;0;0
ColorMatrix3=0;0;0;0;0
ColorMatrix4=0;0;0;0.8;0
ColorMatrix5=#MC1#;#MC2#;#MC3#;0;1
AntiAlias=1
DynamicVariables=1

[MeasureCurrentAll]
Measure=WebParser
Group=Weather
Url=#URLcurrent#
RegExp=(?siU)^(.*)$
UpdateRate=600

[MeasureTenDayAll]
Measure=WebParser
Group=Weather
Url=#URLtendday#
RegExp=(?siU)^(.*)$
UpdateRate=600

[MeasureHourbyHourAll]
Measure=WebParser
Group=Weather
Url=#URLhourbyhour#
RegExp=(?siU)^(.*)$
UpdateRate=600

[MeasureCurrentParent]
Measure=WebParser
Group=Weather
Url=[MeasureCurrentAll]
StringIndex=0
RegExp=#Current#
LogSubstringErrors=0

[MeasureIcon]
Measure=WebParser
Group=Weather
Url=[MeasureCurrentParent]
StringIndex=3

[MeasureTemp]
Measure=WebParser
Group=Weather
Url=[MeasureCurrentParent]
StringIndex=4

[MeasureTempUnit]
Measure=WebParser
Group=Weather
Url=[MeasureCurrentParent]
StringIndex=0
RegExp=#TempUnit#
StringIndex2=1

[MeasureFH0]
Measure=WebParser
Group=Weather
Url=[MeasureCurrentParent]
StringIndex=10

[MeasureFL0]
Measure=WebParser
Group=Weather
Url=[MeasureCurrentParent]
StringIndex=12

[MeasureForecastParent]
Measure=WebParser
Group=Weather
Url=[MeasureTenDayAll]
StringIndex=0
RegExp=#Forecast#
LogSubstringErrors=0

[MeasureFD1]
Measure=WebParser
Group=Weather
Url=[MeasureForecastParent]
StringIndex=7

[MeasureFI1]
Measure=WebParser
Group=Weather
Url=[MeasureForecastParent]
StringIndex=8

[MeasureFH1]
Measure=WebParser
Group=Weather
Url=[MeasureForecastParent]
StringIndex=11

[MeasureFL1]
Measure=WebParser
Group=Weather
Url=[MeasureForecastParent]
StringIndex=13

[MeasureFD2]
Measure=WebParser
Group=Weather
Url=[MeasureForecastParent]
StringIndex=17

[MeasureFI2]
Measure=WebParser
Group=Weather
Url=[MeasureForecastParent]
StringIndex=18

[MeasureFH2]
Measure=WebParser
Group=Weather
Url=[MeasureForecastParent]
StringIndex=21

[MeasureFL2]
Measure=WebParser
Group=Weather
Url=[MeasureForecastParent]
StringIndex=23

[MeasureScript]
Measure=Script
ScriptFile=Weather.lua

;[MeterWeatherLabel]
;Meter=STRING
;MeterStyle=StyleSub
;X=95
;Y=76
;FontFace=#FontFace4#
;Text=天氣

;[MeterTempLabel]
;Group=Top
;Meter=STRING
;MeterStyle=StyleSub
;X=38
;Y=33r
;FontFace=#FontFace4#
;Text=溫度

;[MeterTemp]
;Group=Top
;Meter=STRING
;MeterStyle=StyleMain|StyleTemp
;X=40
;Y=127
;Text=N/A

[MeterIcon]
Group=Icon
Meter=IMAGE
MeterStyle=StyleIcon
X=72
Y=90

[MeterIconNA]
Group=Icon
Meter=IMAGE
ImageName=#@#Images\C
MeterStyle=StyleM
X=8r
Y=2r

;[MeterFD0]
;Group=Forecast|F0
;MeasureName=MeasureFD0
;Meter=STRING
;MeterStyle=StyleLabel
;X=38
;Y=38

;[MeterFH0]
;Group=Forecast|F0
;Meter=STRING
;MeterStyle=StyleLabel|StyleTemp
;X=26
;Y=14r

;[MeterFL0]
;Group=Forecast|F0
;Meter=STRING
;MeterStyle=StyleLabel|StyleTemp
;X=38
;Y=28r

[MeterFI0]
Group=Forecast|F0
Meter=IMAGE
MeterStyle=StyleIcon
X=25
Y=49

;[MeterFD1]
;Group=Forecast|F1
;MeasureName=MeasureFD1
;Meter=STRING
;MeterStyle=StyleLabel
;X=95
;Y=5

;[MeterFH1]
;Group=Forecast|F1
;Meter=STRING
;MeterStyle=StyleLabel|StyleTemp
;X=83
;Y=14r

;[MeterFL1]
;Group=Forecast|F1
;Meter=STRING
;MeterStyle=StyleLabel|StyleTemp
;X=95
;Y=28r

[MeterFI1]
Group=Forecast|F1
Meter=IMAGE
MeterStyle=StyleIcon
X=82
Y=16

;[MeterFD2]
;Group=Forecast|F2
;MeasureName=MeasureFD2
;Meter=STRING
;MeterStyle=StyleLabel
;X=152
;Y=38

;[MeterFH2]
;Group=Forecast|F2
;Meter=STRING
;MeterStyle=StyleLabel|StyleTemp
;X=140
;Y=14r

;[MeterFL2]
;Group=Forecast|F2
;Meter=STRING
;MeterStyle=StyleLabel|StyleTemp
;X=152
;Y=28r

[MeterFI2]
Group=Forecast|F2
Meter=IMAGE
MeterStyle=StyleIcon
X=139
Y=49

[MeterValues]
Meter=STRING
MeasureName=MeasureIcon
MeasureName2=MeasureTemp
MeasureName3=MeasureFH0
MeasureName4=MeasureFL0
MeasureName5=MeasureFD1
MeasureName6=MeasureFI1
MeasureName7=MeasureFH1
MeasureName8=MeasureFL1
MeasureName9=MeasureFD2
MeasureName10=MeasureFI2
MeasureName11=MeasureFH2
MeasureName12=MeasureFL2
MeasureName13=MeasureTempUnit
X=0
Y=0
Padding=15,5,15,5
FontColor=220,220,220
FontEffectColor=0,0,0
StringEffect=Shadow
SolidColor=0,0,0,150
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFT
AntiAlias=1
Text=Current:#CRLF#	Icon: %1#CRLF#	Temp: %2[\x00B0]%13#CRLF#Today:#CRLF#	Max: %3[\x00B0]%13#CRLF#	Min: %4[\x00B0]%13#CRLF#Day: %5#CRLF#	Icon: %6#CRLF#	Max: %7[\x00B0]%13#CRLF#	Min: %8[\x00B0]%13#CRLF#Day: %9#CRLF#	Icon: %10#CRLF#	Max: %11[\x00B0]%13#CRLF#	Min: %12[\x00B0]%13
DynamicVariables=1
For sure this isn't the best approach, but could be a start.
Murasaki
Posts: 18
Joined: February 2nd, 2020, 8:59 am
Location: Taipei

Re: Trying to set up Weather and Spotify on older skin

Post by Murasaki »

balala wrote: February 2nd, 2020, 5:12 pm Ok. What format do you want the meters to have? I mean that adding an extremely simple String meter, shows the numeric values you need, but maybe other string meters would also be required in order to make the skin a little bit weller designed. As a first step, I added the meter, below you can see what I got. Please check the following code and let me know what do you think about it. Will work on the design. I commented out the previously existing String meters, didn't remove them, but will when you say the new meter(s) is/are alright.
So, the code:
The info that is showing is totally great. Like the old used to be, simple but useful.
I think now just put them like the old skin same position will be enough for me, and with an icon to show the weather condition will be awesome.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Trying to set up Weather and Spotify on older skin

Post by balala »

Murasaki wrote: February 3rd, 2020, 7:37 am and with an icon to show the weather condition will be awesome.
Ok. But for first please check if the weather icons exist into the Skins\NERV UI\@Resources\Images\Weather folder. They should and I suppose they are there, but please check, just to make sure.
Murasaki
Posts: 18
Joined: February 2nd, 2020, 8:59 am
Location: Taipei

Re: Trying to set up Weather and Spotify on older skin

Post by Murasaki »

balala wrote: February 3rd, 2020, 10:37 am Ok. But for first please check if the weather icons exist into the Skins\NERV UI\@Resources\Images\Weather folder. They should and I suppose they are there, but please check, just to make sure.
Yes, the icons are under the Weather folder.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Trying to set up Weather and Spotify on older skin

Post by balala »

Murasaki wrote: February 3rd, 2020, 3:56 pm Yes, the icons are under the Weather folder.
Ok. Next question: what do the 天氣 and 溫度 mean? They are posted in to the [MeterWeatherLabel] respectively [MeterTempLabel] meters, so I suppose they mean something like description and temperature, or something similar?
Murasaki
Posts: 18
Joined: February 2nd, 2020, 8:59 am
Location: Taipei

Re: Trying to set up Weather and Spotify on older skin

Post by Murasaki »

balala wrote: February 3rd, 2020, 4:33 pm Ok. Next question: what do the 天氣 and 溫度 mean? They are posted in to the [MeterWeatherLabel] respectively [MeterTempLabel] meters, so I suppose they mean something like description and temperature, or something similar?
天氣 mean weather, the old skin used to show the current weather condition icon under this word. 溫度mean temperature, the old skin used to show the current temperature under this word.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Trying to set up Weather and Spotify on older skin

Post by balala »

Murasaki wrote: February 3rd, 2020, 4:51 pm 天氣 mean weather, the old skin used to show the current weather condition icon under this word. 溫度mean temperature, the old skin used to show the current temperature under this word.
Ok. Will rewrite the code right now, in a few hours will be back with it.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Trying to set up Weather and Spotify on older skin

Post by balala »

balala wrote: February 3rd, 2020, 4:55 pm Ok. Will rewrite the code right now, in a few hours will be back with it.
Finally here it is (see below). Note that for now only the current temperature and the appropriate icon are shown, but further information can be added as well. I know there were other information as well, but I'm not sure what exactly. So, what else do you need anymore?

Code: Select all

[Rainmeter]
Group=NonePower
DynamicWindowSize=1

[Metadata]
Author=XANCI
Version=3.2.6
License=Creative Commons BY-NC-SA 3.0

[Variables]
@Include1=#@#Variables.inc
@Include2=#@#Styles.inc
@Include3=#@#Custom.inc
TextFont=Fira Sans
MediumTextFont=Fira Sans Medium
ThinFont=Fira Sans Light
LabelColor=255,255,255
ValueColor=255,255,255
IconAlpha=200
BackgroundAlpha=200
BackgroundColor=0,0,0,#BackgroundAlpha#
FrameColor=120,120,120,255
ImagePath=#@#Images\Weather\
Language=en-GB
LanguagePath=/#Language#
URLcurrent=https://weather.com/#Language#/weather/today/l/#WeatherCode#
URLtendday=https://weather.com/#Language#/weather/tenday/l/#WeatherCode#
URLhourbyhour=https://weather.com/#Language#/weather/hourbyhour/l/#WeatherCode#
LocationName=(?siU)(?(?=.*<h1 class="h4 today_nowcard-location").* className="h4 today_nowcard-location">(.*)<span class=".*" className=".*"></span></h1>)
TempUnit=<span class="icon icon-font iconset-ui icon-globe" className="icon icon-font iconset-ui icon-globe"></span><span>.*</span><span class="styles__borderLeft__2zhrE">°(\w)</span>
Current=(?siU)(?(?=.*</div></span><p class="today_nowcard-).*timestamp"><span>(.*)<!----> </span><span>(.*)</span>).*(?(?=.*<div class="today_nowcard-section today_nowcard-condition"><div class="condition-icon wx-weather-icon vector).*"><icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon icon-svg icon-svg-.* .* icon-.*">.*</icon></div>)(?(?=.*<div class="today_nowcard-temp").*><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<div class="today_nowcard-phrase).*">(.*)</div>)(?(?=.*<div class="today_nowcard-feels).*"><span class="btn-text">(.*)<!----> </span><span class="deg-feels" className="deg-feels">(.*)<sup>(.*)</sup></span>).*(?(?=.*<div class="today_nowcard-hilo").*><span class="btn-text">.*<!----> </span><span class="deg-hilo-nowcard"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<span class="btn-text">.*<!---->).* </span><span class="deg-hilo-nowcard"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<div class="today_nowcard-sidecar component panel"><table><caption>(.*)</caption><tbody>).*<tr><th>(.*)</th><td><span class="">(.*)</span></td></tr><tr><th>(.*)</th><td><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span></span></span></td></tr><tr><th>.*</th><td><span class="">.*<sup>.*</sup></span></td></tr><tr><th>(.*)</th><td><span class="">(.*)<!---->.*</span></td></tr><tr><th>(.*)</th><td><span class="">(.*)</span></td>)
36HOURS=(?siU)(?(?=.*<div class="today-daypart daypart-0).*  selected" id="daypart-0" data-track-string="today-looking-ahead_lookingAhead0hours" className="today-daypart daypart-0  selected"><div class="today-daypart-content" className="today-daypart-content"><div class="today-daypart-top"><span class="today-daypart-title" id="dp0-daypartName">(.*)</span>)(?(?=.*<span class="today-daypart-wxphrase").* id="dp0-phrase">(.*)</span></div>)(?(?=.*<div class="condition-icon wx-weather-icon").* aria-hidden="true" id="la-part0-icon"><icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon icon-svg icon-svg-.* .* icon-.*">.*</icon></div>)(?(?=.*<div class="today-daypart-hilo" id="dp0-).*highLow">(.*)</div>)(?(?=.*<div class="today-daypart-temp").*><span class="">(.*)<sup>(.*)</sup></span></div>)(?(?=.*<div class="today-daypart-precip").*><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class="precip-val" className="precip-val"><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="today-daypart daypart-1").* id="daypart-1" data-track-string="today-looking-ahead_lookingAhead12hours" className="today-daypart daypart-1"><div class="today-daypart-content" className="today-daypart-content"><div class="today-daypart-top"><span class="today-daypart-title" id="dp1-daypartName">(.*)</span>)(?(?=.*<span class="today-daypart-wxphrase").* id="dp1-phrase">(.*)</span></div>)(?(?=.*<div class="condition-icon wx-weather-icon").* aria-hidden="true" id="la-part1-icon"><icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon icon-svg icon-svg-.* .* icon-.*">.*</icon></div>)(?(?=.*<div class="today-daypart-hilo" id="dp1-).*highLow">(.*)</div>)(?(?=.*<div class="today-daypart-temp").*><span class="">(.*)<sup>(.*)</sup></span></div>)(?(?=.*<div class="today-daypart-precip").*><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class="precip-val" className="precip-val"><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="today-daypart daypart-2").* id="daypart-2" data-track-string="today-looking-ahead_lookingAhead24hours" className="today-daypart daypart-2"><div class="today-daypart-content" className="today-daypart-content"><div class="today-daypart-top"><span class="today-daypart-title" id="dp2-daypartName">(.*)</span>)(?(?=.*<span class="today-daypart-wxphrase").* id="dp2-phrase">(.*)</span></div>)(?(?=.*<div class="condition-icon wx-weather-icon").* aria-hidden="true" id="la-part2-icon"><icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon icon-svg icon-svg-.* .* icon-.*">.*</icon></div>)(?(?=.*<div class="today-daypart-hilo" id="dp2-).*highLow">(.*)</div>)(?(?=.*<div class="today-daypart-temp").*><span class="">(.*)<sup>(.*)</sup></span></div>)(?(?=.*<div class="today-daypart-precip").*><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class="precip-val" className="precip-val"><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="today-daypart daypart-3").* id="daypart-3" data-track-string="today-looking-ahead_lookingAhead36hours" className="today-daypart daypart-3"><div class="today-daypart-content" className="today-daypart-content"><div class="today-daypart-top"><span class="today-daypart-title" id="dp3-daypartName">(.*)</span>)(?(?=.*<span class="today-daypart-wxphrase").* id="dp3-phrase">(.*)</span></div>)(?(?=.*<div class="condition-icon wx-weather-icon").* aria-hidden="true" id="la-part3-icon"><icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon icon-svg icon-svg-.* .* icon-.*">.*</icon></div>)(?(?=.*<div class="today-daypart-hilo" id="dp3-).*highLow">(.*)</div>)(?(?=.*<div class="today-daypart-temp").*><span class="">(.*)<sup>(.*)</sup></span></div>)(?(?=.*<div class="today-daypart-precip").*><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class="precip-val" className="precip-val"><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="today-daypart daypart-4").* id="daypart-4" data-track-string="today-looking-ahead_lookingAhead48hours" className="today-daypart daypart-4"><div class="today-daypart-content" className="today-daypart-content"><div class="today-daypart-top"><span class="today-daypart-title" id="dp4-daypartName">(.*)</span>)(?(?=.*<span class="today-daypart-wxphrase").* id="dp4-phrase">(.*)</span></div>)(?(?=.*<div class="condition-icon wx-weather-icon").* aria-hidden="true" id="la-part4-icon"><icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon icon-svg icon-svg-.* .* icon-.*">.*</icon></div>)(?(?=.*<div class="today-daypart-hilo" id="dp4-).*highLow">(.*)</div>)(?(?=.*<div class="today-daypart-temp").*><span class="">(.*)<sup>(.*)</sup></span></div>)(?(?=.*<div class="today-daypart-precip").*><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class="precip-val" className="precip-val"><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>)
Hourly=(?siU)(?(?=.*<div class="hourly-time").*><span class="dsx-date">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky").* className="twc-table-shadow sticky"></div></div><div class="hourly-date">(.*)</div>).*(?(?=.*<td class="hidden-cell-sm description" headers="description").* data-track-string="ls_hourly_ls_hourly_toggle" className="hidden-cell-sm description"><span>(.*)</span>)(?(?=.*</td><td class="temp" headers="temp").* data-track-string="ls_hourly_ls_hourly_toggle" className="temp"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<td class="precip" headers="precip").* data-track-string="ls_hourly_ls_hourly_toggle" className="precip"><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="hourly-time").*><span class="dsx-date">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky").* className="twc-table-shadow sticky"></div></div><div class="hourly-date">(.*)</div>).*(?(?=.*<td class="hidden-cell-sm description" headers="description").* data-track-string="ls_hourly_ls_hourly_toggle" className="hidden-cell-sm description"><span>(.*)</span>)(?(?=.*</td><td class="temp" headers="temp").* data-track-string="ls_hourly_ls_hourly_toggle" className="temp"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<td class="precip" headers="precip").* data-track-string="ls_hourly_ls_hourly_toggle" className="precip"><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="hourly-time").*><span class="dsx-date">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky").* className="twc-table-shadow sticky"></div></div><div class="hourly-date">(.*)</div>).*(?(?=.*<td class="hidden-cell-sm description" headers="description").* data-track-string="ls_hourly_ls_hourly_toggle" className="hidden-cell-sm description"><span>(.*)</span>)(?(?=.*</td><td class="temp" headers="temp").* data-track-string="ls_hourly_ls_hourly_toggle" className="temp"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<td class="precip" headers="precip").* data-track-string="ls_hourly_ls_hourly_toggle" className="precip"><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="hourly-time").*><span class="dsx-date">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky").* className="twc-table-shadow sticky"></div></div><div class="hourly-date">(.*)</div>).*(?(?=.*<td class="hidden-cell-sm description" headers="description").* data-track-string="ls_hourly_ls_hourly_toggle" className="hidden-cell-sm description"><span>(.*)</span>)(?(?=.*</td><td class="temp" headers="temp").* data-track-string="ls_hourly_ls_hourly_toggle" className="temp"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<td class="precip" headers="precip").* data-track-string="ls_hourly_ls_hourly_toggle" className="precip"><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="hourly-time").*><span class="dsx-date">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky").* className="twc-table-shadow sticky"></div></div><div class="hourly-date">(.*)</div>).*(?(?=.*<td class="hidden-cell-sm description" headers="description").* data-track-string="ls_hourly_ls_hourly_toggle" className="hidden-cell-sm description"><span>(.*)</span>)(?(?=.*</td><td class="temp" headers="temp").* data-track-string="ls_hourly_ls_hourly_toggle" className="temp"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<td class="precip" headers="precip").* data-track-string="ls_hourly_ls_hourly_toggle" className="precip"><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="hourly-time").*><span class="dsx-date">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky").* className="twc-table-shadow sticky"></div></div><div class="hourly-date">(.*)</div>).*(?(?=.*<td class="hidden-cell-sm description" headers="description").* data-track-string="ls_hourly_ls_hourly_toggle" className="hidden-cell-sm description"><span>(.*)</span>)(?(?=.*</td><td class="temp" headers="temp").* data-track-string="ls_hourly_ls_hourly_toggle" className="temp"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<td class="precip" headers="precip").* data-track-string="ls_hourly_ls_hourly_toggle" className="precip"><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="hourly-time").*><span class="dsx-date">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky").* className="twc-table-shadow sticky"></div></div><div class="hourly-date">(.*)</div>).*(?(?=.*<td class="hidden-cell-sm description" headers="description").* data-track-string="ls_hourly_ls_hourly_toggle" className="hidden-cell-sm description"><span>(.*)</span>)(?(?=.*</td><td class="temp" headers="temp").* data-track-string="ls_hourly_ls_hourly_toggle" className="temp"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<td class="precip" headers="precip").* data-track-string="ls_hourly_ls_hourly_toggle" className="precip"><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="hourly-time").*><span class="dsx-date">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky").* className="twc-table-shadow sticky"></div></div><div class="hourly-date">(.*)</div>).*(?(?=.*<td class="hidden-cell-sm description" headers="description").* data-track-string="ls_hourly_ls_hourly_toggle" className="hidden-cell-sm description"><span>(.*)</span>)(?(?=.*</td><td class="temp" headers="temp").* data-track-string="ls_hourly_ls_hourly_toggle" className="temp"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<td class="precip" headers="precip").* data-track-string="ls_hourly_ls_hourly_toggle" className="precip"><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="hourly-time").*><span class="dsx-date">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky").* className="twc-table-shadow sticky"></div></div><div class="hourly-date">(.*)</div>).*(?(?=.*<td class="hidden-cell-sm description" headers="description").* data-track-string="ls_hourly_ls_hourly_toggle" className="hidden-cell-sm description"><span>(.*)</span>)(?(?=.*</td><td class="temp" headers="temp").* data-track-string="ls_hourly_ls_hourly_toggle" className="temp"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<td class="precip" headers="precip").* data-track-string="ls_hourly_ls_hourly_toggle" className="precip"><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="hourly-time").*><span class="dsx-date">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky").* className="twc-table-shadow sticky"></div></div><div class="hourly-date">(.*)</div>).*(?(?=.*<td class="hidden-cell-sm description" headers="description").* data-track-string="ls_hourly_ls_hourly_toggle" className="hidden-cell-sm description"><span>(.*)</span>)(?(?=.*</td><td class="temp" headers="temp").* data-track-string="ls_hourly_ls_hourly_toggle" className="temp"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<td class="precip" headers="precip").* data-track-string="ls_hourly_ls_hourly_toggle" className="precip"><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="hourly-time").*><span class="dsx-date">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky").* className="twc-table-shadow sticky"></div></div><div class="hourly-date">(.*)</div>).*(?(?=.*<td class="hidden-cell-sm description" headers="description").* data-track-string="ls_hourly_ls_hourly_toggle" className="hidden-cell-sm description"><span>(.*)</span>)(?(?=.*</td><td class="temp" headers="temp").* data-track-string="ls_hourly_ls_hourly_toggle" className="temp"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<td class="precip" headers="precip").* data-track-string="ls_hourly_ls_hourly_toggle" className="precip"><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*<div class="hourly-time").*><span class="dsx-date">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky").* className="twc-table-shadow sticky"></div></div><div class="hourly-date">(.*)</div>).*(?(?=.*<td class="hidden-cell-sm description" headers="description").* data-track-string="ls_hourly_ls_hourly_toggle" className="hidden-cell-sm description"><span>(.*)</span>)(?(?=.*</td><td class="temp" headers="temp").* data-track-string="ls_hourly_ls_hourly_toggle" className="temp"><span class="">(.*)<sup>(.*)</sup></span>).*(?(?=.*<td class="precip" headers="precip").* data-track-string="ls_hourly_ls_hourly_toggle" className="precip"><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*
Forecast=(?siU)(?(?=.*</td><td class="twc-sticky-col" headers="day" .* className="twc-sticky-col").*><div><div><span class="date-time">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky" className="twc-table-shadow sticky").*></div></div><span class="day-detail clearfix">(.*)</span></div>)(?(?=.*</td><td class="description" .* className="description").*><span>(.*)</span>).*(?(?=.*</td><td class="precip" .* className="precip").*><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*</td><td class="twc-sticky-col" headers="day" .* className="twc-sticky-col").*><div><div><span class="date-time">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky" className="twc-table-shadow sticky").*></div></div><span class="day-detail clearfix">(.*)</span></div>)(?(?=.*</td><td class="description" .* className="description").*><span>(.*)</span>)(?(?=.*</td><td class="temp" .* className="temp").*><div><span class="">(.*)<sup>(.*)</sup></span>.*<span class="">(.*)<sup>(.*)</sup></span></div>)(?(?=.*</td><td class="precip" .* className="precip").*><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*</td><td class="twc-sticky-col" headers="day" .* className="twc-sticky-col").*><div><div><span class="date-time">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky" className="twc-table-shadow sticky").*></div></div><span class="day-detail clearfix">(.*)</span></div>)(?(?=.*</td><td class="description" .* className="description").*><span>(.*)</span>)(?(?=.*</td><td class="temp" .* className="temp").*><div><span class="">(.*)<sup>(.*)</sup></span>.*<span class="">(.*)<sup>(.*)</sup></span></div>)(?(?=.*</td><td class="precip" .* className="precip").*><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*</td><td class="twc-sticky-col" headers="day" .* className="twc-sticky-col").*><div><div><span class="date-time">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky" className="twc-table-shadow sticky").*></div></div><span class="day-detail clearfix">(.*)</span></div>)(?(?=.*</td><td class="description" .* className="description").*><span>(.*)</span>)(?(?=.*</td><td class="temp" .* className="temp").*><div><span class="">(.*)<sup>(.*)</sup></span>.*<span class="">(.*)<sup>(.*)</sup></span></div>)(?(?=.*</td><td class="precip" .* className="precip").*><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*</td><td class="twc-sticky-col" headers="day" .* className="twc-sticky-col").*><div><div><span class="date-time">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky" className="twc-table-shadow sticky").*></div></div><span class="day-detail clearfix">(.*)</span></div>)(?(?=.*</td><td class="description" .* className="description").*><span>(.*)</span>)(?(?=.*</td><td class="temp" .* className="temp").*><div><span class="">(.*)<sup>(.*)</sup></span>.*<span class="">(.*)<sup>(.*)</sup></span></div>)(?(?=.*</td><td class="precip" .* className="precip").*><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*</td><td class="twc-sticky-col" headers="day" .* className="twc-sticky-col").*><div><div><span class="date-time">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky" className="twc-table-shadow sticky").*></div></div><span class="day-detail clearfix">(.*)</span></div>)(?(?=.*</td><td class="description" .* className="description").*><span>(.*)</span>)(?(?=.*</td><td class="temp" .* className="temp").*><div><span class="">(.*)<sup>(.*)</sup></span>.*<span class="">(.*)<sup>(.*)</sup></span></div>)(?(?=.*</td><td class="precip" .* className="precip").*><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*</td><td class="twc-sticky-col" headers="day" .* className="twc-sticky-col").*><div><div><span class="date-time">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky" className="twc-table-shadow sticky").*></div></div><span class="day-detail clearfix">(.*)</span></div>)(?(?=.*</td><td class="description" .* className="description").*><span>(.*)</span>)(?(?=.*</td><td class="temp" .* className="temp").*><div><span class="">(.*)<sup>(.*)</sup></span>.*<span class="">(.*)<sup>(.*)</sup></span></div>)(?(?=.*</td><td class="precip" .* className="precip").*><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*(?(?=.*</td><td class="twc-sticky-col" headers="day" .* className="twc-sticky-col").*><div><div><span class="date-time">(.*)</span>)(?(?=.*<icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon).* icon-svg icon-svg-.* .* icon-.*">.*</icon>)(?(?=.*<div class="twc-table-shadow sticky" className="twc-table-shadow sticky").*></div></div><span class="day-detail clearfix">(.*)</span></div>)(?(?=.*</td><td class="description" .* className="description").*><span>(.*)</span>)(?(?=.*</td><td class="temp" .* className="temp").*><div><span class="">(.*)<sup>(.*)</sup></span>.*<span class="">(.*)<sup>(.*)</sup></span></div>)(?(?=.*</td><td class="precip" .* className="precip").*><div><span class="icon icon-font iconset-weather-data icon-drop-1" className="icon icon-font iconset-weather-data icon-drop-1"></span><span class=""><span>(.*)<span class="Percentage__percentSymbol__2Q_AR">(.*)</span>).*
SunRiseSet=(?siU)(?(?=.*<span class="wx-detail-label show-sm">.*</span).*<span class="wx-dsxdate" id="dp0-details-(.*)">(.*)</span>.*<span class="wx-dsxdate" id="dp0-details-(.*)">(.*)</span>)
Details=(?siU)(?(?=.*<td class="twc-sticky-col" headers="day" title="(.*)").* .* className="twc-sticky-col"><div>).*(?(?=.*<td class="twc-sticky-col" headers="day" title="(.*)").* .* className="twc-sticky-col"><div>).*(?(?=.*<td class="twc-sticky-col" headers="day" title="(.*)").* .* className="twc-sticky-col"><div>).*(?(?=.*<td class="twc-sticky-col" headers="day" title="(.*)").* .* className="twc-sticky-col"><div>).*(?(?=.*<td class="twc-sticky-col" headers="day" title="(.*)").* .* className="twc-sticky-col"><div>).*(?(?=.*<td class="twc-sticky-col" headers="day" title="(.*)").* .* className="twc-sticky-col"><div>).*(?(?=.*<td class="twc-sticky-col" headers="day" title="(.*)").* .* className="twc-sticky-col"><div>).*(?(?=.*<td class="twc-sticky-col" headers="day" title="(.*)").* .* className="twc-sticky-col"><div>)
Details36H=(?siU)(?(?=.*{"dayPartName":"(.*)","precipPct":.*,"precipAmt":.*).*,"narrative":"(.*)").*(?(?=.*{"dayPartName":"(.*)","precipPct":.*,"precipAmt":.*).*,"narrative":"(.*)").*(?(?=.*{"dayPartName":"(.*)","precipPct":.*,"precipAmt":.*).*,"narrative":"(.*)").*(?(?=.*{"dayPartName":"(.*)","precipPct":.*,"precipAmt":.*).*,"narrative":"(.*)").*(?(?=.*{"dayPartName":"(.*)","precipPct":.*,"precipAmt":.*).*,"narrative":"(.*)").*
PressureArrow=(?siU)<div class="today_nowcard-sidecar component panel"><table><caption>.*</caption><tbody>.*(?(?=.*<th>.*</th><td><span class="">.*<!----> <span class="icon icon-font iconset-arrows).* icon-arrow-.*-line" className="icon icon-font iconset-arrows icon-(.*)-line"></span>)
SevereAlert=(?siU)(?(?=.*<a class="priority bg-alert-.*" href="#Lang#/weather/alerts/localalerts/l/.*").* title=".*" data-from-string=".*" className="priority bg-alert-.*"><div class="title text text-overflow" className="title text text-overflow"><span class="warning-text" className="warning-text">.*</span><span class="timestamp" className="timestamp">.*</span>)
PriorityAlert=(?siU)(?(?=.*<div class="gm-alerts-time).*"><a class="priority bg-alert-.*" href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*
ALERT=(?siU)(?(?=.*<div id=".*-SevereAlertBar).*-.*"><div><div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*(?(?=.*<a class="priority bg-alert-.*").* href="#Lang#/weather/alerts/localalerts/.* className="priority bg-alert-(.*)">.*<span class="warning-text" className="warning-text">(.*)</span>).*(?(?=.*<span class="timestamp").* className="timestamp">(.*)</span></div>).*
IconAlert=(?siU)(?(?=.*<div id=".*-SevereAlertBar).*-.*"><div><div>)(?(?=.*<div class="SevereAlertBar" role="banner" aria-label=".*" className="SevereAlertBar">.*<div class="priority bg-alert-.*").* className="priority bg-alert-.*">).*

[StyleTemp]
FontFace=#FontFace2#

[StyleIcon]
ColorMatrix1=0;0;0;0;0
ColorMatrix2=0;0;0;0;0
ColorMatrix3=0;0;0;0;0
ColorMatrix4=0;0;0;0.8;0
ColorMatrix5=#MC1#;#MC2#;#MC3#;0;1
AntiAlias=1
DynamicVariables=1

[MeasureCurrentAll]
Measure=WebParser
Group=Weather
Url=#URLcurrent#
RegExp=(?siU)^(.*)$
UpdateRate=600

[MeasureTenDayAll]
Measure=WebParser
Group=Weather
Url=#URLtendday#
RegExp=(?siU)^(.*)$
UpdateRate=600

[MeasureHourbyHourAll]
Measure=WebParser
Group=Weather
Url=#URLhourbyhour#
RegExp=(?siU)^(.*)$
UpdateRate=600

[MeasureCurrentParent]
Measure=WebParser
Group=Weather
Url=[MeasureCurrentAll]
StringIndex=0
RegExp=#Current#
LogSubstringErrors=0

[MeasureIcon]
Measure=WebParser
Group=Weather
Url=[MeasureCurrentParent]
RegExpSubstitute=1
Substitute="^$":"#@#Images\C.png","^(\d*)$":"#@#Images\Weather\\1.png"
StringIndex=3

[MeasureTemp]
Measure=WebParser
Group=Weather
Url=[MeasureCurrentParent]
StringIndex=4
RegExpSubstitute=1
Substitute="^$":"N/A","^([-]\d*)$":"\1[\x00B0][MeasureTempUnit]"
DynamicVariables=1

[MeasureTempUnit]
Measure=WebParser
Group=Weather
Url=[MeasureCurrentParent]
StringIndex=0
RegExp=#TempUnit#
StringIndex2=1

[MeasureFH0]
Measure=WebParser
Group=Weather
Url=[MeasureCurrentParent]
StringIndex=10

[MeasureFL0]
Measure=WebParser
Group=Weather
Url=[MeasureCurrentParent]
StringIndex=12

[MeasureForecastParent]
Measure=WebParser
Group=Weather
Url=[MeasureTenDayAll]
StringIndex=0
RegExp=#Forecast#
LogSubstringErrors=0

[MeasureFD1]
Measure=WebParser
Group=Weather
Url=[MeasureForecastParent]
StringIndex=7

[MeasureFI1]
Measure=WebParser
Group=Weather
Url=[MeasureForecastParent]
StringIndex=8

[MeasureFH1]
Measure=WebParser
Group=Weather
Url=[MeasureForecastParent]
StringIndex=11

[MeasureFL1]
Measure=WebParser
Group=Weather
Url=[MeasureForecastParent]
StringIndex=13

[MeasureFD2]
Measure=WebParser
Group=Weather
Url=[MeasureForecastParent]
StringIndex=17

[MeasureFI2]
Measure=WebParser
Group=Weather
Url=[MeasureForecastParent]
StringIndex=18

[MeasureFH2]
Measure=WebParser
Group=Weather
Url=[MeasureForecastParent]
StringIndex=21

[MeasureFL2]
Measure=WebParser
Group=Weather
Url=[MeasureForecastParent]
StringIndex=23

[MeasureScript]
Measure=Script
ScriptFile=Weather.lua

[MeterTempLabel]
Group=Top
Meter=STRING
MeterStyle=StyleSub
X=38
Y=20
FontFace=#FontFace4#
Text=溫度

[MeterTemp]
Group=Top
Meter=STRING
MeasureName=MeasureTemp
MeterStyle=StyleMain|StyleTemp
X=2r
Y=20r
Text=%1

[MeterWeatherLabel]
Meter=STRING
MeterStyle=StyleSub
X=70r
Y=-20r
FontFace=#FontFace4#
Text=天氣

[MeterIcon]
Group=Icon
Meter=IMAGE
MeasureName=MeasureIcon
MeterStyle=StyleIcon
X=-30r
Y=20r
Murasaki
Posts: 18
Joined: February 2nd, 2020, 8:59 am
Location: Taipei

Re: Trying to set up Weather and Spotify on older skin

Post by Murasaki »

balala wrote: February 3rd, 2020, 6:44 pm Finally here it is (see below). Note that for now only the current temperature and the appropriate icon are shown, but further information can be added as well. I know there were other information as well, but I'm not sure what exactly. So, what else do you need anymore?
It is good enough for me.
Thank you so much for your help. I don't know how to show my appreciation, but please let me know if there's anything I can do for you.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Trying to set up Weather and Spotify on older skin

Post by balala »

Murasaki wrote: February 4th, 2020, 3:43 am It is good enough for me.
Is it? Because there already are a lot of other measures in the code, to get the minimum and maximum temperatures for current and the upcomming days, as well as other information. Don't you need / want them? If you do, they can be added easily, but if you're sure you don't want them, the appropriate measures should be removed (the less measures, the better). So what would you like?
Murasaki wrote: February 4th, 2020, 3:43 am I don't know how to show my appreciation, but please let me know if there's anything I can do for you.
No, thanks you, there is no need. Here on this forum at least we are helping voluntarily, no need you to make something in return.
Post Reply