It is currently March 28th, 2024, 11:44 pm

[SOLVED] Simple Epoca - Weather - Icon problem

Get help with creating, editing & fixing problems with skins
spectrefrmrussia
Posts: 5
Joined: November 26th, 2019, 10:10 pm

[SOLVED] Simple Epoca - Weather - Icon problem

Post by spectrefrmrussia »

Hello,

So I installed the skin Simple Epoca downloadable here -> https://mega.nz/#!p0E1TKwT!vMeafOqG8zhK6bfTLQS63tmfqxHsPnpZDhO4HcisDwg and I really liked the weather widget because of it's cute icons. The problem is, when I enter my location code the weather icon doesn't show.
Image
I thought that maybe I did it wrong, but to be sure I tried with another location and... it worked.
Image
As you can see there is the weather icon and a description above the temp. What could I do to make it work?

Code: Select all

[Rainmeter]
Update=1000
Author=Connect-R
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
AccurateText=1

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

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

[MeasureCheckNetwork]
Measure=Plugin
Plugin=SysInfo
SysInfoType=INTERNET_CONNECTIVITY
SysInfoData=Best
OnChangeAction=[!CommandMeasure MeasureCurrent "Update"][!CommandMeasure MeasureCurrentHiLoTemp "Update"]

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

[MeasureCurrent]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=1800
Url=http://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#
RegExp="(?siU)<head>.*<ut>(.*)</ut>.*<dnam>(.*),.*</dnam>.*<tmp>(.*)</tmp>.*<t>(.*)</t>.*<icon>(.*)</icon>"

[MeasureCurrentHiLoTemp]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=1800
Url=http://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#&dayf=1
RegExp="(?siU)<dayf>.*<day d="0".*<hi>(.*)</hi>.*<low>(.*)</low>"

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

[MeasureWeatherTemp]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=3

[MeasureWeatherCond]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=4
Substitute=#Conditions#

[MeasureWeatherIcons]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=5

[MeasureWeatherTempHi]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureCurrentHiLoTemp]
StringIndex=1

[MeasureWeatherTempLo]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrentHiLoTemp]
StringIndex=2

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

[MeterCurrentIcon]
Meter=Image
MeasureName=MeasureWeatherIcons
Path=#@#WeatherIcons
X=5
Y=0
W=35
PreserveAspectRatio=1
AntiAlias=1

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

[MeterCurrentTemp]
Meter=String
MeasureName=MeasureWeatherTemp
StringAlign=Left
FontColor=255,255,255
StringEffect=Shadow
FontEffectColor=65,65,65,80
FontFace=Montserrat Thin
FontSize=60
X=5
Y=40
Text="%1°"
AntiAlias=1

[MeterFeelsLikeMinMaxTemp]
Meter=String
MeasureName=MeasureWeatherTempLo
MeasureName2=MeasureWeatherTempHi
StringAlign=Left
FontColor=255,255,255
StringEffect=Shadow
FontEffectColor=65,65,65,80
FontFace=Montserrat Light
FontSize=10
X=5
Y=30
Text=" ↓ %1°    ↑ %2°"
InlinePattern="↓"
InlineSetting=Size | 13
InlinePattern2="↑"
InlineSetting2=Size | 13
DynamicVariables=1
AntiAlias=1

[MeterCurrentCond]
Meter=String
MeasureName=MeasureWeatherCond
StringAlign=Left
FontColor=255,255,255
StringEffect=Shadow
FontEffectColor=65,65,65,80
FontFace=Montserrat Light
FontSize=10
X=55
Y=10
Text="%1"
AntiAlias=1
I hope I was clear enough. Thank you for your time.
You do not have the required permissions to view the files attached to this post.
Last edited by spectrefrmrussia on November 27th, 2019, 5:18 pm, edited 1 time in total.
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: Simple Epoca - Weather - Icon problem

Post by mak_kawa »

When your weather icon is not displayed, how is the section variable [MeasureWeatherIcons]? This can be checked in Manage Rainmeter -> Open log -> Skins -> (your weather skin config) -> Measures.

If it was vacant, the weather icon for your location is not available, at lest at that time.

