It is currently January 26th, 2021, 10:13 pm

Google Weather (JD Edition) by Jelle Dekkers (Original by fivetwofoureight)

Weather skins
User avatar
JelleDekkers
Posts: 83
Joined: September 27th, 2017, 6:32 pm

Google Weather (JD Edition) by Jelle Dekkers (Original by fivetwofoureight)

Post by JelleDekkers »

Image

So I came across this skin on DeviantArt, and I thought about making an updated version, seeing how the comment section is complaining about the skin not working anymore. So, naturally, I did. Aside from the layout (it was quite big) and weather provider issues of the original, I wanted to have more than just two colors for the skin. So with this one, you can have any color and the skin will choose an appropriate text color based on that. Hovering over the forecast temperature will show you the minimum temperature for that day, by the way. The weather provider used here is Weather.com's JSON API and Nominatim to determine the coordinates for the given location.

More information about this skin can be found here.
You do not have the required permissions to view the files attached to this post.
Last edited by JelleDekkers on December 5th, 2020, 12:20 pm, edited 2 times in total.
ms310
Posts: 224
Joined: April 1st, 2015, 7:16 am

Re: Google Weather (JD Edition) by Jelle Dekkers (Original by fivetwofoureight)

Post by ms310 »

For me the degree symbols don't appear.
2020-12-02_10h35_55.png
You do not have the required permissions to view the files attached to this post.
User avatar
jsmorley
Developer
Posts: 21470
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Google Weather (JD Edition) by Jelle Dekkers (Original by fivetwofoureight)

Post by jsmorley »

While it's fine for me, I can't promise that it will work everywhere in the world. The skin .ini file should really be encoded as UTF-16 LE, and not ANSI. All Rainmeter skin .ini and .inc files should really be encoded as UTF-16 LE Unicode.
User avatar
balala
Rainmeter Sage
Posts: 12112
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Google Weather (JD Edition) by Jelle Dekkers (Original by fivetwofoureight)

Post by balala »

Works here as well (Eastern Europe).
User avatar
JelleDekkers
Posts: 83
Joined: September 27th, 2017, 6:32 pm

Re: Google Weather (JD Edition) by Jelle Dekkers (Original by fivetwofoureight)

Post by JelleDekkers »

ms310 wrote: December 2nd, 2020, 1:37 am For me the degree symbols don't appear.

2020-12-02_10h35_55.png
I've never seen this happen before, but I'll fix it.
User avatar
balala
Rainmeter Sage
Posts: 12112
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Google Weather (JD Edition) by Jelle Dekkers (Original by fivetwofoureight)

Post by balala »

JelleDekkers wrote: December 2nd, 2020, 9:01 am I've never seen this happen before, but I'll fix it.
This probably is caused by what jsmorley described in his above reply (the wrong encoding of files).
There is an extremely easy solution. Beside reencoding the files, replace the ° signs in the Substitute options of WebParser measures of both files, @Resources\WeatherParser.inc and @Resources\WeatherParserDaily.inc, with [\x00B0]. So for instance the Substitute="#Substitute#", "(.+)":"\1°", "":"--" option of the [mCurrentTemperature] measure of the @Resources\WeatherParser.inc file should be replaced by Substitute="#Substitute#", "(.+)":"\1[\x00B0]", "":"--".
Probably the reencoding should be enough, however I still suggest to replace the signs, as described above.
User avatar
JelleDekkers
Posts: 83
Joined: September 27th, 2017, 6:32 pm

Re: Google Weather (JD Edition) by Jelle Dekkers (Original by fivetwofoureight)

Post by JelleDekkers »

balala wrote: December 2nd, 2020, 9:42 am This probably is caused by what jsmorley described in his above reply (the wrong encoding of files).
There is an extremely easy solution. Beside reencoding the files, replace the ° signs in the Substitute options of WebParser measures of both files, @Resources\WeatherParser.inc and @Resources\WeatherParserDaily.inc, with [\x00B0]. So for instance the Substitute="#Substitute#", "(.+)":"\1°", "":"--" option of the [mCurrentTemperature] measure of the @Resources\WeatherParser.inc file should be replaced by Substitute="#Substitute#", "(.+)":"\1[\x00B0]", "":"--".
Probably the reencoding should be enough, however I still suggest to replace the signs, as described above.
I've just updated all of my (weather) skins to use UCS-2 LE BOM :)
ms310
Posts: 224
Joined: April 1st, 2015, 7:16 am

Re: Google Weather (JD Edition) by Jelle Dekkers (Original by fivetwofoureight)

Post by ms310 »

JelleDekkers wrote: December 2nd, 2020, 9:45 am I've just updated all of my (weather) skins to use UCS-2 LE BOM :)
Thank you!