Page 53 of 136 FirstFirst ... 3 435152535455 63 103 ... LastLast
Results 1,041 to 1,060 of 2706

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


Thread: GPS Based HTML Lockscreen Weather Theme

  1. #1041
    for you: http://dl.dropbox.com/u/60048871/archive.zip but the Theme.js is in french

  2. The Following User Says Thank You to phil73 For This Useful Post:

    Destan (03-25-2012)

  3. #1042
    iPhone? More like MyPhone Thespikie's Avatar
    Join Date
    Mar 2010
    Location
    Tienen, Belgium
    Posts
    148
    Thanks
    9
    Thanked 51 Times in 42 Posts

    Quote Originally Posted by phil73 View Post
    put that in theme.js / ****************************
    * GPS * put MyLocation
    **
    * Version 1.0 * 02/01/2012
    * Created by oldster *
    * Http://itheming.de/ *
    **************************** /

    / / Author: Vivek Thakur
    / / Date: 25 Feb 2012
    / / No longer Need appuuid
    / / Do not modify anything below this line UNLESS you know what you are doing.
    var prevlatitude = "";
    var prevlongitude = "";
    var woeid = "";
    UpdateLocation function () {
    jQuery.get ('.. /.. /.. /.. / var / mobile / Documents / myLocation.txt', function (appdata) {
    var myvar = appdata;
    var = substr appdata.split ('\ n');
    templatitude var = (substr [0]). split ('=');
    templongitude var = (substr [1]). split ('=');
    var = $ latitude. trim (templatitude [1]);
    var = $ longitude. trim (templongitude [1]);
    var Yahooappid = ""
    if (prevlatitude! latitude = | | prevlongitude! = longitude) {
    var url = "http://where.yahooapis.com/geocode?location =" + latitude + "+" + longitude + "& gflags = flags = R & J"
    $. GetJSON (url, function (data) {
    woeid data.ResultSet.Results = [0]. woeid;
    data.ResultSet.Results city = [0]. city;
    data.ResultSet.Results county = [0]. county;
    neighborhood data.ResultSet.Results = [0]. neighborhood;
    data.ResultSet.Results state = [0]. state;

    if (city! = "") {
    $ ("# Cityname"). Text (city);
    }
    else {
    $ ("# Cityname"). Text (county);
    }

    if (latitude <0) {
    textLat = Math.round (latitude * 100) / 100 + "\ u00B0" + "S";
    }
    else if (latitude> 0) {
    textLat = Math.round (latitude * 100) / 100 + "\ u00B0" + "N";
    }
    else {
    textLat = Math.round (latitude * 100) / 100 + "\ u00B0";
    }

    if (longitude <0) {
    textLong = Math.round (longitude * 100) / 100 + "\ u00B0" + "W";
    }
    else if (longitude> 0) {
    textLong = Math.round (longitude * 100) / 100 + "\ u00B0" + "E";
    }
    else {
    textLong = Math.round (longitude * 100) / 100 + "\ u00B0";
    }


    if (neighborhood! = "") {
    = neigh_lat_long neighborhood;
    }
    else {
    neigh_lat_long = state;
    }

    $ ("# Latlong"). Text (textLat + "" + textLong);
    $ ("# Neighborhoodname"). Text (neigh_lat_long);

    prevlatitude = latitude;
    prevlongitude = longitude;

    GetWeather (woeid) setInterval ('GetWeather (woeid)', 1000 * 20 * 60);


    });

    }
    });



    };

    then opens the Style.css and adds it into

    # {neighborhoodname
    position: absolute;
    width: 320px;
    height: 20px;
    left: 10px;
    text-align: left;
    z-index: 10;
    top: 170px;
    font-family: Default;
    color: white;
    font-size: 15px;
    font-weight: 100;
    }

    # {Latlong
    position: absolute;
    top: 170px;
    width: 320px;
    height: 20px;
    left:-10px;
    text-align: right;
    z-index: 10;
    font-family: Default;
    color: white;
    font-size: 15px;
    font-weight: 100;
    }
    it's does not work :-(

    Quote Originally Posted by phil73 View Post
    for you: http://dl.dropbox.com/u/60048871/archive.zip but the Theme.js is in french
    Thanks, but i see not the GPS coordinates
    -img0086e.png
    Last edited by Thespikie; 03-25-2012 at 08:30 AM.
    Sorry for my bad english, I'm Dutch

  4. #1043
    this is normal as your policy is not the same as that of the original,change font-family: Default;

  5. #1044
    OK, I feel like the info is in this thread, but I can't find what I need. I had everything working from the start of this on my old phone. I got a new 4S and instead of the old manual installation I installed GPS Weather Lockscreen from Cydia thinking it would be much quicker and easier than before. But, when I try to launch My Location it won't open. I'm thinking there is something simple I must need to do, but I can't find out what. My GPS widgets won't work anymore;(.

    Edit: Don't know what I did, but its now working.
    Last edited by jjk454ss; 03-25-2012 at 11:28 AM.

  6. #1045
    Quote Originally Posted by phil73 View Post
    put that in theme.js / ****************************
    * GPS * put MyLocation
    **
    * Version 1.0 * 02/01/2012
    * Created by oldster *
    * Http://itheming.de/ *
    **************************** /

    / / Author: Vivek Thakur
    / / Date: 25 Feb 2012
    / / No longer Need appuuid
    / / Do not modify anything below this line UNLESS you know what you are doing.
    var prevlatitude = "";
    var prevlongitude = "";
    var woeid = "";
    UpdateLocation function () {
    jQuery.get ('.. /.. /.. /.. / var / mobile / Documents / myLocation.txt', function (appdata) {
    var myvar = appdata;
    var = substr appdata.split ('\ n');
    templatitude var = (substr [0]). split ('=');
    templongitude var = (substr [1]). split ('=');
    var = $ latitude. trim (templatitude [1]);
    var = $ longitude. trim (templongitude [1]);
    var Yahooappid = ""
    if (prevlatitude! latitude = | | prevlongitude! = longitude) {
    var url = "http://where.yahooapis.com/geocode?location =" + latitude + "+" + longitude + "& gflags = flags = R & J"
    $. GetJSON (url, function (data) {
    woeid data.ResultSet.Results = [0]. woeid;
    data.ResultSet.Results city = [0]. city;
    data.ResultSet.Results county = [0]. county;
    neighborhood data.ResultSet.Results = [0]. neighborhood;
    data.ResultSet.Results state = [0]. state;

    if (city! = "") {
    $ ("# Cityname"). Text (city);
    }
    else {
    $ ("# Cityname"). Text (county);
    }

    if (latitude <0) {
    textLat = Math.round (latitude * 100) / 100 + "\ u00B0" + "S";
    }
    else if (latitude> 0) {
    textLat = Math.round (latitude * 100) / 100 + "\ u00B0" + "N";
    }
    else {
    textLat = Math.round (latitude * 100) / 100 + "\ u00B0";
    }

    if (longitude <0) {
    textLong = Math.round (longitude * 100) / 100 + "\ u00B0" + "W";
    }
    else if (longitude> 0) {
    textLong = Math.round (longitude * 100) / 100 + "\ u00B0" + "E";
    }
    else {
    textLong = Math.round (longitude * 100) / 100 + "\ u00B0";
    }


    if (neighborhood! = "") {
    = neigh_lat_long neighborhood;
    }
    else {
    neigh_lat_long = state;
    }

    $ ("# Latlong"). Text (textLat + "" + textLong);
    $ ("# Neighborhoodname"). Text (neigh_lat_long);

    prevlatitude = latitude;
    prevlongitude = longitude;

    GetWeather (woeid) setInterval ('GetWeather (woeid)', 1000 * 20 * 60);


    });

    }
    });



    };

    then opens the Style.css and adds it into

    # {neighborhoodname
    position: absolute;
    width: 320px;
    height: 20px;
    left: 10px;
    text-align: left;
    z-index: 10;
    top: 170px;
    font-family: Default;
    color: white;
    font-size: 15px;
    font-weight: 100;
    }

    # {Latlong
    position: absolute;
    top: 170px;
    width: 320px;
    height: 20px;
    left:-10px;
    text-align: right;
    z-index: 10;
    font-family: Default;
    color: white;
    font-size: 15px;
    font-weight: 100;
    }
    Are that for to remove sec and AM/PM ?

  7. #1046
    no man,is for put for LatLong and neighborhoodname, for remove the seconds and AM/PM go into Style.css
    #sec {
    display: none;
    position: absolute;
    top: 40px;
    left: 245px;
    font-family: Default1;
    font-size: 20px;
    color: #fff;
    text-align: left;
    text-shadow: #000000 0px 1px 1px;
    -webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(#666), to(transparent), color-stop(0.4, #666));
    z-index: 11;
    }
    #am_pm {
    display: none;
    position: absolute;
    top: 62px;
    left: 245px;
    font-family: Default1;
    font-size: 20px;
    color: #fff;
    text-align: left;
    text-shadow: #000000 0px 1px 1px;
    -webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(#666), to(transparent), color-stop(0.4, #666));
    z-index: 11;
    }
    as you said Schnedi
    Last edited by phil73; 03-25-2012 at 11:27 AM.

  8. #1047
    Livin the iPhone Life jelleheindryckx's Avatar
    Join Date
    Jan 2008
    Location
    Gent belgium
    Posts
    1,681
    Thanks
    247
    Thanked 890 Times in 473 Posts

    Quote Originally Posted by phil73 View Post
    the lock of Mone has already been done with GPS by @Oldster
    Can someone PLEASE make this a SB widget? would be amazing!

  9. #1048
    Quote Originally Posted by jelleheindryckx View Post
    Can someone PLEASE make this a SB widget? would be amazing!

    rename to Wallpaper.html or Widget.html

  10. #1049
    Do u know how to set 24h clock on that ?

  11. #1050
    pour un super moder ,tu sais pas faire grand chose,ouvre le Theme.js et tous au débuts tu changes avec ça

    /*****
    if (!german) {
    am_pm = "AM";
    if(hours > 12) {
    am_pm = "PM";
    hours = hours - 12;
    }
    }
    *****/ ps:un merci n'à jamais tuer personne sinon tu vas te débrouiller tous seul comme un grand
    Last edited by phil73; 03-25-2012 at 02:09 PM.

  12. The Following User Says Thank You to phil73 For This Useful Post:

    Ximet (03-26-2012)

  13. #1051
    My iPhone is a Part of Me
    Join Date
    Mar 2011
    Location
    Nashville
    Posts
    833
    Thanks
    993
    Thanked 1,392 Times in 455 Posts

    would someone be willing to tell me how to add to the necessary scripts to make Wind (speed/direction) show? i got it added to the css file; but now im stuck on what to do next...

  14. #1052
    Quote Originally Posted by Jkauf55 View Post
    would someone be willing to tell me how to add to the necessary scripts to make Wind (speed/direction) show? i got it added to the css file; but now im stuck on what to do next...
    UniAW.js file:

    default:

    if (direction <= 360) obj.winddir = "N";
    if (direction < 348.75) obj.winddir = "NNW";
    if (direction < 326.25) obj.winddir = "NW";
    if (direction < 303.75) obj.winddir = "WNW";
    if (direction < 281.25) obj.winddir = "W";
    if (direction < 258.75) obj.winddir = "WSW";
    if (direction < 236.25) obj.winddir = "SW";
    if (direction < 213.75) obj.winddir = "SSW";
    if (direction < 191.25) obj.winddir = "S";
    if (direction < 168.75) obj.winddir = "SSE";
    if (direction < 146.25) obj.winddir = "SE";
    if (direction < 123.75) obj.winddir = "ESE";
    if (direction < 101.25) obj.winddir = "E";
    if (direction < 78.75) obj.winddir = "ENE";
    if (direction < 56.25) obj.winddir = "NE";
    if (direction < 33.75) obj.winddir = "NNE";
    if (direction < 11.25) obj.winddir = "N";
    if (direction == 0) obj.winddir = "No wind";
    if (direction == 0) {
    document.getElementById("wind").innerHTML = "Wind: " + obj.winddir;
    } else {
    document.getElementById("wind").innerHTML = "Wind: " + obj.winddir + " " + Math.round(obj.windspeed) + " " + obj.windunit; }
    break;




    HTML file:

    <div id="wind"></div>

  15. The Following 2 Users Say Thank You to King_O_Hill For This Useful Post:

    elilab (03-27-2012), Jkauf55 (03-25-2012)

  16. #1053
    My iPhone is a Part of Me
    Join Date
    Mar 2011
    Location
    Nashville
    Posts
    833
    Thanks
    993
    Thanked 1,392 Times in 455 Posts

    Quote Originally Posted by King_O_Hill View Post
    UniAW.js file:

    default:

    if (direction <= 360) obj.winddir = "N";
    if (direction < 348.75) obj.winddir = "NNW";
    if (direction < 326.25) obj.winddir = "NW";
    if (direction < 303.75) obj.winddir = "WNW";
    if (direction < 281.25) obj.winddir = "W";
    if (direction < 258.75) obj.winddir = "WSW";
    if (direction < 236.25) obj.winddir = "SW";
    if (direction < 213.75) obj.winddir = "SSW";
    if (direction < 191.25) obj.winddir = "S";
    if (direction < 168.75) obj.winddir = "SSE";
    if (direction < 146.25) obj.winddir = "SE";
    if (direction < 123.75) obj.winddir = "ESE";
    if (direction < 101.25) obj.winddir = "E";
    if (direction < 78.75) obj.winddir = "ENE";
    if (direction < 56.25) obj.winddir = "NE";
    if (direction < 33.75) obj.winddir = "NNE";
    if (direction < 11.25) obj.winddir = "N";
    if (direction == 0) obj.winddir = "No wind";
    if (direction == 0) {
    document.getElementById("wind").innerHTML = "Wind: " + obj.winddir;
    } else {
    document.getElementById("wind").innerHTML = "Wind: " + obj.winddir + " " + Math.round(obj.windspeed) + " " + obj.windunit; }
    break;




    HTML file:

    <div id="wind"></div>
    Thanks but I'm not using the UniAw file(s). But it's a start in the right direction...

  17. #1054
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in the Philippines.
    Posts
    5,373
    Thanks
    8,419
    Thanked 21,484 Times in 4,307 Posts

    Quote Originally Posted by itr2sti View Post
    Would someone be willing to help me convert these two widgets into GPS and also a brief explanation of how it's done.
    Thanks
    You are aware that "Spectre" is a paid theme?
    Not sure if "grzegorz10" would be happy with it being freely posted here!

    "If it's not broken, I'll fix it till it is"

  18. The Following User Says Thank You to Ian Nicoll For This Useful Post:

    The_Durben (03-26-2012)

  19. #1055
    Quote Originally Posted by Ian Nicoll View Post
    You are aware that "Spectre" is a paid theme?
    Not sure if "grzegorz10" would be happy with it being freely posted here!
    Ooopppsss!
    Link deleted.
    Sorry, grzegorz, did not knew it was a paid theme, my bad!

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

    Ian Nicoll (03-26-2012), The_Durben (03-26-2012)

  21. #1056
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in the Philippines.
    Posts
    5,373
    Thanks
    8,419
    Thanked 21,484 Times in 4,307 Posts

    Quote Originally Posted by rasputin007 View Post
    Ooopppsss!
    Link deleted.
    Sorry, grzegorz, did not knew it was a paid theme, my bad!
    Hi rasputin, you should PM "grzegorz10" and give him the link to your GPS mod of his widget, I'm sure he will be happy you did.

    "If it's not broken, I'll fix it till it is"

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

    The_Durben (03-26-2012)

  23. #1057
    Quote Originally Posted by Ian Nicoll View Post
    Hi rasputin, you should PM "grzegorz10" and give him the link to your GPS mod of his widget, I'm sure he will be happy you did.
    I deleted the file (Spectre with GPS), so the link goes to nowhere, but I can send grzegorz10 the other version (Spectre with GPS and 5 day forecast - see my screenshot on page 52), if I can find it again. I was playing with that a bit further as I did not liked the latitude and longitude squeezed at the top, so I added a quickflip function that opened a new window with the latitude/longitude, address and google map. Worked perfect in DW CS 5.5, but not on iPhone. I was after something like this one


  24. The Following 6 Users Say Thank You to rasputin007 For This Useful Post:

    elilab (03-27-2012), Ian Nicoll (03-26-2012), lostinthemes (03-26-2012), metaserph (03-26-2012), stratnik (03-26-2012), The_Durben (03-26-2012)

  25. #1058
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in the Philippines.
    Posts
    5,373
    Thanks
    8,419
    Thanked 21,484 Times in 4,307 Posts

    ^^ Looks great M8.

    "If it's not broken, I'll fix it till it is"

  26. #1059
    The Arcadian ReBourne's Avatar
    Join Date
    May 2010
    Location
    King Kong Climb This Building
    Posts
    4,178
    Thanks
    13,694
    Thanked 12,389 Times in 2,985 Posts

    Quote Originally Posted by rasputin007 View Post
    I deleted the file (Spectre with GPS), so the link goes to nowhere, but I can send grzegorz10 the other version (Spectre with GPS and 5 day forecast - see my screenshot on page 52), if I can find it again. I was playing with that a bit further as I did not liked the latitude and longitude squeezed at the top, so I added a quickflip function that opened a new window with the latitude/longitude, address and google map. Worked perfect in DW CS 5.5, but not on iPhone. I was after something like this one

    lol damn dude u live very close to me. but nice work though

  27. #1060
    Quote Originally Posted by ReBourne View Post
    lol damn dude u live very close to me. but nice work though
    Ehh ... No!
    I just got those coordinates for NY from Google.
    I am still on the other side of the pond.

Page 53 of 136 FirstFirst ... 3 435152535455 63 103 ... 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
  •