It is currently May 3rd, 2024, 4:06 pm

Transformers Rainmeter Skin [by SparkShredder]

Get help with creating, editing & fixing problems with skins
SparkShredder
Posts: 50
Joined: November 17th, 2017, 12:00 pm

Re: Transformers Rainmeter Skin [by SparkShredder]

Post by SparkShredder »

Well, it has nothing do a such serious work. It will used to briefly say
"Landing Location : ____" for a sec or two. and never seen again!

First i thought of using Calc,Random,Substitute for a name of a random location.
But thought, if location turns to be more precise as that of User, it would be better. Although it'll be shown for a sec during boot sequence.
SparkShredder
Posts: 50
Joined: November 17th, 2017, 12:00 pm

Re: Transformers Rainmeter Skin [by SparkShredder]

Post by SparkShredder »

kyriakos876 wrote: Try that and pick how accurate you want to be. You can be as accurate as country, region or city.

When it comes to getting the location offline, I don't think that's possible.
Okay, I may use it an Once-in-a-Lifetime measure, and when user will open the skin for first time.
I can get the location, and make a permanent variable with !Writekeyvalue and it would be used offline.
SparkShredder
Posts: 50
Joined: November 17th, 2017, 12:00 pm

Re: Transformers Rainmeter Skin [by SparkShredder]

Post by SparkShredder »

@kyriakos876
It's showing this error
RegExp matching error (-1) (Cybertronians\startup.ini - [MeasureIP])
User avatar
balala
Rainmeter Sage
Posts: 16196
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Transformers Rainmeter Skin [by SparkShredder]

Post by balala »

SparkShredder wrote:@kyriakos876
It's showing this error
RegExp matching error (-1) (Cybertronians\startup.ini - [MeasureIP])
Try to restart Rainmeter.
SparkShredder
Posts: 50
Joined: November 17th, 2017, 12:00 pm

Re: Transformers Rainmeter Skin [by SparkShredder]

Post by SparkShredder »

balala wrote:Try to restart Rainmeter.
Result: Negative
User avatar
balala
Rainmeter Sage
Posts: 16196
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Transformers Rainmeter Skin [by SparkShredder]

Post by balala »

SparkShredder wrote:Result: Negative
Are you completely sure, that you have closed and restarted Rainmeter, not just did a Refresh all? I'm asking this, because kyriakos876's skin is working for me, but there is a small issue with WebParser: https://forum.rainmeter.net/viewtopic.php?p=97736#p97736
User avatar
kyriakos876
Posts: 919
Joined: January 30th, 2017, 2:01 am
Location: Greece

Re: Transformers Rainmeter Skin [by SparkShredder]

Post by kyriakos876 »

SparkShredder wrote:Result: Negative
Did you modify the code I suggested? If so, post it below. If not, it should work, at least for me it works.

EDIT: Consider balala's comment above^
SparkShredder
Posts: 50
Joined: November 17th, 2017, 12:00 pm

Re: Transformers Rainmeter Skin [by SparkShredder]

Post by SparkShredder »

kyriakos876 wrote:Did you modify the code I suggested? If so, post it below. If not, it should work, at least for me it works.

EDIT: Consider balala's comment above^
It's strange: when it's just

Code: Select all

(?siU)<td><span class="country_name">(.*)</span></td>
It works, but when another more index is added it fails
and even if you just replace "country_code" with "region","city","lat","ip"
it fails.
Like it only works for country_name
SparkShredder
Posts: 50
Joined: November 17th, 2017, 12:00 pm

Re: Transformers Rainmeter Skin [by SparkShredder]

Post by SparkShredder »

My bad: got "region_name" to "region" only. It messes up everything
Thanks a lot!
User avatar
kyriakos876
Posts: 919
Joined: January 30th, 2017, 2:01 am
Location: Greece

Re: Transformers Rainmeter Skin [by SparkShredder]

Post by kyriakos876 »

SparkShredder wrote:My bad: got "region_name" to "region" only. It messes up everything
Thanks a lot!
Oh okay, that's what I was going to comment... Remember it's

Code: Select all

country_name
region_name
city