It is currently April 27th, 2024, 11:48 am

Fallout 4 HUD Weather

Get help with installing and using Rainmeter.
User avatar
whitegentle1
Posts: 1
Joined: August 15th, 2023, 7:14 pm

Fallout 4 HUD Weather

Post by whitegentle1 »

I am aware that this is not the updated version of weather code since this skin is 6years outdated, I just wanted to know how to apply the latest API into this, here's the INI file

Code: Select all

[Rainmeter]

[Metadata]
Name=Fallout 4 HUD
Author=Christopher Foster (Spartan_D1994)
Description=A skin based on the HUD from Fallout 4
Version=1.0
;End of added Metadata

;========================================================================
;1) Replace your location ("Location=") code for Weather.com below
;========================================================================

[Variables]
Font.name=Monofonto
Font.color=29, 90, 21
Location=UKXX0133
Metric=f
UpdateFreq=1800

;--------------Picture-------------------
[MeterPicture]
Meter=Image
ImageName=today_green.png
x=10
y=50

;-------------Measure--------------------
[Current]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=#UpdateFreq#
Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Metric#&dayf=0
RegExp="(?siU).*<locale>(.*)</locale>.*<ut>(.*)</ut>.*<ud>(.*)</ud>.*<us>(.*)</us>.*<up>(.*)</up>.*<ur>(.*)</ur>.*<loc id="(.*)">.*<dnam>(.*)</dnam>.*<tm>(.*)</tm>.*<lat>(.*)</lat>.*<lon>(.*)</lon>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<zone>(.*)</zone>.*<cc>.*<lsup>(.*)</lsup>.*<obst>(.*)</obst>.*<tmp>(.*)</tmp>.*<flik>(.*)</flik>.*<t>(.*)</t>.*<icon>(.*)</icon>.*<bar>.*<r>(.*)</r>.*<d>(.*)</d>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<hmid>(.*)</hmid>.*<vis>(.*)</vis>.*<uv>.*<i>(.*)</i>.*<t>(.*)</t>.*<dewp>(.*)</dewp>.*<moon>.*<icon>(.*)</icon>.*<t>(.*)</t>.*"

;--------------Current-----------------
[MeasureWeatherTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Current]
StringIndex=17

[MeasureWeatherDesc]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Current]
StringIndex=19
Substitute="Light":"light","Storm":"storm","Rain":"rain","T-":"t-","AM":"am","PM":"pm","Clouds":"clouds","And":"and","Cloudy":"cloudy","Lgt.":"light","Snow":"snow","Mostly":"mostly","Partly":"partly","Fog":"fog","Thunderstorms":"thunderstorm","Snow":"snow","Clear":"clear","Fair":"fair","Sun":"sun","Mostly Clear":"mostly clear","Variable Clouds":"Variable Clouds","Showers":"showers","Shower":"shower","Scattered":"scattered","Wind":"wind","Few":"few","Sleet":"sleet","Icy Mix":"icy mix","Freezing":"freezing","Drizzle":"drizzle","Heavy":"heavy","FLURRIES":"flurries","Hail":"hail","Dust":"dust","Fog":"fog","Haze":"haze","Smoke":"smoke","Frigid":"frigid"

[MeasureWeatherRealFeel]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Current]
StringIndex=18

;--------------Current Style-----------------
[MeterTemp]
MeasureName=MeasureWeatherTemp
Meter=STRING
X=65
Y=95
FontColor=#Font.color#
StringStyle=NORMAL
FontSize=23
StringAlign=RIGHT
StringEffect=SHADOW
FontEffectColor=00, 00, 00
FontFace=#Font.name#
Antialias=1

[MeterDegree]
Meter=STRING
X=5r
Y=95
FontColor=#Font.color#
StringStyle=NORMAL
FontSize=15
StringAlign=RIGHT
StringEffect=SHADOW
FontEffectColor=00, 00, 00
FontFace=Arial
Antialias=1
Text=" "

[Label]
Meter=STRING
MeterStyle=StyleLabel
x=25
y=60
Text="TODAY"
FontSize=15
FontFace=#Font.name#
FontColor=#Font.Color#
StringEffect=SHADOW
FontEffectColor=00, 00, 00
Antialias=1
Image

Here's the link of the skin https://visualskins.com/skin/fallout-4-hud

I also want to add if there's anyway to modify this and replace to MPC-HC player (K-lite Codec)

Code: Select all

[Rainmeter]
Update=500

[Metadata]
Name=Fallout 4 HUD
Author=Christopher Foster (Spartan_D1994)
Description=A skin based on the HUD from Fallout 4
Version=1.0
;End of added Metadata

;-------------Variables--------------------------------
[Variables]
ProcessName="winamp"
WinampPath=winamp.exe

;--------------Measures--------------------------------
[MeasureProcessPID]
Measure=Plugin
Plugin=Perfmon.dll
PerfMonObject="Process"
PerfMonCounter="ID Process"
PerfMonInstance=#ProcessName#
PerfMonDifference=0

[CalcTranslatePIDToRunningState]
Measure=Calc
Formula=MeasureProcessPID > 0 ? 1 : 0
IfEqualValue=0
IfEqualAction=!Execute [!RainmeterHideMeter Play][!RainmeterHideMeter UnPause][!RainmeterHideMeter Pause][!RainmeterShowMeter Open][!RainmeterShowMeter Title][!RainmeterHideMeter Track]
IfAboveValue=0
IfAboveAction=!Execute [!RainmeterShowMeter Track][!RainmeterHideMeter Title]

