It is currently September 29th, 2024, 11:30 am

Saint's day

General topics related to Rainmeter.
swbear
Posts: 2
Joined: February 15th, 2015, 9:18 am

Saint's day

Post by swbear »

Seeking a way to create a custom report about name day.

The "ideal" would be the shape of the timestamp when the number data replaced the names from the list.

I want to replace a Windows gadget that reliably served me for years, but now I decided to entrust everything Rainmeter.

Image

Functioning pattern (with numbers)

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[MeasureCurrentNumber]
Measure=Time

[MeasureCurrentFormatted]
Measure=Time
Format=%d%m

[MeasureTomorrowFormatted]
Measure=Time
TimeStamp=([MeasureCurrentNumber:] + 86400)
Format=%d%m
DynamicVariables=1

[MeasureAfterTomorrowFormatted]
Measure=Time
TimeStamp=([MeasureCurrentNumber:] + 172800)
Format=%d%m
DynamicVariables=1

[MeterTodayAndTomorrowAndAfterTomorrow]
Meter=String
FontSize=10
FontColor=255,255,255,255
SolidColor=47,47,47,150
Padding=5,5,5,5
AntiAlias=1
Text=Today: [MeasureCurrentFormatted]#CRLF#Tomorrow: [MeasureTomorrowFormatted]#CRLF#After Tomorrow: [MeasureAfterTomorrowFormatted]
DynamicVariables=1

Image

As substitute for the unique numbers unique names?
Or other way?
User avatar
balala
Rainmeter Sage
Posts: 16602
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Saint's day

Post by balala »

I'd add to the skin a [Variables] section:

Code: Select all

[Variables]
Subst="1502":"Jirina","1602":"Ljuba","1702":"Miroslava"
then add to [MeasureCurrentFormatted], [MeasureTomorrowFormatted] and [MeasureAfterTomorrowFormatted] sections the Substitute=#Subst# option. You'll have to enter into the Subst variable one pair for every day of the year. The Subst option will become very, very long, I don't know if it'll work properly.
Instead of entering a such long Subst variable, you should find a proper website and download the names. This way you can avoid a long variable.
swbear
Posts: 2
Joined: February 15th, 2015, 9:18 am

Re: Saint's day

Post by swbear »

Thank you very much for the tip, so far I've compiled a fourth year.

Image

Solution with an external source does not for me, I prefer a local names file. Maybe I'll get lucky... ;-)
User avatar
balala
Rainmeter Sage
Posts: 16602
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Saint's day

Post by balala »

swbear wrote:so far I've compiled a fourth year.
Congratulations! It's a long term work...