It is currently March 29th, 2024, 3:34 pm

wxdata.weather.com service deprecated

Get help with creating, editing & fixing problems with skins
User avatar
khernitz
Posts: 5
Joined: January 16th, 2020, 2:02 am

Re: wxdata.weather.com service deprecated

Post by khernitz »

hi again @jsmorley

i was able to get the weather data but it messed up the look of my skin....perhaps as you suggested, it is better if you have the whole skin to work with so here it is....many thanks in advance:

Code: Select all

[Rainmeter]
Update=1000

[Metadata]
Name=World Cities
Version=2.0
Author=sa3er
Information=http://sa3er.deviantart.com
License=Creative Commons BY-NC 3.0


### Settings

[Variables]
ColorScheme=41,145,59,255
CityName=Hong Kong
CityCode=HKXX0049
CityImage=hong_kong.png
CityTimeZone=+8
TemperatureUnit=m
;TemperatureUnit=f


### Styles

[TemperatureText]
X=102
Y=107
FontFace=Century Gothic
FontColor=#ColorScheme#
FontSize=14
StringStyle=Bold
Antialias=1
Text=%1°
Hidden=1


### Measures

[MeasureClock]
Measure=Time
Format=%H:%M:%S
TimeZone=#CityTimeZone#

[MeasureDate]
Measure=Time
Format=%m-%d-%y
TimeZone=#CityTimeZone#

[MeasureDateTooltip]
Measure=Time
Format=%A, %B %#d, %Y
TimeZone=#CityTimeZone#

[MeasureGetTemperatureRSS]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=3600
Url=http://wxdata.weather.com/wxdata/weather/local/#CityCode#?cc=*&unit=#TemperatureUnit#
RegExp="(?siU).*<ut>(.*)</ut>.*<dnam>(.*)</dnam>.*<cc>.*<tmp>(.*)</tmp>.*"

[MeasureTemperature]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=3600
Url=[MeasureGetTemperatureRSS]
StringIndex=3

[MeasureCelOrFar]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=3600
Url=[MeasureGetTemperatureRSS]
StringIndex=1
Substitute="C":"1","F":"2"

[MeasureCelShow]
Measure=Calc
Formula=[MeasureCelOrFar]
IfEqualValue=1
IfEqualAction=[!ShowMeter MeterTemperatureCel]
DynamicVariables=1

[MeasureFarShow]
Measure=Calc
Formula=[MeasureCelOrFar]
IfEqualValue=2
IfEqualAction=[!ShowMeter MeterTemperatureFar]
DynamicVariables=1


### Meters

[MeterCity]
Meter=Image
ImageName=#@#Images\#CityImage#
X=0
Y=0

[MeterClock]
Meter=String
MeasureName=MeasureClock
X=9
Y=108
FontFace=Century Gothic
FontColor=#ColorScheme#
FontSize=12
StringStyle=Bold
Antialias=1

[MeterDate]
Meter=String
MeasureName=MeasureDate
MeasureName2=MeasureDateTooltip
X=3r
Y=17r
FontFace=Century Gothic
FontColor=#ColorScheme#
FontSize=9
Text=%1
TooltipText=%2

[MeterSatButton]
Meter=String
X=85
Y=128
FontFace=hooge 05_53
FontSize=6
FontColor=#ColorScheme#
Text=SATELLITE
LeftMouseUpAction=["https://maps.google.com/maps?q=#CityName#&hl=en&t=h&z=10&iwloc=A&output=embed"]
ToolTipText=Click to view latest satellite images of this area.

[MeterTemperatureCel]
Meter=String
MeasureName=MeasureTemperature
MeterStyle=TemperatureText

[MeterTemperatureFar]
Meter=String
MeasureName=MeasureTemperature
MeterStyle=TemperatureText
Many thanks man
Last edited by eclectic-tech on January 25th, 2020, 4:30 am, edited 1 time in total.
Reason: Please use code tags. It is the </> symbol.
allegator
Posts: 1
Joined: January 26th, 2020, 2:06 am

Re: wxdata.weather.com service deprecated

Post by allegator »

I've been using the Yahoo Weather widget forever and of course it's now broken. Is there anything you can recommend to give me the same functionality - that is, a small widget that gives me the basics and take up only a small space on my desktop? Or, is there a link I can use to replace the wxdata link? This is the line of code in the widget:

url.location = "http://wxdata.weather.com/weather/local/" + preferences.locId.value + "?cc=*" + forecast + "&" + unitsQuery + "&prod=bd_select&par=yahoowidgetxml";

Thanks so much for any help or advice!
User avatar
scratch67
Posts: 34
Joined: April 8th, 2015, 1:27 pm

Re: wxdata.weather.com service deprecated

Post by scratch67 »

is this a fee based service now? Saw this https://wxdata.com/
Cheers,

MARK
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: wxdata.weather.com service deprecated

Post by jsmorley »

allegator wrote: January 26th, 2020, 2:13 am I've been using the Yahoo Weather widget forever and of course it's now broken. Is there anything you can recommend to give me the same functionality - that is, a small widget that gives me the basics and take up only a small space on my desktop? Or, is there a link I can use to replace the wxdata link? This is the line of code in the widget:

url.location = "http://wxdata.weather.com/weather/local/" + preferences.locId.value + "?cc=*" + forecast + "&" + unitsQuery + "&prod=bd_select&par=yahoowidgetxml";

