It is currently March 29th, 2024, 2:25 am

wxdata.weather.com service deprecated

Get help with creating, editing & fixing problems with skins
User avatar
Nightblade
Posts: 20
Joined: August 21st, 2012, 5:17 am

Re: wxdata.weather.com service deprecated

Post by Nightblade »

JelleDekkers wrote: January 16th, 2020, 9:49 am Why not use Dark Sky instead? It offers daily forecasts for free, which OWM doesn't.
Technically, only the first 1,000 API calls per day per key are free on Dark Sky (unless I'm mistaken).
Kira Krishna
Posts: 1
Joined: January 16th, 2020, 2:02 pm

Re: wxdata.weather.com service deprecated

Post by Kira Krishna »

How can we connect darksky.api to our rainmeter skins.. i mean what should be the necessary changes made to collect weather info from darksky.api website.. anything with URL = !?? or RegEx or in @Resource/Variable file !???
User avatar
CyberTheWorm
Posts: 860
Joined: August 22nd, 2016, 11:32 pm
Location: Surrey, B.C., Canada

Re: wxdata.weather.com service deprecated

Post by CyberTheWorm »

I made a skin a long time ago with Open Weather and it use RegExp assuming DarkSky would be the same
The only source of knowledge is experience. Albert Einstein
Deviant Art Page
User avatar
Youkai1977
Posts: 164
Joined: October 31st, 2018, 4:11 pm
Location: Germany

Re: wxdata.weather.com service deprecated

Post by Youkai1977 »

I got the skin from here ... -> https://forum.rainmeter.net/viewtopic.php?f=27&t=34233

... downloaded. This pulls its weather data from the website "https://isitraining.in"
I copied the necessary snippets of code from the skin to get my skin running again.
It also seems to be working so far. However, I still refer to him as BETA. Among other things, I am still not quite sure how to get the wind speed correctly (currently I have StringIndex = 4 in the corresponding measure), but I am not sure whether it is the right one. Then I had to exchange my weather symbols for the skin from the link. Didn't feel like renaming all of my pictograms so that the correct ones were shown to me.
In short, yes it seems to be working, but it is definitely NOT wxdata.weather.com, and therefore fiddling around to get it back to work for my taste. But well, if you like, here is the code of my weather skin. I can also offer a download if desired.

Weather-Skin Code

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1

[Metadata]
Name=Weather
Author=Youkai1977
Version=V2.2 (beta) <> 19.01.2020 (It is only a beta / replacement version because wxdata.weather.com is currently offline ... Mistakes are not excluded)
(Information=This Meter is a Part of M.A.R.S.-Skin Package
License=Creative Commons BY-NC-SA 3.0

;--------------------------------------------------
;--- VARIABLES & STYLES ---------------------------
;--------------------------------------------------

[Variables]
@include=UserVariables.inc
SoundPath=#@#sounds\frost.wav
Images=#@#images\
ImgAlpha1=110
ImgAlpha2=230
FontColor=164,164,164,230
WarnColor=164,0,0,230
ColdColor1=0,128,255,230
ColdColor2=128,255,255,230
ColdColor3=153,224,232,230
HotColor1=196,0,0,230
HotColor2=255,128,64,230
FS1=50
FS2=17
FS3=10

[Style1]
FontColor=#FontColor#
FontFace=Ubuntu
StringAlign=RIGHT
AntiAlias=1

[Style2]
FontWeight=600

;--------------------------------------------------
;--- MEASURES -------------------------------------
;--------------------------------------------------

;--- MEASURES WEATHER -----------------------------

[MeasureSite]
Measure=WebParser
URL=https://isitraining.in/#Weather#
REgExp=(?siU)\[description\] => (.*)\n.*\[temperature\] => (.*)\..*\n.*\[comfort\] => (.*)\n.*\[highTemperature\] => (.*)\..*\n.*\[lowTemperature\] => (.*)\..*\n.*\[humidity\] => (.*)\n.*\[precipitation1H\] => (.*)\n.*\[precipitation6H\] => (.*)\n.*\[barometerPressure\] => (.*)\n.*\[icon\] => (.*)\n.*\[iconLink\] => .*//.*/.*/.*/.*/.*(.*).png.*\[activeAlerts\] => (.*)\n.*\[city\] => (.*)\n.*<h1 class='result'>(.*)</h1>
UserAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/72.0
UpdateRate=1200

[MeasureTemp]
Measure=WebParser
URL=[MeasureSite]
StringIndex=2
IfCondition=(MeasureTemp >= -99) && (MeasureTemp <= 0)
IfTrueAction=[!SetOptionGroup TEMP FontColor #ColdColor1#][!ShowMeter FrostWarning][!EnableMeasure MeasureWarning][Play "#SoundPath#"][!Redraw]
IfCondition2=(MeasureTemp >= 1) && (MeasureTemp <= 3)
IfTrueAction2=[!SetOptionGroup TEMP FontColor #ColdColor2#][!ShowMeter FrostWarning][!EnableMeasure MeasureWarning][Play "#SoundPath#"][!Redraw]
IfCondition3=(MeasureTemp >= 4) && (MeasureTemp <= 12)
IfTrueAction3=[!SetOptionGroup TEMP FontColor #ColdColor3#][!HideMeter FrostWarning][!DisableMeasure MeasureWarning][!Redraw]
IfCondition4=(MeasureTemp >= 13) && (MeasureTemp <= 25)
IfTrueAction4=[!SetOptionGroup TEMP FontColor #FontColor#][!HideMeter FrostWarning][!DisableMeasure MeasureWarning][!Redraw]
IfCondition5=(MeasureTemp >= 26) && (MeasureTemp <= 33)
IfTrueAction5=[!SetOptionGroup TEMP FontColor #HotColor1#][!HideMeter FrostWarning][!DisableMeasure MeasureWarning][!Redraw]
IfCondition6=(MeasureTemp >= 34) && (MeasureTemp <= 60)
IfTrueAction6=[!SetOptionGroup TEMP FontColor #HotColor2#][!HideMeter FrostWarning][!DisableMeasure MeasureWarning][!Redraw]

[MeasureIcon]
Measure=WebParser
URL=[MeasureSite]
StringIndex=11

[MeasureBaro]
Measure=WebParser
URL=[MeasureSite]
StringIndex=9

[MeasureHumid]
Measure=WebParser
URL=[MeasureSite]
StringIndex=6

[MeasureWind]
Measure=WebParser
URL=[MeasureSite]
StringIndex=4
IfCondition=(MeasureWind >= 0) && (MeasureWind <= 60)
IfTrueAction=[!SetOptionGroup WIND FontColor #FontColor#][!Redraw]
IfCondition2=(MeasureWind >= 61) && (MeasureWind <= 400)
IfTrueAction2=[!SetOptionGroup WIND FontColor #WarnColor#][!Redraw]

[MeasureConditions]
Measure=WebParser
URL=[MeasureSite]
StringIndex=1
Substitute="#ConditionsGer#"

;--- MEASURE FROST WARNING ------------------------

[MeasureWarning]
Measure=CALC
Formula=Counter % 2
UpdateDivider=1
Disabled=1

;--------------------------------------------------
;--- BACKGROUND -----------------------------------
;--------------------------------------------------

[Background]
Meter=IMAGE
ImageName=#Images#bg_clock_weather.png
AntiAlias=1
X=0
Y=0
W=258
H=82
LeftMouseUpAction=[#WeatherURL#]
UpdateDivider=-1

;--------------------------------------------------
;--- WEATHER --------------------------------------
;--------------------------------------------------

;--- Weather Icon ---------------------------------

[CurrentWeatherIcon]
Meter=IMAGE
MeasureName=MeasureIcon
Path=#Icon#
PreserveAspectRatio=1
ImageAlpha=#ImgAlpha1#
AntiAlias=1
X=99
Y=0
W=60
H=60

;--- Temp -----------------------------------------

[Temp]
Meter=STRING
MeasureName=MeasureTemp
MeterStyle=Style1 | Style2
FontSize=#FS1#
X=105
Y=-9
Group=TEMP

[TempIcon]
Meter=STRING
MeterStyle=Style1 | Style2
FontSize=#FS2#
StringAlign=LEFT
Text=°
X=-2r
Y=12r
Group=TEMP

[TempUnit]
Meter=STRING
MeasureName=MeasureTempUnit
MeterStyle=Style1 | Style2
FontSize=#FS2#
StringAlign=LEFT
X=10r
Y=-2r
Group=TEMP

[FrostWarning]
Meter=BITMAP
MeasureName=MeasureWarning
BitmapImage=#Images#frost.png
BitmapFrames=2
BitmapExtend=1
ImageAlpha=#ImgAlpha2#
AntiAlias=1
X=48r
Y=21r
UpdateDivider=1
Hidden=1

;--- Barometer ------------------------------------

[Baro]
Meter=STRING
MeasureName=MeasureBaro
MeterStyle=Style1
FontSize=#FS3#
X=225
Y=3

[BaroLabel]
Meter=STRING
MeterStyle=Style1
FontSize=#FS3#
StringAlign=LEFT
Text="hPa"
X=2r
Y=r
UpdateDivider=-1

;--- Humidity -------------------------------------

[Humid]
Meter=STRING
MeasureName=MeasureHumid
MeterStyle=Style1
FontSize=#FS3#
Text=%1%
X=-9r
Y=19r

[HumidLabel]
Meter=STRING
MeterStyle=Style1
FontSize=#FS3#
StringAlign=LEFT
Text=HMD
X=2r 
Y=r
UpdateDivider=-1

;--- Wind Speed -----------------------------------

[WindSpeed]
Meter=STRING
MeasureName=MeasureWind
MeterStyle=Style1
FontSize=#FS3#
X=-2r
Y=19r
Group=WIND

[WindSpeedLabel]
Meter=STRING
MeterStyle=Style1
FontSize=#FS3#
StringAlign=LEFT
Text="KMH"
X=2r
Y=r
UpdateDivider=-1
Group=WIND

;--- Conditions -----------------------------------

[Conditions]
Meter=STRING
MeasureName=MeasureConditions
MeterStyle=Style1
FontSize=#FS3#
StringAlign=CENTER
ClipString=1
X=132
Y=64
W=244

Variables.inc File

Code: Select all

[Variables]

;------------------ INSERT YOUR LOCATION -------------------------> Enter the location here that should be displayed in the weather skin !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Weather=Ratingen

;------------------ CHOOSE YOUR FAVORITE WEATHER-CHANNEL WEBSITE -> Under "WeatherURL" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WeatherURL=https://weather.com/de-DE/wetter/heute/l/40880:4:GM

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!                                                                                                                            !!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!                     DON`T TOUCH ANYTHING BEHIND THIS POINT, UNLESS YOU KNOW WHAT YOU ARE DOING !!!!                        !!!!!!!!!!!!!!!!!!!!!!  
!!!!!!!!!!!!!!!!!!!!!!                     DON`T TOUCH ANYTHING BEHIND THIS POINT, UNLESS YOU KNOW WHAT YOU ARE DOING !!!!                        !!!!!!!!!!!!!!!!!!!!!!  
!!!!!!!!!!!!!!!!!!!!!!                     DON`T TOUCH ANYTHING BEHIND THIS POINT, UNLESS YOU KNOW WHAT YOU ARE DOING !!!!                        !!!!!!!!!!!!!!!!!!!!!!  
!!!!!!!!!!!!!!!!!!!!!!                                                                                                                            !!!!!!!!!!!!!!!!!!!!!!  
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Icon=#@#images\weathericons\
ConditionsGer="Heavy":"Starker","Thunderstorms":"Gewitter","Rain Shower":"Regenschauer","Light Rain Shower":"Leichte Regenschauer","in the Vicinity":"in der Umgebung","Windy Rain":"Wind und Regen","T-Storms":"Gewitter","Rain Snow":"Schneeregen","Sleet":"Graupel","Snow/Rain Icy Mix":"Gefrorener Schneeregen","Freezing Drizzle":"Gefrierender Niesel","Light Drizzle":"Leichter Nieselregen","Drizzle":"Niesel","Freezing Rain":"Gefrierender Regen","T-Showers":"Platzregen","Showers":"Schauer","Light Rain":"Leichter Regen","Heavy Rain":"Heftiger Regen","Snow Flurries":"Vereinzelte Schneefall","Light Snow":"Leichter Schneefall","Snowflakes":"Schneeflocken","Heavy Snow":"Heftiger Schneefall","Hail":"Hagel","Dust":"Staub","Haze":"Dunst","Smoke":"Rauch","Windy":"Windig","Frigid":"Kühl","Partly Cloudy":"Teilweise Bewölkt","Cloudy":"Bewölkt","Mostly Cloudy":"Meist Bewölkt","Clear":"Klar","Sunny":"Klar","Fair":"Klar","Mostly Clear":"Klar","Mostly Sunny":"Meist Sonnig","Hot":"Heiß","Isolated Thunder":"Vereinzelt Donner","Scattered T-Storms":"Vereinzelte Gewitter","Scattered Rain":"Vereinzelt Regen","Scattered Snow":"Vereinzelt Schneefall","Windy/Snowy":"Windig/Schneefall","Scattered Showers":"Vereinzelte Regenschauer","Snowy":"Schneefall","and":"und","Shower":"Schauer","Mostly":"Meist","Shallow":"Flacher","Scattered":"Vereinzelt","Rain":"Regen","Snow":"Schneefall","Wind":"Wind","Early":"Morgens","Late":"Abends","PM":"Nachmittags","AM":"Vormittags","Sun":"Sonne","Cloud":"Wolke","Snow Shower":"Schneefall","Widespread":"Verbreitet","Few":"Wenig","Isolated":"Vereinzelt","Mist":"Leichter Nebel","Light":"Leicht(e/r)","T-Storm":"Gewitter","Wintry Mix":"Winterliche Mischung","Squalls":"Böen","with Thunder":"mit Donner","Partial":"Teilweise","Patches of Fog":"Nebelschwaden","Fog":"Nebel","Chilly":"Kühl","Passing clouds":"Vorbeiziehende Wolken"
You do not have the required permissions to view the files attached to this post.
- Win11 Pro x64 (23H2 - 22631.3085)
- Rainmeter 4.5.18
- Gigabyte B550i AORUS Pro AX V1.2
- Corsair Venegeance LPX 2x 16GB (32GB) DDR4 3200MHz
- RYZEN 7 5800X
- PowerColor RX570 8GB
- Samsung 980Pro 250GB (NVMe) - Drive C: Windows
- Kingston SNV2S1000G (NVMe) - Drive D: Rainmeter, Skins & Others - Drive D: Games
- NAS Synology DS216j - 2x 1GB HDDs - My Main Backup & Data Storage in my Home-Network
- Mon 1: 24" HP 24f (1920 x 1080 @ 75Hz) - Primary
- Mon 2: 22" Philips 226VL (1920 x 1080 @ 60Hz) - Secondary 1
- Mon 3: 50" Philips 50PUS7304/12 (3840 x 2160 @ 60Hz) - Secondary 2
- Corsair CX 650M Power Supply
- NZXT H210 Case
- ISP Vodafone with 1000/50 Mbit Cable Internet

The absolutly High-End Machine on 2024 ... at least the graphics card :oops: O.O :rofl:
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: wxdata.weather.com service deprecated

Post by balala »

Youkai1977 wrote: January 19th, 2020, 10:38 pm Among other things, I am still not quite sure how to get the wind speed correctly (currently I have StringIndex = 4 in the corresponding measure),
Is the wind speed returned by the site? Because I don't see it:
Weather.png
You do not have the required permissions to view the files attached to this post.
User avatar
Youkai1977
Posts: 164
Joined: October 31st, 2018, 4:11 pm
Location: Germany

Re: wxdata.weather.com service deprecated

Post by Youkai1977 »

Right, not right on the page. But (at least for me in Firefox) when I right-click on "Show page source text" I see the following (see screenshot Attachment):

Now I have absolutely no idea about website programming. But if the data is in there, you should somehow get there. I can read my humidity, location, etc.
Unfortunately, as I said, all programming skills leave me here. In relation to websites anyway and in Rainmeter I am not the hero now. I actually learn by examining and trying out other skins.

In short, I am very proud of myself that I got my weather skin running again so far.
You do not have the required permissions to view the files attached to this post.
- Win11 Pro x64 (23H2 - 22631.3085)
- Rainmeter 4.5.18
- Gigabyte B550i AORUS Pro AX V1.2
- Corsair Venegeance LPX 2x 16GB (32GB) DDR4 3200MHz
- RYZEN 7 5800X
- PowerColor RX570 8GB
- Samsung 980Pro 250GB (NVMe) - Drive C: Windows
- Kingston SNV2S1000G (NVMe) - Drive D: Rainmeter, Skins & Others - Drive D: Games
- NAS Synology DS216j - 2x 1GB HDDs - My Main Backup & Data Storage in my Home-Network
- Mon 1: 24" HP 24f (1920 x 1080 @ 75Hz) - Primary
- Mon 2: 22" Philips 226VL (1920 x 1080 @ 60Hz) - Secondary 1
- Mon 3: 50" Philips 50PUS7304/12 (3840 x 2160 @ 60Hz) - Secondary 2
- Corsair CX 650M Power Supply
- NZXT H210 Case
- ISP Vodafone with 1000/50 Mbit Cable Internet

The absolutly High-End Machine on 2024 ... at least the graphics card :oops: O.O :rofl:
User avatar
JamX
Posts: 207
Joined: October 4th, 2019, 2:46 pm

Re: wxdata.weather.com service deprecated

Post by JamX »

JelleDekkers wrote: January 15th, 2020, 5:39 pm https://darksky.net/dev ;-)
Jelle, I modified my code using one of your excellent examples and it works like a charm. !! :thumbup:
Jelle.JPG
https://jelledekkers.nl/modesto/

This is now my working forcast:
Me.JPG
You do not have the required permissions to view the files attached to this post.
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: wxdata.weather.com service deprecated

Post by mak_kawa »

Hi Youkai1977

Expression to capture the windSpeed is lacking in your RegExp. Exchange your Regexp with following;

Code: Select all

RegExp=(?siU)\[description\] => (.*)\n.*\[temperature\] => (.*)\..*\n.*\[comfort\] => (.*)\n.*\[highTemperature\] => (.*)\..*\n.*\[lowTemperature\] => (.*)\..*\n.*\[humidity\] => (.*)\n.*\[precipitation1H\] => (.*)\n.*\[precipitation6H\] => (.*)\n.*\[windSpeed\] => (.*)\n.*\[barometerPressure\] => (.*)\n.*\[icon\] => (.*)\n.*\[iconLink\] => .*//.*/.*/.*/.*/.*(.*).png.*\[activeAlerts\] => (.*)\n.*\[city\] => (.*)\n.*<h1 class='result'>(.*)</h1>
And, new StringIndex of the MeasureWind is 9. So, old StringIndex=9 and larger than it have to be incremented as 9 -> 10 and so on, like as;

Code: Select all

[MeasureIcon]
Measure=WebParser
URL=[MeasureSite]
StringIndex=12

[MeasureBaro]
Measure=WebParser
URL=[MeasureSite]
StringIndex=10
User avatar
JelleDekkers
Posts: 127
Joined: September 27th, 2017, 6:32 pm
Location: Netherlands

Re: wxdata.weather.com service deprecated

Post by JelleDekkers »

JamX wrote: January 21st, 2020, 9:30 am Jelle, I modified my code using one of your excellent examples and it works like a charm. !! :thumbup:
Jelle.JPG
https://jelledekkers.nl/modesto/

This is now my working forcast:

Me.JPG
8-)
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: wxdata.weather.com service deprecated

Post by balala »

Youkai1977 wrote: January 21st, 2020, 9:08 am Right, not right on the page. But (at least for me in Firefox) when I right-click on "Show page source text" I see the following (see screenshot Attachment):
Aha, now I see. Yes, you're right, those information are indeed there.
Youkai1977 wrote: January 21st, 2020, 9:08 am Now I have absolutely no idea about website programming.
You don't even have to. Creating a (well) working Rainmeter skin, don't require web programming.
Youkai1977 wrote: January 21st, 2020, 9:08 am I actually learn by examining and trying out other skins.
This is the best way to get starting learning.

In the meantime JamX has posted a skin above. Please try it out and let me know if it is good enough for what you want.