In my experience, weather icon from wxdata.weather.com is often unavailable for some locations, permanently or intermittently. It is not unusual.

If you want to avoid this issue permanently, you have to use other weather information sites.
User avatar
xenium
Posts: 841
Joined: January 4th, 2018, 9:52 pm

Re: Simple Epoca - Weather - Icon problem

Post by xenium »

spectrefrmrussia wrote: November 27th, 2019, 1:57 am Hello,

So I installed the skin Simple Epoca downloadable here -> https://mega.nz/#!p0E1TKwT!vMeafOqG8zhK6bfTLQS63tmfqxHsPnpZDhO4HcisDwg and I really liked the weather widget because of it's cute icons. The problem is, when I enter my location code the weather icon doesn't show.
Image
I thought that maybe I did it wrong, but to be sure I tried with another location and... it worked.
Image
As you can see there is the weather icon and a description above the temp. What could I do to make it work?

Code: Select all

[Rainmeter]
Update=1000
Author=Connect-R
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
AccurateText=1

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

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

[MeasureCheckNetwork]
Measure=Plugin
Plugin=SysInfo
SysInfoType=INTERNET_CONNECTIVITY
SysInfoData=Best
OnChangeAction=[!CommandMeasure MeasureCurrent "Update"][!CommandMeasure MeasureCurrentHiLoTemp "Update"]

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

[MeasureCurrent]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=1800
Url=http://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#
RegExp="(?siU)<head>.*<ut>(.*)</ut>.*<dnam>(.*),.*</dnam>.*<tmp>(.*)</tmp>.*<t>(.*)</t>.*<icon>(.*)</icon>"

[MeasureCurrentHiLoTemp]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=1800
Url=http://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#&dayf=1
RegExp="(?siU)<dayf>.*<day d="0".*<hi>(.*)</hi>.*<low>(.*)</low>"

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

[MeasureWeatherTemp]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=3

[MeasureWeatherCond]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=4
Substitute=#Conditions#

[MeasureWeatherIcons]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=5

[MeasureWeatherTempHi]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureCurrentHiLoTemp]
StringIndex=1

[MeasureWeatherTempLo]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrentHiLoTemp]
StringIndex=2

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

[MeterCurrentIcon]
Meter=Image
MeasureName=MeasureWeatherIcons
Path=#@#WeatherIcons
X=5
Y=0
W=35
PreserveAspectRatio=1
AntiAlias=1

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

[MeterCurrentTemp]
Meter=String
MeasureName=MeasureWeatherTemp
StringAlign=Left
FontColor=255,255,255
StringEffect=Shadow
FontEffectColor=65,65,65,80
FontFace=Montserrat Thin
FontSize=60
X=5
Y=40
Text="%1°"
AntiAlias=1

[MeterFeelsLikeMinMaxTemp]
Meter=String
MeasureName=MeasureWeatherTempLo
MeasureName2=MeasureWeatherTempHi
StringAlign=Left
FontColor=255,255,255
StringEffect=Shadow
FontEffectColor=65,65,65,80
FontFace=Montserrat Light
FontSize=10
X=5
Y=30
Text=" ↓ %1°    ↑ %2°"
InlinePattern="↓"
InlineSetting=Size | 13
InlinePattern2="↑"
InlineSetting2=Size | 13
DynamicVariables=1
AntiAlias=1

[MeterCurrentCond]
Meter=String
MeasureName=MeasureWeatherCond
StringAlign=Left
FontColor=255,255,255
StringEffect=Shadow
FontEffectColor=65,65,65,80
FontFace=Montserrat Light
FontSize=10
X=55
Y=10
Text="%1"
AntiAlias=1
I hope I was clear enough. Thank you for your time.
The wxdata feed from weather.com is the problem.
Some weather data may be missing for certain locations, such as the icon for example.
Try again later, the icon may appear (or not ..)

If it doesn't work try this skin, ASTRO Weather,which uses the weather.com website source, and not the feed.
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: Simple Epoca - Weather - Icon problem

Post by mak_kawa »

Hi xenium

I am using weather.com (not XML feed) in my weather skin as well. And also Accuweather feed with free account. Both are very stable compared to wxdata.weather.com.