Thanks so much for any help or advice!
https://forum.rainmeter.net/viewtopic.php?f=13&t=34469
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: wxdata.weather.com service deprecated

Post by jsmorley »

scratch67 wrote: January 26th, 2020, 2:18 am is this a fee based service now? Saw this https://wxdata.com/
https://forum.rainmeter.net/viewtopic.php?f=13&t=34469
pattyjo33
Posts: 8
Joined: March 21st, 2016, 12:35 pm

Re: wxdata.weather.com service deprecated

Post by pattyjo33 »

Hello !

I'm reopening this discussion because I need help.
Sorry for my english, I'm french.
I'm completely new to the use of rainmeter. I would like to use "genteel" skin, but I know it doesn't work. Can you help me get it working ?
Here's the code (I'm living near Bordeaux in France).
Thanks ! Merci !

Code: Select all

;----------------------------------------------------------
; Genteel - Yahoo Weather Skin

[Rainmeter]
Author=QuantumFoam
AppVersion=1
Update=1
@include=#SKINSPATH#Genteel\Variables\Fonts.inc

[Metadata]
Name=SM 2
Config=
Description=Yahoo Weather Skin
Instructions=Edit the /Weather/Weather.ini file, and replace the weather codes lines 23 and 24. Line 23 is the Yahoo weather code and 24 is the Weather.com code. Both codes can be obtained from their respective sites by searching your city and looking at the URL in the address bar Default is set to New York
Version=1
Tags=Clean, minimal, YahooWeather-like skin.
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Credits=This skin has been adapted from the RGC Minimal and VeryFlatWeather Skins.

[Variables]
@include=#SKINSPATH#Genteel\Variables\Default.inc
YahooWeatherCode=580778
WeatherCode=USNY0996

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

[mWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1600
Url=http://xml.weather.com/weather/local/#WeatherCode#?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
;Debug=1


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

[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
Url=http://weather.yahooapis.com/forecastrss?w=#YahooWeatherCode#&u=c
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

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

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

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


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

[Background]
Meter=IMAGE
;SolidColor=0,0,0,100
W=230
H=260
X=0
Y=0

[MeterIcon]
MeasureName=mIcon
Meter=IMAGE
X=23
Y=13
w=60
h=40
Antialias=1


[Temp]
MeasureName=MeasureWeatherTemp
Meter=STRING
X=280
Y=50
FontColor=#ffffff
FontSize=145
StringAlign=right
FontFace=#Font#
AntiAlias=1


[Temp2]
Meter=STRING
X=-55r
Y=55
FontSize=100
FontColor=#33b5e5
StringAlign=Left
FontFace=#Font#
AntiAlias=1
Postfix="°"


[MeterIcon]
MeasureName=mIcon
Meter=IMAGE
X=22
Y=8
w=60
h=44
Antialias=1



[Desc]
MeasureName=MeasureWeatherDesc
Meter=STRING
X=90
Y=22
FontColor=#Color1#
FontSize=17
StringAlign=Left
StringStyle=Bold
FontFace=#Font#
AntiAlias=1


[TempActive]
Meter=STRING
MeterStyle=Temp
MeasureName=MeasureWeatherTemp
FontColor=#e5e5e5
LeftMouseDownAction=
Hidden=1
Last edited by balala on February 19th, 2020, 10:35 am, edited 1 time in total.
Reason: Please use <code> tags whenever are you posting code snippets. It's the </> button.
User avatar
JelleDekkers
Posts: 127
Joined: September 27th, 2017, 6:32 pm
Location: Netherlands

Re: wxdata.weather.com service deprecated

Post by JelleDekkers »

pattyjo33 wrote: February 19th, 2020, 10:01 am Hello !

I'm reopening this discussion because I need help.
Sorry for my english, I'm french.
I'm completely new to the use of rainmeter. I would like to use "genteel" skin, but I know it doesn't work. Can you help me get it working ?
Here's the code (I'm living near Bordeaux in France).
Thanks ! Merci !
If you're talking about this skin, I suggest you try out Irvine, which looks a lot like it.

Shameless plug
pattyjo33
Posts: 8
Joined: March 21st, 2016, 12:35 pm

Re: wxdata.weather.com service deprecated

Post by pattyjo33 »

Thanks, and in french !!!
Merci !
User avatar
JelleDekkers
Posts: 127
Joined: September 27th, 2017, 6:32 pm
Location: Netherlands

Re: wxdata.weather.com service deprecated

Post by JelleDekkers »

pattyjo33 wrote: February 19th, 2020, 12:02 pm Thanks, and in french !!!
Merci !
It uses the language your PC is set to and Yahoo translates it automatically :)
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5384
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: wxdata.weather.com service deprecated

Post by eclectic-tech »

pattyjo33 wrote: February 19th, 2020, 10:01 am Hello !

I'm reopening this discussion because I need help.
Sorry for my english, I'm french.
I'm completely new to the use of rainmeter. I would like to use "genteel" skin, but I know it doesn't work. Can you help me get it working ?
Here's the code (I'm living near Bordeaux in France).
Thanks ! Merci !
Here is an updated version of Genteel Weather. I moved the Font and default includes to '@Resources'.
Follow the instructions in '@Resources\WeatherComVariables.inc' to set up your location.
I found a code for Bordeaux, France: FRXX0016
You do not have the required permissions to view the files attached to this post.