It is currently March 28th, 2024, 2:13 pm

Change to Yahoo! weather feed

Release announcements and important news from the developers.
jawsone79
Posts: 1
Joined: May 6th, 2016, 1:03 am

Re: Change to Yahoo! weather feed

Post by jawsone79 »

Worked perfectly for me, in an instant - using standard Enigma.

Thank you very much
ckay
Posts: 4
Joined: August 11th, 2015, 3:58 am

Re: Change to Yahoo! weather feed

Post by ckay »

Can someone help with this? It stopped working again.

http://rodfdez.deviantart.com/art/Weather-Hi-Lo-1-0-4-410630673
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Change to Yahoo! weather feed

Post by jsmorley »

ckay wrote:Can someone help with this? It stopped working again.

http://rodfdez.deviantart.com/art/Weather-Hi-Lo-1-0-4-410630673
Weather Hi Lo JSMorley_1.0.rmskin
(2.35 MiB) Downloaded 220 times
1.jpg
ckay
Posts: 4
Joined: August 11th, 2015, 3:58 am

Re: Change to Yahoo! weather feed

Post by ckay »

thank you! :o
akim
Posts: 2
Joined: May 10th, 2016, 7:29 am

Re: Change to Yahoo! weather feed

Post by akim »

User avatar
eclectic-tech
Rainmeter Sage
Posts: 5381
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA
Contact:

Re: Change to Yahoo! weather feed

Post by eclectic-tech »

akim wrote:Can anyone help with this? I tried, but failed :(

http://lysy1993lbn.deviantart.com/art/Minimal-Typography-updated-1-0-7-280486134
Replace these 4 measures in the weather skin:

Code: Select all

[MeasureWeatherRSS]
Measure=Plugin
Plugin=WebParser
Url=https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid=#WeatherCode# AND u="#Unit#"
RegExp="(?siU).*<yweather:units.*distance="(.*)" pressure="(.*)" speed="(.*)" temperature="(.*)".*<ttl>(.*)</ttl>.*<yweather:location.*city="(.*)" country="(.*)" region="(.*)".*<yweather:wind.*chill="(.*)" direction="(.*)" speed="(.*)".*<yweather:atmosphere.*humidity="(.*)" pressure="(.*)" rising="(.*)" visibility="(.*)".*<yweather:astronomy.*sunrise="(.*)" sunset="(.*)".*<geo:lat.*>(.*)</geo:lat><geo:long.*>(.*)</geo:long>.*<yweather:condition.*code="(.*)" date="(.*)" temp="(.*)" text="(.*)".*<yweather:forecast.*code="(.*)" date="(.*)" day="(.*)" high="(.*)" low="(.*)" text="(.*)".*"
FinishAction=!SetOption "MString" "Text" "%1°#unit# %2"
UpdateRate=3000

[MeasureF]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWeatherRSS]
StringIndex=22

[MeasureC]
Measure=Calc
Formula=(MeasureF - 32) / 1.8
Substitute=" ":""

[MeasureCondition]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWeatherRSS]
StringIndex=23
Lookup your weather code here: http://woeid.rosselliot.co.nz/
akim
Posts: 2
Joined: May 10th, 2016, 7:29 am

Re: Change to Yahoo! weather feed

Post by akim »

@eclectic-tech, thanks for your help, but...
Image

I dont why :???:
For Farenheit is OK.
k3sht
Posts: 1
Joined: May 12th, 2016, 10:16 am

Re: Change to Yahoo! weather feed

Post by k3sht »

Hello , help solve the problem of Yahoo Weather. Change the URL and woid not helped . Tell me where to find a mistake in my skin? sorry for bad english ...

my skin
[Rainmeter]
Author=Janiel

-------------------------Variables-------------------------
[Variables]
WeatherCode=833052
Unit=c
PostFixUnit=C

-------------------------Measures-------------------------
[Month]
Measure=Time
Format=%B
Substitute="January":"JAN","February":"FEB","March":"MAR","April":"APR","May":"MAY","June":"JUN","July":"JUL","August":"AUG",September":"SEP","October":"OCT","November":"NOV","Dicember":"DEC"

