Page 13 of 136 FirstFirst ... 31112131415 23 63 113 ... LastLast
Results 241 to 260 of 2706

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: GPS Based HTML Lockscreen Weather Theme

  1. #241
    Sunset/sunrise time add-on
    If you also want to add a picture to symbolise what those times mean you can add these lines in the LockBackground.html at the same place where you put the sunet/sunrise div's

    <img src="sunup.png" width=50 height=33 style="position:absolute; top:390px;left:5px">
    <img src="sundown.png" width=50 height=33 style="position:absolute; top:390px;left:190px">

    then it would look like what I used in my AWL theme



    Obviously you can change this to what ever fits your own need.

  2. The Following 3 Users Say Thank You to rasputin007 For This Useful Post:

    chevymusclecar (03-20-2012), chg128 (03-03-2012), Schnedi (03-03-2012)

  3. #242
    Quote Originally Posted by KraXik View Post
    Have you also installed the deb "my location" file in ifile?
    I hv install the location deb file. I hv also try on n off the sig but not working.

  4. #243
    just set sunrise as well,but why sunset the time is 24h ,,,,? sunrise is 12h ?

  5. #244
    Quote Originally Posted by chg128 View Post
    just set sunrise as well,but why sunset the time is 24h ,,,,? sunrise is 12h ?

    because rasputin set it that way

    var sunsethr = SunSet.split(':')[0]*1+12 //the +12 is if you don't want am/pm time(default!)
    i guess you have to replace to this

    var sunsethr = SunSet.split(':')[0]*1 //the +12 is if you don't want am/pm time(default!)

    sunrise is not 12h is just because morning hours are same in 12h and 24h (01, 02, 03, 04 ....)


    not sure if this will work but it should

  6. The Following 2 Users Say Thank You to Schnedi For This Useful Post:

    chg128 (03-03-2012), stratnik (03-05-2012)

  7. #245
    SunRise = SunRise.split(' ')[0]
    var sunrisehr = SunRise.split(':')[0]
    var sunrisemin = SunRise.split(':')[1]
    var SunSet = SunRiseSet.getAttribute("sunset");
    SunSet = SunSet.split(' ')[0]
    var sunsethr = SunSet.split(':')[0]*1+12
    var sunsetmin = SunSet.split(':')[1]

    By default Yahoo Weather gives am/pm times, but I like 24 hour , that's why I added the 12 to the sunset time.

  8. The Following 5 Users Say Thank You to rasputin007 For This Useful Post:

    chg128 (03-03-2012), Ian Nicoll (03-03-2012), Schnedi (03-03-2012), stratnik (03-05-2012), The_Durben (03-03-2012)

  9. #246
    Quote Originally Posted by schnedi View Post
    because rasputin set it that way



    i guess you have to replace to this




    sunrise is not 12h is just because morning hours are same in 12h and 24h (01, 02, 03, 04 ....)


    not sure if this will work but it should
    thank you,will try it...

    and D is day ,N is night ,,,,,now it is day here,but show me in the night weather image.....

    crazy

  10. #247
    Quote Originally Posted by rasputin007 View Post
    SunRise = SunRise.split(' ')[0]
    var sunrisehr = SunRise.split(':')[0]
    var sunrisemin = SunRise.split(':')[1]
    var SunSet = SunRiseSet.getAttribute("sunset");
    SunSet = SunSet.split(' ')[0]
    var sunsethr = SunSet.split(':')[0]*1+12
    var sunsetmin = SunSet.split(':')[1]

    By default Yahoo Weather gives am/pm times, but I like 24 hour , that's why I added the 12 to the sunset time.
    work now,,,,,,,,

    but it is show the Night weather image,it is 11.31am now

    maybe have to chagne d to n and n to d now

    thanks everyone for the help
    Last edited by chg128; 03-03-2012 at 05:35 AM.

  11. #248
    Quote Originally Posted by jotka View Post
    and another beer goes to my bill if you can tell me
    - where i can translate the weather (fog, rain, etc) in german
    - where i can change the weather icons - i know where the icons are but they named 1d, 1n, 2d, 2n, etc. i should know what it stands for (cloudy, partly cloudy, and so on) as some numbers have the same picture.

    thanks in advance
    1day, 1night, 2day, 2night...etc...the normal yahooWether source

  12. #249
    Quote Originally Posted by rasputin007 View Post
    SunRise = SunRise.split(' ')[0]
    var sunrisehr = SunRise.split(':')[0]
    var sunrisemin = SunRise.split(':')[1]
    var SunSet = SunRiseSet.getAttribute("sunset");
    SunSet = SunSet.split(' ')[0]
    var sunsethr = SunSet.split(':')[0]*1+12
    var sunsetmin = SunSet.split(':')[1]

    By default Yahoo Weather gives am/pm times, but I like 24 hour , that's why I added the 12 to the sunset time.
    If you wanted the am/pm time display then the code should look like
    SunRise = SunRise.split(' ')[0]
    var sunrisehr = SunRise.split(':')[0]
    var sunrisemin = SunRise.split(':')[1]
    var SunSet = SunRiseSet.getAttribute("sunset");
    SunSet = SunSet.split(' ')[0]
    var sunsethr = SunSet.split(':')[0]
    var sunsetmin = SunSet.split(':')[1]
    and the lines further down in the same function should be
    $("#set").text(sunsethr + ":" + sunsetmin + "pm");
    $("#rise").text(sunrisehr + ":" + sunrisemin + "am");

    The problem of "wrong" icon, night icon instead of day icon, could be because of the above code as it changes the value for the original variable SunSet, not completely sure but you could try it with a little variable rename, like


    var SunSet = SunRiseSet.getAttribute("sunset");
    var MySunSet = SunSet.split(' ')[0]
    var sunsethr = SunSet.split(':')[0]
    var sunsetmin = SunSet.split(':')[1]

    EDIT:
    I just tried this variable rename, it works, but it also gives you the am/pm display automatically, so no need to add them extra as I did above!
    If you like the 24 hour display with out am/pm then try

    var SunSet = SunRiseSet.getAttribute("sunset");
    var MySunSet = SunSet.split(' ')[0]
    var sunsethr = MySunSet.split(':')[0]*1+12
    var sunsetmin = MySunSet.split(':')[1]

    Hope this solves the icon problem.
    Last edited by rasputin007; 03-03-2012 at 07:25 AM.

  13. The Following 3 Users Say Thank You to rasputin007 For This Useful Post:

    Ian Nicoll (03-03-2012), Schnedi (03-03-2012), stratnik (03-05-2012)

  14. #250
    i already finished the translations (german, french, italian and spanish)

    this is the code if you wanna use it

    else {
    //night
    iconfix = "n";
    }

    if (German == true){
    if (code == 0) {text="Tornado";}
    else if (code == 1 ) {text= "Tropensturm";}
    else if (code == 2 ) {text= "Hurrikan";}
    else if (code == 3 ) {text= "Starkes Gewitter";}
    else if (code == 4 ) {text= "Gewitter";}
    else if (code == 5 ) {text= "Schneeregen";}
    else if (code == 6 ) {text= "Graupel";}
    else if (code == 7 ) {text= "Schneematch";}
    else if (code == 8 ) {text= "Eissprühregen";}
    else if (code == 9 ) {text= "Sprühregen";}
    else if (code == 10 ) {text= "Eisregen";}
    else if (code == 11 ) {text= "Schauer";}
    else if (code == 12 ) {text= "Schauer";}
    else if (code == 13 ) {text= "Schneeflocken";}
    else if (code == 14 ) {text= "Schneeschauer";}
    else if (code == 15 ) {text= "Schneetreiben";}
    else if (code == 16 ) {text= "Schnee";}
    else if (code == 17 ) {text= "Hagel";}
    else if (code == 18 ) {text= "Schneeregen";}
    else if (code == 19 ) {text= "Staub";}
    else if (code == 20 ) {text= "Nebel";}
    else if (code == 21 ) {text= "Dunst";}
    else if (code == 22 ) {text= "Rauchig";}
    else if (code == 23 ) {text= "Stürmig";}
    else if (code == 24 ) {text= "Windig";}
    else if (code == 25 ) {text= "Kalt";}
    else if (code == 26 ) {text= "Bewölkt";}
    else if (code == 27 ) {text= "Stark bewölkt";}
    else if (code == 28 ) {text= "Stark bewölkt";}
    else if (code == 29 ) {text= "Etwas bewölkt";}
    else if (code == 30 ) {text= "Etwas bewölkt";}
    else if (code == 31 ) {text= "Wolkenfrei";}
    else if (code == 32 ) {text= "Sonnig";}
    else if (code == 33 ) {text= "Schön";}
    else if (code == 34 ) {text= "Schön";}
    else if (code == 35 ) {text= "Hagelregen";}
    else if (code == 36 ) {text= "Heiß";}
    else if (code == 37 ) {text= "Kleine Gwitter";}
    else if (code == 38 ) {text= "Kleine Gwitter";}
    else if (code == 39 ) {text= "Kleine Gwitter";}
    else if (code == 40 ) {text= "Kleine Schauer";}
    else if (code == 41 ) {text= "Dicker Schnee";}
    else if (code == 42 ) {text= "Schneeschauer";}
    else if (code == 43 ) {text= "Dicker Schnee";}
    else if (code == 44 ) {text= "Etwas bewölkt";}
    else if (code == 45 ) {text= "Gewitterschauer";}
    else if (code == 46 ) {text= "Schneeschauer";}
    else if (code == 47 ) {text= "Kleine Gwitter";}
    else {text="Keine Angaben";}
    }

    if (Italian == true){
    if (code == 0) {text="Tornado";}
    else if (code == 1 ) {text= "Tempesta tropicale";}
    else if (code == 2 ) {text= "Uragano";}
    else if (code == 3 ) {text= "Forti temporali";}
    else if (code == 4 ) {text= "Temporali";}
    else if (code == 5 ) {text= "Pioggia e neve";}
    else if (code == 6 ) {text= "Pioggia e nevischio";}
    else if (code == 7 ) {text= "Neve e nevischio";}
    else if (code == 8 ) {text= "Pioggia gelata";}
    else if (code == 9 ) {text= "Pioggia";}
    else if (code == 10 ) {text= "Pioggia gelata";}
    else if (code == 11 ) {text= "Pioggie leggere";}
    else if (code == 12 ) {text= "Pioggie leggere";}
    else if (code == 13 ) {text= "Folate di neve";}
    else if (code == 14 ) {text= "Rovesci di neve leggeri";}
    else if (code == 15 ) {text= "Turbini di neve";}
    else if (code == 16 ) {text= "Neve";}
    else if (code == 17 ) {text= "Grandine";}
    else if (code == 18 ) {text= "Grandine";}
    else if (code == 19 ) {text= "Nevischio";}
    else if (code == 20 ) {text= "Nebbioso";}
    else if (code == 21 ) {text= "Foschia";}
    else if (code == 22 ) {text= "Fumoso";}
    else if (code == 23 ) {text= "Ventoso";}
    else if (code == 24 ) {text= "Ventoso";}
    else if (code == 25 ) {text= "Freddo";}
    else if (code == 26 ) {text= "Nuvoloso";}
    else if (code == 27 ) {text= "Sereno";}
    else if (code == 28 ) {text= "Sereno";}
    else if (code == 29 ) {text= "Sereno";}
    else if (code == 30 ) {text= "Sereno";}
    else if (code == 31 ) {text= "Sereno";}
    else if (code == 32 ) {text= "Sole";}
    else if (code == 33 ) {text= "Sereno";}
    else if (code == 34 ) {text= "Sereno";}
    else if (code == 35 ) {text= "Misto pioggia e grandine";}
    else if (code == 36 ) {text= "Caldo";}
    else if (code == 37 ) {text= "Temporali isolati";}
    else if (code == 38 ) {text= "Temporali sparsi";}
    else if (code == 39 ) {text= "Temporali sparsi";}
    else if (code == 40 ) {text= "Piogge sparse";}
    else if (code == 41 ) {text= "Nevicate";}
    else if (code == 42 ) {text= "Rovesci di neve sparsi";}
    else if (code == 43 ) {text= "Nevicate";}
    else if (code == 44 ) {text= "Parzialmente nuvoloso";}
    else if (code == 45 ) {text= "Rovesci temporaleschi";}
    else if (code == 46 ) {text= "Rovesci di neve";}
    else if (code == 47 ) {text= "Rovesci temporaleschi isolati";}
    else {text="Non disponibile";}
    }

    if (French == true){
    if (code == 0) {text="Tornade";}
    else if (code == 1 ) {text= "tempête tropicale";}
    else if (code == 2 ) {text= "Ouragan";}
    else if (code == 3 ) {text= "Orages violents";}
    else if (code == 4 ) {text= "Orages";}
    else if (code == 5 ) {text= "Pluie et la neige";}
    else if (code == 6 ) {text= "Pluie et grésil";}
    else if (code == 7 ) {text= "De la neige et le grésil";}
    else if (code == 8 ) {text= "Bruine verglaçante";}
    else if (code == 9 ) {text= "Bruine";}
    else if (code == 10 ) {text= "Pluie verglaçante";}
    else if (code == 11 ) {text= "Pluies";}
    else if (code == 12 ) {text= "Pluie";}
    else if (code == 13 ) {text= "Averses de neige";}
    else if (code == 14 ) {text= "Légères averses de neige";}
    else if (code == 15 ) {text= "De la poudreuse";}
    else if (code == 16 ) {text= "De la neige";}
    else if (code == 17 ) {text= "La grêle";}
    else if (code == 18 ) {text= "Grésil";}
    else if (code == 19 ) {text= "Brouillard";}
    else if (code == 20 ) {text= "Brouillard";}
    else if (code == 21 ) {text= "Brume";}
    else if (code == 22 ) {text= "Brouillard";}
    else if (code == 23 ) {text= "Venteux";}
    else if (code == 24 ) {text= "Venteux";}
    else if (code == 25 ) {text= "Froid";}
    else if (code == 26 ) {text= "Nuageux";}
    else if (code == 27 ) {text= "La plupart du temps nuageux";}
    else if (code == 28 ) {text= "La plupart du temps nuageux";}
    else if (code == 29 ) {text= "Partiellement nuageux";}
    else if (code == 30 ) {text= "Partiellement nuageux";}
    else if (code == 31 ) {text= "Clair";}
    else if (code == 32 ) {text= "Ensoleillé";}
    else if (code == 33 ) {text= "Juste beau";}
    else if (code == 34 ) {text= "Juste beau";}
    else if (code == 35 ) {text= "Pluie mélangée de grêle";}
    else if (code == 36 ) {text= "à chaud";}
    else if (code == 37 ) {text= "Orages isolés";}
    else if (code == 38 ) {text= "Orages dispersés";}
    else if (code == 39 ) {text= "Orages dispersés";}
    else if (code == 40 ) {text= "Averses éparses";}
    else if (code == 41 ) {text= "Chutes de neige";}
    else if (code == 42 ) {text= "Averses de neige éparses";}
    else if (code == 43 ) {text= "Chutes de neige";}
    else if (code == 44 ) {text= "Partiellement nuageux";}
    else if (code == 45 ) {text= "Orages";}
    else if (code == 46 ) {text= "Averses de neige";}
    else if (code == 47 ) {text= "Orages isolés";}
    else {text="Pas disponible";}
    }

    if (Spanish == true){
    if (code == 0) {text="Tornado";}
    else if (code == 1 ) {text= "Tormenta tropical";}
    else if (code == 2 ) {text= "Huracan";}
    else if (code == 3 ) {text= "Tormentas severas";}
    else if (code == 4 ) {text= "Tormentas de truenos";}
    else if (code == 5 ) {text= "Lluvia y nieve";}
    else if (code == 6 ) {text= "Lluvia y aguanieve";}
    else if (code == 7 ) {text= "Tormenta helada";}
    else if (code == 8 ) {text= "Llovizna helada";}
    else if (code == 9 ) {text= "Llovizna";}
    else if (code == 10 ) {text= "Lluvia helada";}
    else if (code == 11 ) {text= "Chubascos";}
    else if (code == 12 ) {text= "Chubascos";}
    else if (code == 13 ) {text= "Corrientes de nieve";}
    else if (code == 14 ) {text= "Lluvias ligeras de nieve";}
    else if (code == 15 ) {text= "Viento con nieve";}
    else if (code == 16 ) {text= "Nieve";}
    else if (code == 17 ) {text= "Granizo";}
    else if (code == 18 ) {text= "Aguanieve";}
    else if (code == 19 ) {text= "Polvo";}
    else if (code == 20 ) {text= "Bruma";}
    else if (code == 21 ) {text= "Neblina";}
    else if (code == 22 ) {text= "Humoso";}
    else if (code == 23 ) {text= "Tempestuoso";}
    else if (code == 24 ) {text= "Ventoso";}
    else if (code == 25 ) {text= "Frio";}
    else if (code == 26 ) {text= "Nublado";}
    else if (code == 27 ) {text= "Muy nublado";}
    else if (code == 28 ) {text= "Muy nublado";}
    else if (code == 29 ) {text= "Parc. nublado";}
    else if (code == 30 ) {text= "Parc. nublado";}
    else if (code == 31 ) {text= "Despejado";}
    else if (code == 32 ) {text= "Soleado";}
    else if (code == 33 ) {text= "Despejado";}
    else if (code == 34 ) {text= "Despejado";}
    else if (code == 35 ) {text= "Lluvia y granizo";}
    else if (code == 36 ) {text= "Calor";}
    else if (code == 37 ) {text= "Tormentas aisladas";}
    else if (code == 38 ) {text= "Tormentas dispersas";}
    else if (code == 39 ) {text= "Tormentas dispersas";}
    else if (code == 40 ) {text= "Chubascos dispersos";}
    else if (code == 41 ) {text= "Mucha nieve";}
    else if (code == 42 ) {text= "Lluvias de nieve dispersas";}
    else if (code == 43 ) {text= "Mucha nieve";}
    else if (code == 44 ) {text= "May. nublado";}
    else if (code == 45 ) {text= "Tormentas de truenos";}
    else if (code == 46 ) {text= "lluvias de nieve";}
    else if (code == 47 ) {text= "Tormentas aisladas";}
    else {text="No disponible";}
    }
    $("#weathertext").text(text);

    thisis how the Confg.js should looks. of course the default language will be English so need to change anything for english speakers (readers)

    // Configuration Language //

    var French = false; // change to true to display weather and date in French
    var German = false; // change to true to display weather and date in German
    var Spanish = false; // change to true to display weather and date in Spanish
    var Italian = false; // change to true to display weather and date in Italian

    thanks to rasputin007 for the german translation and base code, Zooropalg and Bidaloo for correct the French and italian translations


    probably this will be in a future update of the Durben's version LS hope someone use it in it's modds to make it easily for the users

  15. The Following 7 Users Say Thank You to Schnedi For This Useful Post:

    chg128 (03-03-2012), iDnS (03-03-2012), KraXik (03-03-2012), phil73 (03-03-2012), Q_bAn_b (03-07-2012), rasputin007 (03-03-2012), The_Durben (03-03-2012)

  16. #251
    Is there any issue with the sunset/sunrise time and the day/night weather icons? I had specifically tested this and it worked /still works fine for me.

    For all ppl facing this issue.. could you please check if the time in iphone is correct? i mean am/pm.
    The calculation in the code does not depend on 12/24 hours format.

    Or could you please post your lockscreen image so that I can check.

    Thanks

  17. The Following User Says Thank You to crazyvivek For This Useful Post:

    stratnik (03-05-2012)

  18. #252
    Quote Originally Posted by schnedi View Post
    i already finished the translations (german, french, italian and spanish)

    this is the code if you wanna use it




    thisis how the Confg.js should looks. of course the default language will be English so need to change anything for english speakers (readers)




    thanks to rasputin007 for the german translation and base code, Zooropalg and Bidaloo for correct the French and italian translations


    probably this will be in a future update of the Durben's version LS hope someone use it in it's modds to make it easily for the users
    Cool
    Cannot wait!

  19. #253
    Quote Originally Posted by KraXik View Post
    It does. Your just doing it wrong. Are you using the original method on page one of this thread or Durbens updated method?


    @Crazy - Perhaps you should edit page 1 now Crazy with Durbens links for any newbs trying this now.
    Ya I'm new to all of this what's an ipa? Deb? Wtf is a Durben? Of course I did what the first post of thread states. I wouldn't
    magically know that the first post is wrong.

    So now that I did will I be ok if I do this Durben thing?

  20. The Following 2 Users Say Thank You to _Vansmak_ For This Useful Post:

    metaserph (03-03-2012), The_Durben (03-03-2012)

  21. #254
    Quote Originally Posted by _Vansmak_ View Post
    Ya I'm new to all of this what's an ipa? Deb? Wtf is a Durben? Of course I did what the first post of thread states. I wouldn't
    magically know that the first post is wrong.

    So now that I did will I be ok if I do this Durben thing?
    Remove the files from the original install, reboot, go to EPHD Repo and install Durben's method. ;P
    @Metaserph
    "You can only attain Peace through spreading Love to create Unity and earn the Respect of others" - Complex Simplicity

  22. The Following User Says Thank You to metaserph For This Useful Post:

    _Vansmak_ (03-03-2012)

  23. #255
    Quote Originally Posted by crazyvivek View Post
    Is there any issue with the sunset/sunrise time and the day/night weather icons? I had specifically tested this and it worked /still works fine for me.

    For all ppl facing this issue.. could you please check if the time in iphone is correct? i mean am/pm.
    The calculation in the code does not depend on 12/24 hours format.

    Or could you please post your lockscreen image so that I can check.

    Thanks
    No, the icons work fine and according to time of day.
    It was that in my initial sunset/sunrise time display script that I changed the SunSet/SunRise variable, which of course is used later in the icon_d or icon_n selection and that properly caused a mix up, but hopefully I have solved this by renaming the variables in my script so that they do not change the Original value of SunSet/SunRise variables for the determination of the day/night time icons.
    Sorry was my initial fault for rushing to solve a question without paying to much attention to possible other impacts.

  24. #256
    Livin the iPhone Life KraXik's Avatar
    Join Date
    Mar 2011
    Location
    Winchester, UK
    Posts
    2,634
    Thanks
    2,684
    Thanked 1,757 Times in 894 Posts

    Quote Originally Posted by _Vansmak_ View Post
    Ya I'm new to all of this what's an ipa? Deb? Wtf is a Durben? Of course I did what the first post of thread states. I wouldn't
    magically know that the first post is wrong.

    So now that I did will I be ok if I do this Durben thing?
    Try reading through the thread then. "**** wont work" is hardly constructive when you are too lazy to read a few pages...

  25. The Following User Says Thank You to KraXik For This Useful Post:

    Schnedi (03-03-2012)

  26. #257
    Quote Originally Posted by KraXik View Post
    Try reading through the thread then. "**** wont work" is hardly constructive when you are too lazy to read a few pages...
    Must u go there? My statement was spot on. By following the directions in the first post the **** did not work. Reading the next 12 pages is irrelevant. Plus I got it fixed in less time this way then by reading every post. This is my lazy way.

    So now it works and it is a great piece of coding. But out of the box **** don't work. Now unbunch your panties.

  27. The Following User Says Thank You to _Vansmak_ For This Useful Post:

    chg128 (03-03-2012)

  28. #258
    Has anyone had any respring issues? As a themer I am constantly respringing my phone to test things and I've noticed that sometimes it gets caught up, it'll show the Bg and the slider but no weather info and I hv no touch functions forcing me to reboot. Anyone else experiencing this?

  29. #259
    Pretty smooth 4 me so far q

  30. #260
    Recovering Theme Addict having a relapse jayjOka's Avatar
    Join Date
    Jan 2011
    Location
    Michigan
    Posts
    1,040
    Thanks
    1,390
    Thanked 1,980 Times in 652 Posts

    @Qban yea it happens to me all the time. I currently have been having an issue when I go into ifile my phone will reboot sometimes

Page 13 of 136 FirstFirst ... 31112131415 23 63 113 ... LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •