It is currently April 19th, 2024, 1:19 am

need Help at WP7/textitems/weather/wearther.ini

Get help with creating, editing & fixing problems with skins
Help
Posts: 1
Joined: May 29th, 2017, 2:31 pm

need Help at WP7/textitems/weather/wearther.ini

Post by Help »

im new at this weather skin can someone help me to show the weather ? im using WP7 weather author Xyrfro and Fediafedia

Code: Select all

[Rainmeter]
Update=5000
DynamicWindowSize=1
MouseActionCursor=0
MiddleMouseUpAction=!RainmeterDeactivateConfig
;Metadata added by RainBrowser
;http://rainmeter.net/RainCMS/?q=Rainmeter101_AnatomyOfASkin

[Metadata]
Name=
Config=
Description=
Instructions=
Version=
Author=Xyrfo and fediaFedia
License=
Variant=
Preview=

;End of added Metadata

[Variables]
@include=#SKINSPATH#\WP7\Common\Variables\UserVariables.inc
@include1=#CURRENTPATH#\UserVariables.inc
@include4=#SKINSPATH#\WP7\Common\color\color.inc
@include3=#SKINSPATH#\WP7\Panels\Weather\UserVariables.inc
@include2=#SKINSPATH#\WP7\Common\Variables\Languages\lang.inc
@include5=#CURRENTPATH#\size.inc
width=530
Height=450


[act]
meter=image
w=#width#
h=#height#
solidcolor=0,0,0,1
MouseOverAction=!execute [!RainmeterShowMEter MeterChange][!RainmeterShowMEter Meterset][!Rainmeterredraw]
MouseLeaveAction=!execute [!RainmeterHideMEter MeterChange][!RainmeterHideMEter Meterset][!Rainmeterredraw]

