It is currently March 29th, 2024, 12:55 pm

Problem with WeatherComCodes

Get help with creating, editing & fixing problems with skins
pbutler6
Posts: 100
Joined: April 27th, 2020, 8:10 pm

Problem with WeatherComCodes

Post by pbutler6 »

I am trying to add JSMorley's WeatherComCodes settings to my skin. I have added the WeatherComCodes folder and ini file to my skin folder and have added

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
Draggable=0
AccurateText=1
OnRefreshAction= [!HideMeterGroup RiseSetTimes]

MouseScrollDownAction=[!Refresh #CURRENTCONFIG#]
RightMouseUpAction=[!SkinCustomMenu]
ContextTitle=#ContextLocationString#
ContextAction=[https://www.google.com/maps/search/#Latitude#,#Longitude#]
ContextTitle2=[@CurrentObservationDate]
ContextAction2=[]
ContextTitle3=#ObservedAt# [@CurrentObservationTime] [@LocationTimeZoneAbbreviation]
ContextAction3=[]
ContextTitle4=----
ContextAction4=[]
ContextTitle5=#ChooseLocation#
ContextAction5=[!ActivateConfig "#CURRENTCONFIG#\WeatherComCodes" "WeatherComCodes.ini"]
ContextTitle6=----
ContextAction6=[]
ContextTitle7=#EditWeatherVariables#
ContextAction7=["#@#\WeatherComJSONVariables.inc"]
ContextTitle8=#EditTranslationVariables#
ContextAction8=["#@#\WeatherComJSONLanguage.inc"]
ContextTitle9=#EditGeneralVariables#
ContextAction9=["#@#\GeneralVariables.inc"]
ContextTitle10=----
ContextAction10=[]
ContextTitle11=#Open@ResourcesFolder#
ContextAction11=["#@#"]
ContextTitle12=----
ContextAction12=[]
ContextTitle13=#MoreActions#
ContextAction13=[!SkinMenu]
to my skin. I an getting Invalid Parameters errors when I click on Choose Location:
Screenshot 2020-09-10 094708.jpg
What am I doing wrong?
You do not have the required permissions to view the files attached to this post.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Problem with WeatherComCodes

Post by jsmorley »

You don't have things where you think you do.

Obviously #CURRENTCONFIG#\WeatherComCodes is not the correct location for where you have WeatherComCodes.ini.

Change it to:

[!Log "Current Config is: #CURRENTCONFIG#"][!ActivateConfig "#CURRENTCONFIG#\WeatherComCodes" "WeatherComCodes.ini"]

And see what #CURRENTCONFIG# actually resolves to in the log.
pbutler6
Posts: 100
Joined: April 27th, 2020, 8:10 pm

Re: Problem with WeatherComCodes

Post by pbutler6 »

I have it here:
Screenshot 2020-09-10 100225.jpg
Where should I place it?
You do not have the required permissions to view the files attached to this post.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Problem with WeatherComCodes

Post by jsmorley »

pbutler6 wrote: September 10th, 2020, 2:05 pm I have it here:Screenshot 2020-09-10 100225.jpg
Where should I place it?
Go find Sun & Moon.ini and shift-right click it. Select "Copy as path" and paste the result here.
pbutler6
Posts: 100
Joined: April 27th, 2020, 8:10 pm

Re: Problem with WeatherComCodes

Post by pbutler6 »

My ini file is at C:\Users\Peter\OneDrive - Butler\Applications\Rainmeter\Skins\Sun & Moon\Sun & Moon.ini

Weather.com.ini, which works, is at C:\Users\Peter\OneDrive - Butler\Applications\Rainmeter\Skins\Weather.com\Weather.com.ini
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Problem with WeatherComCodes

Post by jsmorley »

pbutler6 wrote: September 10th, 2020, 2:26 pm My ini file is at C:\Users\Peter\OneDrive - Butler\Applications\Rainmeter\Skins\Sun & Moon\Sun & Moon.ini

Weather.com.ini, which works, is at C:\Users\Peter\OneDrive - Butler\Applications\Rainmeter\Skins\Weather.com\Weather.com.ini
And which file has that context menu in it?
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Problem with WeatherComCodes

Post by jsmorley »

The long and the short of it is that if that context menu item is in:

C:\Users\Peter\OneDrive - Butler\Applications\Rainmeter\Skins\Sun & Moon\Sun & Moon.ini

Then you need to have the folder WeatherComCodes located at:

C:\Users\Peter\OneDrive - Butler\Applications\Rainmeter\Skins\Sun & Moon\WeatherComCodes\

and inside that folder you need to have:

WeatherComCodes.ini

So:

C:\Users\Peter\OneDrive - Butler\Applications\Rainmeter\Skins\Sun & Moon\WeatherComCodes\WeatherComCodes.ini

Be very sure that that file is ACTUALLY WeatherComCodes.ini and not WeatherComCodes.ini.txt. I can't be sure because you have that horrid default setting of "Hide extensions for known file types" turned on. I'd be very, very tempted to change that:


1.jpg
You do not have the required permissions to view the files attached to this post.
pbutler6
Posts: 100
Joined: April 27th, 2020, 8:10 pm

Re: Problem with WeatherComCodes

Post by pbutler6 »

My WeatherComCodes.ini files is at C:\Users\Peter\OneDrive - Butler\Applications\Rainmeter\Skins\Sun & Moon\WeatherComCodes\WeatherComCodes.ini

I copied the [Rainmeter] context code from Weather.com.ini and pasted it in Sun & Moon.ini. I copies the WeatherComCodes folder from the Weather.com folder to the Sun & Moon folder.

I notice that my Rainmeter file contains:
Screenshot 2020-09-10 104224.jpg
Could this be the problem?
You do not have the required permissions to view the files attached to this post.
pbutler6
Posts: 100
Joined: April 27th, 2020, 8:10 pm

Re: Problem with WeatherComCodes

Post by pbutler6 »

Screenshot 2020-09-10 104855.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Problem with WeatherComCodes

Post by jsmorley »

pbutler6 wrote: September 10th, 2020, 2:47 pm My WeatherComCodes.ini files is at C:\Users\Peter\OneDrive - Butler\Applications\Rainmeter\Skins\Sun & Moon\WeatherComCodes\WeatherComCodes.ini

I copied the [Rainmeter] context code from Weather.com.ini and pasted it in Sun & Moon.ini. I copies the WeatherComCodes folder from the Weather.com folder to the Sun & Moon folder.

I notice that my Rainmeter file contains:Screenshot 2020-09-10 104224.jpg

Could this be the problem?
Sure. What is the folder "Settings" all about? I see no reference to that at all in any of our discussion.