[Year]
Measure=Time
Format=%Y

[Clock]
Measure=Time
Format=%H:%M

[Day]
Measure=Time
Format=%A %d
Substitute="Sunday":"SUN","Monday":"MON","Tuesday":"TUE","Wednesday":"WED","Thursday":"THU","Friday":"FRI","Saturday":"SAT"

[WeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=600
Url=http://xml.weather.yahoo.com/forecastrss?w=#WeatherCode#&u=#Unit#
RegExp=(?siU)yweather:condition.*text=\"(.*)\".*code=\"(.*)\".*temp=\"(.*)\"
StringIndex=1

[WeatherIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[WeatherRSS]
StringIndex=2

[Temperature]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[WeatherRSS]
StringIndex=3

-------------------------Meters-------------------------
[MonthInfo]
Meter=String
MeasureName=Month
X=0
Y=30
FontSize=72
FontColor=0,0,0,200
FontFace=GeoSansLight
StringAlign=Left
StringStyle=Normal
AntiAlias=1

[YearInfo]
Meter=String
MeasureName=Year
X=122
Y=102
FontSize=72
FontColor=0,0,0,150
FontFace=GeoSansLight
StringAlign=Left
StringStyle=Normal
AntiAlias=1

[CurrentIcon]
Meter=Image
MeasureName=WeatherIcon
Path="#CurrentPath#\Weather Icons"
X=150
Y=0


[Weather]
Meter=String
MeasureName=WeatherRSS
X=0
Y=135
FontSize=22
FontColor=0,0,0
FontFace=GeoSansLight
StringAlign=Left
StringStyle=Normal
AntiAlias=1

[CurrentTemperature]
Meter=String
MeasureName=Temperature
X=50
Y=166
FontSize=18
FontColor=0,0,0
FontFace=GeoSansLight
StringAlign=Left
StringStyle=Normal
Postfix="°#PostFixUnit#"
AntiAlias=1
KitaroOasis
Posts: 4
Joined: May 13th, 2016, 8:05 am

Re: Change to Yahoo! weather feed

Post by KitaroOasis »

Hello Folks!

Can someone please help with this weather code? It dont works anymore. Its from the Simplic UI

Thx a lot

That's the error massage from the log:
ERRO (13:50:12.082) Simplic\Weather\Weather.ini - [mCurrent]: WebParser: RegExp matching error (-1)
ERRO (13:50:12.090) Simplic\Weather\Weather.ini - [mToday]: WebParser: RegExp matching error (-1)

Code: Select all

[Rainmeter]
Update=500
Author= -HipHopium-
DynamicVariables=1

[Variables]
@include=#@#Variables.inc
@include2=#@#Language\#Language#.inc

[Style]
FontColor=#FontColor1#
FontFace=#FontFace#
AntiAlias=1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterLine]
Meter=IMAGE
X=0
Y=150
W=450
H=1
SolidColor=255,255,255
Group=Current

;-------------------------------------------------------------
;-------------------------------------------------------------

[mCurrent
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Unit#&dayf=1
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>.*<ppcp>(.*)</ppcp>.*"
StringIndex=1

[mToday]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Unit#&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>.*(.*).*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>).*<part p="n">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*(.*).*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*"
StringIndex=1

;-------------------------------------------------------------
;-------------------------------------------------------------

[mIconCurrent]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mCurrent]
StringIndex=20

[mTempCurrent]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mCurrent]
StringIndex=17

[mConditionsCurrent]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mCurrent]
StringIndex=19
Substitute=#Conditions#

[mLowTemp]
Measure=Plugin
Group=Weather
Plugin=WebParser
URL=[mToday]
StringIndex=5
Disabled=1

[mHighTemp]
Measure=Plugin
Group=Weather
Plugin=WebParser
URL=[mToday]
StringIndex=4
Disabled=1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterCurrentIcon]
MeasureName=mIconCurrent
Meter=Image
ImagePath=#@#WeatherIcons
PreserveAspectRatio=1
X=170
Y=0
W=120
Group=Current

