Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: GPS Based HTML Lockscreen Weather Theme
is a discussion within theiPhone 4|4S New Skins / Themes Launches
forums, a part of theNew Skins / Themes Launches
section;in Durben's version plus to rasputin007 advice i added some lines to display the temp with the C or the F if you like in GetLocation_Weather. js replace with this
...-
03-02-2012, 04:26 PM #201
in Durben's version plus to rasputin007 advice i added some lines to display the temp with the C or the F if you like
in GetLocation_Weather.js replace with this lines
$("#weathertext").text(text);
if (isCelsius == true){
$("#highlowtemp").text("H:" + high + "\u00B0C" + " / " + "L:" + low + "\u00B0C");
$("#temp").text(temp + "\u00B0C");
}else{
$("#highlowtemp").text("H:" + high + "\u00B0F" + " / " + "L:" + low + "\u00B0F");
$("#temp").text(temp + "\u00B0F");
}
var imgsrc = "<img id=\"theImg\" src=\"YahooWeatherIcons/" + code + iconfix + ".png\" width=\"180\" height=\"290\"/>";
$('#weathericon').html(imgsrc);
}
}
function GetWeather(LocCode) {
if (isCelsius == true){
temp = 'c'
}
else
{
temp = 'f'
}
var url="http://weather.yahooapis.com/forecastrss?u="+temp+"&w=" + LocCode;
create a file called Config.js and paste this
// Configuration Weather //
var isCelsius = true // change to false to display degrees in Farenheit
in LockBackground.html add this
<script type="text/javascript" src="Config.js"/></script>
thanks crazy, durben and rasputin
this is how it looks
-
The Following 13 Users Say Thank You to schnedi For This Useful Post:
chevymusclecar (03-02-2012), conflict73 (03-26-2012), Darrenrooster (03-02-2012), Ian Nicoll (03-02-2012), indyzzzz (03-06-2012), jjk454ss (03-02-2012), metaserph (03-02-2012), phil73 (03-02-2012), Sheff1889 (03-02-2012), sickchris714 (03-02-2012), stratnik (03-05-2012), The_Durben (03-02-2012), Zooropalg (03-02-2012)
-
03-02-2012, 04:34 PM #202The Mechanic
- Join Date
- Aug 2010
- Location
- Vancouver Canada
- Posts
- 7,447
- Thanks
- 29,694
- Thanked 34,565 Times in 6,574 Posts
You're very welcome

And thank you again, as well as probably a few more times as this progresses.
You are a true talent my friend and definite asset to the iCommunity
@crazyvivek
Sorry man, can you explain the implementation to get this going with other weather widgets a bit more
I have a banging headache today and code is making my head hurt more
Last edited by The_Durben; 03-02-2012 at 04:46 PM.

-
The Following 5 Users Say Thank You to The_Durben For This Useful Post:
chg128 (03-02-2012), crazyvivek (03-02-2012), schnedi (03-02-2012), sickchris714 (03-02-2012), Zooropalg (03-02-2012)
-
03-02-2012, 04:49 PM #203Master Modder
- Join Date
- Jul 2009
- Location
- Carentan, France
- Posts
- 1,821
- Thanks
- 1,144
- Thanked 4,555 Times in 989 Posts
-
03-02-2012, 04:58 PM #204
Use this code to get woeid for the current location only.
And then you can use your own custom code to get weather like all other weather widgets do.
in most of the themes var=locale is used
this locale is nothing but woeid.
btw i am going to try the deb now. Thanks for working on it.
-
The Following 2 Users Say Thank You to crazyvivek For This Useful Post:
schnedi (03-02-2012), The_Durben (03-02-2012)
-
03-02-2012, 05:10 PM #205The Mechanic
- Join Date
- Aug 2010
- Location
- Vancouver Canada
- Posts
- 7,447
- Thanks
- 29,694
- Thanked 34,565 Times in 6,574 Posts
Add the rest of the weather code for other widgets in that place marked and then point the HTML there as well?
And the deb works no problem
Better if you host it on mmi though. Manually installing and or removing is not the best for the phone.
Can lead to many problems if a mistake is made.
-
The Following User Says Thank You to The_Durben For This Useful Post:
stratnik (03-05-2012)
-
03-02-2012, 05:13 PM #206
here's another tip to make it better (if it's possible) making a multilingual Date and easy change clock from 24h to 12h and viceversa
replace the DateTime.js info with this;
function updateClock ( )
{
var currentTime = new Date ( );
var currentHours = currentTime.getHours ( );
var currentMinutes = currentTime.getMinutes ( );
var currentSeconds = currentTime.getSeconds ( );
// Pad the minutes and seconds with leading zeros, if required
currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;
if (ampm == false) {
var currentTime = new Date ( );
var currentHours = currentTime.getHours ( );
var currentMinutes = currentTime.getMinutes ( );
var currentSeconds = currentTime.getSeconds ( );
// Pad the minutes and seconds with leading zeros, if required
currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;
} else {
var currentTime = new Date ( );
var currentHours = currentTime.getHours ( );
var currentMinutes = currentTime.getMinutes ( );
var currentSeconds = currentTime.getSeconds ( );
// Pad the minutes and seconds with leading zeros, if required
currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;
var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM";
currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
currentHours = ( currentHours == 0 ) ? 12 : currentHours;
}
// Compose the string for display
var currentTimeString = currentHours + ":" + currentMinutes;
// Update the time display
document.getElementById("clock").firstChild.nodeVa lue = currentTimeString;
}
function calendarDate ( )
{
var this_date_name_array = new Array("00","01","02","03","04","05","06","07","08" ,"09","10","11","12","13","14","15","16","17","18" ,"19","20","21","22","23","24","25","26","27","28" ,"29","30","31")
var this_weekday_name_array=["Sunday","Monday","Tuesday","Wednesday","Thursday" ,"Friday","Saturday"];
var this_month_name_array=["January","February","March","April","May","June", "July","August","September","October","November"," December"];
if (French == true){
var this_weekday_name_array=["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Ven dredi","Samedi"];
var this_month_name_array=['Janvier','Fevrier','Mars','Avril','Mai','Juin','J uillet','Aout','Septembre','Octobre','Novembre','D ecembre'];
}
if (German == true){
var this_weekday_name_array = ["Sonntag","Montag","Dienstag","Mittwoch","Donnerst ag","Freitag","Samstag"];
var this_month_name_array=["Januar","Februar","Marz","April","Mai","Juni","Ju li","August","September ","Oktober","November","Dezember"];
}
if (Spanish == true){
var this_weekday_name_array = ["Domingo","Lunes","Martes","Miercoles","Jueves","V iernes","Sabado"];
var this_month_name_array=['Enero','Febrero','Marzo','Abril','Mayo','Junio',' Julio','Agosto','Septiembre','Octubre','Noviembre' ,'Deciembre'];
}
if (Dutch == true){
var this_weekday_name_array = ["zondag","maandag","dinsdag","woensdag","donderdag ","vrijdag","zaterdag"];
var this_month_name_array=['januari','februari','maart','april','mei','juni', 'juli','augustus','september','oktober','November' ,'December'];
}
if (Italian == true){
var this_weekday_name_array = ["Domenica","Lunedi","Martedi","Mercoledi","Giovedi ","Venerdi","Sabato"];
var this_month_name_array=['Gennaio','Febbraio','Marzo','Aprile','Maggio','Gi ugno','Luglio','Agosto','Settembre','Ottobre','Nov embre','Dicembre'];
}
var this_date_timestamp = new Date()
var this_weekday = this_date_timestamp.getDay()
var this_date = this_date_timestamp.getDate()
var this_month = this_date_timestamp.getMonth()
var this_year = this_date_timestamp.getYear()
if (this_year < 1000)
this_year+= 1900;
if (this_year==101)
this_year=2001;
document.getElementById("weekday").firstChild.node Value = this_weekday_name_array[this_weekday] //concat long date string
document.getElementById("date").firstChild.nodeVal ue = this_date_name_array[this_date] //concat long date string
document.getElementById("month").firstChild.nodeVa lue = this_month_name_array[this_month] //concat long date string
}
if still don't have it. create a file called Config.js and paste this code
// Configuration Clock //
var ampm = false; // change to true to display 12h clock
// Configuration Language //
var French = false; // change to true to display date in French
var German = false; // change to true to display date in German
var Spanish = false; // change to true to display date in Spanish
var Dutch = false; // change to true to display date in Dutch
var Italian = false; // change to true to display date in Italian
open LockBackground.html and in the <body> section paste this code
<div id="clock">
<script language="JavaScript">updateClock(); setInterval('updateClock()', 1000 )</script>
</div>
<div id="weekday">
<script language="JavaScript">calendarDate(); setInterval('calendarDate()', 1000 )</script>
</div>
<div id="date">
<script language="JavaScript">calendarDate(); setInterval('calendarDate()', 1000 )</script>
</div>
<div id="month">
<script language="JavaScript">calendarDate(); setInterval('calendarDate()', 1000 )</script>
</div>
finally give your style in style.css
and change positions, colors etc...#clock{
position:absolute; top:50px; left:0px; width:320px; height:480px; text-align:center; z-index:15;
font-weight:100;
font-size:45px;
color: white;
text-shadow: 0px 0px 1px black;
font-family: Helvetica;
}
#weekday
{
position:absolute; top:70px; left:0px; width:320px; height:480px; text-align:center; z-index:15;
font-weight:100;
font-size:15px;
color: white;
text-shadow: 0px 0px 1px black;
font-family: Helvetica;
}
#date
{
position:absolute; top:85px; left:0px; width:320px; height:480px; text-align:center; z-index:15;
font-weight:100;
font-size:15px;
color: white;
text-shadow: 0px 0px 1px black;
font-family: Helvetica;
}
#month
{
position:absolute; top:100px; left:0px; width:320px; height:480px; text-align:center; z-index:15;
font-weight:100;
font-size:15px;
color: white;
text-shadow: 0px 0px 1px black;
font-family: Helvetica;
}
-----------------------------------
if don't get it say it and i (and hope other modders) will help
--------------------------------------------------------------------------------------------
later the codes to make the weather multilingual too
yep. i did what i just posted but i'm working in the weather descLast edited by schnedi; 03-02-2012 at 05:26 PM.
-
The Following 6 Users Say Thank You to schnedi For This Useful Post:
chg128 (03-02-2012), conflict73 (03-26-2012), Ian Nicoll (03-02-2012), iDnS (03-03-2012), stratnik (03-05-2012), The_Durben (03-02-2012)
-
03-02-2012, 05:19 PM #207
I installed the deb file and after a reboot i can't see MyLocation.txt file getting updated. I launched the application and enabled sig change. Am i missing something?
-
The Following 3 Users Say Thank You to crazyvivek For This Useful Post:
chg128 (03-02-2012), Sheff1889 (03-02-2012), The_Durben (03-02-2012)
-
03-02-2012, 05:23 PM #208The Mechanic
- Join Date
- Aug 2010
- Location
- Vancouver Canada
- Posts
- 7,447
- Thanks
- 29,694
- Thanked 34,565 Times in 6,574 Posts
-
The Following 2 Users Say Thank You to The_Durben For This Useful Post:
chg128 (03-02-2012), crazyvivek (03-02-2012)
-
03-02-2012, 05:26 PM #209CHG128 和平與愛
- Join Date
- Jan 2008
- Location
- KL-UK
- Posts
- 1,872
- Thanks
- 4,324
- Thanked 4,680 Times in 1,212 Posts
my 24h setting like this ...
var currentTime = new Date();
var currentHours = currentTime.getHours();
var currentMinutes = currentTime.getMinutes();
var currentSeconds = currentTime.getSeconds();
currentHours = ( currentHours > 24 ) ? currentHours - 12 :currentHours;
currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;
//currentHours = ( currentHours == 0 ) ? 12 : currentHours;
var currentTimeString = currentHours + ":" + currentMinutes;
-
The Following 4 Users Say Thank You to chg128 For This Useful Post:
Ian Nicoll (03-02-2012), Sheff1889 (03-02-2012), stratnik (03-05-2012), The_Durben (03-02-2012)
-
03-02-2012, 05:28 PM #210
oh oh oh my god!!!! amazing!! excellent.
In the very beginning i wanted to make this theme configuration free. being a newbie i had asked this question in one of the forums but could not find a solution.
excellent!!!
-
The Following 5 Users Say Thank You to crazyvivek For This Useful Post:
chg128 (03-02-2012), Ian Nicoll (03-02-2012), Sheff1889 (03-02-2012), stratnik (03-05-2012), The_Durben (03-02-2012)
-
03-02-2012, 05:36 PM #211The Mechanic
- Join Date
- Aug 2010
- Location
- Vancouver Canada
- Posts
- 7,447
- Thanks
- 29,694
- Thanked 34,565 Times in 6,574 Posts
Do you mean what I did?
If so and you would also like to see the ease of installing when the app is packaged with the theme, you can message Barsoverbeats and let him I know said to get access to his EPHD theme and repo.
It is a one click installation. Phone resprings, you apply the theme in Winterboard and toggle the Sig.Change in the app.
Up to you. I will ask him to message you in a PM details for adding his repo if you like?
@schnedi
I sent Bars an update with a setup.js for F and C as Rasputin added.
He is also adding styling to the font and a few new weather images.
After that, add the clock and date config to the codes and the setup.js for another update.
I don't want to add yours myself but it's a bonus to style the info that way.
Then you can send back and he can update again. If you like that is.
Hoping we will get along going forward?Last edited by The_Durben; 03-02-2012 at 05:45 PM.