PS. Download from DeviantArt now needs login account...I didn't know that.
User avatar
xenium
Posts: 841
Joined: January 4th, 2018, 9:52 pm

Re: Simple Epoca - Weather - Icon problem

Post by xenium »

mak_kawa wrote: November 27th, 2019, 9:57 am Hi xenium

I am using weather.com (not XML feed) in my weather skin as well. And also Accuweather feed with free account. Both are very stable compared to wxdata.weather.com.

PS. Download from DeviantArt now needs login account...I didn't know that.
Hi mak_kawa

Yes, since moving to the new theme "Eclipse" :thumbdown: , you must have a DeviantArt account to download.
spectrefrmrussia
Posts: 5
Joined: November 26th, 2019, 10:10 pm

Re: Simple Epoca - Weather - Icon problem

Post by spectrefrmrussia »

mak_kawa wrote: November 27th, 2019, 3:12 am When your weather icon is not displayed, how is the section variable [MeasureWeatherIcons]? This can be checked in Manage Rainmeter -> Open log -> Skins -> (your weather skin config) -> Measures.

If it was vacant, the weather icon for your location is not available, at lest at that time.

In my experience, weather icon from wxdata.weather.com is often unavailable for some locations, permanently or intermittently. It is not unusual.

If you want to avoid this issue permanently, you have to use other weather information sites.
Should I edit the skin for another weather information site or it's not recommended? If I can edit it, is there somewhere I can learn how to do it myself?
xenium wrote: November 27th, 2019, 9:40 am The wxdata feed from weather.com is the problem.
Some weather data may be missing for certain locations, such as the icon for example.
Try again later, the icon may appear (or not ..)

If it doesn't work try this skin, ASTRO Weather,which uses the weather.com website source, and not the feed.
Thank you, I will use this skin, wich is really nice, if i'm unable to edit Simple Epoca to work well.
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: Simple Epoca - Weather - Icon problem

Post by mak_kawa »

You can edit your weather skin to adapt for other weather information provider site. But in that case, you have to newly write both URL= and RegExp= expressions and corresponding StringIndex= lines in many child measures of Webparser in your skin.
WebParser Tutorial page is a best starting point for works with Webparser.

But if you are not experienced in these works, maybe it is so hard to complete, I guess. I am always getting headaches at such works. :-)
It is probably a best way for you to use xenium's weather skin.
spectrefrmrussia
Posts: 5
Joined: November 26th, 2019, 10:10 pm

Re: Simple Epoca - Weather - Icon problem

Post by spectrefrmrussia »

mak_kawa wrote: November 27th, 2019, 1:32 pm You can edit your weather skin to adapt for other weather information provider site. But in that case, you have to newly write both URL= and RegExp= expressions and corresponding StringIndex= lines in many child measures of Webparser in your skin.
WebParser Tutorial page is a best starting point for works with Webparser.

But if you are not experienced in these works, maybe it is so hard to complete, I guess. I am always getting headaches at such works. :-)
It is probably a best way for you to use xenium's weather skin.
Thank you for your help. I'm pretty new to Rainmeter, but I like to learn so I will try with what you said and if i'm unable to make it work, or if the headache are to strong, I will use the other skin.
spectrefrmrussia
Posts: 5
Joined: November 26th, 2019, 10:10 pm

Re: Simple Epoca - Weather - Icon problem

Post by spectrefrmrussia »

spectrefrmrussia wrote: November 27th, 2019, 2:50 pm Thank you for your help. I'm pretty new to Rainmeter, but I like to learn so I will try with what you said and if i'm unable to make it work, or if the headache are to strong, I will use the other skin.
So, i'm pretty proud of what I was able to do, so I wanted to share it. Sorry for the double post.
Image
My last problem being the -- for the hi temp, but this bug is from the website, so for now i'm not sure I can do anything for it.

For this code to work, you will have to add

Code: Select all

Link=https://weather.com/fr-FR/temps/aujour/l/
in the file Variables or delete #Link# and replace it directly by the link.

Code: Select all

[Rainmeter]
Update=1000
Author=Connect-R (edited by spectrefrmrussia with xenium code)
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
AccurateText=1

[Variables]

@Include=#@#Variables.inc
URL=#Link##Location#

