Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

bobright

macrumors 601
Original poster
Jun 29, 2010
4,817
34
So I downloaded this LS theme from here and to configure to your location it states to do this:
To configure your weather, open LockBackground.html and go to line 142
Set your location, C or F and other options, save and copy.

I have the Lockbackground.html open here can somebody please tell me where I put my location at? I don't understand it theming is still kind of new to me. It looks like it should but says Rotterdam.
 

Attachments

  • Screen Shot 2013-02-13 at 1.34.47 AM.png
    Screen Shot 2013-02-13 at 1.34.47 AM.png
    325.5 KB · Views: 173
Download an application called TextWrangler and then use it to open the file.
Go to weather.com and then search your city, and on the URL, copy the location code at the end (eg USNY0996 for NY) and replace the similar code in line 142.
 
Download an application called TextWrangler and then use it to open the file.
Go to weather.com and then search your city, and on the URL, copy the location code at the end (eg USNY0996 for NY) and replace the similar code in line 142.
I managed to do it via iFile thanks. The thing that I can't do though is add AM/PM do you know how to do that? It tells me to remove /*. Thing is it was removed already by default and it still doesn't show PM.:(

<!-- Remove the /* from under this line to display am or pm after the 12 hours clock -->

// Choose either "AM" or "PM" as appropriate
var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM";
// Convert the hours component to 12-hour format if needed
currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
// Convert an hours component of "0" to "12"
currentHours = ( currentHours == 0 ) ? 12 : currentHours;
// Compose the string for display
var currentTimeString = timeOfDay;
// Update the time display
document.getElementById("ampm").firstChild.nodeValue = currentTimeString;
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.