It is currently October 13th, 2019, 11:57 pm

Challange for the PRO

Help with creating, editing & fixing problems with skins
User avatar
jsmorley
Developer
Posts: 19543
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Challange for the PRO

jsmorley » October 11th, 2019, 8:06 pm

(?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: 16
Joined: December 5th, 2017, 5:58 pm

Re: Challange for the PRO

nikko » October 11th, 2019, 8:52 pm

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

Re: Challange for the PRO

jsmorley » October 11th, 2019, 9:40 pm

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: 23
Joined: October 4th, 2019, 2:46 pm

Re: Challange for the PRO

JamX » October 11th, 2019, 11:01 pm

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: 8799
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Challange for the PRO

balala » Yesterday, 6:13 am

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: 23
Joined: October 4th, 2019, 2:46 pm

Re: Challange for the PRO

JamX » Yesterday, 8:59 am

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.
User avatar
balala
Rainmeter Sage
Posts: 8799
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Challange for the PRO

balala » Yesterday, 9:50 am

JamX wrote:
Yesterday, 8:59 am
When you HOVER over the "knots" data (17 kts) the windfinder data will expand to
Question is if you want to get the speeds into kts or would you like them converted to km/s?
User avatar
JamX
Posts: 23
Joined: October 4th, 2019, 2:46 pm

Re: Challange for the PRO

JamX » Yesterday, 9:53 am

balala wrote:
Yesterday, 9:50 am
Question is if you want to get the speeds into kts or would you like them converted to km/s?
Let them be in KNOTS.
Sailors, windsurfers and kiters do not use km/h
User avatar
balala
Rainmeter Sage
Posts: 8799
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Challange for the PRO

balala » Yesterday, 10:02 am

JamX wrote:
Yesterday, 9:53 am
Let them be in KNOTS.
Sailors, windsurfers and kiters do not use km/h
Ok, as you wish. Easier for me so.