It is currently May 3rd, 2024, 11:49 am

JS Weather

Get help with creating, editing & fixing problems with skins
Elric
Posts: 3
Joined: June 16th, 2012, 8:45 am

JS Weather

Post by Elric »

Ok I know what my weather code is seems to actually be my zipcode here in the US but I don't know where to put it in JS Weather or for that matter any other weather skin other than GNOmeter as that has a setting page that allows you to do so. Can anyone help on this? :(
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: JS Weather

Post by jsmorley »

Elric wrote:Ok I know what my weather code is seems to actually be my zipcode here in the US but I don't know where to put it in JS Weather or for that matter any other weather skin other than GNOmeter as that has a setting page that allows you to do so. Can anyone help on this? :(
In JSWeather you put it in the UserVariables.inc file in the root folder of the skin.

;Weather Variables
;To get your code:
;Go to http://weather.yahoo.com in your browser
;Put in your city, ocuntry or zip code
;You will get a URL that will look like this:
;http://weather.yahoo.com/united-states/virginia/fairfax-12766801/
;Your code will be that number at the end of the URL.
;Unit is either "f" (Fahrenheit) or "c" (Celsius). They must be
;lower case!
;If you do not want the skin to toggle between Fahrenheit and Celsius,
;change ToggleUnit to 0.
Location=12766801
Unit=f
ToggleUnit=1
Elric
Posts: 3
Joined: June 16th, 2012, 8:45 am

Re: JS Weather

Post by Elric »

Thank you that did it. I didn't know where the UserVariables.inc file was, now I understand. :thumbup: