It is currently September 17th, 2021, 12:12 pm

Change to Yahoo! weather feed

Release announcements and important news from the developers.
mpo
Posts: 1
Joined: May 18th, 2016, 6:01 pm

Re: Change to Yahoo! weather feed

Post by mpo »

+1 for artyom. However, I discovered a flaw in his RegExp that forbids latitude and longitude retrieval. Here's my fix over his fix :D

Code: Select all

RegExp=(?siU).*distance="(.*)".*pressure="(.*)".*speed="(.*)".*temperature="(.*)".*city="(.*)".*country="(.*)".*region="(.*)".*chill="(.*)".*direction="(.*)".*speed="(.*)".*humidity="(.*)".*pressure="(.*)".*rising="(.*)".*visibility="(.*)".*sunrise="(.*)".*sunset="(.*)".*<title>.*:.*m .*(.*)</title><.*lat.*>(.{6}).*<.*long.*>(.{6}).*<.*condition.*code="(.*)".*temp="(.*)".*text="(.*)".*forecast.*day="(.*)".*code="(.*)".*high="(.*)".*low="(.*)".*text="(.*)".*forecast.*day="(.*)".*code="(.*)".*high="(.*)".*low="(.*)".*text="(.*)".*
...also applying a decimal fix in order to avoid an excessive number length.

Cheers.
artyom wrote:Here's the fixed YahooWeather.inc for Enigma users... seems to be working for now, but let me know if there are any problems.

Code: Select all

[MeasureYahooWeather]
Measure=Plugin
Plugin=WebParser
UpdateRate=1800
Url=https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid=#CurrentCode# AND u="#Unit#"
RegExp=(?siU).*distance="(.*)".*pressure="(.*)".*speed="(.*)".*temperature="(.*)".*city="(.*)".*country="(.*)".*region="(.*)".*chill="(.*)".*direction="(.*)".*speed="(.*)".*humidity="(.*)".*pressure="(.*)".*rising="(.*)".*visibility="(.*)".*sunrise="(.*)".*sunset="(.*)".*<title>.*:.*m .*(.*)</title>.*lat>(.*)<.*long>(.*)<.*condition.*code="(.*)".*temp="(.*)".*text="(.*)".*forecast.*day="(.*)".*code="(.*)".*high="(.*)".*low="(.*)".*text="(.*)".*forecast.*day="(.*)".*code="(.*)".*high="(.*)".*low="(.*)".*text="(.*)".*

;-----------------------
; UNITS

[MeasureWeatherUnitDistance]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=1

[MeasureWeatherUnitPressure]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=2

[MeasureWeatherUnitSpeed]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=3

[MeasureWeatherUnitTemp]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=4

;-----------------------
; LOCATION

[MeasureWeatherCity]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=5

[MeasureWeatherCountry]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=6

[MeasureWeatherRegion]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=7

;-----------------------
; WIND

[MeasureWeatherWindChill]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=8

[MeasureWeatherWindDirection]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=9

[MeasureWeatherWindDirectionCardinal]
Measure=Calc
Formula=FLOOR(((MeasureWeatherWindDirection/11.25)+1.5) < 33 ? ((MeasureWeatherWindDirection/11.25)+1.5) : ((MeasureWeatherWindDirection/11.25)+1.5)-32)
Substitute="10":"EbS","11":"ESE","12":"SEbE","13":"SE","14":"SEbS","15":"SSE","16":"SbE","17":"S","18":"SbW","19":"SSW","20":"SWbS","21":"SW","22":"SWbW","23":"WSW","24":"WbSW","25":"W","26":"WbN","27":"WNW","28":"NWbW","29":"NW","30":"NWbN","31":"NNW","32":"NbW","1":"N","2":"NbE","3":"NNE","4":"NEbN","5":"NE","6":"NEbE","7":"ENE","8":"EbN","9":"E"

[MeasureWeatherWindSpeed]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=10

;-----------------------
; ATMOSPHERE

[MeasureWeatherAtmoHumidity]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=11

[MeasureWeatherAtmoPressure]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=12

[MeasureWeatherAtmoRising]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=13

[MeasureWeatherAtmoVisibility]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=14

;--------------------------------
; SUN

[MeasureWeatherSunrise]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=15

[MeasureWeatherSunset]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=16

;--------------------------------
; REGION

[MeasureWeatherTimeZone]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=17

[MeasureWeatherLatitude]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=18

[MeasureWeatherLongitude]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=19

;--------------------------------
; CURRENT

[MeasureWeatherIcon]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=20

[MeasureWeatherTemp]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=21

[MeasureWeatherDesc]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=22

;-------------------------
; DAY 2

[MeasureWeatherDay2Date]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=23
Substitute="Sun":"Sunday","Mon":"Monday","Tue":"Tuesday","Wed":"Wednesday","Thu":"Thursday","Fri":"Friday","Sat":"Saturday"

[MeasureWeatherDay2Icon]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=24

[MeasureWeatherDay2High]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=25

[MeasureWeatherDay2Low]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=26

[MeasureWeatherDay2Average]
Measure=Calc
Formula=ROUND((MeasureWeatherDay2Low+MeasureWeatherDay2High)/2)

[MeasureWeatherDay2Desc]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=27

;-------------------------
; DAY 3

[MeasureWeatherDay3Date]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=28
Substitute="Sun":"Sunday","Mon":"Monday","Tue":"Tuesday","Wed":"Wednesday","Thu":"Thursday","Fri":"Friday","Sat":"Saturday"

[MeasureWeatherDay3Icon]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=29

[MeasureWeatherDay3High]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=30

[MeasureWeatherDay3Low]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=31

[MeasureWeatherDay3Average]
Measure=Calc
Formula=ROUND((MeasureWeatherDay3Low+MeasureWeatherDay3High)/2)

[MeasureWeatherDay3Desc]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=32

;-----------------------
; LOGO
; Yahoo! Weather requires that any application which uses their API include the Y!W logo and a link to their website. This section will automatically insert those elements into any skin which uses this measure module. Please do not remove these elements if you are redistributing this file with your own skin.

[YahooWeatherLogo]
Meter=IMAGE
MeterStyle=Style#Variant#Icon
Group=EnigmaMouseover
ImageName=#@#Images\MoxaWeather\Logo.png
H=25
W=25
Hidden=1
LeftMouseUpAction=["http://weather.yahoo.com/"][!Redraw]
ToolTipText=Powered by Yahoo! Weather.
Elsa23
Posts: 1
Joined: May 19th, 2016, 11:34 am

Re: Change to Yahoo! weather feed

Post by Elsa23 »

Hi, how can i made it working a gain please

Code: Select all

[Metadata]
Name=Weather Gadget #1 | Style 1+
Config=Vista Rainbar | Weather | 1
Description=Shows a 3-day forecast in addition to the current weather conditions.
Instructions=Set your Weather codes to show your location using the configuration tool.
Version=4.6.0.0
Tags=Gadget | Vista Rainbar | Weather
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Preview=#SKINSPATH#Vista Rainbar\img\Preview.png

[Rainmeter]
MouseActionCursor=0
Author=legace@inbox.com
AppVersion=1001000
BackgroundMode=0
Update=1000
MouseOverAction=!execute [!RainmeterShowMeter Menu][!RainmeterShowMeter Set][!RainmeterShowMeter More][!RainmeterShowMeter Close][!RainmeterShowMeter Plus][!RainmeterRedraw]
MouseLeaveAction=!execute [!RainmeterHideMeter Menu][!RainmeterHideMeter Set][!RainmeterHideMeter More][!RainmeterHideMeter Close][!RainmeterHideMeter Plus][!RainmeterRedraw]

[Variables]
City1=Helsinki
State1=FI
Zip1=FIXX0020
Unit=c
Unit2=f
Palmtree=N
@Include=..\settings.inc
FontName=Segoe UI
TxtColor=255,255,255
ShwColor=0,0,0
TxtColor2=255,255,255,160

###

