It is currently July 7th, 2020, 3:03 am

7DayWeatherCom

Post your work-in-progress and completed skins to share and discuss.
TallShultzy
Posts: 39
Joined: March 30th, 2016, 5:02 pm

7DayWeatherCom

Post by TallShultzy »

I've enhanced Jmorley's Weather.com skin (only the Weather.com.ini) to include 7 day forecasts and the location name and country.
I've comment all the changes and additions.

v1.1 change with Admin District added.
You do not have the required permissions to view the files attached to this post.
Last edited by TallShultzy on June 16th, 2020, 2:16 pm, edited 1 time in total.
User avatar
jsmorley
Developer
Posts: 20995
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: 7DayWeatherCom

Post by jsmorley »

Very nice...

I'm currently working on extending WeatherComJSONMeasures.inc to be for the entire 15 days included in the JSON from the site, so you will have some further work in the next week or so... :p
TallShultzy
Posts: 39
Joined: March 30th, 2016, 5:02 pm

Re: 7DayWeatherCom

Post by TallShultzy »

Thanks but it's down to you really.

I might if there is enough demand.
The trouble is the skin would requires a bigger area the more you put on it.

PS how long does it take to upload the skin?
Last edited by TallShultzy on June 15th, 2020, 1:43 pm, edited 1 time in total.
User avatar
jsmorley
Developer
Posts: 20995
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: 7DayWeatherCom

Post by jsmorley »

The problem I found with including the location information in the display of the skin is one of real-estate.

There are three fields that are relevant, but not always.

1) The Display Name, which is most often the "city"
2) The Administrative Region, which in the US is important to get the "state", but my not be terribly interesting in other countries
3) The Country Name or Country Code

The problem is one how to best format and display

Fort Hunt, Virginia, United States of America
Birmingham, United Kingdom

Since in the first case, all three fields are of some interest, whereas in the second case, only the city and country are particularly relevant.
TallShultzy
Posts: 39
Joined: March 30th, 2016, 5:02 pm

Re: 7DayWeatherCom

Post by TallShultzy »

I suppose you could reduce United States of America to USA or even US.
User avatar
jsmorley
Developer
Posts: 20995
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: 7DayWeatherCom

Post by jsmorley »

TallShultzy wrote:
June 15th, 2020, 1:44 pm
I suppose you could reduce United States of America to USA or even US.
Yeah, but the real issue is detecting that it should use all three fields, or just two.

I'm no geography expert, but I expect that all three are of some interest in some other countries as well.
User avatar
jsmorley
Developer
Posts: 20995
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: 7DayWeatherCom

Post by jsmorley »

For instance, Birmingham doesn't even include any Administrative Region. It's just null.

I don't want to display Birmingham, , United Kingdom

On the other hand

Springfield, United States of America

Is really meaningless. There is a city or town of "Springfield" in probably every state in the union...
User avatar
jsmorley
Developer
Posts: 20995
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: 7DayWeatherCom

Post by jsmorley »

TallShultzy wrote:
June 15th, 2020, 1:33 pm
PS how long does it take to upload the skin?
Not sure I know what you mean. Upload it where?
User avatar
jsmorley
Developer
Posts: 20995
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: 7DayWeatherCom

Post by jsmorley »

Anyway, it all comes down to skin design. If you want to put in the effort, you could use IfMatch on the Administrative Region, and take some action if it is null. I was just explaining why I was hesitant to include it in my skin.

I just stuck it in the context menu:

Code: Select all

ContextTitle=[@LocationName], [@LocationAdminDistrict], [@LocationCountry]
ContextAction=https://www.google.com/maps/search/[@LocationLatitude],[@LocationLongitude]
Which is easy enough to edit if you want.
TallShultzy
Posts: 39
Joined: March 30th, 2016, 5:02 pm

Re: 7DayWeatherCom

Post by TallShultzy »

I wasn't sure whether the skin had to be vetted before it was released.
Is the Administrative Region the state in the US?
The "null" could be tested

The screen could show
Birmingham
United Kingdom
or
Birmingham
Alabama, USA