It is currently April 3rd, 2020, 11:11 am

Enigma WeatherJSON Patch

Post your work-in-progress and completed skins to share and discuss.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3852
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Enigma WeatherJSON Patch

Post by eclectic-tech »

Enigma WeatherJSON Patch

"Why Enigma?!" ...

Yes it is "ancient", the readers died when Google changed, but I think many people still use pieces/parts, and I received a request to fix the weather.

Thanks to JSMorley's Weather JSON includes, and setting up a location search, I was able to update all Enigma's Weather skins and WeatherCodeFinder.
enigmaweathercodefinder.png

The WeatherCode is set to New York, NY by default (WebParser will clog the log with error messages if location is not preset!)
The default language is en-US. You can change the weather language and labels using "Enigma\Options\Options.ini", "Weather" tab.
EnigmaOptions.png

ABOUT
This patch requires Rainmeter latest stable release V 4.3 and Win 7 or later.

It will replace all modified files (See list in 'Spoiler') and add WeatherJSON related files.

Note that "@User\Options.inc" and "@User\DeaultOptions.inc" are replaced, so you may want to make backups of those before adding the patch.

Only the files listed in the Spoiler are changed by adding the patch.


I include changes to several measures I found updated by Smurfier on GitHub (Run.lua, Switcher.inc) and adding volume scroll changeability.

For a list of changed files in located in "Enigma\WeatherUpdate.txt" or open the 'Spoiler'.
Updated
Enigma\Options\WeatherCodeFinder\WeatherCodeFinder.ini
Enigma\Options\Options.ini
Enigma\Options\World.inc

Enigma\Sidebar\Clock\Clock.ini
Enigma\Sidebar\Clock\Clock-BigLeft.ini
Enigma\Sidebar\Clock\Clock-BigRight.ini
Enigma\Sidebar\Clock\Clock-LittleLeft.ini
Enigma\Sidebar\Clock\Clock-LittleRight.ini
Enigma\Sidebar\Volume\Volume.ini
Enigma\Sidebar\Weather\Weather.inc
Enigma\Sidebar\Weather\Weather.ini
Enigma\Sidebar\Weather\Weather-Extended.ini
Enigma\Sidebar\World\World.inc
Enigma\Sidebar\World\World1\World1.ini
Enigma\Sidebar\World\World2\World2.ini
Enigma\Sidebar\World\World3\World3.ini

