It is currently March 29th, 2024, 6:00 am

[Skin] Cloudy Problem with Paris

Get help with creating, editing & fixing problems with skins
User avatar
xbitionart
Posts: 2
Joined: February 19th, 2018, 2:54 pm

[Skin] Cloudy Problem with Paris

Post by xbitionart »

Hello,
(sorry for my bad english i am a french girl and i am very bad in english...)

The skin does not show me "MeasureCond" and I do not understand why !!!

I let you look at the code

Code: Select all

[Rainmeter]
Update=1000
SkinWidth=400
SkinHeight=592
LeftMouseUpAction=!Refresh
ContextTitle=Location: [MeasureLocation] (FRXX0076)
ContextAction=[https://weather.com/fr-FR/temps/aujour/l/FRXX0076]
ContextTitle2=----
ContextAction2=[]
ContextTitle3=Change to 24-Hours Format
ContextAction3=[!WriteKeyValue Variables FORMAT "%H"][!Refresh]
ContextTitle4=Change to 12-Hours Format
ConTextAction4=[!WriteKeyValue Variables FORMAT "%#I"][!Refresh]
ContextTitle5=Change to Celsius
ContextAction5=[!WriteKeyValue Variables UNIT "M"][!Refresh]
ContextTitle6=Change to Fahrenheit
ConTextAction6=[!WriteKeyValue Variables UNIT "F"][!Refresh]

[Metadata]
Name=Cloudy
Author=fuckyeahlucas from DeviantART (also known as fizik)
Information=This skin is so minimal that no information is available. Sorry.
Version=1.7
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
 
;============== VARIABLES =====================================================================
[Variables]
;============== TIME FORMAT ===================================================================
24-Hours %H, 12-Hours %#I
FORMAT=%H
;==============================================================================================
;============== WEATHER SETTINGS ==============================================================
How to find your location code on weather.com: 
Something at the end of the URL is your location code.
https://weather.com/fr-FR/temps/aujour/l/FRXX0076
Example: BRXX0201 for Rio de Janeiro, JAXX0085 for Tokyo or GMXX0007 for Berlin

LOCATIONCODE=FRXX0076

Celsius M, Fahrenheit F
UNIT=M
;==============================================================================================
;============== FONT SETTINGS =================================================================
Temperature and weather condition
FONT1=Roboto-Thin

Location, time and date
FONT2=Roboto-Thin
;==============================================================================================
;============== END OF VARIABLES ==============================================================





;============== STAY AWAY FROM HERE UNLESS YOU KNOW WHAT YOU'RE DOING =========================
[Image]
Meter=Image
ImageName=#@#Images\bg.png
X=0
Y=0
UpdateDivider=-1
AntiAlias=1

[Image2]
; put your image in the rootfolder/@Resources/Images and type its name underneath
Meter=Image
ImageName=#@#Images\2.png
X=0
Y=0
W=300
H=250
AntiAlias=1

[Appearance1]
StringCase=None
StringStyle=Normal
StringEffect=None
FontColor=FAFAFA
FontFace=#FONT1#
AntiAlias=1

[Appearance2]
StringCase=None
StringStyle=Normal
StringEffect=None
FontColor=434a54
FontFace=#FONT2#
AntiAlias=1

[MeasureTime]
Measure=Time
Format=#FORMAT#:%M

[MeasureDate]
Measure=Time
Format=%A, %B %#d

[MeasureWeather]
Measure=Plugin
Plugin=WebParser
UpdateRate=900
Url=http://wxdata.weather.com/wxdata/weather/local/FRXX0076?cc=*&unit=m
RegExp=(?siU).*<dnam>(.*),.*</dnam>.*<tmp>(.*)</tmp>.*<t>(.*)</t>.*

[MeasureLocation]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeather]
StringIndex=1
UpdateDivider=7200

[MeasureTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeather]
StringIndex=2

[MeasureCond]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeather]
StringIndex=3

[MeterTemp]
Meter=String
StringAlign=CenterCenter
MeasureName=MeasureTemp
MeterStyle=Appearance1
FontSize=50
X=150
Y=120
Text=%1°

