It is currently March 20th, 2019, 4:49 pm

Change to Yahoo! weather feed

Release announcements and important news from the developers.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3256
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Change to Yahoo! weather feed

eclectic-tech » September 4th, 2016, 2:42 am

@Yaaa

Change your URL variable to this:

Code: Select all

URL=http://wxdata.weather.com/weather/local/FRXX0016?cc=*&unit=c&dayf=6
KitaroOasis
Posts: 4
Joined: May 13th, 2016, 8:05 am

Re: Change to Yahoo! weather feed

KitaroOasis » September 8th, 2016, 6:50 am

Can anyone help to make the forecast working again, please? I use the skin of HipHopium -Simplic-
Here is the ini of the weatherskin:

Code: Select all

[Rainmeter]
Update=250
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://wxdata.weather.com/wxdata/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://wxdata.weather.com/wxdata/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"]
KitaroOasis
Posts: 4
Joined: May 13th, 2016, 8:05 am

Re: Change to Yahoo! weather feed

KitaroOasis » September 9th, 2016, 2:56 am

Strange - weather forecast works again.
enquester
Posts: 3
Joined: May 22nd, 2016, 9:52 am

Re: Change to Yahoo! weather feed

enquester » September 27th, 2016, 9:27 am

kemaro wrote:I'll try to check this weekend. Can u elaborate the problem for wind chill? Haven't notice it before.
Thanks for the reply.

My Windchill is displaying as Fahrenheit rather than Celsius. All other temperatures are showing as Celsius, expect this one. Any suggestions.

Best regards
shelia_2303
Posts: 3
Joined: November 5th, 2016, 3:26 am

Re: Change to Yahoo! weather feed

shelia_2303 » November 6th, 2016, 4:31 am

hey i use dinaj2 and i tried changing the measure etc but it still doesnt work. this is all the code

Code: Select all

[Rainmeter]
 Update=1000
 MiddleMouseUpAction=!Refresh #CURRENTCONFIG#
 DynamicWindowSize=1
 ; spaces prefix formulas in WriteKeyValue so that WKV doesn't try to parse the formula and log a syntax error
 ; http://rainmeter.net/forum/viewtopic.php?f=5&t=9806&p=57507
 ContextTitle="Align left"
 ContextAction=[!WriteKeyValue mainString StringAlign LeftTop][!WriteKeyValue mainString X 0][!WriteKeyValue subString X " (Floor(#*size*# * 0.2))"][!Refresh #CURRENTCONFIG#]
 ContextTitle2="Align center"
 ContextAction2=[!WriteKeyValue mainString StringAlign CenterTop][!WriteKeyValue mainString X " (Floor(#*size*# * 7.5))"][!WriteKeyValue subString X " (Floor(#*size*# * 7.5))"][!Refresh #CURRENTCONFIG#]
 ContextTitle3="Align right"
 ContextAction3=[!WriteKeyValue mainString StringAlign RightTop][!WriteKeyValue mainString X " (Floor(#*size*# * 15))"][!WriteKeyValue subString X " (Floor((#*size*# * 15) - (#*size*# * 0.2)))"][!Refresh #CURRENTCONFIG#]

[Metadata]
 Name=Do I Need a Jacket?
 Author=Flying Hyrax | flyinghyrax.deviantart.com
 Information=Weather, simplified - do you need a jacket?  This skin checks the current temperature and lets you know. | - Options are all in the [Variables] section of the skin file; just edit dinaj.ini, save, and refresh. | - Change the size of the skin by mouse-wheel scrolling on it. | - Change text alignment using the skin context menu
 Version=2.1
 License=Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported

[Variables]

 ; Weather.com location code
 ; Go to weather.com and search for your location.
 ; The location code is in the URL on the page for your location.
 ; e.g. for Chicago:
 ; https://weather.com/weather/today/l/USIL0225:1:US
 ;                                     ^^^^^^^^
 location=USIL0225

 ; 'f' for English, 'm' for Metric
 unit=f

 ; temperature thresholds; if you are using Celsius make sure you adjust these
 jacket_temp=65
 coat_temp=40

 ; appearance
 font=Segoe UI Light
 text_color=255,255,255,200

 ; this can be changed manually, or just scroll the mouse over the skin
 size=25

;;====================================================
;;  Measures
;;====================================================
[mWeatherData]
 Measure=Plugin
 Plugin=WebParser
 URL=http://xml.weather.yahoo.com/forecastrss?w=1047378&u=m
 RegExp=(?siU).*temperature="(.*)".*distance="(.*)".* pressure="(.*)".*speed="(.*)".*wind chill="(.*)".*direction="(.*)".*speed="(.*)".*<item>.*<title>(.*)</title>.*text="(.*)".*temp="(.*)".*
 UpdateRate=600
 ErrorString="DINAJ2: WebParser fail"
 ForceReload=1

[mWindUnit]
 Measure=Plugin
 Plugin=WebParser
 URL=[mWeatherData]
 StringIndex=4

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

[mChillTemp]
 Measure=Plugin
 Plugin=WebParser
 URL=[mWeatherData]
 StringIndex=5

[mWindDir]
 Measure=Plugin
 Plugin=WebParser
 URL=[mWeatherData]
 StringIndex=6

[mWindSpeed]
 Measure=Plugin
 Plugin=WebParser
 URL=[mWeatherData]
 StringIndex=7

[mLink]
 Measure=String
 String=https://weather.yahoo.com/country/state/city-#location#/

[mTemp]
 Measure=Plugin
 Plugin=WebParser
 URL=[mWeatherData]
 StringIndex=10

[mCond]
 Measure=Plugin
 Plugin=WebParser
 URL=[mWeatherData]
 StringIndex=9

[mTitle]
 Measure=Plugin
 Plugin=WebParser
 URL=[mWeatherData]
 StringIndex=8

[mStringScript]
 Measure=Script
 ScriptFile=dinaj.lua

;;====================================================
;;  Meters
;;====================================================

[bg]
 Meter=Image
 SolidColor=0,0,0,1
 X=0
 Y=0
 W=(#size# * 15)
 H=(#size# * 3)
 DynamicVariables=1
 MouseScrollUpAction=[!SetVariable size (#size#-1)][!UpdateMeter *][!Redraw][!WriteKeyValue Variables size #size#]
 MouseScrollDownAction=[!SetVariable size (#size#+1)][!UpdateMeter *][!Redraw][!WriteKeyValue Variables size #size#]

[mainString]
 Meter=String
 MeasureName=mCondition
 MeasureName2=mTemperature
 MeasureName3=mTempUnit
 MeasureName4=mFeelsLike
 FontFace=#font#
 FontColor=#text_color#
 SolidColor=00000001
 FontSize=#size#
 AntiAlias=1
 X=0
 Y=0
 Text="..."
 ToolTipText="%1, %2 %3 (Feels like %4 %3)"
 DynamicVariables=1
 StringAlign=LeftTop

[subString]
 Meter=String
 MeasureName=mTitle
 MeterStyle=mainString
 FontSize=(Floor(#size# * 0.6))
 X= (Floor(#size# * 0.2))
 Y=(Floor(#size# * -0.2))R
 Text="loading..."
 ToolTipText="%1"
 LeftMouseUpAction=["[mLink]"]
Thanks in Advance!
sierratango
Posts: 2
Joined: December 27th, 2016, 1:21 am

Re: Change to Yahoo! weather feed

sierratango » December 27th, 2016, 1:24 am

Has anybody been able to convert Enigma Weather to using weather.com API? Yahoo weather has been extremely flaky lately and I have a feeling it is only about get worse after its recent problems.
ApocBuilder8
Posts: 1
Joined: June 25th, 2017, 11:52 pm

Re: Change to Yahoo! weather feed

ApocBuilder8 » June 25th, 2017, 11:54 pm

If were in canada do we change the F to a C?