Enigma\Taskbar\Weather\Weather.inc
Enigma\Taskbar\Weather\Weather.ini
Enigma\Taskbar\Weather\Weather-Icon.ini
Enigma\Taskbar\Weather\Weather-IconOnly.ini
Enigma\Taskbar\Weather\Weather-IconRight.ini
Enigma\Taskbar\Weather\Weather-Mini.ini
Enigma\Taskbar\Weather\Weather-Tiny.ini
Enigma\Taskbar\Weather\Location\Location.ini
Enigma\Taskbar\Weather\Location\Location-Icon.ini
Enigma\Taskbar\Weather\Location\Location-IconRight.ini
Enigma\Taskbar\Weather\Location\Location-Mini.ini
Enigma\Taskbar\Weather\Location\Location-Tiny.ini
Enigma\Taskbar\Weather\Moon\Moon.inc
Enigma\Taskbar\Weather\Moon\Moon.ini
Enigma\Taskbar\Weather\Moon\Moon-Icon.ini
Enigma\Taskbar\Weather\Moon\Moon-IconOnly.ini
Enigma\Taskbar\Weather\Moon\Moon-IconRight.ini
Enigma\Taskbar\Weather\Moon\Moon-Mini.ini
Enigma\Taskbar\Weather\Moon\Moon-Tiny.ini
Enigma\Taskbar\Weather\Sunrise\Sunrise.ini
Enigma\Taskbar\Weather\Sunrise\Sunrise-Icon.ini
Enigma\Taskbar\Weather\Sunrise\Sunrise-IconRight.ini
Enigma\Taskbar\Weather\Sunrise\Sunrise-Mini.ini
Enigma\Taskbar\Weather\Sunrise\Sunrise-Tiny.ini
Enigma\Taskbar\Weather\Sunset\Sunset.ini
Enigma\Taskbar\Weather\Sunset\Sunset-Icon.ini
Enigma\Taskbar\Weather\Sunset\Sunset-IconRight.ini
Enigma\Taskbar\Weather\Sunset\Sunset-Mini.ini
Enigma\Taskbar\Weather\Sunset\Sunset-Tiny.ini
Enigma\Taskbar\Weather\WeatherToday\WeatherToday.inc
Enigma\Taskbar\Weather\WeatherToday\WeatherToday.ini
Enigma\Taskbar\Weather\WeatherToday\WeatherToday-Icon.ini
Enigma\Taskbar\Weather\WeatherToday\WeatherToday-IconOnly.ini
Enigma\Taskbar\Weather\WeatherToday\WeatherToday-IconRight.ini
Enigma\Taskbar\Weather\WeatherToday\WeatherToday-Mini.ini
Enigma\Taskbar\Weather\WeatherToday\WeatherToday-Tiny.ini
Enigma\Taskbar\Weather\WeatherTomorrow\WeatherTomorrow.inc
Enigma\Taskbar\Weather\WeatherTomorrow\WeatherTomorrow.ini
Enigma\Taskbar\Weather\WeatherTomorrow\WeatherTomorrow-Icon.ini
Enigma\Taskbar\Weather\WeatherTomorrow\WeatherTomorrow-IconOnly.ini
Enigma\Taskbar\Weather\WeatherTomorrow\WeatherTomorrow-IconRight.ini
Enigma\Taskbar\Weather\WeatherTomorrow\WeatherTomorrow-Mini.ini
Enigma\Taskbar\Weather\WeatherTomorrow\WeatherTomorrow-Tiny.ini
Enigma\Taskbar\_Extras\Clock+Location\Clock+Location.ini
Enigma\Taskbar\_Extras\Clock+Location\Clock+Location-Mini.ini
Enigma\Taskbar\_Extras\Clock+Location\Clock+Location-Tiny.ini
Enigma\Taskbar\_Extras\TrayClock\TrayClock.ini
Enigma\Taskbar\Volume\Volume.inc
Enigma\Taskbar\World\World\World.inc
Enigma\Taskbar\World\World1\World1.ini
Enigma\Taskbar\World\World1\World1-Icon.ini
Enigma\Taskbar\World\World1\World1-IconOnly.ini
Enigma\Taskbar\World\World1\World1-IconRight.ini
Enigma\Taskbar\World\World1\World1-Mini.ini
Enigma\Taskbar\World\World1\World1-Tiny.ini
Enigma\Taskbar\World\World2\World2.ini
Enigma\Taskbar\World\World2\World2-Icon.ini
Enigma\Taskbar\World\World2\World2-IconOnly.ini
Enigma\Taskbar\World\World2\World2-IconRight.ini
Enigma\Taskbar\World\World2\World2-Mini.ini
Enigma\Taskbar\World\World2\World2-Tiny.ini
Enigma\Taskbar\World\World3\World3.ini
Enigma\Taskbar\World\World3\World3-Icon.ini
Enigma\Taskbar\World\World3\World3-IconOnly.ini
Enigma\Taskbar\World\World3\World3-IconRight.ini
Enigma\Taskbar\World\World3\World3-Mini.ini
Enigma\Taskbar\World\World3\World3-Tiny.ini

Enigma\@Resources\User\Options.inc
Enigma\@Resources\User\DefaultOptions.inc
Enigma\@Resources\Measures\Music.inc
Enigma\@Resources\Measures\Run.lua
Enigma\@Resources\Measures\Switcher.inc

Added
Enigma\@Resources\MeasureNamesReference.txt
Enigma\@Resources\WeatherComJSONLanguage.inc
Enigma\@Resources\WeatherComJSONMeasures.inc
Enigma\@Resources\WeatherComJSONMoon.inc
Enigma\@Resources\WeatherComJSONPollen.inc
Enigma\@Resources\WeatherComJSONVariables.inc
Enigma\@Resources\Fonts\Font Awesome 5 Free-Solid-900.otf
Enigma\@Resources\Sounds\Copy.wav

Not Used

Enigma\@Resources\Measures\YahooWeather.inc
You need to have the latest version of Enigma installed to use this patch.
Get that here: Kaelri's Enigma Github page
You do not have the required permissions to view the files attached to this post.
Gregory2001
Posts: 61
Joined: May 28th, 2010, 2:29 pm