[MeterCond]
Meter=String
StringAlign=CenterCenter
MeasureName=MeasureCond
MeterStyle=Appearance1
FontSize=26
X=200
Y=263

[MeterLocationTime]
Meter=String
StringAlign=CenterCenter
MeasureName=MeasureLocation
MeasureName2=MeasureTime
MeterStyle=Appearance2
FontSize=20
X=150
Y=288
Text=%1 • %2

[MeterDate]
Meter=String
StringAlign=CenterCenter
MeasureName=MeasureDate
MeterStyle=Appearance2
FontSize=9
X=150
Y=313
Thanks for your help !

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

Re: [Skin] Cloudy Problem with Paris

Post by jsmorley »

Not sure, it works for me.

I don't have your images, so those don't show of course, but all the strings seem correct for me.
1.jpg
Try setting DynamicWindowSize=1 in the [Rainmeter] section of the skin. Also try exiting Rainmeter entirely and restarting it.
You do not have the required permissions to view the files attached to this post.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: [Skin] Cloudy Problem with Paris

Post by jsmorley »

If I download that Cloudy skin from deviantART and install it as is:

https://fuckyeahlucas.deviantart.com/art/Cloudy-Rainmeter-Skin-v1-7-590741555

I get this when I change it to the Paris location code:
1.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
xbitionart
Posts: 2
Joined: February 19th, 2018, 2:54 pm

Re: [Skin] Cloudy Problem with Paris

Post by xbitionart »

jsmorley wrote:If I download that Cloudy skin from deviantART and install it as is:

https://fuckyeahlucas.deviantart.com/art/Cloudy-Rainmeter-Skin-v1-7-590741555

I get this when I change it to the Paris location code:

1.jpg
Thanks a lot it's good for me !
The text of the condition was on white ...
Really sorry i am so bad...

This is my Dekstop = > https://imgur.com/a/PksIQ

Have a nice day all :D
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: [Skin] Cloudy Problem with Paris

Post by jsmorley »

xbitionart wrote:Thanks a lot it's good for me !
The text of the condition was on white ...
Really sorry i am so bad...

This is my Dekstop = > https://imgur.com/a/PksIQ

Have a nice day all :D
You too!
User avatar
CyberTheWorm
Posts: 860
Joined: August 22nd, 2016, 11:32 pm
Location: Surrey, B.C., Canada

Re: [Skin] Cloudy Problem with Paris

Post by CyberTheWorm »

Code: Select all

ContextTitle6=Change to Fahrenheit
ConTextAction6=[!WriteKeyValue Variables UNIT "F"][!Refresh]
You should be using i for the unit i = imperial

Also sometime that url either does not have all the data, my skins are sometimes missing information.

Also be aware that the

Code: Select all

<t>(.*)</t>
has 2 different ones, day and night so it might be reading the day temp at night which is blank
The only source of knowledge is experience. Albert Einstein
Deviant Art Page
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: [Skin] Cloudy Problem with Paris

Post by jsmorley »

CyberTheWorm wrote:

Code: Select all

ContextTitle6=Change to Fahrenheit
ConTextAction6=[!WriteKeyValue Variables UNIT "F"][!Refresh]
You should be using i for the unit i = imperial

Also sometime that url either does not have all the data, my skins are sometimes missing information.

Also be aware that the

Code: Select all

<t>(.*)</t>
has 2 different ones, day and night so it might be reading the day temp at night which is blank
She is good. She was using the skin with a different / no image background, and the white text was ending up on a white background and was just invisible.

As to the RegExp, it will get the "first" instance of <t>(.*)</t>, which will be the one for "current conditions" and is correct. Only the "forecast" for "today" has the day/night issue.

As an aside:

Your point on the "units" code is correct. However it really doesn't matter. As long as you use m or M for "metric", than ANYTHING other than that you use will default to "imperial", so using the likely more intuitive F or f for "fahrenheit" is fine. Not technically correct, no, but in my view, the priority should always be solving the problem, and any "nitpicking", while useful in the long term, should always be an "aside" at the end of the response. Do we want to suggest that any part of the answer to her problem is that she is using "f" instead of "i"?

Of course, I'm just nitpicking now... ;-)