[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=30
Url=http://weather.yahooapis.com/forecastrss?p=#WeatherLocation#&U=c
RegExp=(?siU)<link.*>(.*)</link>.*city=\"(.*)\".*chill=\"(.*)\".*direction=\"(.*)\".*speed=\"(.*)\".*humidity=\"(.*)\".*visibility=\"(.*)\".*pressure=\"(.*)\".*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


[MeasureWeatherRSS2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3600
Url=http://wxdata.weather.com/wxdata/weather/local/#WeatherLocation#?cc=*&unit=m&dayf=6
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>(.*)<day d="4" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*)"
StringIndex=1

[MeasureWeatherDesc]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=15
Substitute="Mostly Cloudy":"#MostlyCloudy#","Light Snow":"#LightSnow#","Light Rain":"#LightRain#","Light Rain Shower":"#LightRain#","Cloudy":"#Cloudy#","Drizzle":"#Drizzle#","Lgt.":"Hafif","And":"#and#","Partly":"#Partly#","Mostly":"#Mostly#","and":"#and#","with":"#with#","Clear":"#Clear#","Fair":"#Fair#","Partly Cloudy":"#PartlyCloudy#","Cloudy":"#Cloudy#","Freezing Rain":"#FreezingRain#","Light Rain Shower":"LightRainShower","Light Rain":"#LightRain#","Rain":"#Rain#","Thunderstorm":"#T-Storm#","Thunder":"#Thunder#","in the Vicinity":"#intheVicinity#","Shower":"#Shower#","Light Snow":"#LightSnow#","Snow":"#Snow#","Sunny":"#Sunny#","Windy":"#Windy#","Haze":"#Haze#","Fog":"#Fog#","W-ead Dust":"#WidespreadDust#","Set":"#Set#","Light Drizzle":"#LightDrizzle#","Wintry Mix":"#WintryMix#","Light":"#Light#","Mist":"#Fog#"

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

[MeasureWeatherIconMod]
Measure=CALC
Formula=8800000 + (MeasureWeatherIcon*1000) + 99
Substitute="88":"#SKINSPATH#\WP7\Panels\Weather\simple\","099":".png"

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

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

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

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

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

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

[MeasurePressure]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=8

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

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


[Icon]
MeasureName=MeasureWeatherIconMod
Meter=IMAGE
X=(#height#/90)
ImageTint=#TextColor#
Greyscale=1 
Y=(#height#/4.0909)
w=(#height#/2.8125)




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


[city]
Meter=STRING
Antialias=1
MeasureName=MeasureCity
X=(#height#/30)
Y=(#height#/90)
FontColor=#textcolor#,255
FontSize=(#height#/30)
FontFace=Segoe WP
AntiAlias=1
StringCase=UPPER 

[MeterSet]
Meter=BUTTON
ButtonImage=settings.png
X=5R
Y=r
hidden=1
ToolTipText=This widget reads weather code from the panel, configure it from the panel first.

[name1]
Meter=STRING
Antialias=1
Text=#today#
X=(#height#/90)
Y=(#height#/18-1)
FontColor=#textcolor#,100
FontSize=(#height#/10)
FontFace=Segoe WP Light
AntiAlias=1


[name3]
Meter=STRING
Antialias=1
Text=#forecast#
X=5R
Y=(#height#/18-1)
FontColor=#textcolor#
FontSize=(#height#/10)
FontFace=Segoe WP Light
AntiAlias=1
Hidden=1

[name0]
Meter=STRING
Antialias=1
Text=#forecast#
X=r
Y=(#height#/18-1)
FontColor=#textcolor#,100
FontSize=(#height#/10)
FontFace=Segoe WP Light
AntiAlias=1
Hidden=0





[name2]
Meter=STRING
Antialias=1
Text=#today#
X=(#height#/90)
Y=(#height#/18-1)
FontColor=#textcolor#
FontSize=(#height#/10)
FontFace=Segoe WP Light
AntiAlias=1





[activearea0]
Meter=IMAGE
SolidColor=255,255,255,1
X=0
Y=0
w=(#height#/1.2*#overridewidth#)
H=420
Hidden=0



[activearea1]
Meter=IMAGE
SolidColor=0,0,0,1
X=180
Y=50
w=200
H=50
Hidden=0
LeftMouseDownAction=!execute [!RainmeterHidemeter name2][!Rainmetershowmeter name3][!RainmeterHidemeter 1][!RainmeterHidemeter 2][!RainmeterHidemeter 3][!RainmeterHidemeter 4][!RainmeterHidemeter 5][!RainmeterHidemeter 6][!RainmeterHidemeter 7][!RainmeterHidemeter 8][!RainmeterHidemeter i1][!RainmeterHidemeter i2][!RainmeterHidemeter i3][!RainmeterHidemeter i4][!RainmeterHidemeter i5][!RainmeterHidemeter i6][!RainmeterHidemeter i7][!RainmeterHidemeter i8][!Rainmetershowmeter meterday1][!Rainmetershowmeter meterday2][!Rainmetershowmeter meterday3][!Rainmetershowmeter meterday4][!Rainmetershowmeter metertemp1][!Rainmetershowmeter metertemp2][!Rainmetershowmeter metertemp3][!Rainmetershowmeter metertemp4][!RainmeterRedraw]

[activearea2]
Meter=IMAGE
SolidColor=255,0,255,1
X=20
Y=50
w=150
H=50
Hidden=0
LeftMouseDownAction=!execute [!RainmeterShowmeter name2][!RainmeterShowmeter 1][!RainmeterShowmeter 2][!RainmeterShowmeter 3][!RainmeterShowmeter 4][!RainmeterShowmeter 5][!RainmeterShowmeter 6][!RainmeterShowmeter 7][!RainmeterShowmeter 8][!RainmeterShowmeter i1][!RainmeterShowmeter i2][!RainmeterShowmeter i3][!RainmeterShowmeter i4][!RainmeterShowmeter i5][!RainmeterShowmeter i6][!RainmeterShowmeter i7][!RainmeterShowmeter i8][!Rainmeterhidemeter meterday1][!Rainmeterhidemeter meterday2][!RainmeterHidemeter meterday3][!RainmeterHidemeter meterday4][!RainmeterHidemeter metertemp1][!RainmeterHidemeter metertemp2][!RainmeterHidemeter metertemp3][!RainmeterHidemeter metertemp4][!RainmeterHidemeter name3][!RainmeterRedraw]


[Temp]
Meter=STRING
Antialias=1
MeasureName=MeasureWeatherTemp
X=(#height#/2.5)
Y=(#height#/3.6-1)
FontColor=#textcolor#
FontSize=(#height#/9)
FontFace=Segoe WP Light
AntiAlias=1
Postfix="°C"
StringCase=UPPER

[MeterChange]
Meter=BUTTON
ButtonImage=#SKINSPATH#WP7\Common\Panel\change.png
X=R
Y=20r
ButtonCommand=!Execute [!RainmeterActivateConfig "WP7\TextItems\Weather" "weatherFahrenheit.ini"]
Hidden=1
ToolTipText=Switch to Fahrenheit

[Desc]
MeasureName=MeasureWeatherDesc
Meter=STRING
Antialias=1
X=(#height#/2.34375)
Y=(#height#/2.25)
H=(#height#/30)
W=(#height#/3)
FontColor=#colorskin#
FontSize=(#height#/41)
FontFace=Segoe WP Semibold
AntiAlias=1


[Style]
FontSize=(#height#/34)
Y=(#height#/20)r

[1]
MeterStyle=Style
Meter=STRING
X=(#height#/45)
Y=(#height#/1.666666)
FontFace=#FontFaceUI#
MeterStyle=DriveText
FontColor=#textcolor#
Text=#Barometer#
AntiAlias=1

[2]
MeterStyle=Style
Meter=STRING
X=r
FontFace=#FontFaceUI#
MeterStyle=DriveText
FontColor=#textcolor#
Text=#Humidity#
AntiAlias=1

[3]
MeterStyle=Style
Meter=STRING
X=r
FontFace=#FontFaceUI#
MeterStyle=DriveText
FontColor=#textcolor#
Text=#Visibility#
AntiAlias=1

[5]
MeterStyle=Style
Meter=STRING
X=r
FontFace=#FontFaceUI#
MeterStyle=DriveText
FontColor=#textcolor#
Text=#Windchill#
AntiAlias=1

[6]
MeterStyle=Style
Meter=STRING
X=r
FontFace=#FontFaceUI#
MeterStyle=DriveText
FontColor=#textcolor#
Text=#Winddirection#
AntiAlias=1

[7]
MeterStyle=Style
Meter=STRING
X=r
FontFace=#FontFaceUI#
MeterStyle=DriveText
FontColor=#textcolor#
Text=#Sunrise#
AntiAlias=1

[8]
MeterStyle=Style
Meter=STRING
X=r
FontFace=#FontFaceUI#
MeterStyle=DriveText
FontColor=#textcolor#
Text=#Sunset#
AntiAlias=1

[i1]
MeterStyle=Style
Meter=STRING
X=(#height#/1.4516)
Y=(#height#/1.666666)
FontFace=#FontFaceUI#
MeterStyle=DriveText
FontColor=#colorskin#
MeasureName=MeasurePressure
AntiAlias=1

[i2]
MeterStyle=Style
Meter=STRING
X=r
FontFace=#FontFaceUI#
MeterStyle=DriveText
FontColor=#colorskin#
MeasureName=MeasureHumidity
AntiAlias=1

[i3]
MeterStyle=Style
Meter=STRING
X=r
FontFace=#FontFaceUI#
MeterStyle=DriveText
FontColor=#colorskin#
MeasureName=MeasureVisibility
AntiAlias=1

[i5]
MeterStyle=Style
Meter=STRING
X=r
FontFace=#FontFaceUI#
MeterStyle=DriveText
FontColor=#colorskin#
MeasureName=MeasureWindChill
AntiAlias=1

[i6]
MeterStyle=Style
Meter=STRING
X=r
FontFace=#FontFaceUI#
MeterStyle=DriveText
FontColor=#colorskin#
MeasureName=MeasureWindDirection
AntiAlias=1

[i7]
MeterStyle=Style
Meter=STRING
X=r
FontFace=#FontFaceUI#
MeterStyle=DriveText
FontColor=#colorskin#
MeasureName=MeasureSunrise
AntiAlias=1

[i8]
MeterStyle=Style
Meter=STRING
X=r
FontFace=#FontFaceUI#
MeterStyle=DriveText
FontColor=#colorskin#
MeasureName=MeasureSunset
AntiAlias=1

MENU
----

[MeterClose]
Meter=image
Imagename=rem.png
X=200
Y=0
LeftMouseUpAction=!RainmeterDeactivateConfig
Hidden=1

[MeterSettings]
Meter=BUTTON
ButtonImage=settings.png
X=230
Y=0
ButtonCommand=!Execute ["#SKINSPATH#WP7\Common\Config\config.exe" #CURRENTCONFIG#]
Hidden=1

[MeasureWeatherDay1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS2]
StringIndex=9
Substitute="Monday":"#Monday#","Tuesday":"#Tuesday#","Wednesday":"#Wednesday#","Thursday":"#Thursday#","Friday":"#Friday#","Saturday":"#Saturday#","Sunday":"#Sunday#"
[MeasureWeatherTemp1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS2]
StringIndex=12
Substitute="Monday":"#Monday#","Tuesday":"#Tuesday#","Wednesday":"#Wednesday#","Thursday":"#Thursday#","Friday":"#Friday#","Saturday":"#Saturday#","Sunday":"#Sunday#"
[MeasureWeatherDay2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS2]
StringIndex=20
Substitute="Monday":"#Monday#","Tuesday":"#Tuesday#","Wednesday":"#Wednesday#","Thursday":"#Thursday#","Friday":"#Friday#","Saturday":"#Saturday#","Sunday":"#Sunday#"
[MeasureWeatherTemp2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS2]
StringIndex=23


[MeasureWeatherDay3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS2]
StringIndex=31
Substitute="Monday":"#Monday#","Tuesday":"#Tuesday#","Wednesday":"#Wednesday#","Thursday":"#Thursday#","Friday":"#Friday#","Saturday":"#Saturday#","Sunday":"#Sunday#"
[MeasureWeatherTemp3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS2]
StringIndex=34

[MeasureWeatherDay4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS2]
StringIndex=42
Substitute="Monday":"#Monday#","Tuesday":"#Tuesday#","Wednesday":"#Wednesday#","Thursday":"#Thursday#","Friday":"#Friday#","Saturday":"#Saturday#","Sunday":"#Sunday#"
[MeasureWeatherTemp4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS2]
StringIndex=45

--
[MeterDay1]
MeasureName=MeasureWeatherDay1
MeterStyle=Style
Meter=STRING
X=(#height#/45)
Y=(#height#/1.6666666)
FontFace=#FontFaceUI#
MeterStyle=DriveText
FontColor=#textcolor#
AntiAlias=1
Fontsize=25
Hidden=1


[MeterDay2]
MeasureName=MeasureWeatherDay2
MeterStyle=Style
Meter=STRING
X=(#height#/45)
Y=40r
FontFace=#FontFaceUI#
MeterStyle=DriveText
FontColor=#textcolor#
AntiAlias=1
Fontsize=25
Hidden=1



[MeterDay3]
MeasureName=MeasureWeatherDay3
MeterStyle=Style
Meter=STRING
X=(#height#/45)
Y=40r
FontFace=#FontFaceUI#
MeterStyle=DriveText
FontColor=#textcolor#
AntiAlias=1
Fontsize=25
Hidden=1


[MeterDay4]
MeasureName=MeasureWeatherDay4
MeterStyle=Style
Meter=STRING
X=(#height#/45)
Y=40r
FontFace=#FontFaceUI#
MeterStyle=DriveText
FontColor=#textcolor#
AntiAlias=1
Fontsize=25
Hidden=1



[MeterTemp1]
MeasureName=MeasureWeatherTemp1
MeterStyle=Style
Meter=STRING
X=(#height#/1.4516)
Y=(#height#/1.6666666)
FontFace=#FontFaceUI#
MeterStyle=DriveText
FontColor=#colorskin#
AntiAlias=1
Fontsize=25
Postfix="°"
Hidden=1


[MeterTemp2]
MeasureName=MeasureWeatherTemp2
MeterStyle=Style
Meter=STRING
X=(#height#/1.4516)
Y=40r
FontFace=#FontFaceUI#
MeterStyle=DriveText
FontColor=#colorskin#
AntiAlias=1
Fontsize=25
Postfix="°"
Hidden=1


[MeterTemp3]
MeasureName=MeasureWeatherTemp3
MeterStyle=Style
Meter=STRING
X=(#height#/1.4516)
Y=40r
FontFace=#FontFaceUI#
MeterStyle=DriveText
FontColor=#colorskin#
AntiAlias=1
Fontsize=25
Postfix="°"
Hidden=1

[MeterTemp4]
MeasureName=MeasureWeatherTemp4
MeterStyle=Style
Meter=STRING
X=(#height#/1.4516)
Y=40r
FontFace=#FontFaceUI#
MeterStyle=DriveText
FontColor=#colorskin#
AntiAlias=1
Fontsize=25
Postfix="°"
Hidden=1
Last edited by jsmorley on May 29th, 2017, 2:48 pm, edited 1 time in total.
Reason: Please use [code] [/code] tags
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: need Help at WP7/textitems/weather/wearther.ini

Post by jsmorley »

Sorry, but I just won't wade into the Omnimo-based stuff. It's just too old now, way too complicated, and to be honest I would stay away from it.

There are tons and tons of weather skins available for Rainmeter, you might want to explore alternatives that please you.

http://rainmeter.deviantart.com/gallery/45661671/Weather
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: need Help at WP7/textitems/weather/wearther.ini

Post by balala »

In addition to jsmorley's reply, you have to know that the posted code used Yahoo Weather, which doesn't work any more, so making that code to work, is practically equal with a complete rewriting of the code. No one will want to make a such stuff, so, as jsmorley said, you will probably have to choose an alternative skin / code and use that one.
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: need Help at WP7/textitems/weather/wearther.ini

Post by mak_kawa »

Hi balala.

Your recommendation of using Weather.com skin is relevant. So, below is just an introduction of my way.

In my opinion, Yahoo weather is not dead and still working. :-) As you know, we often can't get current weather from Weather.com. In that case, Yahoo weather can work as an alternative.

My weather skin usually gets current weather from Weather.com. And if it is not available, current weather from Yahoo weather is utilized.
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: need Help at WP7/textitems/weather/wearther.ini

Post by balala »

mak_kawa wrote:Hi balala.

Your recommendation of using Weather.com skin is relevant. So, below is just an introduction of my way.

In my opinion, Yahoo weather is not dead and still working. :-) As you know, we often can't get current weather from Weather.com. In that case, Yahoo weather can work as an alternative.

My weather skin usually gets current weather from Weather.com. And if it is not available, current weather from Yahoo weather is utilized.
I never used Yahoo Weather, so in fact, I can't tell too much about it, but as far as I know it's true it's not dead but it's working with subscription and as such, you have to login to can use it. If that's right, Rainmeter and its WebParser plugin can't handle it, because it can't work on sites which require authentication:
WebParser cannot use cookies or other session-based authentication, so it cannot be used to retrieve information from web sites requiring a login.
Link
If I'm wrong and Yahoo Weather works without authentication, please post a code or skin, which uses it, because I'd be very interested to take a look.
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: need Help at WP7/textitems/weather/wearther.ini

Post by mak_kawa »

Hi balala

Yahoo weather doesn't require subscription nor authentification. Webparser description is as such...

Code: Select all

[MeasureCurrentYahoo]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=#CurrentTodayUpdate#
Url=https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid=#LocationYahoo# AND u="#UnitYahoo#"

RegExp="(?siU).*distance="(.*)".*pressure="(.*)".*speed="(.*)".*temperature="(.*)".*<title>(.*)</title>.*<lastBuildDate>(.*)</lastBuildDate>.*chill="(.*)".*direction="(.*)".*speed="(.*)".*humidity="(.*)".*pressure="(.*)".*rising="(.*)".*visibility="(.*)".*sunrise="(.*)".*sunset="(.*)".*_pos#">(.*)</geo:lat>.*_pos#">(.*)</geo:long>.*code="(.*)".*date="(.*)".*temp="(.*)".*text="(.*)".*code="(.*)".*date="(.*)".*high="(.*)".*low="(.*)".*text="(.*)".*code="(.*)".*date="(.*)".*high="(.*)".*low="(.*)".*text="(.*)".*"
To get current weather from this RegExp, StringIndex=18.
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: need Help at WP7/textitems/weather/wearther.ini

Post by balala »

mak_kawa wrote:Yahoo weather doesn't require subscription nor authentification. Webparser description is as such...

Code: Select all

Url=https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid=#LocationYahoo# AND u="#UnitYahoo#"
What is the URL? Please post a concrete example.
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: need Help at WP7/textitems/weather/wearther.ini

Post by mak_kawa »

Hi balala

For Tokyo, Japan and celcius unit, as follows.

Code: Select all

Url=https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid=1118370 AND u="c"
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: need Help at WP7/textitems/weather/wearther.ini

Post by balala »

mak_kawa wrote:For Tokyo, Japan and celcius unit, as follows.

Code: Select all

Url=https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid=1118370 AND u="c"
Many thanks.
Very good. I didn't know about this and was never using Yahoo Weather, but definitely will have to take a look next days.
But the URL is very weird. I knew that a URL can't contain spaces. What's happening? My knowledge was wrong?
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: need Help at WP7/textitems/weather/wearther.ini

Post by jsmorley »

balala wrote:Many thanks.
Very good. I didn't know about this and was never using Yahoo Weather, but definitely will have to take a look next days.
But the URL is very weird. I knew that a URL can't contain spaces. What's happening? My knowledge was wrong?
You can send a URL with spaces... They are replaced with %20 or whatever at the target end.

This URL uses the Yahoo Query Language API's to access a very small subset of Yahoo weather. While it works, I'm not a huge fan, as it only returns the bare bones, and as I understand it unless you get and use an API "key", there is some limit to the number of times per hour/day that you can access it.

https://developer.yahoo.com/yql/

In addition, anyone who at this point is counting on Yahoo even being around for much longer isn't paying attention... ;-)