Re: Enigma WeatherJSON Patch

Post by Gregory2001 »

Because I had to change from Windows 7 to 10 I have lost my Enigma. After re-downloading, it says there are no meters contained within. Can anybody help? Thanks.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3852
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Enigma WeatherJSON Patch

Post by eclectic-tech »

Gregory2001 wrote:
March 16th, 2020, 2:40 pm
Because I had to change from Windows 7 to 10 I have lost my Enigma. After re-downloading, it says there are no meters contained within. Can anybody help? Thanks.
The download from Kaelri's page does not contain a skin installer, it is a zip-compressed directory of folders and files.
To install the Enigma skins, you need to follow the steps below:

From Kaelri's GitHub page, click the "Clone or download" button and choose "Download ZIP". The downloaded file is named 'Enigma-master.zip".
enigmadownload.png

Extract the files from Enigma-master.zip, you will see it contains several folders and files
(it does not contain a rmskin install file; you must manually install the skin package)
enigmazip.png
To install Enigma, copy the "Skins" folder from "Enigma-master"to your Rainmeter Skins folder (usually "Documents\{UserName}\Rainmeter").

"Refresh All" or restart Rainmeter.

If you did this correctly, you should now see "Enigma" in your list of skins.

Now you can download and install the WeatherJSON patch rmskin to update the weather skins.
You do not have the required permissions to view the files attached to this post.
Gregory2001
Posts: 61
Joined: May 28th, 2010, 2:29 pm

Re: Enigma WeatherJSON Patch

Post by Gregory2001 »

Thanks but I'm only getting ini files contained in the folders. I'm not sure what I'm doing wrong.
User avatar
jsmorley
Developer
Posts: 20433
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Enigma WeatherJSON Patch

Post by jsmorley »

1.jpg

2.jpg

3.jpg

4.jpg

5.jpg

6.jpg

7.jpg

8.jpg

9.jpg
You do not have the required permissions to view the files attached to this post.
Gregory2001
Posts: 61
Joined: May 28th, 2010, 2:29 pm

Re: Enigma WeatherJSON Patch

Post by Gregory2001 »

This is really looking good. I finally have the Taskbar weather working again. One question::::: - It looks like Day 2 and Day 3 are showing average temps instead of high and/or low. Can I fix this? Thanks again.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3852
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Enigma WeatherJSON Patch

Post by eclectic-tech »

Gregory2001 wrote:
March 17th, 2020, 9:55 pm
This is really looking good. I finally have the Taskbar weather working again. One question::::: - It looks like Day 2 and Day 3 are showing average temps instead of high and/or low. Can I fix this? Thanks again.
Enigma has always calculated the average temperatures for the next days...

For sidebar weather, you are welcome to edit "Enigma\Sidebar\Weather\Weather.inc" and change the "MeasureName=..." to a different value in sections [Temp2] and [Temp3}. The skin was designed to show 1 value and a "degree" symbol, so you may need to make more changes if you want more than 1 temp displayed.

For taskbar weather, you would need to edit the various weather include files in each style of taskbar weather skin and change the "MeasureNames=" from 'average' to your desired display value.

Sadly, nothing is simple when editing Enigma due to the multiple inclusion files used... :uhuh:
Gregory2001
Posts: 61
Joined: May 28th, 2010, 2:29 pm

Re: Enigma WeatherJSON Patch

Post by Gregory2001 »

It looks like it's only accepting "average". Using "high" and/or "low" doesn't work. But it's okay. I won't quibble about that. Thanks again.
Gregory2001
Posts: 61
Joined: May 28th, 2010, 2:29 pm

Re: Enigma WeatherJSON Patch

Post by Gregory2001 »

Is there a trick to keeping skins on top of the sidebar/taskbar? Thanks.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3852
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Enigma WeatherJSON Patch

Post by eclectic-tech »

Gregory2001 wrote:
March 18th, 2020, 10:45 pm
Is there a trick to keeping skins on top of the sidebar/taskbar? Thanks.
What skin(s) are you talking about?

Enigma skins are designed and grouped to work with sidebars and taskbars... skins from other authors may work if modified to belong to one of Enigma's skin groups.