Page 21 of 136 FirstFirst ... 111920212223 31 71 121 ... LastLast
Results 401 to 420 of 2706

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


Thread: GPS Based HTML Lockscreen Weather Theme

  1. #401
    Quote Originally Posted by bombmom View Post
    By them maybe I'll have it Its killing me Big D just killing me...lol First one send it to the other of course
    You know it
    The one I'm messing with is the uniaw I did for EPHD
    Ian also was kind enough to sort some rookie errors on my part

  2. The Following 7 Users Say Thank You to The_Durben For This Useful Post:

    bombmom (03-06-2012), chg128 (03-07-2012), hemptation (04-05-2012), Ian Nicoll (03-06-2012), King_O_Hill (03-06-2012), Sheff1889 (03-07-2012), stratnik (03-07-2012)

  3. #402
    Quote Originally Posted by The_Durben View Post
    You know it
    The one I'm messing with is the uniaw I did for EPHD
    Ian also was kind enough to sort some rookie errors on my part
    I'm just trying to get a REALLY stripped down version of the standalone working. Ian and Dacal would be horrified if they saw this,lol

  4. The Following 4 Users Say Thank You to bombmom For This Useful Post:

    Ian Nicoll (03-06-2012), ReBourne (03-06-2012), stratnik (03-07-2012), The_Durben (03-06-2012)

  5. #403
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in the Philippines.
    Posts
    5,378
    Thanks
    8,420
    Thanked 21,501 Times in 4,311 Posts

    Default UniAW5 is GPS friendly!!... At last!
    Thanks Dacal, UniAW5 is working on GPS now

    Big thank you to crazy for this & rasputin007 for all his help in previous pages

    Dacal's code did the trick, (thanks again my friend).

    I am currently in an "Undefined" location so just got the weather info with no animations, so rather that wait till I go to work I just made my own link to a "location.txt" file with different coordinates in it for testing, screen shot shows the results Note, I am not in Lamma Island Just for testing.

    For those trying this on their PC/Mac in an editor with "Live View" just do the same, put you location.txt file in the themes library and in the location.js (or "GetLocation_Weather.js") temporarly change the link to:
    function UpdateLocation() {
    jQuery.get('myLocation.txt', function(appdata) {
    Then you will have the live view working, makes life much easier.

    For Dacal's code to work you must also add the div in the html file <div id="coordinates"></div> I haven't changed the css file yet, just wanted to tell ya all it works.

    Now I got to learn how to install it correctly as I'm still using rasputin's symlink method.



    FULL INSTRUCTIONS IN ONE PLACE:

    For newcomers to the thread: you need to first install the "MyLocation" app.

    In the "Location.js" (or "GetLocation_Weather.js") Delete everything and replace it with the code done by Dacal (posted again below)

    Code:
    //-----------------------------------------------------------------------------------------------------------
    //-----------------------------------------------------------------------------------------------------------
    // Author : Vivek Thakur
    // Date : 25 Feb 2012
    //-----------------------------------------------------------------------------------------------------------
    //-----------------------------------------------------------------------------------------------------------
    // Modified by Dacal for BaSalt HD theme.
    //-----------------------------------------------------------------------------------------------------------
    //-----------------------------------------------------------------------------------------------------------
    
    var prevlatitude = "";
    var prevlongitude = "";
    var woeid;
    var textLat;
    var textLong;
    
    	 function UpdateLocation() {  
    		jQuery.get('myLocation.txt', function(appdata) {
    var myvar = appdata;
    var substr = appdata.split('\n');
    var templatitude=(substr[0]).split('=');
    var templongitude=(substr[1]).split('=');
    var latitude = $.trim(templatitude[1]);
    var longitude = $.trim(templongitude[1]);
    if (prevlatitude != latitude || prevlongitude != longitude) {
    var url = "http://where.yahooapis.com/geocode?location=" + latitude + "+" + longitude + "&gflags=R&flags=J";
    $.getJSON(url, function(data) {
    woeid = data.ResultSet.Results[0].woeid;
    
    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";
    }
    
    document.getElementById("coordinates").innerHTML = textLat + " " + textLong;
    prevlatitude = latitude;
    prevlongitude = longitude;
    
    validateWeatherLocation(escape(woeid).replace(/^%u/g, "%"), setPostal);
    
    });
    } 
    }); 
    }
    In the head section of the html file add this line:
    <script type="text/javascript" src="JavaScript/location.js"></script>
    or if you are using the "GetLocation_Weather.js" add this instead:
    <script type="text/javascript" src="JavaScript/GetLocation_Weather.js"></script>

    Also in the html file add the div:
    <div id="coordinates"></div>

    In the UniAW.css file add this:
    #coordinates{
    position: absolute;
    text-align: center;
    top: 200px;
    left: 0px;
    width: 320px;
    height: 60px;
    font-size: 20px;
    font-weight: bold;
    color: #DCDCDC;
    text-shadow: #000000 0px 0px 2px, #000000 0px 0px 2px ;
    display: none;
    }


    Delete the word "none" to actually display the coordinates on screen, then adjust the settings for it as you require.

    In the UniAW.js file, replace this complete line:
    validateWeatherLocation(escape(locale).replace (/^%u/g, "%"), setPostal);
    with this:
    UpdateLocation();

    Lastly, in the "Config.js" file you no longer need the "var local = ******;" line so delete that line of code.

    THANKS AGAIN TO ALL HERE, THIS IS A GREAT THREAD WHERE EVERYBODY IS HELPING EVERYBODY.
    Attached Thumbnails Attached Thumbnails -img_0471.png  
    Last edited by Ian Nicoll; 03-07-2012 at 12:11 AM.

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

  6. The Following 20 Users Say Thank You to Ian Nicoll For This Useful Post:

    barsoverbeats (03-07-2012), bombmom (03-06-2012), chevymusclecar (03-06-2012), chg128 (03-07-2012), Dacal (03-07-2012), GaN-MaN (03-06-2012), hemptation (04-05-2012), jjk454ss (03-06-2012), King_O_Hill (03-06-2012), laurence0609 (03-07-2012), lostinthemes (03-07-2012), metaserph (03-06-2012), Schnedi (03-07-2012), Sheff1889 (03-07-2012), sickchris714 (03-06-2012), stratnik (03-07-2012), The_Durben (03-06-2012), Vanasian (03-07-2012), WaGGuM (03-06-2012), zocker48 (03-07-2012)

  7. #404
    Great news Ian.,
    @Metaserph
    "You can only attain Peace through spreading Love to create Unity and earn the Respect of others" - Complex Simplicity

  8. The Following 2 Users Say Thank You to metaserph For This Useful Post:

    hemptation (04-05-2012), Ian Nicoll (03-06-2012)

  9. #405
    Ian that is Simply Breathtaking!

  10. The Following 2 Users Say Thank You to WaGGuM For This Useful Post:

    hemptation (04-05-2012), Ian Nicoll (03-06-2012)

  11. #406
    Quote Originally Posted by Ian Nicoll View Post
    Thanks Dacal, UniAW5 is working on GPS now

    Big thank you to crazy for this & rasputin007 for all his help in previous pages

    Dacal's code did the trick, (thanks again my friend).

    I am currently in an "Undefined" location so just got the weather info with no animations, so rather that wait till I go to work I just made my own link to a "location.txt" file with different coordinates in it for testing, screen shot shows the results Note, I am not in Lamma Island Just for testing.

    For those trying this on their PC/Mac in an editor with "Live View" just do the same, put you location.txt file in the themes library and in the location.js (or "GetLocation_Weather.js") temporarly change the link to:
    function UpdateLocation() {
    jQuery.get('myLocation.txt', function(appdata) {
    Then you will have the live view working, makes life much easier.

    For Dacal's code to work you must also add the div in the html file <div id="coordinates"></div> I haven't changed the css file yet, just wanted to tell ya all it works.

    Now I got to learn how to install it correctly as I'm still using rasputin's symlink method.

    Excellent work! I'm soooo stoked this is working. The ease of this tweak to get your current location and your stunning work together is awesome.

    To avoid using symlink change the path in the get location weather js to this

    jQuery.get('../../../../var/mobile/Documents/myLocation.txt', function(appdata)


    The app updates myLocation.txt in Documents folder continuously when Sig.Change is on and you change locations or when you toggle it on

  12. The Following 11 Users Say Thank You to The_Durben For This Useful Post:

    barsoverbeats (03-07-2012), chevymusclecar (03-06-2012), chg128 (03-07-2012), Ian Nicoll (03-06-2012), King_O_Hill (03-06-2012), laurence0609 (03-07-2012), metaserph (03-06-2012), ReBourne (03-06-2012), Sheff1889 (03-07-2012), stratnik (03-07-2012), Vanasian (03-07-2012)

  13. #407
    Amazing work guys! I'm trying to keep up the best I can. I am understanding enough to know that there is nothing that I can bring to this table. I asked before, if there was a way to incorporate any options from the "settings" app to maybe change text colors or F and C or whatever?

  14. The Following User Says Thank You to King_O_Hill For This Useful Post:

    Sheff1889 (03-07-2012)

  15. #408
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in the Philippines.
    Posts
    5,378
    Thanks
    8,420
    Thanked 21,501 Times in 4,311 Posts

    Quote Originally Posted by The_Durben View Post
    Excellent work! I'm soooo stoked this is working. The ease of this tweak to get your current location and your stunning work together is awesome.

    To avoid using symlink change the path in the get location weather js to this

    jQuery.get('../../../../var/mobile/Documents/myLocation.txt', function(appdata)


    The app updates myLocation.txt in Documents folder continuously when Sig.Change is on and you change locations or when you toggle it on
    Thanks pal, Just putting the location.txt file temporarily in the theme is a blessing so we can see it in "Live View" makes life so much easier!

    But I don't take any credit for this, I am humbled by the skills of rasputin, crazy, and Dacal, those guys are the experts, many thanks to yourself for all your input/help here, so many people chipping in here and because of that it's all coming together.
    THANK YOU ALL.

    EDIT.

    @ The_Durben.

    I don't have the location.txt file in that directory, I installed the "MyLocation" app the ******* method (original way) I think this is why it's not their?
    Last edited by Ian Nicoll; 03-06-2012 at 09:48 PM.

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

  16. The Following 11 Users Say Thank You to Ian Nicoll For This Useful Post:

    bombmom (03-06-2012), chevymusclecar (03-06-2012), Dacal (03-07-2012), hemptation (04-05-2012), King_O_Hill (03-06-2012), laurence0609 (03-07-2012), lostinthemes (03-07-2012), ReBourne (03-06-2012), Sheff1889 (03-07-2012), stratnik (03-07-2012), The_Durben (03-06-2012)

  17. #409
    Quote Originally Posted by jjk454ss View Post
    I thought the overlay was in this thread, towards the very beginning. Otherwise its in the EPHD thread, but I don't have it anymore, I've changed widgets too many times since.

    The slider is from EPHD.
    Heyo, managed to find it from earlier in the thread as you said, thanks again Kraxik!

  18. #410
    Sug Luv Super Moderator 2k1's Avatar
    Join Date
    Jan 2011
    Location
    Hammond Louisiana
    Posts
    34,053
    Thanks
    1,815
    Thanked 7,065 Times in 4,206 Posts

    Bump

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

    Ian Nicoll (03-06-2012)

  20. #411
    Quote Originally Posted by Ian Nicoll View Post
    Thanks pal, Just putting the location.txt file temporarily in the theme is a blessing so we can see it in "Live View" makes life so much easier!

    But I don't take any credit for this, I am humbled by the skills of rasputin, crazy, and Dacal, those guys are the experts, many thanks to yourself for all your input/help here, so many people chipping in here and because of that it's all coming together.
    THANK YOU ALL.

    EDIT.

    @ The_Durben.

    I don't have the location.txt file in that directory, I installed the "MyLocation" app the ******* method (original way) I think this is why it's not their?
    If it doesn't show up there when you launch the app and hit Sig.Change I would say it cause of rasputins deb and symlink method. Installing the deb I posted and using the path I changed it to is working.

    Any chance you can post the UniAW.js file?
    I've edited the getlocation three times now and mind us still not working

  21. The Following 4 Users Say Thank You to The_Durben For This Useful Post:

    Ian Nicoll (03-06-2012), ReBourne (03-06-2012), Sheff1889 (03-07-2012), stratnik (03-07-2012)

  22. #412
    All you guys working with this is simply outstanding!! Crazy thank you all for this amazing break through!!

  23. The Following 4 Users Say Thank You to chevymusclecar For This Useful Post:

    Ian Nicoll (03-06-2012), ReBourne (03-06-2012), Sheff1889 (03-07-2012), stratnik (03-07-2012)

  24. #413
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in the Philippines.
    Posts
    5,378
    Thanks
    8,420
    Thanked 21,501 Times in 4,311 Posts

    Quote Originally Posted by The_Durben View Post
    If it doesn't show up there when you launch the app and hit Sig.Change I would say it cause of rasputins deb and symlink method. Installing the deb I posted and using the path I changed it to is working.

    Any chance you can post the UniAW.js file?
    I've edited the getlocation three times now and mind us still not working
    I will look back for the deb you posted, is there only one version? (incase I get an old one) EDIT... I forgot it's on post 1 now. Thanks again.

    I attach here all the files I changed in the UniAW5.0 so you can try them. Are you getting the weather info?

    Please remember the "location.js" file has not got the link in it to your correct location so you will need to change it.

    Is your deb file working good, I remember some people having to restore because of losing all their icons, or was this another matter? Thanks pal.
    Attached Files Attached Files
    Last edited by Ian Nicoll; 03-06-2012 at 11:45 PM.

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

  25. The Following 7 Users Say Thank You to Ian Nicoll For This Useful Post:

    hemptation (04-05-2012), lostinthemes (03-07-2012), ReBourne (03-06-2012), Schnedi (03-07-2012), sickchris714 (03-07-2012), stratnik (03-07-2012), The_Durben (03-06-2012)

  26. #414
    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

    great work too all you guys

  27. The Following 3 Users Say Thank You to ReBourne For This Useful Post:

    hemptation (04-05-2012), Ian Nicoll (03-06-2012), stratnik (03-07-2012)

  28. #415
    Quote Originally Posted by Ian Nicoll View Post
    I will look back for the deb you posted, is there only one version? (incase I get an old one) EDIT... I forgot it's on post 1 now. Thanks again.

    I attach here all the files I changed in the UniAW5.0 so you can try them. Are you getting the weather info?

    Please remember the "location.js" file has not got the link in it to your correct location so you will need to change it.

    Is your deb file working good, I remember some people having to restore because of losing all their icons, or was this another matter? Thanks pal.
    Ian I noticed this line

    validateWeatherLocation(escape(woeid).replace (/^%u/g, "%"), setPostal);

    Is not in uniaw.js but location.js from decal?

    In uniaw.js is this line

    validateWeatherLocation(escape(locale).replace(/^%u/g, "%"), setPostal);

  29. The Following User Says Thank You to chevymusclecar For This Useful Post:

    stratnik (03-07-2012)

  30. #416
    Quote Originally Posted by Ian Nicoll View Post
    I will look back for the deb you posted, is there only one version? (incase I get an old one) EDIT... I forgot it's on post 1 now. Thanks again.

    I attach here all the files I changed in the UniAW5.0 so you can try them. Are you getting the weather info?

    Please remember the "location.js" file has not got the link in it to your correct location so you will need to change it.

    Is your deb file working good, I remember some people having to restore because of losing all their icons, or was this another matter? Thanks pal.
    The deb is working fine. Multiple people have used it with no problem.
    Rasputin had to restore but not sure if it's related.
    I've installed and deleted several times and not had a problem

    Thanks for putting these up, very appreciated.
    I'll play with this in the morning. Have a good night

    *edit..no I didn't get the weather info when I threw it in quick
    I'll redo it another time when I'm not tired
    Last edited by The_Durben; 03-07-2012 at 12:01 AM.

  31. The Following 2 Users Say Thank You to The_Durben For This Useful Post:

    hemptation (04-05-2012), stratnik (03-07-2012)

  32. #417
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in the Philippines.
    Posts
    5,378
    Thanks
    8,420
    Thanked 21,501 Times in 4,311 Posts

    Quote Originally Posted by chevymusclecar View Post
    Ian I noticed this line

    validateWeatherLocation(escape(woeid).replace (/^%u/g, "%"), setPostal);

    Is not in uniaw.js but location.js from decal?

    In uniaw.js is this line

    validateWeatherLocation(escape(locale).replace(/^%u/g, "%"), setPostal);
    Hi Chevy, yes you are correct, leave the one in the location.js alone and replace the one you mention in the UniAW.js with UpdateLocation();

    Edited my post number 404

    @ THE_DURBEN and anybody else trying the UniAW,

    In the GetLocation_Weather.js file, the following link might not work

    jQuery.get('../../../../var/mobile/Documents/myLocation.txt', function(appdata)

    If you are using the UniAW PerPage version then I think (because I am still using the symlink way) you need to go back 3 more directories, so it would be something like this:

    jQuery.get('../../../../../../../var/mobile/Documents/myLocation.txt', function(appdata)

    It all depends on where you store the JavaScript file and perpage is a lot more directories in that a winterboard theme! It's silly little things like this that often get overlooked.
    Last edited by Ian Nicoll; 03-07-2012 at 01:01 AM.

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

  33. The Following 5 Users Say Thank You to Ian Nicoll For This Useful Post:

    chevymusclecar (03-07-2012), chg128 (03-07-2012), hemptation (04-05-2012), Sheff1889 (03-07-2012), zocker48 (03-07-2012)

  34. #418
    Hi Ian. Was wondering are you using the all in one version, perpage or?? Version of uniaw in your example? I tried incorporating into a mod I made but want to try exactly as you just to see it work for me I'm able to get city and temp in my modded version but that's it... Thanks for reply big bro!

  35. The Following User Says Thank You to chevymusclecar For This Useful Post:

    hemptation (04-05-2012)

  36. #419
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in the Philippines.
    Posts
    5,378
    Thanks
    8,420
    Thanked 21,501 Times in 4,311 Posts

    Quote Originally Posted by chevymusclecar View Post
    Hi Ian. Was wondering are you using the all in one version, perpage or?? Version of uniaw in your example? I tried incorporating into a mod I made but want to try exactly as you just to see it work for me I'm able to get city and temp in my modded version but that's it... Thanks for reply big bro!
    PerPage all in one version, but I add a symlink so the link in the location.js is different! It's been removed and the symlink links it to the text file.

    I should really install the "Deb" version of the app so we are all on the same page, but as the post above states, it will not work automatically because the link will be wrong, unless it changes the link automatically somehow?? If not, this will be a problem with all PerPage widgets.

    Thats why I like the symlink method from rasputin007, then your sure the link is correct.
    Last edited by Ian Nicoll; 03-07-2012 at 01:34 AM.

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

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

    Sheff1889 (03-07-2012)

  38. #420
    Well I copied mylocation.txt link to main JavaScript directory but still no go may be difference in the deb installation but the weird thing is clock still remain non functional so not quite sure at the moment what's going on but will continue on for a half hour then will go to sleep lol. Thanks Ian and all! Am very exited what this will bring!

    Good times!!

  39. The Following User Says Thank You to chevymusclecar For This Useful Post:

    stratnik (03-07-2012)

Page 21 of 136 FirstFirst ... 111920212223 31 71 121 ... 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
  •