[MeterTempCurrent]
MeasureName=mTempCurrent
Meter=String
MeterStyle=Style
X=70
Y=70
FontColor=#FontColor2#
FontSize=48
StringAlign=Center
Text="%1°"
Group=Current

[MeterConditionsCurrent]
MeasureName=mConditionsCurrent
Meter=String
MeterStyle=Style
X=225
Y=165
W=440
H=40
FontColor=#FontColor2#
FontSize=20
StringAlign=Center
ClipString=1
Group=Current

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterLow]
Meter=String
MeasureName=mLowTemp
Meter=String
MeterStyle=Style
X=115
Y=115
FontSize=14
Text=%1°
Group=Current
Prefix="#Low#: "

[MeterHigh]
Meter=String
MeasureName=mHighTemp
Meter=String
MeterStyle=Style
X=255
Y=115
FontSize=14
Text=%1°
Group=Current
Prefix="#High#: "

;-------------------------------------------------------------
;-------------------------------------------------------------

[Background]
Meter=Image
ImageName=#@#SettingsBg.png
X=40
Y=20
W=380
H=250
Hidden=1
Group=Settings
AntiAlias=1

[SettingsIconBackground]
Meter=IMAGE
SolidColor=0,0,0,1
X=0
Y=0
W=460
H=200
MouseOverAction=[!ShowMeter "SettingsIcon"] 
MouseLeaveAction=[!HideMeter "SettingsIcon"]
Group=Current

[SettingsIcon]
Meter=Image
ImageName=#@#Settings.png
X=410
Y=60
W=25
ToolTipText=Settings.
LeftMouseUpAction=[!WriteKeyValue Variables Hidden "0" "#@#Variables.inc"][!HideMeterGroup Current][!ShowMeterGroup Settings][!Redraw]
AntiAlias=1
Hidden=1
Group=Current

[WeatherCode]
Meter=String
StringAlign=Left
FontColor=255,255,255
FontFace=Segoe UI Light
FontSize=14
X=40
Y=80
Text=Enter Location Code Here ->
Hidden=1
AntiAlias=1
Group=Settings

[MeterCode]
Meter=String
StringAlign=Center
FontFace=Segoe UI Light
FontColor=0,174,239
FontSize=15
X=310r
Y=0r
Text=#Location#
AntiAlias=1
Hidden=1
Group=Settings
AntiAlias=1
ToolTipText=Type your weather "Location Code" and press the "Enter" key to Apply changes.
LeftMouseUpAction=[!PluginBang "meterInput ExecuteBatch 1"]

[MeterInput]
Measure=Plugin
Plugin=InputText.dll
X=300
Y=84
W=110
H=20
Hidden=1
Group=Settings
StringAlign=Left
FontFace=Segoe UI Light
AntiAlias=1
FontSize=14
FocusDismiss=1
Command1=[!WriteKeyValue Variables Location "$UserInput$""#@#Variables.inc"][!Refresh *] 
DefaultValue="#Location#"

[LocationFind]
Meter=String
StringAlign=Left
FontFace=Segoe UI Light
FontColor=255,255,255
FontSize=14
X=40
Y=50
Text=Find Your Code Here -> 
Hidden=1
AntiAlias=1
Group=Settings

[LocationCode]
Meter=Image
ImageName=#@#Location.png
X=265r
Y=-8r
W=44
AntiAlias=1
Hidden=1
Group=Settings
ToolTipText="Find your weather "Location Code" on this site."
LeftMouseDownAction=["https://weather.codes/"]

[weatherLang]
Meter=String
StringAlign=Left
FontFace=Segoe UI Light
FontColor=255,255,255
FontSize=15
X=40
Y=110
Text=Enter Language Here -> 
AntiAlias=1
Hidden=1
Group=Settings