-
-
03-02-2012, 05:51 PM #212
sure, i'll talk to him
thanks!!
-
The Following 2 Users Say Thank You to schnedi For This Useful Post:
stratnik (03-05-2012), The_Durben (03-02-2012)
-
03-02-2012, 05:57 PM #213"iDoThis"
- Join Date
- Nov 2008
- Location
- Pennsylvania
- Posts
- 9,184
- Thanks
- 5,527
- Thanked 17,163 Times in 4,745 Posts
I'm loving it
-
The Following 2 Users Say Thank You to barsoverbeats For This Useful Post:
stratnik (03-05-2012), The_Durben (03-02-2012)
-
03-02-2012, 06:03 PM #214The Mechanic
- Join Date
- Aug 2010
- Location
- Vancouver Canada
- Posts
- 7,447
- Thanks
- 29,694
- Thanked 34,565 Times in 6,574 Posts
@crazyvivek
Barsoverbeats will send you info for his repo to try out the Cydia install.
If you take up that offer, prior to that be sure to manually remove the app from your phone and reboot before you install it.
This will give you an idea of how easy it is now.
You can then add your package to Cydia similarly for everyone to try out and enjoy.
-
The Following User Says Thank You to The_Durben For This Useful Post:
crazyvivek (03-03-2012)
-
03-02-2012, 06:36 PM #215
Last edited by Nibrok; 03-02-2012 at 07:02 PM.
-
03-02-2012, 06:38 PM #216Livin the iPhone Life
- Join Date
- Dec 2007
- Location
- MI
- Posts
- 1,276
- Thanks
- 2,309
- Thanked 1,191 Times in 535 Posts
I updated EPHD with the new LS based of this widget. But I didn't remove anything I did the original way when I used iFunbox to install MyLocation. Everything is working with the new EPHDiOS5_GPS_DURBAN widget and with Zoos version. I'm wondering if I should still manually remove MyLocation or anything else I originally had installed? I'm not even sure how I remove it, do I just go into the apps folder with CyberDuck and delete it?