xx=).*

NOW=(?siU)(?(?=.*<div class="today_nowcard-section today_nowcard-condition"><div class="condition-icon wx-weather-icon vector#xx#"><icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon icon-svg icon-svg-.* .* icon-.*">.*</icon></div>)(?(?=.*<div class="today_nowcard-temp"#xx#><span class="">(.*)<sup>.*</sup></span>).*(?(?=.*<div class="today_nowcard-phrase#xx#">(.*)</div>)

HILOW=(?siU)(?(?=.*<div class="today_nowcard-hilo"#xx#><span class="btn-text">.*<!----> </span><span class="deg-hilo-nowcard"><span>(.*)</span></span>).*(?(?=.*<span class="btn-text">.*<!---->#xx# </span><span class="deg-hilo-nowcard"><span class="">(.*)<sup>.*</sup></span></span>)

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

[MeasureCurrent]
Measure=WebParser
URL=#URL#
RegExp=#NOW#
UpdateRate=600
LogSubstringErrors=0

[MeasureCurrentHiLoTemp]
Measure=WebParser
URL=#URL#
RegExp=#HILOW#
UpdateRate=1800
LogSubstringErrors=0

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


[MeasureWeatherIcons]
Measure=WebParser
URL=[MeasureCurrent]
StringIndex=1

[MeasureWeatherTemp]
Measure=WebParser
URL=[MeasureCurrent]
StringIndex=2

[MeasureWeatherCond]
Measure=WebParser
URL=[MeasureCurrent]
StringIndex=3
DecodeCharacterReference=1

[MeasureWeatherTempHi]
Measure=WebParser
URL=[MeasureCurrentHiLoTemp]
StringIndex=1

[MeasureWeatherTempLo]
Measure=WebParser
URL=[MeasureCurrentHiLoTemp]
StringIndex=2

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

[MeterCurrentIcon]
Meter=Image
MeasureName=MeasureWeatherIcons
Path=#@#WeatherIcons
X=5
Y=0
W=35
PreserveAspectRatio=1
AntiAlias=1

[MeterCurrentTemp]
Meter=String
MeasureName=MeasureWeatherTemp
StringAlign=Left
FontColor=255,255,255
StringEffect=Shadow
FontEffectColor=65,65,65,80
FontFace=Montserrat Thin
FontSize=60
X=5
Y=40
Text="%1°"
AntiAlias=1

[MeterFeelsLikeMinMaxTemp]
Meter=String
MeasureName=MeasureWeatherTempLo
MeasureName2=MeasureWeatherTempHi
StringAlign=Left
FontColor=255,255,255
StringEffect=Shadow
FontEffectColor=65,65,65,80
FontFace=Montserrat Light
FontSize=10
X=5
Y=30
Text=" ↓ %1°    ↑ %2°"
InlinePattern="↓"
InlineSetting=Size | 13
InlinePattern2="↑"
InlineSetting2=Size | 13
DynamicVariables=1
AntiAlias=1

[MeterCurrentCond]
Meter=String
MeasureName=MeasureWeatherCond
StringAlign=Left
FontColor=255,255,255
StringEffect=Shadow
FontEffectColor=65,65,65,80
FontFace=Montserrat Light
FontSize=10
X=55
Y=10
Text="%1"
AntiAlias=1
Last edited by spectrefrmrussia on November 28th, 2019, 3:09 pm, edited 1 time in total.
User avatar
xenium
Posts: 841
Joined: January 4th, 2018, 9:52 pm

Re: Simple Epoca - Weather - Icon problem

Post by xenium »

spectrefrmrussia wrote: November 28th, 2019, 6:47 am So, i'm pretty proud of what I was able to do
Congratulations, for a beginner you did quite well with my code. :D
spectrefrmrussia wrote: November 28th, 2019, 6:47 am My last problem being the -- for the hi temp, but this bug is from the website, so for now i'm not sure I can do anything for it.
Replace the code you posted above with this one:

Code: Select all

[Rainmeter]
Update=1000
Author=Connect-R
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
AccurateText=1

[Variables]
@include=#@#Variables.inc
URL=#Link##Location#

xx=).*

NOW=(?siU)(?(?=.*</div></span><p class="today_nowcard-#xx#timestamp"><span>.*<!----> </span><span>.*</span>).*(?(?=.*<div class="today_nowcard-section today_nowcard-condition"><div class="condition-icon wx-weather-icon vector#xx#"><icon class="icon icon-svg icon-svg-.* .* icon-(.*)" className="icon icon-svg icon-svg-.* .* icon-.*">.*</icon></div>)(?(?=.*<div class="today_nowcard-temp"#xx#><span class="">(.*)<sup>.*</sup></span>).*(?(?=.*<div class="today_nowcard-phrase#xx#">(.*)</div>)(?(?=.*<div class="today_nowcard-feels#xx#"><span class="btn-text">.*<!----> </span><span class="deg-feels" className="deg-feels">.*<sup>.*</sup></span>).*(?(?=.*<div class="today_nowcard-hilo"#xx#><span class="btn-text">.*<!----> </span><span class="deg-hilo-nowcard"><span class="">(.*)<sup>.*</sup></span>).*(?(?=.*<span class="btn-text">.*<!---->#xx# </span><span class="deg-hilo-nowcard"><span class="">(.*)<sup>.*</sup></span>).*
xx=).*
;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureCurrent]
Measure=WebParser
URL=#URL#
RegExp=#NOW#
UpdateRate=600
LogSubstringErrors=0

[MeasureWeatherIcons]
Measure=WebParser
URL=[MeasureCurrent]
StringIndex=1

[MeasureWeatherTemp]
Measure=WebParser
URL=[MeasureCurrent]
StringIndex=2

[MeasureWeatherCond]
Measure=WebParser
URL=[MeasureCurrent]
StringIndex=3
DecodeCharacterReference=1

[MeasureWeatherTempHi]
Measure=WebParser
URL=[MeasureCurrent]
StringIndex=4

[MeasureWeatherTempLo]
Measure=WebParser
URL=[MeasureCurrent]
StringIndex=5
IfMatch=^$
IfMatchAction=[!ShowMeter "MeterTnight"][!HideMeter "MeterTday"]
IfNotMatchAction=[!HideMeter "MeterTnight"][!ShowMeter "MeterTday"]

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

[MeterCurrentIcon]
Meter=Image
MeasureName=MeasureWeatherIcons
ImagePath=#@#WeatherIcons
X=5
Y=0
W=35
PreserveAspectRatio=1
AntiAlias=1

[MeterCurrentTemp]
Meter=String
MeasureName=MeasureWeatherTemp
StringAlign=Left
FontColor=255,255,255
StringEffect=Shadow
FontEffectColor=65,65,65,80
FontFace=Montserrat Thin
FontSize=60
X=5
Y=40
Text=%1°
AntiAlias=1

[MeterTday]
Meter=String
MeasureName=MeasureWeatherTempHi
MeasureName2=MeasureWeatherTempLo
StringAlign=Left
FontColor=255,255,255
StringEffect=Shadow
FontEffectColor=65,65,65,80
FontFace=Montserrat Light
FontSize=10
X=5
Y=30
Text= ↑ %1°    ↓ %2°
InlinePattern="↑"
InlineSetting=Size | 13
InlinePattern2="↓"
InlineSetting2=Size | 13
AntiAlias=1
Hidden=1

[MeterTnight]
Meter=String
MeasureName=MeasureWeatherTempHi
MeasureName2=MeasureWeatherTempLo
StringAlign=Left
FontColor=255,255,255
StringEffect=Shadow
FontEffectColor=65,65,65,80
FontFace=Montserrat Light
FontSize=10
X=5
Y=30
Text= ↑ ---    ↓ %1°
InlinePattern="↑"
InlineSetting=Size | 13
InlinePattern2="↓"
InlineSetting2=Size | 13
AntiAlias=1
Hidden=1

[MeterCurrentCond]
Meter=String
MeasureName=MeasureWeatherCond
StringAlign=Left
FontColor=255,255,255
StringEffect=Shadow
FontEffectColor=65,65,65,80
FontFace=Montserrat Light
FontSize=10
X=55
Y=10
AntiAlias=1
The night,when High-temperature is not available,this will be replaced by the "---" sign.