[Rainmeter]
Update=1000
DynamicWindowSize=1
[Metadata]
Name=纪时
Author=ysrolan
Version=1.0.0.0
Information=本皮肤的完成离不开_CrazyCat404_与_时候补偿命运气_两位作者提供的LunarCalendar插件与python代码插件,在此谨表谢意。
原文地址1.https://bbs.rainmeter.cn/thread-290127-3-1.htmlLicense=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
2.https://tieba.baidu.com/p/7071697017
license=CC BY-NC-SA
[Variables]
Glow=(3-(3-(3-#Glow#)))
;获取系统时间
[CurrentYear]
Measure=Time
Format="%Y"
[CurrentMonth]
Measure=Time
Format="%m"
[CurrentWeekDay]
Measure=Time
Format="%w"
[CurrentDay]
Measure=Time
Format="%d"
[CurrentHour]
Measure=Time
Format="%H"
OnChangeAction=[!UpdateMeasure parent]
[CurrentTimeH]
Measure=Time
Format="%H"
[CurrentTimeM]
Measure=Time
Format="%M"
[CurrentTimeS]
Measure=Time
Format="%S"
[Measure秒针]
Measure=Calc
Formula=currenttimeS % 2
Substitute="0":"","1":":"
;配置插件
[parent]
measure=plugin
plugin=LunarCalendar
Year=[&CurrentYear:]
Month=[&CurrentMonth:]
Day=[&CurrentDay:]
Hour=[¤thour:]
LMDFeasts=农历节日_月_日.txt
DynamicVariables=1
UpdateDivider=-1
;统一样式
[style1]
y=50
FontColor=13,255,231
FontSize=70
FontFace=字魂10号-歌以晓手迹行楷体
StringAlign=CenterCenter
AntiAlias=1
[style干支]
y=110
FontColor=255,207,13
FontSize=14
FontFace=字魂24号-镇魂手书
StringAlign=CenterCenter
AntiAlias=1
[style2]
y=140
FontColor=181,5,5
FontSize=17
FontFace=字魂49号-逍遥行书
StringAlign=CenterCenter
AntiAlias=1
;[MeterLine]
;Meter=IMAGE
;X=50
;Y=95
;W=305
;H=2
;SolidColor=255, 255, 255, 255
;StringEffect=SHADOW
;AntiAlias=1
;显示时间
[metertimeh]
MeasureName=CurrentTimeH
meter=string
MeterStyle=style1
x=300
[meter分针]
meter=string
Text=:
MeterStyle=style1
x=65r
[metertimem]
MeasureName=CurrentTimeM
meter=string
MeterStyle=style1
x=65r
[meter秒针]
MeasureName=Measure秒针
meter=string
MeterStyle=style1
FontSize=30
x=70r
y=30
[metertimes]
MeasureName=CurrentTimeS
meter=string
MeterStyle=style1
FontSize=30
y=35
x=30r
;显示日期
[meter日期]
meter=String
MeasureName=CurrentYear
MeasureName2=CurrentMonth
MeasureName3=CurrentDay
MeterStyle=style2
x=300
Text=%1-%2-%3
;显示周
[WeekDay]
measure=plugin
plugin=LunarCalendar
parentname=parent
type=WeekDayString
[MeterWD]
measurename=WeekDay
Meter=String
MeterStyle=style干支
x=520
y=70
;从插件获取干支
[干支纪年String]
measure=plugin
plugin=LunarCalendar
parentname=parent
type=干支纪年
[干支纪月String]
measure=plugin
plugin=LunarCalendar
parentname=parent
type=干支纪月
[干支纪日String]
measure=plugin
plugin=LunarCalendar
parentname=parent
type=干支纪日
[干支纪时String]
measure=plugin
plugin=LunarCalendar
parentname=parent
type=干支纪时
;显示干支
[干支年]
measurename=干支纪年String
Meter=String
Postfix=年
MeterStyle=style干支
x=280
[干支月]
measurename=干支纪月String
Meter=String
Postfix=月
MeterStyle=style干支
x=80r
[干支日]
measurename=干支纪日String
Meter=String
Postfix=日
MeterStyle=style干支
x=80r
[干支时]
measurename=干支纪时String
Meter=String
Postfix=时
MeterStyle=style干支
x=80r
;农历
[LNDateString]
measure=plugin
plugin=LunarCalendar
parentname=parent
type=农历日期
Substitute="农历":"","二十(.+)":"廿\1","十一月":"冬月"
RegExpSubstitute=1
[MeterLNMD]
measurename=LNDateString
Meter=String
MeterStyle=style2
x=400
;节气
[SolarTermString]
measure=plugin
plugin=LunarCalendar
parentname=parent
type=节气1
[SolarTerm]
measurename=SolarTermString
Meter=String
MeterStyle=style2
x=500
;节日,节气切换显示
MouseScrollUpAction=[!SetOption SolarTerm Text [SolarTermString]]
MouseScrollDownAction=[!SetOption SolarTerm Text [节日String]]
;节日
[节日String]
measure=plugin
plugin=LunarCalendar
parentname=parent
type=节日
;如果存在节日,则不显示节气,优先显示节日
IfMatch=.*
IfMatchAction=[!SetOption SolarTerm Text [节日String]]
[shiju]
Measure=WebParser
Url=https://v1.jinrishici.com/all.json
RegExp=(?siU) .*"content" : "([^"]*)"
UpdateRate=10000
StringIndex=1
FinishAction=[!UpdateMeter String3][!Redraw]
[String3]
Meter=String
MeterStyle=style2
MeasureName=shiju
FontSize=18
y=180
x=410
UpdateDivider=-1
StringAlign=Center
;刷新诗词
LeftMouseUpAction=!Refresh
Update=1000
DynamicWindowSize=1
[Metadata]
Name=纪时
Author=ysrolan
Version=1.0.0.0
Information=本皮肤的完成离不开_CrazyCat404_与_时候补偿命运气_两位作者提供的LunarCalendar插件与python代码插件,在此谨表谢意。
原文地址1.https://bbs.rainmeter.cn/thread-290127-3-1.htmlLicense=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
2.https://tieba.baidu.com/p/7071697017
license=CC BY-NC-SA
[Variables]
Glow=(3-(3-(3-#Glow#)))
;获取系统时间
[CurrentYear]
Measure=Time
Format="%Y"
[CurrentMonth]
Measure=Time
Format="%m"
[CurrentWeekDay]
Measure=Time
Format="%w"
[CurrentDay]
Measure=Time
Format="%d"
[CurrentHour]
Measure=Time
Format="%H"
OnChangeAction=[!UpdateMeasure parent]
[CurrentTimeH]
Measure=Time
Format="%H"
[CurrentTimeM]
Measure=Time
Format="%M"
[CurrentTimeS]
Measure=Time
Format="%S"
[Measure秒针]
Measure=Calc
Formula=currenttimeS % 2
Substitute="0":"","1":":"
;配置插件
[parent]
measure=plugin
plugin=LunarCalendar
Year=[&CurrentYear:]
Month=[&CurrentMonth:]
Day=[&CurrentDay:]
Hour=[¤thour:]
LMDFeasts=农历节日_月_日.txt
DynamicVariables=1
UpdateDivider=-1
;统一样式
[style1]
y=50
FontColor=13,255,231
FontSize=70
FontFace=字魂10号-歌以晓手迹行楷体
StringAlign=CenterCenter
AntiAlias=1
[style干支]
y=110
FontColor=255,207,13
FontSize=14
FontFace=字魂24号-镇魂手书
StringAlign=CenterCenter
AntiAlias=1
[style2]
y=140
FontColor=181,5,5
FontSize=17
FontFace=字魂49号-逍遥行书
StringAlign=CenterCenter
AntiAlias=1
;[MeterLine]
;Meter=IMAGE
;X=50
;Y=95
;W=305
;H=2
;SolidColor=255, 255, 255, 255
;StringEffect=SHADOW
;AntiAlias=1
;显示时间
[metertimeh]
MeasureName=CurrentTimeH
meter=string
MeterStyle=style1
x=300
[meter分针]
meter=string
Text=:
MeterStyle=style1
x=65r
[metertimem]
MeasureName=CurrentTimeM
meter=string
MeterStyle=style1
x=65r
[meter秒针]
MeasureName=Measure秒针
meter=string
MeterStyle=style1
FontSize=30
x=70r
y=30
[metertimes]
MeasureName=CurrentTimeS
meter=string
MeterStyle=style1
FontSize=30
y=35
x=30r
;显示日期
[meter日期]
meter=String
MeasureName=CurrentYear
MeasureName2=CurrentMonth
MeasureName3=CurrentDay
MeterStyle=style2
x=300
Text=%1-%2-%3
;显示周
[WeekDay]
measure=plugin
plugin=LunarCalendar
parentname=parent
type=WeekDayString
[MeterWD]
measurename=WeekDay
Meter=String
MeterStyle=style干支
x=520
y=70
;从插件获取干支
[干支纪年String]
measure=plugin
plugin=LunarCalendar
parentname=parent
type=干支纪年
[干支纪月String]
measure=plugin
plugin=LunarCalendar
parentname=parent
type=干支纪月
[干支纪日String]
measure=plugin
plugin=LunarCalendar
parentname=parent
type=干支纪日
[干支纪时String]
measure=plugin
plugin=LunarCalendar
parentname=parent
type=干支纪时
;显示干支
[干支年]
measurename=干支纪年String
Meter=String
Postfix=年
MeterStyle=style干支
x=280
[干支月]
measurename=干支纪月String
Meter=String
Postfix=月
MeterStyle=style干支
x=80r
[干支日]
measurename=干支纪日String
Meter=String
Postfix=日
MeterStyle=style干支
x=80r
[干支时]
measurename=干支纪时String
Meter=String
Postfix=时
MeterStyle=style干支
x=80r
;农历
[LNDateString]
measure=plugin
plugin=LunarCalendar
parentname=parent
type=农历日期
Substitute="农历":"","二十(.+)":"廿\1","十一月":"冬月"
RegExpSubstitute=1
[MeterLNMD]
measurename=LNDateString
Meter=String
MeterStyle=style2
x=400
;节气
[SolarTermString]
measure=plugin
plugin=LunarCalendar
parentname=parent
type=节气1
[SolarTerm]
measurename=SolarTermString
Meter=String
MeterStyle=style2
x=500
;节日,节气切换显示
MouseScrollUpAction=[!SetOption SolarTerm Text [SolarTermString]]
MouseScrollDownAction=[!SetOption SolarTerm Text [节日String]]
;节日
[节日String]
measure=plugin
plugin=LunarCalendar
parentname=parent
type=节日
;如果存在节日,则不显示节气,优先显示节日
IfMatch=.*
IfMatchAction=[!SetOption SolarTerm Text [节日String]]
[shiju]
Measure=WebParser
Url=https://v1.jinrishici.com/all.json
RegExp=(?siU) .*"content" : "([^"]*)"
UpdateRate=10000
StringIndex=1
FinishAction=[!UpdateMeter String3][!Redraw]
[String3]
Meter=String
MeterStyle=style2
MeasureName=shiju
FontSize=18
y=180
x=410
UpdateDivider=-1
StringAlign=Center
;刷新诗词
LeftMouseUpAction=!Refresh