It is currently March 29th, 2024, 4:54 am

Challange for the PRO

Get help with creating, editing & fixing problems with skins
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Challange for the PRO

Post by balala »

JamX wrote: October 10th, 2019, 9:35 pm Can't wait to see next development.
What is the next step? I suppose we might have to add the upcoming days. Am I right?
User avatar
JamX
Posts: 207
Joined: October 4th, 2019, 2:46 pm

Re: Challange for the PRO

Post by JamX »

balala wrote: October 11th, 2019, 3:29 pm What is the next step? I suppose we might have to add the upcoming days. Am I right?
Correct, a forecast for the upcoming 3 days would be appreciated.
(so in total 4 days, the current day and a 3 days forecast)

Some color gradient based on the windspeed in knots would also be nice.
Like on the site you also see a gradient from purple - dark bleu to green - yellow -orange -red

PS. as from 19:00 my time, I think it will be 20:00 in Romania, I'll be out of house so I can not test or evaluate your code.
I'll do it tomorrow morning or when you are done coding.

Thanks in advance..
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Challange for the PRO

Post by balala »

JamX wrote: October 10th, 2019, 5:56 pm Precipitation, air pressure, temperature and weathericons are not really needed.(is just a plus)
So only date/time, wind gusts, wind speed and wind direction.
Are you absolutely sure you don't need the temperature and air pression? Because these are added now, but if I remove them, later will be hard enough to add them back. So, may I remove them? But make sure, not to have add them back, please.
nikko
Posts: 44
Joined: December 5th, 2017, 5:58 pm

Re: Challange for the PRO

Post by nikko »

can someone explaine what this do in detail please?
Variable1=(?siU)(?(?=.*</div></span><p class="today_nowcard-).*timestamp"><span>(.*)<!----> </span> <span>(.*)</span>).*
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Challange for the PRO

Post by jsmorley »

(?siU)(?(?=.*</div></span><p class="today_nowcard-).*timestamp"><span>(.*)<!----> </span> <span>(.*)</span>).*

Specifically it is saying:

(?siU) : Set some directives for the expression, in this case treat white space as a normal character, be case insensitive, and be Ungreedy.

(? : Start an assertion.

(?= : start the question, if I lookahead, does the following exist?

.*</div></span><p class="today_nowcard-

nowcard-) : End the question.

If the answer to the question is "yes", then:

.*timestamp"><span>(.*)<!----> </span> <span>(.*)</span>

(capture) those two bits of information into StringIndex 1 and StringIndex 2.

</span>) : End the lookahead assertion.

.* : Skip everything after this. (this is not really needed in this regular expression.
nikko
Posts: 44
Joined: December 5th, 2017, 5:58 pm

Re: Challange for the PRO

Post by nikko »

ok,what this do <!----> ?
thanks you for answer.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Challange for the PRO

Post by jsmorley »

nikko wrote: October 11th, 2019, 8:52 pm ok,what this do <!----> ?
thanks you for answer.
That has nothing to do with the regular expression, it is just part of the HTML being parsed, and represents an empty HTML comment. Comments in HTML start with <!-- and end with -->. There may be something between them in the original source code that is not being output.
User avatar
JamX
Posts: 207
Joined: October 4th, 2019, 2:46 pm

Re: Challange for the PRO

Post by JamX »

balala wrote: October 11th, 2019, 5:21 pm Are you absolutely sure you don't need the temperature and air pression? Because these are added now, but if I remove them, later will be hard enough to add them back. So, may I remove them? But make sure, not to have add them back, please.
Hi, balala,

That's depending, I think, on the amount of items webparser can retrieve fron the site.
If you think for 4 days in total with all measurements, will not accede the maximum amount please continue.
If the maximum value will be acceded delete the precipitation and the air pressure.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Challange for the PRO

Post by balala »

JamX wrote: October 11th, 2019, 11:01 pm That's depending, I think, on the amount of items webparser can retrieve fron the site.
If you think for 4 days in total with all measurements, will not accede the maximum amount please continue.
If the maximum value will be acceded delete the precipitation and the air pressure.
Ok, let's see.
User avatar
JamX
Posts: 207
Joined: October 4th, 2019, 2:46 pm

Re: Challange for the PRO

Post by JamX »

This is part of the skin I want to integrate the windfinder data into
Capture.JPG
When you HOVER over the "knots" data (17 kts) the windfinder data will expand to
Capture2.JPG
You do not have the required permissions to view the files attached to this post.