[WinampTitle]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
UpdateDivider=2 
WindowClass=Winamp v1.x
Substitute=" - Winamp":"","***":"","0":"Winamp"

[MeasureWinampPlaying]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
UpdateDivider=2
WindowClass=Winamp v1.x
WindowMessage=1024 0 104
IfEqualValue=1
IfEqualAction=!Execute [!RainmeterShowMeter Pause][!RainmeterHideMeter Play][!RainmeterHideMeter Open][!RainmeterHideMeter UnPause]
IfAboveValue=1
IfAboveAction=!Execute [!RainmeterHideMeter Pause][!RainmeterHideMeter Open][!RainmeterShowMeter UnPause]
IfBelowValue=1
IfBelowAction=!Execute [!RainmeterShowMeter Open][!RainmeterHideMeter Play][!RainmeterHideMeter Pause]

[MeasureCommand]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
Substitute="[Paused]":""," - Winamp":"","[Stopped]":""

[MeasureProgressFull]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 1 105

[MeasureProgressCurrent]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 0 105

[MeasureProgress]
Measure=Calc
Formula=(MeasureProgressCurrent<=0)?0:(MeasureProgressCurrent/(MeasureProgressFull*1000+1)) 
InvertMeasure=1

;--------------Image-----------------------------------
[EnemyBarImage]
Meter=Image
ImageName=winamp.png
x=531
y=50

;--------------Style-----------------------------------
[Title]
Meter=STRING
Text="BROTHERHOOD INITIATE"
X=678
Y=20
W=1366
h=50
FontColor=241, 79, 64
FontFace=Monofonto
FontSize=25
StringAlign=CENTER
StringStyle=NORMAL
StringEffect=SHADOW
FontEffectColor=00, 00, 00
AntiAlias=1
;LeftMouseUpAction=!Execute [!RainmeterRefresh]
;MouseActionCursor=1

[Track]
Meter=STRING
MeasureName=WinampTitle
X=678
Y=20
W=1366
h=50
FontColor=254, 106, 73
FontFace=Monofonto
FontSize=25
InlineSetting=Typography | case
StringAlign=CENTER
StringStyle=NORMAL
StringEffect=SHADOW
FontEffectColor=00, 00, 00
AntiAlias=1
;LeftMouseUpAction=!Execute [!RainmeterRefresh]
;MouseActionCursor=1

[Progress]
MeasureName=MeasureProgress
Meter=BAR
Barimage=bar.png
X=555
Y=50
H=19
W=107
BarColor=170, 229, 249
BarOrientation=HORIZONTAL

[Prev]
Meter=IMAGE
X=657
y=70
ImageName=img_prev.png
LeftMouseUpAction=!Execute [!RainmeterPluginBang "WinampTitle SendMessage 273 40044 0"]

[Play]
Meter=IMAGE
X=17r
y=70
ImageName=img_play.png
LeftMouseUpAction=!Execute [!RainmeterPluginBang "WinampTitle SendMessage 273 40045 0"][!RainmeterHideMeter Play][!RainmeterShowMeter Pause]

[Open]
Meter=IMAGE
ImageName=img_play.png
LeftMouseUpAction=!Execute [#WinampPath#][!RainmeterShowMeter Play][!RainmeterHideMeter Open][!RainmeterPluginBang "WinampTitle SendMessage 273 40045 0"]
x=r
y=70
Hidden=0

[Pause]
Meter=IMAGE
ImageName=img_pause.png
LeftMouseUpAction=!Execute [!RainmeterPluginBang "WinampTitle SendMessage 273 40046 0"][!RainmeterShowMeter UnPause][!RainmeterHideMeter Pause][!RainmeterHideMeter Open][!RainmeterHideMeter Play]
X=-2r
y=70
Hidden=1

[UnPause]
Meter=IMAGE
ImageName=img_play.png
LeftMouseUpAction=!Execute [!RainmeterPluginBang "WinampTitle SendMessage 273 40046 0"][!RainmeterShowMeter Pause][!RainmeterHideMeter UnPause]
x=2r
y=70
Hidden=1

[Next]
Meter=IMAGE
ImageName=img_Next.png
LeftMouseUpAction=!Execute [!RainmeterPluginBang "WinampTitle SendMessage 273 40048 0"]
x=11r
y=70

I appreciate any help
You do not have the required permissions to view the files attached to this post.
User avatar
SilverAzide
Rainmeter Sage
Posts: 2611
Joined: March 23rd, 2015, 5:26 pm

Re: Fallout 4 HUD Weather

Post by SilverAzide »

whitegentle1 wrote: August 15th, 2023, 7:25 pm I am aware that this is not the updated version of weather code since this skin is 6years outdated, I just wanted to know how to apply the latest API into this, here's the INI file
That weather skin is very simplistic, so it should be trivial to fix. Read the Step-by-Step Basic Weather Skin Tutorial; this will walk you through the basic process.

One note: download this skin and install it first: Weather.com - Parsing the V3 JSON. It has the latest @include templates, later than the ones in the zip file mentioned in the tutorial.

In summary, for your skin, all you need to do is rip out all the weather-related measures (leave meters and any remaining measures as they are), then add the @includes as mentioned in the tutorial. Finally, adjust the meters that display the weather data so they reference the proper measures, accordingly.
Gadgets Wiki GitHub More Gadgets...