[meterCode2]
Meter=String
StringAlign=Center
FontColor=0,174,239
FontSize=15
X=300r
Y=5r
Text=#Language#
AntiAlias=1
Hidden=1
Group=Settings
AntiAlias=1
ToolTipText=Type your "Language" and press the "Enter" key to Apply changes.#CRLF#Suported languages for now:Czech,English,French,German,Greek,#CRLF#Italian,Polish,Russian,Serbian,Spanish,Turkish.
LeftMouseUpAction=[!PluginBang "meterInput2 ExecuteBatch 1"]

[meterInput2]
Measure=Plugin
Plugin=InputText.dll
X=300
Y=115
W=110
H=22
Hidden=13
Group=Settings
StringAlign=Left
FontSize=14
FocusDismiss=1
AntiAlias=1
Command1=[!WriteKeyValue Variables Language "$UserInput$""#@#Variables.inc"][!Refresh *] 
DefaultValue="#Language#"

[Celsius]
Meter=Image
ImageName=#@#Celsius.png
X=80
Y=180
W=95
Hidden=1
Group=Settings
LeftMouseUpAction=[!WriteKeyValue Variables Unit "m" "#@#Variables.inc"][!Refresh]

[Fahrenheit]
Meter=Image
ImageName=#@#Fahrenheit.png
X=280
Y=180
W=95
Hidden=1
Group=Settings
LeftMouseUpAction=[!WriteKeyValue Variables Unit "f" "#@#Variables.inc"][!Refresh][!HideMeter Fahrenheit]

[Close]
Meter=Image
ImageName=#@#Close.png
X=180
Y=220
W=95
PreserveAspectRatio=1
Hidden=1
Group=Settings
LeftMouseUpAction=[!ShowMeterGroup Current][!HideMeterGroup Settings][!Redraw]

[Instruction]
Meter=String
MeterStyle=Style
FontFace=Segoe UI Light
FontColor=255,255,255
FontSize=15
X=40
Y=140
Text=Translate Instruction -> 
Hidden=1
Group=Settings

[BookImage]
Meter=IMAGE
ImageName=#@#Book.png
PreserveAspectRatio=1
X=265r
Y=r
W=26
Group=Settings
Hidden=1
ToolTipText="Click here to see,how to translate to your language"
LeftMouseUpAction=!Execute ["#ROOTCONFIGPATH#@Resources\Language\YourLanguage.inc"]
vikingr
Posts: 3
Joined: May 13th, 2016, 9:43 pm

Re: Change to Yahoo! weather feed

Post by vikingr »

jsmorley wrote: One thing you might consider is changing your skin to use the WXData weather feed from Weather.com (The Weather Channel) My experiences with this feed have been good, and I have no reason to think that Weather.com is going to stumble into the La Brea Tar Pits, as Yahoo! has done. I don't think you are going to be interested in the scraps of bone and entrails of Yahoo! that the predators are going to leave behind. It's time to move on...
I already use the feed from weather.com, but it stopped working too obviously (at least for me).

Is there also any option to get it working again.

I use the Very Flat Weather widget:

Code: Select all

[Metadata]
Name=VeryFlatWeather

;End of added Metadata

[Variables]
Location=GMXX0051
########################
// For location, go to 
// http://rainmeter.net/RainCMS/?q=tipsandtricksweathercode
########################
// For Celcius# change the Type to M and the Postfix to C
Type=M
postfix=C
########################



[mWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1600
Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Type#&dayf=6
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>.*"
StringIndex=1
IfAboveValue=1
IfAboveAction=!execute [!RainmeterHideMeter mWeatherDesc][!RainmeterHideMeter mWeatherTemp][!RainmeterShowMeter MeterText]
;Debug=1



[mWeatherTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeatherRSS]
StringIndex=17


[mIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mWeatherRSS]
StringIndex=20

[MeterTemp]
MeasureName=mWeatherTemp
Meter=STRING
X=110
Y=0
FontSize=36
w=255
h=40
FontColor=18,31,73
StringStyle=NORMAL
StringAlign=CENTER
FontFace=ITC Avant Garde Pro Bk
Antialias=1
Postfix=°

[MeterIcon]
MeasureName=mIcon
Meter=IMAGE
X=113
Y=4
w=60
h=44
Antialias=1
Thanks in advance!
Post Reply