-
03-02-2012, 07:15 PM #217CHG128 和平與愛
- Join Date
- Jan 2008
- Location
- KL-UK
- Posts
- 1,872
- Thanks
- 4,324
- Thanked 4,680 Times in 1,212 Posts
some people asked me for this mod,hope ok to post it ,so here you go .
first ,thank you so much for this ,Credits to crazyvivek, The_Durben & maybe other....
http://modmyi.com/forums/iphone-4-ne...her-theme.html
and dont forget hit THANKS button to them,they really done very very good job.
you need download this deb http://modmyi.com/forums/iphone-4-ne...r-theme-9.html
donwload here http://apple.org.hk/apple/download/file.php?id=2816
and you need Download " Wallpaper JPEGifier " from Cydia .
i really did not done too much,only keep respring my iPhone for moved thing suck weather image ,text etc
Enjoy and have fun,have a good weekend.
see you guys soonLast edited by chg128; 03-02-2012 at 07:19 PM.

-
The Following 9 Users Say Thank You to chg128 For This Useful Post:
conflict73 (03-03-2012), Ian Nicoll (03-02-2012), indyzzzz (03-06-2012), jc4108 (03-24-2012), kruzzit (03-02-2012), schnedi (03-02-2012), Sheff1889 (03-02-2012), stratnik (03-05-2012), The_Durben (03-02-2012)
-
03-02-2012, 07:18 PM #218The Mechanic
- Join Date
- Aug 2010
- Location
- Vancouver Canada
- Posts
- 7,447
- Thanks
- 29,694
- Thanked 34,565 Times in 6,574 Posts
Remove your app however you installed it.
Go back to my post with the download for the deb file of MyLocation app and also the stock theme
Follow the instructions there.
If you still don't get it working let me know.
It has to be something on your end as this method I used is working for numerous people right now.
You should uninstall the repo one first.
Then go to your application folders and see if MyLocation.app is still there.
If it is, delete it and then reboot.
Then reinstall from the repo. You need not remove Zoos theme as it not a dependant file.
This is ideal to ensure you don't have duplicates that could potentially cause a conflict or worse.Last edited by The_Durben; 03-02-2012 at 07:21 PM.

