It is currently February 22nd, 2020, 6:07 pm

Challange for the PRO

Help with creating, editing & fixing problems with skins
User avatar
jsmorley
Developer
Posts: 20259
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: 17
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: 20259
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: 89
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: 9749
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: 89
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.
User avatar
balala
Rainmeter Sage
Posts: 9749
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Challange for the PRO

Post by balala »

JamX wrote:
October 12th, 2019, 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: 89
Joined: October 4th, 2019, 2:46 pm

Re: Challange for the PRO

Post by JamX »

balala wrote:
October 12th, 2019, 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: 9749
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Challange for the PRO

Post by balala »

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

Re: Challange for the PRO

Post by balala »

Here is the next version. I added the hourly wind information to the main skin. For now, only the information of the current day are available. They are shown when you're hovering the mouse over the windspeed of today (the first kts in the list).
Please test the skin and let me know what do you think about it. If everything is ok, I'll continue to add the information of the upcoming days as well.
You do not have the required permissions to view the files attached to this post.