[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3600
Url=http://yahoowidget.weather.com/weather/local/#Zip1#?cc=*&prod=bd_select&par=yahoowidgetxml&dayf=4&unit=#Unit2#
RegExp="(?siU)<weather ver="(.*)">.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<zone>(.*)</zone>.*<cc>.*<tmp>(.*)</tmp>.*<t>(.*)</t>.*<icon>(.*)</icon>.*<moon>.*<t(.*)/t>.*<hi>(.*)</hi>.*<low>(.*)</low>.*<day d="1" t="(.*)".*">.*<hi>(.*)</hi>.*<low>(.*)</low>.*<icon>(.*)</icon>.*<day d="2" t="(.*)".*">.*<hi>(.*)</hi>.*<low>(.*)</low>.*<icon>(.*)</icon>.*<day d="3" t="(.*)".*">.*<hi>(.*)</hi>.*<low>(.*)</low>.*<icon>(.*)</icon>.*"
StringIndex=1

[MeasureNA]
Measure=Calc
Formula=(MeasureWeatherRSS-1)
IfAboveValue=0
IfAboveAction=!Execute [!RainmeterHideMeter NA][!RainmeterRedraw]
IfBelowValue=0
IfBelowAction=!Execute [!RainmeterShowMeter NA][!RainmeterRedraw]

[MeasureSunR]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=2

[MeasureSunS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=3

[MeasurePhase]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=8
Substitute=">":"..\img\","<":"+.png"

[MeasureIconDef]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=7

[MeasureIcon]
Measure=CALC
Formula=99000088 + (MeasureIconDef*1000)
Substitute="990":"..\img\","088":"+.png"

[MeasureTime]
Measure=Time
Format=%H
TimeZone=0
DaylightSavingTime=0

[MeasureZone]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=4

[MeasureBlack]
Measure=Calc
Formula=((MeasureTime + MeasureZone) < MeasureSunR) || ((MeasureTime + MeasureZone) > (MeasureSunS + 12)) ? (1) : (-1)
IfAboveValue=0
IfAboveAction=!Execute [!RainmeterShowMeter Black][!RainmeterHideMeter Blue][!RainmeterShowMeter BlackDeco][!RainmeterHideMeter BlueDeco][!RainmeterRedraw]
IfBelowValue=0
IfBelowAction=!Execute [!RainmeterHideMeter Black][!RainmeterShowMeter Blue][!RainmeterHideMeter BlackDeco][!RainmeterShowMeter BlueDeco][!RainmeterRedraw]

[MeasureOrange]
Measure=Calc
Formula=((MeasureTime + MeasureZone) = MeasureSunR) || ((MeasureTime + MeasureZone) = (MeasureSunS + 12)) ? (1) : (-1)
IfAboveValue=0
IfAboveAction=!Execute [!RainmeterShowMeter Orange][!RainmeterShowMeter OrangeDeco][!RainmeterRedraw]
IfBelowValue=0
IfBelowAction=!Execute [!RainmeterHideMeter Orange][!RainmeterHideMeter OrangeDeco][!RainmeterRedraw]

[MeasureOrange2]
Measure=Calc
Formula=(((MeasureTime + MeasureZone) < MeasureSunR) || ((MeasureTime + MeasureZone) > (MeasureSunS + 12))) || ((MeasureIconDef = 29) || (MeasureIconDef = 30) || (MeasureIconDef = 31) || (MeasureIconDef = 32) || (MeasureIconDef = 33) || (MeasureIconDef = 34) || (MeasureIconDef = 36) || (MeasureIconDef = 37) || (MeasureIconDef = 39) || (MeasureIconDef = 44)) ? (1) : (-1)
IfAboveValue=0
IfAboveAction=!Execute [!RainmeterHideMeter Orange2][!RainmeterRedraw]
IfBelowValue=0
IfBelowAction=!Execute [!RainmeterShowMeter Orange2][!RainmeterRedraw]

[MeasureEtoiles]
Measure=Calc
Formula=(((MeasureTime + MeasureZone) < MeasureSunR) || ((MeasureTime + MeasureZone) > (MeasureSunS + 12))) && ((MeasureIconDef = 27) || (MeasureIconDef = 29) || (MeasureIconDef = 31) || (MeasureIconDef = 33) || (MeasureIconDef = 34) || (MeasureIconDef = 45) || (MeasureIconDef = 46) || (MeasureIconDef = 47)) ? (1) : (-1)
IfAboveValue=0
IfAboveAction=!Execute [!RainmeterShowMeter Etoiles][!RainmeterRedraw]
IfBelowValue=0
IfBelowAction=!Execute [!RainmeterHideMeter Etoiles][!RainmeterRedraw]

[MeasureMoon]
Measure=Calc
Formula=(((MeasureTime + MeasureZone) < MeasureSunR) || ((MeasureTime + MeasureZone) > (MeasureSunS + 12))) && ((MeasureIconDef=31) || (MeasureIconDef=32) || (MeasureIconDef=33) || (MeasureIconDef=34) || (MeasureIconDef=36)) ? (1) : (-1)
IfAboveValue=0
IfAboveAction=!Execute [!RainmeterShowMeter Moon][!RainmeterRedraw]
IfBelowValue=0
IfBelowAction=!Execute [!RainmeterHideMeter Moon][!RainmeterRedraw]

[MeasureSun]
Measure=Calc
Formula=(((MeasureTime + MeasureZone) > (MeasureSunR - 1)) && ((MeasureTime + MeasureZone) < (MeasureSunS + 13))) && ((MeasureIconDef=31) || (MeasureIconDef=32) || (MeasureIconDef=33) || (MeasureIconDef=34) || (MeasureIconDef=36)) ? (1) : (-1)
IfAboveValue=0
IfAboveAction=!Execute [!RainmeterShowMeter Sun][!RainmeterRedraw]
IfBelowValue=0
IfBelowAction=!Execute [!RainmeterHideMeter Sun][!RainmeterRedraw]

[MeasureSky]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=6

[MeasureTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=5

[MeasureTempMax]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=9

[MeasureTempMin]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=10

[MeasureWeatherDate1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=11

[MeasureWeatherTemp1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=12

[MeasureWeatherTempMin1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=13

[MeasureWeatherIcon1Def]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=14

[MeasureWeatherIcon1]
Measure=CALC
Formula=99000088 + (MeasureWeatherIcon1Def*1000)
Substitute="990":"..\img\","088":"sm.png"

[MeasureWeatherDate2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=15

[MeasureWeatherTemp2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=16

[MeasureWeatherTempMin2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=17

[MeasureWeatherIcon2Def]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=18

[MeasureWeatherIcon2]
Measure=CALC
Formula=99000088 + (MeasureWeatherIcon2Def*1000)
Substitute="990":"..\img\","088":"sm.png"

[MeasureWeatherDate3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=19

[MeasureWeatherTemp3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=20

[MeasureWeatherTempMin3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=21

[MeasureWeatherIcon3Def]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=22

[MeasureWeatherIcon3]
Measure=CALC
Formula=99000088 + (MeasureWeatherIcon3Def*1000)
Substitute="990":"..\img\","088":"sm.png"

###

[Black]
Meter=IMAGE
ImageName=..\img\Black+.png
Hidden=1

[Blue]
Meter=IMAGE
ImageName=..\img\Blue+.png
Hidden=1

[Orange]
Meter=IMAGE
ImageName=..\img\Orange+.png
Hidden=1

[Orange2]
Meter=IMAGE
ImageName=..\img\Gray+.png
Hidden=1

[Etoiles]
Meter=IMAGE
ImageName=..\img\Etoiles+.png
Hidden=1

[Moon]
Meter=IMAGE
MeasureName=MeasurePhase
Hidden=1

[Sun]
Meter=IMAGE
ImageName=..\img\Sun+.png
Hidden=1

[Icon]
MeasureName=MeasureIcon
Meter=IMAGE

[BlackDeco]
Meter=IMAGE
ImageName=..\img\BlackDeco#Palmtree#+.png
Hidden=1

[BlueDeco]
Meter=IMAGE
ImageName=..\img\BlueDeco#Palmtree#+.png
Hidden=1

[OrangeDeco]
Meter=IMAGE
ImageName=..\img\OrangeDeco#Palmtree#+.png
Hidden=1

[Colonne]
Meter=IMAGE
X=89
Y=108
H=45
W=1
SolidColor=0,0,0,160

[Colonne2]
Meter=IMAGE
X=1r
Y=0r
H=45
W=1
SolidColor=255,255,255,60

[Colonne3]
Meter=IMAGE
X=77r
Y=0r
H=45
W=1
SolidColor=0,0,0,160

[Colonne4]
Meter=IMAGE
X=1r
Y=0r
H=45
W=1
SolidColor=255,255,255,60

[Ligne]
Meter=IMAGE
X=14
Y=47r
H=1
W=228
SolidColor=0,0,0,160

[Ligne2]
Meter=IMAGE
X=0r
Y=1r
H=1
W=228
SolidColor=255,255,255,60

[Title1]
MeasureName=MeasureWeatherRSS
Meter=STRING
X=241
Y=76
H=20
W=220
FontColor=#ShwColor#
StringStyle=BOLD
FontSize=10
StringAlign=RIGHT
Clipstring=1
FontFace=#FontName#
Antialias=1
Text=#City1#, #State1#

[Title]
MeasureName=MeasureWeatherRSS
Meter=STRING
X=1r
Y=-1r
H=20
W=220
FontColor=#TxtColor#
StringStyle=BOLD
FontSize=10
StringAlign=RIGHT
Clipstring=1
FontFace=#FontName#
Antialias=1
Text=#City1#, #State1#
LeftMouseDownAction=http://weather.yahoo.com/forecast/#Zip1#_#Unit#.html
MouseActionCursor=1

[TempShadow]
MeasureName=MeasureTemp
Meter=STRING
X=246
Y=5
FontColor=#ShwColor#
StringStyle=NORMAL
FontSize=25
StringAlign=RIGHT
FontFace=#FontName#
Antialias=1
Postfix=°

[Temp]
MeasureName=MeasureTemp
Meter=STRING
X=1r
Y=-1r
FontColor=#TxtColor#
StringStyle=NORMAL
FontSize=25
StringAlign=RIGHT
FontFace=#FontName#
Antialias=1
Postfix=°

[Sky]
MeasureName=MeasureSky
Meter=STRING
X=241
Y=42
FontColor=#ShwColor#
StringStyle=BOLD
FontSize=9
StringAlign=RIGHT
FontFace=#FontName#
Antialias=1

[Sky2]
MeasureName=MeasureSky
Meter=STRING
X=1r
Y=-1r
FontColor=#TxtColor#
StringStyle=BOLD
FontSize=9
StringAlign=RIGHT
FontFace=#FontName#
Antialias=1

[TempMinMaxShadow]
MeasureName=MeasureTempMin
MeasureName2=MeasureTempMax
Meter=STRING
X=241
Y=57
FontColor=#ShwColor#
StringStyle=NORMAL
FontSize=9
StringAlign=RIGHT
FontFace=#FontName#
Antialias=1
Text=%1°   -   %2°

[TempMinMax]
MeasureName=MeasureTempMin
MeasureName2=MeasureTempMax
Meter=STRING
X=1r
Y=-1r
FontColor=#TxtColor#
StringStyle=NORMAL
FontSize=9
StringAlign=RIGHT
FontFace=#FontName#
Antialias=1
Text=%1°   -   %2°

[Icon1]
MeasureName=MeasureWeatherIcon1
Meter=IMAGE
X=44
Y=120
W=42
H=34

[TempMin1Shw]
MeasureName=MeasureWeatherTempMin1
Meter=STRING
X=16
Y=137
FontColor=#ShwColor#
FontSize=9
StringAlign=LEFT
StringStyle=NORMAL
FontFace=#FontName#
Antialias=1
Postfix=°

[TempMin1]
MeasureName=MeasureWeatherTempMin1
Meter=STRING
X=1r
Y=-1r
FontColor=#TxtColor#
FontSize=9
StringAlign=LEFT
StringStyle=NORMAL
FontFace=#FontName#
Antialias=1
Postfix=°

[Temp1Shw]
MeasureName=MeasureWeatherTemp1
Meter=STRING
X=16
Y=121
FontColor=#ShwColor#
FontSize=9
StringAlign=LEFT
StringStyle=BOLD
FontFace=#FontName#
Antialias=1
Postfix=°

[Temp1]
MeasureName=MeasureWeatherTemp1
Meter=STRING
X=1r
Y=-1r
FontColor=#TxtColor#
FontSize=9
StringAlign=LEFT
StringStyle=BOLD
FontFace=#FontName#
Antialias=1
Postfix=°

[Date1Shw]
MeasureName=MeasureWeatherDate1
Meter=STRING
X=16
Y=103
FontColor=#ShwColor#
FontSize=9
StringAlign=LEFT
StringStyle=NORMAL
FontFace=#FontName#
Antialias=1

[Date1]
MeasureName=MeasureWeatherDate1
Meter=STRING
X=1r
Y=-1r
FontColor=#TxtColor#
FontSize=9
StringAlign=LEFT
StringStyle=NORMAL
FontFace=#FontName#
Antialias=1

[Icon2]
MeasureName=MeasureWeatherIcon2
Meter=IMAGE
X=121
Y=120
W=42
H=34

[TempMin2Shw]
MeasureName=MeasureWeatherTempMin2
Meter=STRING
X=94
Y=137
FontColor=#ShwColor#
FontSize=9
StringAlign=LEFT
StringStyle=NORMAL
FontFace=#FontName#
Antialias=1
Postfix=°

[TempMin2]
MeasureName=MeasureWeatherTempMin2
Meter=STRING
X=1r
Y=-1r
FontColor=#TxtColor#
FontSize=9
StringAlign=LEFT
StringStyle=NORMAL
FontFace=#FontName#
Antialias=1
Postfix=°

[Temp2Shw]
MeasureName=MeasureWeatherTemp2
Meter=STRING
X=94
Y=121
FontColor=#ShwColor#
FontSize=9
StringAlign=LEFT
StringStyle=BOLD
FontFace=#FontName#
Antialias=1
Postfix=°

[Temp2]
MeasureName=MeasureWeatherTemp2
Meter=STRING
X=1r
Y=-1r
FontColor=#TxtColor#
FontSize=9
StringAlign=LEFT
StringStyle=BOLD
FontFace=#FontName#
Antialias=1
Postfix=°

[Date2Shw]
MeasureName=MeasureWeatherDate2
Meter=STRING
X=94
Y=103
FontColor=#ShwColor#
FontSize=9
StringAlign=LEFT
StringStyle=NORMAL
FontFace=#FontName#
Antialias=1

[Date2]
MeasureName=MeasureWeatherDate2
Meter=STRING
X=1r
Y=-1r
FontColor=#TxtColor#
FontSize=9
StringAlign=LEFT
StringStyle=NORMAL
FontFace=#FontName#
Antialias=1

[Icon3]
MeasureName=MeasureWeatherIcon3
Meter=IMAGE
X=198
Y=120
W=42
H=34

[TempMin3Shw]
MeasureName=MeasureWeatherTempMin3
Meter=STRING
X=171
Y=137
FontColor=#ShwColor#
FontSize=9
StringAlign=LEFT
StringStyle=NORMAL
FontFace=#FontName#
Antialias=1
Postfix=°

[TempMin3]
MeasureName=MeasureWeatherTempMin3
Meter=STRING
X=1r
Y=-1r
FontColor=#TxtColor#
FontSize=9
StringAlign=LEFT
StringStyle=NORMAL
FontFace=#FontName#
Antialias=1
Postfix=°

[Temp3Shw]
MeasureName=MeasureWeatherTemp3
Meter=STRING
X=171
Y=121
FontColor=#ShwColor#
FontSize=9
StringAlign=LEFT
StringStyle=BOLD
FontFace=#FontName#
Antialias=1
Postfix=°

[Temp3]
MeasureName=MeasureWeatherTemp3
Meter=STRING
X=1r
Y=-1r
FontColor=#TxtColor#
FontSize=9
StringAlign=LEFT
StringStyle=BOLD
FontFace=#FontName#
Antialias=1
Postfix=°

[Date3Shw]
MeasureName=MeasureWeatherDate3
Meter=STRING
X=171
Y=103
FontColor=#ShwColor#
FontSize=9
StringAlign=LEFT
StringStyle=NORMAL
FontFace=#FontName#
Antialias=1

[Date3]
MeasureName=MeasureWeatherDate3
Meter=STRING
X=1r
Y=-1r
FontColor=#TxtColor#
FontSize=9
StringAlign=LEFT
StringStyle=NORMAL
FontFace=#FontName#
Antialias=1

[NA]
Meter=IMAGE
ImageName=..\img\NA+.png
Hidden=1

[Site]
Meter=STRING
X=16
Y=155
FontColor=#TxtColor2#
StringStyle=NORMAL
FontSize=9
StringAlign=LEFT
FontFace=#FontName#
Antialias=1
Text=© Yahoo! Weather

###

[Menu]
Meter=IMAGE
ImageName=..\..\img\MenuXMSR.png
X=260
Y=0
Hidden=1

[Close]
Meter=BUTTON
ButtonImage=..\..\img\Close.png
X=260
Y=0
ButtonCommand=!RainmeterDeactivateConfig
Hidden=1

[Plus]
Meter=BUTTON
ButtonImage=..\..\img\Minus.png
X=260
Y=21
ButtonCommand=!Execute [!RainmeterActivateConfig "Vista Rainbar\Weather\1" "1.ini"][!RainmeterRefresh]
Hidden=1

[Set]
Meter=BUTTON
ButtonImage=..\..\img\Settings.png
X=260
Y=42
ButtonCommand=!Execute ["#SKINSPATH#Vista Rainbar\Weather\WeatherConfig.exe"]
Hidden=1

[More]
Meter=BUTTON
ButtonImage=..\..\img\More.png
X=260
Y=63
ButtonCommand=!RainmeterActivateConfig "Vista Rainbar\Weather\1" "2+.ini"
Hidden=1
enquester
Posts: 3
Joined: May 22nd, 2016, 9:52 am

Re: Change to Yahoo! weather feed

Post by enquester »

I have updated Yahooweather.inc and

I am getting the weather displayed as:

Weather current (Sunday)
Then "Sunday"
Then "Tuesday"

Today is sunday and monday is not being shown.

How can I fix this?

Thanks!
Znake
Posts: 3
Joined: April 20th, 2016, 11:42 pm

Re: Change to Yahoo! weather feed

Post by Znake »

enquester wrote:I have updated Yahooweather.inc and

I am getting the weather displayed as:

Weather current (Sunday)
Then "Sunday"
Then "Tuesday"

Today is sunday and monday is not being shown.

How can I fix this?

Thanks!
I have the exact same problem. Can we get a fix on this please? Many thanks in advance!
Jayes
Posts: 5
Joined: January 10th, 2016, 1:19 pm

Re: Change to Yahoo! weather feed

Post by Jayes »

alexbond wrote:I fixed format for CircuitousTwo, worked part for yweather.ini

Code: Select all

[mWeather]
Measure=Plugin
Plugin=WebParser
URL=https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid=#woeid#%20AND%20u="#unit#"
RegExp=(?siU)<yweather:units.*temperature="(.*)".*<link>(.*)</link>.*<yweather:location.*city="(.*)".*<pubDate>(.*)</pubDate>.*<yweather:condition.*code="(.*)".*temp="(.*)".*text="(.*)".*code="(.*)".*high="(.*)".*low="(.*)".*text="(.*)"
ForceReload=1
UpdateRate=900

[mTitle]
Measure=Plugin
Plugin=WebParser
URL=[mWeather]
StringIndex=3

[mLink]
Measure=Plugin
Plugin=WebParser
URL=[mWeather]
StringIndex=2

[mPubDate]
Measure=Plugin
Plugin=WebParser
URL=[mWeather]
StringIndex=4

[mTempUnit]
Measure=Plugin
Plugin=WebParser
URL=[mWeather]
StringIndex=1

[mCurrentTemp]
Measure=Plugin
Plugin=WebParser
URL=[mWeather]
StringIndex=6

[mCurrentCond]
Measure=Plugin
Plugin=WebParser
URL=[mWeather]
StringIndex=7

[mCurrentCondCode]
Measure=Plugin
Plugin=WebParser
URL=[mWeather]
StringIndex=8
//Substitute *

[mTodayLow]
Measure=Plugin
Plugin=WebParser
URL=[mWeather]
StringIndex=10

[mTodayHigh]
Measure=Plugin
Plugin=WebParser
URL=[mWeather]
StringIndex=9

[mTodayCond]
Measure=Plugin
Plugin=WebParser
URL=[mWeather]
StringIndex=11

[mTodayCondCode]
Measure=Plugin
Plugin=WebParser
URL=[mWeather]
StringIndex=8
//Substitute *
Wow thanks so much, this works GREAT!!! <3
Znake
Posts: 3
Joined: April 20th, 2016, 11:42 pm

Re: Change to Yahoo! weather feed

Post by Znake »

Jayes wrote:Wow thanks so much, this works GREAT!!! <3
Thanks, but it doesnt work for me, Any sugestions?
HHE3eich
Posts: 3
Joined: May 30th, 2016, 6:53 pm

Re: Change to Yahoo! weather feed

Post by HHE3eich »

where is the old yweather.ini located, I can't find this file.

Thank you.
User avatar
abdulhakeem
Posts: 7
Joined: May 31st, 2016, 9:42 pm

Re: Change to Yahoo! weather feed

Post by abdulhakeem »

artyom wrote:Here's the fixed YahooWeather.inc for Enigma users... seems to be working for now, but let me know if there are any problems.

Code: Select all

[MeasureYahooWeather]
Measure=Plugin
Plugin=WebParser
UpdateRate=1800
Url=https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid=#CurrentCode# AND u="#Unit#"
RegExp=(?siU).*distance="(.*)".*pressure="(.*)".*speed="(.*)".*temperature="(.*)".*city="(.*)".*country="(.*)".*region="(.*)".*chill="(.*)".*direction="(.*)".*speed="(.*)".*humidity="(.*)".*pressure="(.*)".*rising="(.*)".*visibility="(.*)".*sunrise="(.*)".*sunset="(.*)".*<title>.*:.*m .*(.*)</title>.*lat>(.*)<.*long>(.*)<.*condition.*code="(.*)".*temp="(.*)".*text="(.*)".*forecast.*day="(.*)".*code="(.*)".*high="(.*)".*low="(.*)".*text="(.*)".*forecast.*day="(.*)".*code="(.*)".*high="(.*)".*low="(.*)".*text="(.*)".*

;-----------------------
; UNITS

[MeasureWeatherUnitDistance]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=1

[MeasureWeatherUnitPressure]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=2

[MeasureWeatherUnitSpeed]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=3

[MeasureWeatherUnitTemp]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=4

;-----------------------
; LOCATION

[MeasureWeatherCity]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=5

[MeasureWeatherCountry]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=6

[MeasureWeatherRegion]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=7

;-----------------------
; WIND

[MeasureWeatherWindChill]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=8

[MeasureWeatherWindDirection]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=9

[MeasureWeatherWindDirectionCardinal]
Measure=Calc
Formula=FLOOR(((MeasureWeatherWindDirection/11.25)+1.5) < 33 ? ((MeasureWeatherWindDirection/11.25)+1.5) : ((MeasureWeatherWindDirection/11.25)+1.5)-32)
Substitute="10":"EbS","11":"ESE","12":"SEbE","13":"SE","14":"SEbS","15":"SSE","16":"SbE","17":"S","18":"SbW","19":"SSW","20":"SWbS","21":"SW","22":"SWbW","23":"WSW","24":"WbSW","25":"W","26":"WbN","27":"WNW","28":"NWbW","29":"NW","30":"NWbN","31":"NNW","32":"NbW","1":"N","2":"NbE","3":"NNE","4":"NEbN","5":"NE","6":"NEbE","7":"ENE","8":"EbN","9":"E"

[MeasureWeatherWindSpeed]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=10

;-----------------------
; ATMOSPHERE

[MeasureWeatherAtmoHumidity]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=11

[MeasureWeatherAtmoPressure]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=12

[MeasureWeatherAtmoRising]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=13

[MeasureWeatherAtmoVisibility]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=14

;--------------------------------
; SUN

[MeasureWeatherSunrise]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=15

[MeasureWeatherSunset]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=16

;--------------------------------
; REGION

[MeasureWeatherTimeZone]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=17

[MeasureWeatherLatitude]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=18

[MeasureWeatherLongitude]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=19

;--------------------------------
; CURRENT

[MeasureWeatherIcon]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=20

[MeasureWeatherTemp]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=21

[MeasureWeatherDesc]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=22

;-------------------------
; DAY 2

[MeasureWeatherDay2Date]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=23
Substitute="Sun":"Sunday","Mon":"Monday","Tue":"Tuesday","Wed":"Wednesday","Thu":"Thursday","Fri":"Friday","Sat":"Saturday"

[MeasureWeatherDay2Icon]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=24

[MeasureWeatherDay2High]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=25

[MeasureWeatherDay2Low]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=26

[MeasureWeatherDay2Average]
Measure=Calc
Formula=ROUND((MeasureWeatherDay2Low+MeasureWeatherDay2High)/2)

[MeasureWeatherDay2Desc]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=27

;-------------------------
; DAY 3

[MeasureWeatherDay3Date]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=28
Substitute="Sun":"Sunday","Mon":"Monday","Tue":"Tuesday","Wed":"Wednesday","Thu":"Thursday","Fri":"Friday","Sat":"Saturday"

[MeasureWeatherDay3Icon]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=29

[MeasureWeatherDay3High]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=30

[MeasureWeatherDay3Low]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=31

[MeasureWeatherDay3Average]
Measure=Calc
Formula=ROUND((MeasureWeatherDay3Low+MeasureWeatherDay3High)/2)

[MeasureWeatherDay3Desc]
Measure=Plugin
Plugin=WebParser
Url=[MeasureYahooWeather]
StringIndex=32

;-----------------------
; LOGO
; Yahoo! Weather requires that any application which uses their API include the Y!W logo and a link to their website. This section will automatically insert those elements into any skin which uses this measure module. Please do not remove these elements if you are redistributing this file with your own skin.

[YahooWeatherLogo]
Meter=IMAGE
MeterStyle=Style#Variant#Icon
Group=EnigmaMouseover
ImageName=#@#Images\MoxaWeather\Logo.png
H=25
W=25
Hidden=1
LeftMouseUpAction=["http://weather.yahoo.com/"][!Redraw]
ToolTipText=Powered by Yahoo! Weather.
I pasted that into my Weather-Extended.ini skin for Enigma, and it just made it disappear completely. Am I missing something? What you've posted here seems to be much much longer than the config that Weather-Extended.ini has by default

I don't fully understand how to write Rainmeter skins yet so I'm kind of a noob here. Is this what should be for the URL?


Url=https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid=USTX1177 AND u="f"
IM99
Posts: 1
Joined: June 3rd, 2016, 5:59 pm

Re: Change to Yahoo! weather feed

Post by IM99 »

Hello. Sorry wrote in German, but my English is not so ...

Ich versuche schon die ganze Zeit, mein ABP-Wetter Skin zu ändern, aber es will einfach nicht klappen. Seit der Änderung bei Yahoo bekomme ich keine Anzeige mehr.
Vieleicht kann mir hier jemand helfen. :???:
Ich wollte wieder die Anzeige von Bernburg haben (GMXX2206) mit 2-Tage Vorschau. Habe schon sämtliche Änderungen von hier probiert, aber es will einfach nicht... :-(
Hier mal der Orginal-Code dazu:

Code: Select all

[Rainmeter]
Author=
Update=1000

@include="#SKINSPATH#\ABP\Variables.txt"
@include2="#SKINSPATH#\ABP\Resources\#Skin#\Colors.txt"

;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]
Closed=1
Open=0


[BG]
Meter=IMAGE
ImageName=WeatherBG.png
Path="#SKINSPATH#\ABP\Resources\#Skin#"

[BG2]
Meter=IMAGE
ImageName=WeatherBG2.png
Path="#SKINSPATH#\ABP\Resources\#Skin#"
Y=115
Hidden=#Open#
Group=Open

[Bottom]
Meter=IMAGE
ImageName=Bottom.png
Path="#SKINSPATH#\ABP\Resources\#Skin#"
Y=186

Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
Url=http://www.foreca.com/Germany/Bernburg
RegExp=(?siU)<link.*>(.*)</link>.*city=\"(.*)\".*sunrise=\"(.*)\".*sunset=\"(.*)\".*<image>.*<url>(.*)</url>.*<title>.*:.*m .*(.*)</title>.*lat>(.*)<.*long>(.*)<.*yweather:condition.*text=\"(.*)\".*code=\"(.*)\".*temp=\"(.*)\".*yweather:forecast.*day=\"(.*)\".*high=\"(.*)\".*code=\"(.*)\".*yweather:forecast.*day=\"(.*)\".*high=\"(.*)\".*code=\"(.*)\".*
StringIndex=1


[MeasureWeatherTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=11

[MeasureWeatherIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=10

[CurrentTemperature]
Meter=STRING
MeterStyle=Style
MeasureName=MeasureWeatherTemp
X=175
Y=70
Postfix="°C"
FontSize=15
FontColor=#Color#
StringAlign=RIGHT

[CurrentIcon]
Meter=Image
MeasureName=MeasureWeatherIcon
Path="#SKINSPATH#\ABP\Resources\Weather\LargeIcons"
X=20
W=145

[MeasureWeatherDesc]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=9

[WeatherDescription]
Meter=STRING
MeterStyle=Style
MeasureName=MeasureWeatherDesc
StringAlign=CENTER
X=97
Y=98
FontSize=8

[Down]
Meter=IMAGE
ImageName=Down.png
Path="#SKINSPATH#\ABP\Resources\#Skin#"
X=86
Y=118
Group=Closed
Hidden=#Closed#
MouseOverAction=!Execute [!RainmeterShowMeter DownH][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterHideMeter DownH][!RainmeterRedraw]

[DownH]
Meter=IMAGE
ImageName=Down.png
Path="#SKINSPATH#\ABP\Resources\#Skin#"
X=r
Y=r
Hidden=1
ImageTint=#Color#
LeftMouseUpAction=!Execute [!RainmeterWriteKeyValue Bottom Y 186][!RainmeterWriteKeyValue Variables Closed 1][!RainmeterWriteKeyValue Variables Open 0][!RainmeterHideMeterGroup Closed][!RainmeterShowMeterGroup Open][!RainmeterMoveMeter 0 186 Bottom][!RainmeterHideMeter DownH][!RainmeterRedraw]

[Up]
Meter=IMAGE
ImageName=Up.png
Path="#SKINSPATH#\ABP\Resources\#Skin#"
X=86
Y=189
Group=Open
Hidden=#Open#
MouseOverAction=!Execute [!RainmeterShowMeter UpH][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterHideMeter UpH][!RainmeterRedraw]

[UpH]
Meter=IMAGE
ImageName=Up.png
Path="#SKINSPATH#\ABP\Resources\#Skin#"
X=r
Y=r
Hidden=1
ImageTint=#Color#
LeftMouseUpAction=!Execute [!RainmeterWriteKeyValue Bottom Y 115][!RainmeterWriteKeyValue Variables Closed 0][!RainmeterWriteKeyValue Variables Open 1][!RainmeterShowMeterGroup Closed][!RainmeterHideMeterGroup Open][!RainmeterMoveMeter 0 115 Bottom][!RainmeterHideMeter UpH][!RainmeterRedraw]

[TodayText]
Meter=STRING
MeterStyle=Style
FontColor=#Color#
X=28
Y=120
Text="Heute:"
Group=Open
Hidden=#Open#

[MeasureWeatherTemp2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=13

[TodayTemperature]
Meter=STRING
MeterStyle=Style
MeasureName=MeasureWeatherTemp2
X=R
Y=r
FontSize=8
Postfix="°C"
Group=Open
Hidden=#Open#

[MeasureWeatherIcon2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=14

[TodayIcon]
Meter=Image
MeasureName=MeasureWeatherIcon2
Path="#SKINSPATH#\ABP\Resources\Weather\SmallIcons"
X=27
Y=15r
Group=Open
Hidden=#Open#

[MeasureWeatherDate3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=15

[Date3]
Meter=STRING
MeterStyle=Style
MeasureName=MeasureWeatherDate3
FontColor=#Color#
X=122
Y=120
FontSize=8
Postfix=":"
Group=Open
Hidden=#Open#

[MeasureWeatherTemp3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=16

[Temperature3]
Meter=STRING
MeterStyle=Style
MeasureName=MeasureWeatherTemp3
X=R
Y=r
FontSize=8
Postfix="°C"
Group=Open
Hidden=#Open#

[MeasureWeatherIcon3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=17

[Icon3]
Meter=Image
MeasureName=MeasureWeatherIcon3
Path="#SKINSPATH#\ABP\Resources\Weather\SmallIcons"
X=109
Y=15r
Group=Open
Hidden=#Open#

[Yahoo]
Meter=STRING
MeterStyle=Style
X=100
Y=171
Text="Wetter Bernburg"
FontSize=9
StringAlign=CENTER
Group=Open
Hidden=#Open#
LeftMouseUpAction=!Execute ["http://xml.weather.yahoo.com/"]
Wer kann mir helfen, damit ich wieder eine Anzeige habe???
MfG IM99 (Germany, Sachsen Anhalt, Bernburg)

Google-translator:
I've been trying all the time to change my ABP-weather skin, but it just will not work. Since the change in Yahoo I get no display more.
Perhaps can someone help me here. : ???:
I wanted to return to the display of Bernburg have (GMXX2206) with 2-day forecast. Have been any changes from here tried, but it just will not ... :-(
Who can help me, so I have another display ???
MfG IM99 (Germany, Saxony Anhalt, Bernburg)
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4382
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Change to Yahoo! weather feed

Post by eclectic-tech »

IM99 wrote:Google-translator:
I've been trying all the time to change my ABP-weather skin, but it just will not work. Since the change in Yahoo I get no display more.
Perhaps can someone help me here. : ???:
I wanted to return to the display of Bernburg have (GMXX2206) with 2-day forecast. Have been any changes from here tried, but it just will not ... :-(
Who can help me, so I have another display ???
MfG IM99 (Germany, Saxony Anhalt, Bernburg)
You removed the section name [MeasureWeatherRSS] for the webparser... but Yahoo has more issues than that...

I cannot get Yahoo weather to work, but I coded that skin to use http://wxdata.weather.com as the source.
See if this works for you (works here).

'Weather.ini' for abp

Code: Select all

[Rainmeter]
Author=
Update=1000

@include="#SKINSPATH#\ABP\Variables.txt"
@include2="#SKINSPATH#\ABP\Resources\#Skin#\Colors.txt"

;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]
Closed=1
Open=0


[BG]
Meter=IMAGE
ImageName=WeatherBG.png
Path="#SKINSPATH#\ABP\Resources\#Skin#"

[BG2]
Meter=IMAGE
ImageName=WeatherBG2.png
Path="#SKINSPATH#\ABP\Resources\#Skin#"
Y=115
Hidden=#Open#
Group=Open

[Bottom]
Meter=IMAGE
ImageName=Bottom.png
Path="#SKINSPATH#\ABP\Resources\#Skin#"
Y=186

[MeasureWeatherRSS]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=1800
Url=https://wxdata.weather.com/wxdata/weather/local/#WeatherCode#?cc=*&unit=#Unit#&dayf=6
RegExp="(?siU)<lsup>(.*)</lsup>.*<obst>(.*)</obst>.*<tmp>(.*)</tmp>.*<flik>(.*)</flik>.*<t>(.*)</t>.*<icon>(.*)</icon>.*<r>(.*)</r>.*<d>(.*)</d>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<hmid>(.*)</hmid>.*<vis.(.*)</vis>.*<i>(.*)</i>.*<t>(.*)</t>.*<dewp>(.*)</dewp>.*<icon>(.*)</icon>.*<day d="0" t="(.*)" dt="(.*)">.*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<icon>(.*)</icon>.*<t>(.*)</t>.*<day d="1" t="(.*)" dt="(.*)">.*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<icon>(.*)</icon>.*<t>(.*)</t>.*<day d="2" t="(.*)" dt="(.*)">.*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<icon>(.*)</icon>.*<t>(.*)</t>.*<day d="3" t="(.*)" dt="(.*)">.*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<icon>(.*)</icon>.*<t>(.*)</t>.*<day d="4" t="(.*)" dt="(.*)">.*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<icon>(.*)</icon>.*<t>(.*)</t>.*<day d="5" t="(.*)" dt="(.*)">.*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<icon>(.*)</icon>.*<t>(.*)</t>.*"
StringIndex=2


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

[MeasureWeatherIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=6

[CurrentTemperature]
Meter=STRING
MeterStyle=Style
MeasureName=MeasureWeatherTemp
X=175
Y=70
StringCase=Upper
Postfix="°c"
FontSize=15
FontColor=#Color#
StringAlign=RIGHT

[CurrentIcon]
Meter=Image
MeasureName=MeasureWeatherIcon
Path="#SKINSPATH#\ABP\Resources\Weather\LargeIcons"
X=20
W=145

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

[WeatherDescription]
Meter=STRING
MeterStyle=Style
MeasureName=MeasureWeatherDesc
StringAlign=CENTER
X=97
Y=98
FontSize=8

[Down]
Meter=IMAGE
ImageName=Down.png
Path="#SKINSPATH#\ABP\Resources\#Skin#"
X=86
Y=118
Group=Closed
Hidden=#Closed#
MouseOverAction=!Execute [!RainmeterShowMeter DownH][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterHideMeter DownH][!RainmeterRedraw]

[DownH]
Meter=IMAGE
ImageName=Down.png
Path="#SKINSPATH#\ABP\Resources\#Skin#"
X=r
Y=r
Hidden=1
ImageTint=#Color#
LeftMouseUpAction=!Execute [!RainmeterWriteKeyValue Bottom Y 186][!RainmeterWriteKeyValue Variables Closed 1][!RainmeterWriteKeyValue Variables Open 0][!RainmeterHideMeterGroup Closed][!RainmeterShowMeterGroup Open][!RainmeterMoveMeter 0 186 Bottom][!RainmeterHideMeter DownH][!RainmeterRedraw]

[Up]
Meter=IMAGE
ImageName=Up.png
Path="#SKINSPATH#\ABP\Resources\#Skin#"
X=86
Y=189
Group=Open
Hidden=#Open#
MouseOverAction=!Execute [!RainmeterShowMeter UpH][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterHideMeter UpH][!RainmeterRedraw]

[UpH]
Meter=IMAGE
ImageName=Up.png
Path="#SKINSPATH#\ABP\Resources\#Skin#"
X=r
Y=r
Hidden=1
ImageTint=#Color#
LeftMouseUpAction=!Execute [!RainmeterWriteKeyValue Bottom Y 115][!RainmeterWriteKeyValue Variables Closed 0][!RainmeterWriteKeyValue Variables Open 1][!RainmeterShowMeterGroup Closed][!RainmeterHideMeterGroup Open][!RainmeterMoveMeter 0 115 Bottom][!RainmeterHideMeter UpH][!RainmeterRedraw]

[TodayText]
Meter=STRING
MeterStyle=Style
FontColor=#Color#
X=28
Y=120
Text="Morgen:"
Group=Open
Hidden=#Open#

[MeasureWeatherTemp2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=29

[TodayTemperature]
Meter=STRING
MeterStyle=Style
MeasureName=MeasureWeatherTemp2
X=R
Y=r
FontSize=8
StringCase=Upper
Postfix="°c"
Group=Open
Hidden=#Open#

[MeasureWeatherIcon2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=33

[TodayIcon]
Meter=Image
MeasureName=MeasureWeatherIcon2
Path="#SKINSPATH#\ABP\Resources\Weather\SmallIcons"
X=27
Y=15r
Group=Open
Hidden=#Open#

[MeasureWeatherDate3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=35
Substitute="Saturday":"Samstag","Sunday":"Sonntag","Monday":"Montag","Tuesday":"Dienstag","Wednesday":"Mittwoch","Thursday":"Donnerstag","Friday":"Freitag"

[Date3]
Meter=STRING
MeterStyle=Style
MeasureName=MeasureWeatherDate3
FontColor=#Color#
X=106
Y=120
FontSize=8
Postfix=":"
Group=Open
Hidden=#Open#

[MeasureWeatherTemp3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=37

[Temperature3]
Meter=STRING
MeterStyle=Style
MeasureName=MeasureWeatherTemp3
X=R
Y=r
FontSize=8
StringCase=Upper
Postfix="°c"
Group=Open
Hidden=#Open#

[MeasureWeatherIcon3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=41

[Icon3]
Meter=Image
MeasureName=MeasureWeatherIcon3
Path="#SKINSPATH#\ABP\Resources\Weather\SmallIcons"
X=109
Y=15r
Group=Open
Hidden=#Open#

[TWC]
Meter=STRING
MeterStyle=Style
MeasureName=MeasureWeatherRSS
X=100
Y=171
H=16
Text="Wetter Bernburg"
FontSize=9
StringAlign=CENTER
ClipString=2
ClipStringW=170
Group=Open
Hidden=#Open#
LeftMouseUpAction=!Execute ["http://weather.com/"]