-
The Following 4 Users Say Thank You to The_Durben For This Useful Post:
chg128 (03-02-2012), conflict73 (03-03-2012), jjk454ss (03-02-2012), Nibrok (03-02-2012)
-
03-02-2012, 07:37 PM #219
Thanks for the fast reply, I appreciate it. I found your post but still a little confused. I have the "MyLocation.deb" but not sure how to install it, I've never used "ifile", I've been using Winscp. The first time I did it, I had to add the hacku repo to get "*******" then installed the app with "ifunbox". How do I install "MyLocation.deb"?
Thanks again...
-
03-02-2012, 07:40 PM #220Livin the iPhone Life
- Join Date
- Dec 2007
- Location
- MI
- Posts
- 1,276
- Thanks
- 2,309
- Thanked 1,191 Times in 535 Posts
-
The Following User Says Thank You to jjk454ss For This Useful Post:
The_Durben (03-02-2012)
LinkBacks (?)
-
Curry's little Repo
Refback This thread04-12-2013, 02:27 PM -
overview for bushe
Refback This thread03-15-2013, 10:09 AM -
08-11-2012, 12:06 AM
-
Elite Pro HD - Seite 40
Refback This thread03-03-2012, 12:38 PM




LinkBack URL
About LinkBacks
Reply With Quote


