It is currently April 30th, 2024, 12:55 pm

Weather about to break Kaelri's Enigma skin (again)?

Get help with creating, editing & fixing problems with skins
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5407
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Weather about to break Kaelri's Enigma skin (again)?

Post by eclectic-tech »

That weather looks like the "weather.ini" not the "weather-extended.ini", but glas you got that working.

As for the World skins, I set World1 to Birmingham AL and refreshed the "Sidebar\World1\world1.ini" and it shows the correct time and weather for that location. So, it is working here.

But you have the original values for World2 and World3 however there is something else wrong because none of them are working.
The World2 and World3 skins should look like the ones in my screenshot below; the location name, time, and weather.
But all of yours are showing blank data and GMT time. :uhuh:
enigmaworldtime3.png
You do need to refresh those after making changes in the 'Option.ini"; they do not always automatically update to the new locations.

If that doesn't work, I would try setting them through the "Option.ini" skin and refresh.
After that, you may need to download a copy of the suite and reinstall it to get these working.
You do not have the required permissions to view the files attached to this post.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5407
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Weather about to break Kaelri's Enigma skin (again)?

Post by eclectic-tech »

Enigma uses 4 weather variable files to support the local and 3 world locations. If you replaced the WeatherComJSON files with the ones provided by JSMorley to correct the APIKey your local weather will work but you will need to update the APIKey value in all of those additional variable files for the World locations to display weather data.

The current Working APIKey value is: APIKey=21d8a80b3d6b444998a80b3d6b1449d3

Those files are located in Enigma\@Resources folder and named:
WeatherComJSONVariablesWorld1.inc
WeatherComJSONVariablesWorld2.inc
and WeatherComJSONVariablesWorld3.inc

EDIT: Corrected 'Variables' in the filenames :?
User avatar
abdulhakeem
Posts: 19
Joined: May 31st, 2016, 9:42 pm

Re: Weather about to break Kaelri's Enigma skin (again)?

Post by abdulhakeem »

eclectic-tech wrote: March 29th, 2023, 1:38 pm Enigma uses 4 weather variable files to support the local and 3 world locations. If you replaced the WeatherComJSON files with the ones provided by JSMorley to correct the APIKey your local weather will work but you will need to update the APIKey value in all of those additional variable files for the World locations to display weather data.

The current Working APIKey value is: APIKey=21d8a80b3d6b444998a80b3d6b1449d3

Those files are located in Enigma\@Resources folder and named:
WeatherComJSONVariablesWorld1.inc
WeatherComJSONVariablesWorld2.inc
and WeatherComJSONVariablesWorld3.inc

EDIT: Corrected 'Variables' in the filenames :?
That did the trick, thanks :thumbup: much appreciated
ayayahuasca
Posts: 4
Joined: August 16th, 2023, 11:46 pm

Re: Weather about to break Kaelri's Enigma skin (again)?

Post by ayayahuasca »

Hi! I'm having trouble getting the world clocks to display the correct times. As you can see from the image attached below they show the same time and date. Any clue as to why this is the case? I will provide codes if needed. Thank you very much.
You do not have the required permissions to view the files attached to this post.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5407
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Weather about to break Kaelri's Enigma skin (again)?

Post by eclectic-tech »

ayayahuasca wrote: August 17th, 2023, 12:10 am Hi! I'm having trouble getting the world clocks to display the correct times. As you can see from the image attached below they show the same time and date. Any clue as to why this is the case? I will provide codes if needed. Thank you very much.
No problem with my skins...
Here is the code for World3:

Code: Select all

;---------------------------------------------------------------------
; ENIGMA WORLD (3)

[Rainmeter]
Author=Kaelri
OnRefreshAction=[!EnableMeasureGroup Time][!UpdateMeasureGroup Time]

[Variables]
@include=#@#User\Options.inc
; CurrentCode=#World3WeatherCode#
; CurrentCodeLat=#World3WeatherCodeLat#
; CurrentCodeLon=#World3WeatherCodeLon#
@IncludeW2=#@#WeatherComJSONVariablesWorld3.inc
@IncludeW3=#@#WeatherComJSONMeasures.inc
@IncludeW4=#@#WeatherComJSONLanguage.inc

;---------------------------------------------------------------------
; STYLES

@include2=#@#Styles\#Stylesheet#\Options.inc
@include3=#@#Styles\#Stylesheet#\SidebarCommon.inc
@include4=#@#Styles\#Stylesheet#\SidebarWorld.inc

;---------------------------------------------------------------------
; METERS & MEASURES

@include6=#ROOTCONFIGPATH#Sidebar\World\World.inc

;---------------------------------------------------------------------
; METADATA

[Metadata]
Name=Enigma World (3)
Information=Shows the time, weather, latitude and longitude from one of your TWC Weather locations.
Version=4 Patch 1
License=Creative Commons BY-NC-SA 3.0
Did you make any changes to the 3 includes 'WeatherComJSONVariablesWorld1, 2, and 3 files'?
Those are the codes I would like to see first.
ayayahuasca
Posts: 4
Joined: August 16th, 2023, 11:46 pm

