It is currently March 29th, 2024, 11:09 am

Visions+ Weather Beta 3 now available

Weather skins
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Visions+ Weather Beta 3 now available

Post by balala »

clajo wrote: February 16th, 2019, 3:37 pm 1: how can I change the time format from 12 hours to 24 hours?
Look for the SCALE variable in the [Variables] section and replace the found SCALE=f value with SCALE=m.
Here I'd like to mention that the existing SCALE=f is completely wrong. The proper value of this variable should have to be either m (metric - for temperatures in Celsius degrees), or i (imperial - as you guessed this gives the temperature in Fahrenheit degrees). The reason why the SCALE=f is working is that if this variable has another value then m or i, it is ignored and its default value is used, which is i, so the temperatures are returned into Fahrenheit degrees.
clajo wrote: February 16th, 2019, 3:37 pm 2: how can I change the date format from 'Februar 17' to '17 Februar'?
Add a RegExpSubstitute=1 option to every measure which returns date (like [MeasureDay1Date], [MeasureDay2Date] and so on) and replace the MONTHS variable within the [Variables] section with the following one: MONTHS="Jan":"January","Feb":"February","Mar":"March","Apr":"April","May":"May","Jun":"June","Jul":"July","Aug":"August","Sep":"September","Oct":"October","Nov":"November","Dec":"December","^(.*) (\d{1,2})$":"\2 \1" (I marked red the newly added part).
clajo
Posts: 7
Joined: February 16th, 2019, 10:46 am
Location: Germany

Re: Visions+ Weather Beta 3 now available

Post by clajo »

Thank you very much for the explanation.

The date is now displayed correctly.

The SCALE variable only changes the temperature (°F / °C). The time is not displayed in 24 hour format.


Jörg
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Visions+ Weather Beta 3 now available

Post by balala »

clajo wrote: February 17th, 2019, 5:36 pm The time is not displayed in 24 hour format.
Yes, you're right. Here is what to do.
First look for the [measureHour] measure and replace its Format=%#I option with Format=%#H. Replace the Text option of the [Current_Time] meter (Text="%1:%2 %3") with Text=%1:%2.
Replace the [MeasureCurrentTime] measure with the following ones:

Code: Select all

[MeasureCurrentTime12HMAP]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureCurrent]
StringIndex=9
Substitute=#Time_Case#

[MeasureCurrentTimeH]
Measure=String
String=[MeasureCurSunSFull12HMAP]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}) (.*)$":"\1"
DynamicVariables=1

[MeasureCurrentTimeM]
Measure=String
String=[MeasureCurSunSFull12HMAP]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}) (.*)$":"\2"
DynamicVariables=1

[MeasureCurrentTimeAMPM]
Measure=String
String=[MeasureCurSunSFull12HMAP]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}) (.*)$":"\3","am":"0","pm":"1"
DynamicVariables=1

[MeasureCurrentTime24H]
Measure=Calc
Formula=((( [MeasureCurSunSFullH] = 12 ) && ( [MeasureCurSunSFullAMPM] = 0 )) ? 0 : ( [MeasureCurSunSFullH] + 12 * ( [MeasureCurSunSFullAMPM] = 1 )))
DynamicVariables=1

[MeasureCurrentTime]
Measure=String
String=[MeasureCurSunSFull24H]:[MeasureCurSunSFullM]
DynamicVariables=1
Replace the [MeasureCurSunRFull] measure with:

Code: Select all

[MeasureCurSunRFull12HMAP]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureCurrent]
StringIndex=12
Substitute=#Time_Case#

[MeasureCurSunRFullH]
Measure=String
String=[MeasureCurSunRFull12HMAP]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}) (.*)$":"\1"
DynamicVariables=1

[MeasureCurSunRFullM]
Measure=String
String=[MeasureCurSunRFull12HMAP]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}) (.*)$":"\2"
DynamicVariables=1

[MeasureCurSunRFullAMPM]
Measure=String
String=[MeasureCurSunRFull12HMAP]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}) (.*)$":"\3","am":"0","pm":"1"
DynamicVariables=1

[MeasureCurSunRFull24H]
Measure=Calc
Formula=((( [MeasureCurSunRFullH] = 12 ) && ( [MeasureCurSunRFullAMPM] = 0 )) ? 0 : ( [MeasureCurSunRFullH] + 12 * ( [MeasureCurSunRFullAMPM] = 1 )))
DynamicVariables=1

[MeasureCurSunRFull]
Measure=String
String=[MeasureCurSunRFull24H]:[MeasureCurSunRFullM]
DynamicVariables=1
And finally replace the [MeasureCurSunSFull] measure with:

Code: Select all

[MeasureCurSunSFull12HMAP]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureCurrent]
StringIndex=15
Substitute=#Time_Case#

[MeasureCurSunSFullH]
Measure=String
String=[MeasureCurSunSFull12HMAP]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}) (.*)$":"\1"
DynamicVariables=1

[MeasureCurSunSFullM]
Measure=String
String=[MeasureCurSunSFull12HMAP]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}) (.*)$":"\2"
DynamicVariables=1

[MeasureCurSunSFullAMPM]
Measure=String
String=[MeasureCurSunSFull12HMAP]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}) (.*)$":"\3","am":"0","pm":"1"
DynamicVariables=1

[MeasureCurSunSFull24H]
Measure=Calc
Formula=((( [MeasureCurSunSFullH] = 12 ) && ( [MeasureCurSunSFullAMPM] = 0 )) ? 0 : ( [MeasureCurSunSFullH] + 12 * ( [MeasureCurSunSFullAMPM] = 1 )))
DynamicVariables=1

[MeasureCurSunSFull]
Measure=String
String=[MeasureCurSunSFull24H]:[MeasureCurSunSFullM]
DynamicVariables=1
Then replace the Text Options of the [Current_Sunrise], [Current_Sunset] and [Update_Time] meters with Text=%1.
I hope I didn't miss something. If I did, please let me know to fix the issue.
clajo
Posts: 7
Joined: February 16th, 2019, 10:46 am
Location: Germany

Re: Visions+ Weather Beta 3 now available

Post by clajo »

Thank you so much for your help.

time's not working, I'm afraid.
I get only 0:36 displayed at sunrise / sunset.
The minutes are working, but the hour is not displayed correctly.

Many greetings
Jörg
clajo
Posts: 7
Joined: February 16th, 2019, 10:46 am
Location: Germany

Re: Visions+ Weather Beta 3 now available

Post by clajo »

I found the mistake.

I had changed the variables am and pm.

After I adjusted the two variables everything works fine.

Thanks a lot
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Visions+ Weather Beta 3 now available

Post by balala »

clajo
Posts: 7
Joined: February 16th, 2019, 10:46 am
Location: Germany

Re: Visions+ Weather Beta 3 now available

Post by clajo »

Hello,

Is there a possibility to integrate a current pollen forecast into the skin (birch, grass, hazelnut)?

Jörg
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Visions+ Weather Beta 3 now available

Post by balala »

clajo wrote: April 14th, 2019, 8:51 am Is there a possibility to integrate a current pollen forecast into the skin (birch, grass, hazelnut)?
Do you have a source of such information?