1. rasputin007's Avatar
    Would someone be willing to help me convert these two widgets into GPS and also a brief explanation of how it's done.
    Thanks

    Attachment 575288
    Attachment 575289
    Try Spectre_Barrel_GPS_Weather_Widget
    Made it as widget because I added the latitude and longitude on the top, might be too high for Lockscreen, don't know, have not tried it.
    2012-03-24 02:27 PM
  2. Steph53940's Avatar
    hello what is it ?it is on all my themes
    2012-03-24 02:38 PM
  3. conflict73's Avatar
    code should go like this.
    Code:
    convertMPH(speed) {
    if (isMetric == "true") {
    speed = speed * 1.609344;
    speed = Math.round((speed * 10) / 10)
     return speed + " kph";
    } else {
    return speed + " mph";
    }
    In setup.js or config.js
    Code:
    var isMetric = true; // false for mph
    Hi there, where shld the first code goes to which file? TIA.
    2012-03-24 04:13 PM
  4. itr2sti's Avatar
    Try Spectre_Barrel_GPS_Weather_Widget
    Made it as widget because I added the latitude and longitude on the top, might be too high for Lockscreen, don't know, have not tried it.
    Rasputin,
    Thanks a ton!!!! This worked perfectly.
    2012-03-24 05:17 PM
  5. The_Durben's Avatar
    hello what is it ?it is on all my themes
    It is the "description"
    Yahoo doesn't have one for your current city.
    That's also an earlier version as Dacal and Ian have fixed the unknown description issue.
    Check Ian Nicolls UniAW 5.0 thread for his latest GPS animated weather widgets
    2012-03-24 08:47 PM
  6. rasputin007's Avatar
    Rasputin,
    Thanks a ton!!!! This worked perfectly.
    You are welcome!
    This is the Lockscreen version, I moved the latitude and longitude to the left and added the 5 day forcast in an "invisible" tap to unlock lockscreen.

    2012-03-24 09:19 PM
  7. The_Durben's Avatar
    Agree but the layer is made by me if u want proof I can send u the layer.psd if u don't believe me.
    The slideshow image is remaked by me to fit the layer.
    The hole idea came from schnedi but your LS is based on my LS what have your ls was without the main slideshow in the top ???
    Stop being ridiculous dude. You wouldn't even be using this if it weren't for crazy in the first place along with the work others did in this thread. Besides, bottom underlay and slider placement look nothing like one I did at all....
    Just be thankful you can use weather this way.
    2012-03-24 10:37 PM
  8. kyle_'s Avatar
    I'm working on to convert mono's LS to GPS LS and this what i have perform just now.

    2012-03-24 11:16 PM
  9. phil73's Avatar
    the lock of Mone has already been done with GPS by @Oldster
    Last edited by phil73; 2012-03-25 at 03:21 AM.
    2012-03-25 03:17 AM
  10. kyle_'s Avatar
    the lock of Mone has already been done with GPS by @Oldster
    Find it but can some one tell me how to disable the seconds and AM/PM function I really hate it...
    2012-03-25 11:11 AM
  11. Thespikie's Avatar
    the lock of Mone has already been done with GPS by @Oldster
    Can somebody share this please?

    Thx
    Sorry for my bad english, I'm Dutch
    2012-03-25 12:07 PM
  12. kyle_'s Avatar
    Can somebody share this please?

    Thx
    http://dl.dropbox.com/u/28859017/LT%..._new.theme.zip
    2012-03-25 12:54 PM
  13. Thespikie's Avatar
    2012-03-25 01:08 PM
  14. kyle_'s Avatar
    Thanks :-)
    You are welcome
    2012-03-25 01:22 PM
  15. MamaJaay's Avatar
    the lock of Mone has already been done with GPS by @Oldster
    Anyone have the springboard widget that matches?
    2012-03-25 01:46 PM
  16. Thespikie's Avatar
    this is my now but how do I get the GPS coordinates to see?
    GPS Based HTML Lockscreen Weather Theme-fotoyq.png
    Sorry for my bad english, I'm Dutch
    2012-03-25 02:02 PM
  17. Schnedi's Avatar
    Find it but can some one tell me how to disable the seconds and AM/PM function I really hate it...

    .....

    open the CSS file and write
    display:none;
    to the seconds and am/pm style

    this is my now but how do I get the GPS coordinates to see?
    GPS Based HTML Lockscreen Weather Theme-fotoyq.png
    you can't!! for that the code have to be modified...
    Last edited by Schnedi; 2012-03-25 at 03:54 PM.
    2012-03-25 02:09 PM
  18. Thespikie's Avatar
    You can't!! for that the code have to be modified...[/QUOTE]

    :-(
    2012-03-25 02:29 PM
  19. phil73's Avatar
    You can't!! for that the code have to be modified...

    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;
    }
    2012-03-25 02:53 PM
  20. Destan's Avatar
    @Phil73
    Any chance that you could upload these two files with the modification to see the coordinates? I would like to have it too but do not even know where to type in what you have posted, at the beginning or the end on these two files ...
    2012-03-25 03:06 PM
2,706 ... 242505152535462102 ...
LINK TO POST COPIED TO CLIPBOARD