Re: Weather about to break Kaelri's Enigma skin (again)?

Post by ayayahuasca »

eclectic-tech wrote: August 17th, 2023, 3:19 am Did you make any changes to the 3 includes 'WeatherComJSONVariablesWorld1, 2, and 3 files'?
Those are the codes I would like to see first.
I have not made any changes to the 3 includes apart from changing the API keys. I've also reinstalled all inc from the Resources folder but it didn't fix it. :(
here's the code for WeatherComJSONVariablesWorld3:

Code: Select all

[Variables]

; NOTE that Location Codes like USVA0944 or other types of codes are no longer supported.

; You must use location Latitude and Longitude.

; You can right click the skin and select "Choose location" to use a litle skin I wrote.
; Simply type any search string into "Search For Location", hit Enter, then click
; the magnifying glass at the bottom left.
; Once you have found the location you want, click on the Latitude,Longitude numbers
; on the right to set that value and refresh the main weather skin.
; Click the Name of the location on the left to see the location on a map in your browser.
; 
; These values can also be found manually for your location at:
; https://nominatim.openstreetmap.org/search.php?q=Your Address Text&format=json
; Where "Your Address Text" can be pretty much anything that can zero in on the location you want.
; https://nominatim.openstreetmap.org/search.php?q=Fort Hunt, Virginia&format=json
; https://nominatim.openstreetmap.org/search.php?q=22308&format=json
; https://nominatim.openstreetmap.org/search.php?q=The White House, Washington D.C.&format=json
; Then copy the lat: and lon: values from that site and paste them below.
; Other alternative sites to get the latitude / longitude are:
; https://support.google.com/maps/answer/18539
; https://www.latlong.net/
; https://www.mapcoordinates.net

Latitude=#World3WeatherCodeLat#
Longitude=#World3WeatherCodeLon#

; Language used for string and date values returned in the data.
; If another language is desired the correct code can be found at:
; https://admin.rainmeter.net/LanguageCodes.php
; For example, French as used in France would be Language=fr-FR

;Language=en-US
;Language=fr-FR
Language=#World3WeatherCodeLanguage#

; Units of measure. This must be one of the following lower case letters:
; e		This is "Imperial", using Fahrenheit for temperatures.
; m		This is "Metric", using Celsius for temperatures.
; h		This is "Hybrid", used primarily in the UK. Celsius for temperatures, but miles for distances.

Units=#World3WeatherCodeUnit#
;Units=m
;Units=h

; How often to update the weather information. Default and recommended is 600, which would be 10 minutes.

UpdateRate=600

; Date and time formats you desire.
; See https://docs.rainmeter.net/manual/measures/time/#FormatCodes 
; For formatting codes to use.

DateFormat=%A, %B %#d, %Y
TimeFormat=%#I:%M %p

; Don't change any below here.

APIKey=21d8a80b3d6b444998a80b3d6b1449d3
UserAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0

CommonSubstitute='"':"","^null$":"","\\u002F":"/","\\u005C":"\","\\u003C":"<","\\u003E":">"
URLSite=https://api.weather.com/v3/aggcommon/v3-wx-observations-current;v3-wx-forecast-daily-15day;v3alertsHeadlines;v3-location-point?format=json&geocode=#Latitude#,#Longitude#&units=#Units#&language=#Language#&apiKey=#APIKey#
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5407
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Weather about to break Kaelri's Enigma skin (again)?

Post by eclectic-tech »

That looks fine... load the World3 skin and check the log.
What value is showing in the log for 'Enigma\Sidebar\World\World3' for @CurrentObservationTimeStamp?
enigmaworld3tz.png
The last 5 characters should be the time zone offset number. If that is missing or shows -0000, then weather.com is not providing the correct info for those locations.

Finally, let me know what 3 locations are you trying to show, and I can test for them?
You do not have the required permissions to view the files attached to this post.
ayayahuasca
Posts: 4
Joined: August 16th, 2023, 11:46 pm

Re: Weather about to break Kaelri's Enigma skin (again)?

Post by ayayahuasca »

I have checked the logs for the 3 locations and they look ok. The locations I'm trying to show are Nairn Scotland, Shinjuku, and Los Angeles.
You do not have the required permissions to view the files attached to this post.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5407
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Weather about to break Kaelri's Enigma skin (again)?

Post by eclectic-tech »

Those locations are all working after setting options and refreshing the skins.
enigmaworldtz.png
(Ignore the ??? , unrelated to the time issue)

Something may have changed when you copied the WeatherComJSON files...
A re-install of Enigma may be needed, since I am unable to duplicate the problem. :(
You do not have the required permissions to view the files attached to this post.
ayayahuasca
Posts: 4
Joined: August 16th, 2023, 11:46 pm

Re: Weather about to break Kaelri's Enigma skin (again)?

Post by ayayahuasca »

Did a fresh install and everything is properly working now. a bit tedious to set everything back up but it's worth it. thanks for the help! :D