It is currently April 26th, 2024, 11:14 pm

How to make the Weather work?

Get help with creating, editing & fixing problems with skins
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: How to make the Weather work?

Post by moshi »

maybe the original skin has been broken by one of the "skin uploaders". mind postin the code of the skin, so we can have a look at it?

in tags please
Patty741
Posts: 5
Joined: April 17th, 2013, 9:17 am

Re: How to make the Weather work?

Post by Patty741 »

I think I just fixed it, I replaced some numbers in url and it looks like it's alright now, thanks for the help anyway ^^

Code: Select all

;[BEGIN CONFIG FILE]==============================

[Rainmeter]
Author=Jeffrey Morley, modified by Dark Star

;==============================================================
;Please replace your location code for Weather.com below
;Set "Metric=" to m for metric measures or f for non-metric
;==============================================================

;Metadata added by RainBrowser
;http://rainmeter.net/RainCMS/?q=Rainmeter101_AnatomyOfASkin

[Metadata]
Name=
Config=
Description=
Instructions=
Version=
Tags=
License=
Variant=
Preview=

;End of added Metadata

[Variables]
Location=BRXX0459
Metric=m
Font=slider
FontColor=188, 0, 0, 245
FontInactive=188, 0, 0, 245
UpdateFreq=1800
YGap=55

;===============================================================

;[GATHER WEATHER INFO FROM RSS]=================================

[Current]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=#UpdateFreq#
Url=http://xml.weather.com/weather/local/SAXX0017?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>.*"

[Today]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=#UpdateFreq#
Url=http://xml.weather.com/weather/local/SAXX0017?cc=*&unit=#Metric#&dayf=1
RegExp="(?siU)<dayf>.*<lsup>(.*)</lsup>.*<day d="0" t="(.*)" dt="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<part p="d">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*<part p="n">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*"

[Tomorrow]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=#UpdateFreq#
Url=http://xml.weather.com/weather/local/SAXX0017?cc=*&unit=#Metric#&dayf=2
RegExp="(?siU)<day d="1" t="(.*)" dt="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<part p="d">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*<part p="n">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*"

[DayAfter]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=#UpdateFreq#
Url=http://xml.weather.com/weather/local/SAXX0017?cc=*&unit=#Metric#&dayf=3
RegExp="(?siU)<day d="2" t="(.*)" dt="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<part p="d">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*<part p="n">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*"

;[Current]=========================================

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

[MeasureWeatherDesc]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Current]
StringIndex=19
Substitute=" And ":" and ","Lgt.":"Light ","Snow/":"Snow & "

[MeasureWeatherIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Current]
StringIndex=20

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

;[TODAY]=====================================


[MeasureWeatherDesc1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Today]
StringIndex=9
Substitute=" And ":" and "

[MeasureWeatherDay1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Today]
StringIndex=2

[MeasureWeatherTemp1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Today]
StringIndex=4
Substitute="N/A":"666"

[MeasureWeatherIcon1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Today]
StringIndex=8

[CheckNATemp]
Measure=Calc
Formula=[MeasureWeatherTemp1]
IfBelowValue=665
IfBelowAction=!execute [!RainmeterHideMeter MeterNightTemp1][!RainmeterHideMeter MeterNightDay1][!RainmeterHideMeter MeterNightDesc1][!RainmeterHideMeter MeterNightIcon1][!RainmeterShowMeter MeterTemp1][!RainmeterShowMeter MeterDay1][!RainmeterShowMeter MeterDesc1][!RainmeterShowMeter MeterIcon1]
IfEqualValue=666
IfEqualAction=!execute [!RainmeterHideMeter MeterTemp1][!RainmeterHideMeter MeterDay1][!RainmeterHideMeter MeterDesc1][!RainmeterHideMeter MeterIcon1][!RainmeterShowMeter MeterNightTemp1][!RainmeterShowMeter MeterNightDay1][!RainmeterShowMeter MeterNightDesc1][!RainmeterShowMeter MeterNightIcon1]
DynamicVariables=1

;[TONIGHT]=====================================


[MeasureWeatherNightDesc]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Today]
StringIndex=18
Substitute=" And ":" and "

[MeasureWeatherNightTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Today]
StringIndex=5

[MeasureWeatherNightIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Today]
StringIndex=17

;[TOMORROW]=====================================

[MeasureWeatherDesc2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Tomorrow]
StringIndex=8
Substitute=" And ":" and "

[MeasureWeatherDay2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Tomorrow]
StringIndex=1

[MeasureWeatherTemp2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Tomorrow]
StringIndex=3

[MeasureWeatherIcon2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Tomorrow]
StringIndex=7

;[DayAfter]=====================================

[MeasureWeatherDesc3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[DayAfter]
StringIndex=8
Substitute=" And ":" and "

[MeasureWeatherDay3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[DayAfter]
StringIndex=1

[MeasureWeatherTemp3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[DayAfter]
StringIndex=3

;D+3, weather icon, id=38
[MeasureWeatherIcon3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[DayAfter]
StringIndex=7

;[DISPLAY CURRENT]=================================

[MeterTemp]
MeasureName=MeasureWeatherTemp
Meter=STRING
X=500
Y=5
FontColor=#FontColor#
StringStyle=NORMAL
FontSize=36
StringAlign=RIGHT
StringEffect=Shadow
FontFace=#Font#
Antialias=1
Postfix="°"

[MeterDesc]
MeasureName=MeasureWeatherDesc
Meter=STRING
X=-103r
Y=5r
FontColor=#FontColor#
FontSize=18
StringAlign=RIGHT
StringStyle=NORMAL
StringEffect=Shadow
FontFace=#Font#
Antialias=1

[MeterRealFeel]
MeasureName=MeasureWeatherRealFeel
Meter=STRING
X=r
Y=29r
FontColor=#FontColor#
FontSize=10
StringAlign=RIGHT
StringStyle=NORMAL
StringEffect=Shadow
FontFace=#Font#
Antialias=1
Text="Feels like %1°"

[MeterIconNA]
ImageName=na.png
Meter=IMAGE
H=30
W=30
X=105r
Y=-9r
Hidden=1

[MeterIcon]
MeasureName=MeasureWeatherIcon
Meter=IMAGE
H=70
W=70
X=r
Y=-27r
Hidden=0

;[DISPLAY TODAY]=============================

[MeterTemp1]
MeasureName=MeasureWeatherTemp1
Meter=STRING
X=-4r
Y=70r
FontColor=#FontInactive#
StringStyle=NORMAL
FontSize=30
StringAlign=RIGHT
FontFace=#Font#
Antialias=1
Postfix="°"
StringEffect=Shadow
Hidden=0

[MeterDay1]
;MeasureName=MeasureWeatherDay1
Meter=STRING
X=-86r
Y=5r
FontColor=#FontInactive#
FontSize=14
StringAlign=RIGHT
StringStyle=NORMAL
FontFace=#Font#
Text="Today"
Antialias=1
StringEffect=Shadow
Hidden=0

[MeterDesc1]
MeasureName=MeasureWeatherDesc1
Meter=STRING
X=r
Y=20r
FontColor=#FontInactive#
FontSize=10
StringAlign=RIGHT
StringStyle=NORMAL
FontFace=#Font#
Antialias=1
StringEffect=Shadow
Hidden=0

[MeterIcon1]
MeasureName=MeasureWeatherIcon1
Meter=IMAGE
H=50
W=50
X=100r
Y=-25r
Hidden=0

[MeterReset]
Meter=STRING
X=-10r
Y=r

[MeterNightTemp1]
MeasureName=MeasureWeatherNightTemp
Meter=STRING
X=-4r
Y=r
FontColor=#FontInactive#
StringStyle=NORMAL
FontSize=30
StringAlign=RIGHT
FontFace=#Font#
Antialias=1
Postfix="°"
StringEffect=Shadow
Hidden=1

[MeterNightDay1]
;MeasureName=MeasureWeatherDay1
Meter=STRING
X=-86r
Y=5r
FontColor=#FontInactive#
FontSize=14
StringAlign=RIGHT
StringStyle=NORMAL
FontFace=#Font#
Text="Tonight"
Antialias=1
StringEffect=Shadow
Hidden=1

[MeterNightDesc1]
MeasureName=MeasureWeatherNightDesc
Meter=STRING
X=r
Y=20r
FontColor=#FontInactive#
FontSize=10
StringAlign=RIGHT
StringStyle=NORMAL
FontFace=#Font#
Antialias=1
StringEffect=Shadow
Hidden=1

[MeterNightIcon1]
MeasureName=MeasureWeatherNightIcon
Meter=IMAGE
H=50
W=50
X=100r
Y=-25r
Hidden=1

;[DISPLAY TOMORROW]=============================

[MeterTemp2]
MeasureName=MeasureWeatherTemp2
Meter=STRING
X=-14r
Y=#YGap#r
FontColor=#FontInactive#
StringStyle=NORMAL
FontSize=30
StringAlign=RIGHT
FontFace=#Font#
Antialias=1
Postfix="°"
StringEffect=Shadow

[MeterDay2]
;MeasureName=MeasureWeatherDay2
Meter=STRING
X=-86r
Y=5r
FontColor=#FontInactive#
FontSize=14
StringAlign=RIGHT
StringStyle=NORMAL
FontFace=#Font#
Text="Tomorrow"
Antialias=1
StringEffect=Shadow

[MeterDesc2]
MeasureName=MeasureWeatherDesc2
Meter=STRING
X=r
Y=20r
FontColor=#FontInactive#
FontSize=10
StringAlign=RIGHT
StringStyle=NORMAL
FontFace=#Font#
Antialias=1
StringEffect=Shadow

[MeterIcon2]
MeasureName=MeasureWeatherIcon2
Meter=IMAGE
H=50
W=50
X=100r
Y=-25r

;[DISPLAY DAY AFTER]=============================

[MeterTemp3]
MeasureName=MeasureWeatherTemp3
Meter=STRING
X=-14r
Y=#YGap#r
FontColor=#FontInactive#
StringStyle=NORMAL
FontSize=30
StringAlign=RIGHT
FontFace=#Font#
Antialias=1
Postfix="°"
StringEffect=Shadow

[MeterDay3]
MeasureName=MeasureWeatherDay3
Meter=STRING
X=-86r
Y=5r
FontColor=#FontInactive#
FontSize=14
StringAlign=RIGHT
StringStyle=NORMAL
FontFace=#Font#
Antialias=1
StringEffect=Shadow

[MeterDesc3]
MeasureName=MeasureWeatherDesc3
Meter=STRING
X=r
Y=20r
FontColor=#FontInactive#
FontSize=10
StringAlign=RIGHT
StringStyle=NORMAL
FontFace=#Font#
Antialias=1
StringEffect=Shadow

[MeterIcon3]
MeasureName=MeasureWeatherIcon3
Meter=IMAGE
H=50
W=50
X=100r
Y=-25r
moist_apple
Posts: 1
Joined: June 11th, 2013, 8:52 pm

Re: How to make the Weather work?

Post by moist_apple »

Could someone help me understand what I'm doing wrong? I'm 100% fresh to rainmeter, so just stumbling ahead while trying to figure out things.

This is the skin I'm trying to use now:
http://customize.org/rainmeter/skins/65669664


Here is the weather thing I'm trying to get to work:

Code: Select all

[Rainmeter]
Author=Adytzu2005
Update=100
AppVersion=1.0
LocalFont="#SKINSPATH#Circuitous\DejaVuSans.ttf"
LocalFont2="#SKINSPATH#Circuitous\DejaVuSansCondensed.ttf"

[Variables]
@include=#SKINSPATH#Circuitous\Variables.inc



[mRing]
Measure=Calc
Formula=360



[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3600
Url=http://rss.weather.com/weather/rss/local/NOXX0050?cm_ven=LWO&cm_cat=rss&par=LWO_rss
RegExp="(?siU)<weather ver="(.*)">(.*)<tmp>(.*)</tmp>(.*)<t>(.*)</t>(.*)<icon>(.*)</icon>(.*)<day d="1" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>

(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*)<day d="2" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*)<day d="3" 

t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*)"
StringIndex=1

[MeasureWeatherTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=3
 
[MeasureWeatherDesc]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=5

[MaxTemp50]
Measure=Calc
Formula=MeasureWeatherTemp/50

[MeterBG]
Meter=IMAGE
X=0
Y=0
W=250
H=75
SolidColor=0, 0, 0, 0

[MeterWeatherBG]
MeasureName=mRing
Meter=ROUNDLINE
X=35
Y=35
StartAngle=0
RotationAngle=4.712389
LineWidth=5
LineStart=20
LineLength=35
LineColor=#CircleBG#
Solid=1
AntiAlias=1

[MeterWeatherLight]
MeasureName=MaxTemp50
Meter=ROUNDLINE
X=35
Y=35
StartAngle=0
RotationAngle=4.712389
LineWidth=5
LineStart=22
LineLength=33
LineColor=#CircleBar#
Solid=1
AntiAlias=1

[MeterWeatherText]
MeasureName=MeasureWeatherTemp
Meter=STRING
X=35
Y=-3
StringAlign=LEFT
StringStyle=NORMAL
StringEffect=#StringEffect#
FontEffectColor=#CircleBG#
FontFace=#Font1#
FontSize=#Size1#
FontColor=#TextColorMain#
AntiAlias=1
Text="weather: %1"
Postfix="°C"

[MeterSubText]
MeasureName=MeasureWeatherDesc
Meter=STRING
X=20r
Y=-5R
StringAlign=LEFT
StringStyle=BOLD
StringEffect=#StringEffect#
FontEffectColor=#CircleBG#
FontFace=#Font2#
FontSize=#Size2#
FontColor=#TextColorSub#
AntiAlias=1
Percentual=0
Text=""
Autoscale=1
Only thing I've changed (intentionally) and not changed back after figuring it didn't work is the:
http://rss.weather.com/weather/rss/local/NOXX0050?cm_ven=LWO&cm_cat=rss&par=LWO_rss

Don't know if I'm using the wrong url or what.

Any help would be much appreciated.

Edit: Figured out what was wrong, it was looking for the fonts in the wrong location.
The actual location was:
C:\Users\username\Documents\Rainmeter\Skins\Futuristic Cityscape\Circuitous

But it was looking for it in
C:\Users\username\Documents\Rainmeter\Skins\Circuitous


No idea how to set it to the right location, so I just copied the folder so that it would be "correct" about the location.
Ao Nuu Shin
Posts: 128
Joined: May 2nd, 2015, 9:13 am

Re: How to make the Weather work?

Post by Ao Nuu Shin »

Hey guys, how are you all doing? I wanted to ask, because I really don't know and It's tiring to watch and do, is any proper code for weather? I don't want to just c/p a code, I just want to know where can I find a video or someone who can give me some examples, something to study, on making simple and good weather items for rainmeter. Thanks for your time and I hope I'll get some help on that.
qsdfghjklmtoc
Posts: 2
Joined: June 5th, 2020, 1:10 pm

Re: How to make the Weather work?

Post by qsdfghjklmtoc »

Hi,
I'm using this template :https://www.deviantart.com/dd-921/art/Rainmeter-NUXHD-1-1-717447316
But I just can't make the weather work, I've also tried the solution of the developper that he posts under the template but it doesn't work (or may be I do something wrong)
PLEASE HELP ME !
User avatar
SilverAzide
Rainmeter Sage
Posts: 2611
Joined: March 23rd, 2015, 5:26 pm

Re: How to make the Weather work?

Post by SilverAzide »

qsdfghjklmtoc wrote: June 5th, 2020, 2:08 pm Hi,
I'm using this template :https://www.deviantart.com/dd-921/art/Rainmeter-NUXHD-1-1-717447316
But I just can't make the weather work, I've also tried the solution of the developper that he posts under the template but it doesn't work (or may be I do something wrong)
PLEASE HELP ME !
All weather skins that use The Weather Channel are broken right now. A new set of templates will come out shortly that will fix the problem. Check this thread for a new version (one dated today or later).
Gadgets Wiki GitHub More Gadgets...