+ Reply
Page 20 of 868 FirstFirst ... 101819202122 30 70 120 520 ... LastLast
Results 381 to 400 of 17357

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


Thread: UniAW6.0 for iph4 & iph5

is a discussion within the

iPhone 4|4S New Skins / Themes Launches

forums, a part of the

New Skins / Themes Launches

section;
Originally Posted by Dacal Hi ! i can look, but later. I advice you to look the change between u're widget and the location. js file included in uniaw 6.
...
  1. #381
    What's Jailbreak?
    Join Date
    Apr 2013
    Posts
    18
    Thanks
    5
    Thanked 32 Times in 9 Posts

    Quote Originally Posted by Dacal View Post
    Hi ! i can look, but later. I advice you to look the change between u're widget and the location.js file included in uniaw 6. Not very difficult to do it yourself. Let me know.
    Thanks Dacal! I went ahead and started comparing the code of the location.js files. First thing I noticed is that the code in your updated location.js file seems MUCH cleaner than the original file included in the theme I'm using. The first 10 or so lines are relatively the same, with the exception of a few geographical attributes. The original file doesn't look at things like city, state, neighborhood... Anyway like I said, after the first few lines of code, things seem (at least to me) to gradually get too different for my level of understanding which, admittedly, is minimal.

    Here's the code for the original location.js file for the theme I'm using (LS Minimalisity v1.2). Is it a simple swap of URLs, etc? Or will it be much more involved? Tell me what you think...

    Code:
    var prevlatitude = "";
    
    var prevlongitude = "";
    
    var textLat;
    
    var textLong;
    
    var refreshWeatherTimer;
    
    var refrechLocationTimer;
    
    var get_location = false;
    
    var tempUnit = "f";
    
    
    
    function trimString (text) {
    
    return text.replace(/^\s+/g,'').replace(/\s+$/g,'');
    
    } 
    
    
    
    function UpdateLocation() {
    
    refrechLocationTimer = setTimeout("UpdateLocation();", 1000*20); // Refresh location every 20 secondes
    
    var txt_request = new XMLHttpRequest();
    
    txt_request.overrideMimeType("text/xml");
    
    var LocationTimer = setTimeout(function() {
    
    txt_request.abort();
    
    dealWithWeather({error:true});
    
    }, 10000);
    
    txt_request.onload = function(e) {
    
    clearTimeout(LocationTimer);
    
    getCoordinates(txt_request.responseText);
    
    }
    
    txt_request.open("GET", "file:///private/var/mobile/Documents/myLocation.txt", false);
    
    txt_request.setRequestHeader("Cache-Control", "no-cache");
    
    txt_request.send(null);
    
    }
    
    
    
    function getCoordinates(request) {
    
    if (request == "") {
    
    clearTimeout(refrechLocationTimer);
    
    validateWeatherLocation(escape(locale).replace(/^%u/g, "%"), setPostal);
    
    }
    
    else
    
    {
    
    var substr = request.split('\n');
    
    var templatitude=(substr[0]).split('=');
    
    var templongitude=(substr[1]).split('=');
    
    latitude = trimString(templatitude[1]);
    
    longitude = trimString(templongitude[1]);
    
    
    
    if (prevlatitude != latitude || prevlongitude != longitude) {
    
    prevlatitude = latitude;
    
    prevlongitude = longitude;      
    
    getWoeid ();
    
    }
    
    }
    
    }
    
    
    
    function getWoeid() {
    
    var url = "http://where.yahooapis.com/geocode?location=" + latitude + "+" + longitude + "&gflags=R";
    
    var xml_request = new XMLHttpRequest();
    
    var WoeidTimer = setTimeout(function() {
    
    xml_request.abort();
    
    if (get_location == false) { dealWithWeather({error:true, errorString:null}); }
    
    }, 10000);
    
    xml_request.onload = function(e) {
    
    clearTimeout(WoeidTimer);
    
    woeid_loaded(xml_request);
    
    }
    
    xml_request.overrideMimeType("text/xml");
    
    xml_request.open("GET", url+"&antiCache="+Math.floor(Math.random()*1001), false);
    
    xml_request.setRequestHeader("Cache-Control", "no-cache");
    
    xml_request.send(null);
    
    }
    
    
    
    function woeid_loaded(request) {
    
    if (get_location == true) { clearTimeout(refreshWeatherTimer); }
    
    var effectiveRoot = findChild(request.responseXML, "ResultSet");
    
    postal = parseInt(findChild(effectiveRoot, "Result").getElementsByTagName("woeid")[0].childNodes[0].nodeValue);
    
    
    
    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"; }
    
    
    
    get_location = true;
    
    fetchWeatherDataGPS(postal);
    
    }
    
    
    
    function refreshWeather() {
    
    fetchWeatherData(dealWithWeather, localeForecast);
    
    var refreshWeatherTimer = setTimeout("refreshWeather()", updateInterval*60*1000); // Refresh weather as specified in clock.html
    
    }
    
    
    
    function fetchWeatherDataGPS (zip) {
    
    var url="http://weather.yahooapis.com/forecastrss?w="+zip+"&u="+tempUnit;
    
    var xml_request = new XMLHttpRequest();
    
    var requestTimer = setTimeout(function() {
    
    xml_request.abort();
    
    if (xmldata == false) { dealWithWeather ({error:true}); }
    
    }, 10000);
    
    xml_request.onload = function(e) {
    
    clearTimeout(requestTimer);
    
    xml_GPS_loaded(xml_request);
    
    }
    
    xml_request.overrideMimeType("text/xml");
    
    xml_request.open("GET", url+"&antiCache="+Math.floor(Math.random()*1001));
    
    xml_request.setRequestHeader("Cache-Control", "no-cache");
    
    xml_request.send(null);
    
    return xml_request;
    
    }
    
    
    
    function xml_GPS_loaded (request) {
    
    if (request.responseXML)
    
    {
    
    var obj = {error:false, errorString:null};
    
    xmldata = true;
    
    var guidTag = findChild(findChild(findChild(request.responseXML, "rss"), "channel"), "item");
    
    localeForecast = guidTag.getElementsByTagName("guid")[0].childNodes[0].nodeValue.split('_')[0];
    
    refreshWeather();
    
    }
    
    else
    
    {
    
    dealWithWeather ({error:true, errorString:"XML request failed. no responseXML"});
    
    }
    
    }

  2. #382
    King Kong ain't got nothing on me! King_O_Hill's Avatar
    Join Date
    Apr 2011
    Location
    USA
    Posts
    9,119
    Thanks
    40,359
    Thanked 17,028 Times in 6,213 Posts

    Quote Originally Posted by mohseen488 View Post
    couldn't fix the weather??? changed location.js but still get "wait dude"
    Did you use the one on the first post?

    Do you still have myLocation turn on?

    Do you have GPS set back to true?

    Quote Originally Posted by GUNNY29 View Post
    Oh Dacal if you were near me you would of got a massive 😘 😜 Working perfectly bro. Thank you so much. Now post your PayPal addy PLEASE I insist.
    Just do what I did and go buy all his themes if you haven't already.
    Widget-Weather App Now Available! Also with MyLocation Support!
    Check out the thread here - Widget-Weather
    To install the Widget-Weather app, just go to Cydia and install. This will also remove MyLocation, as it is built in!
    Want to protect your JailBreak! Add this repo http://cydia.myrepospace.com/iLEXiNFO/ & Install "iLEX R.A.T."
    It will allow you to bring your phone back to a fresh jailbroken state!

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

    mohseen488 (04-03-2013)

  4. #383
    iPhone? More like MyPhone mohseen488's Avatar
    Join Date
    Feb 2011
    Location
    Bost, Helmand, Afghanistan
    Posts
    273
    Thanks
    847
    Thanked 1,312 Times in 204 Posts

    Quote Originally Posted by King_O_Hill View Post
    Did you use the one on the first post?

    Do you still have myLocation turn on?

    Do you have GPS set back to true?



    Just do what I did and go buy all his themes if you haven't already.
    yep bro checked everything. still the same problem. wait dude lol
    If you like my Post please hit the Thanks button on the bottom Left Corner.


  5. The Following User Says Thank You to mohseen488 For This Useful Post:

    King_O_Hill (04-03-2013)

  6. #384
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in Philippines.
    Posts
    4,907
    Thanks
    7,515
    Thanked 19,017 Times in 3,872 Posts

    Quote Originally Posted by Sazzat View Post
    I'm a mad actually after 2 sleepless nights. It fixed I just changed the height/width value to 320/586 & it works!
    OK one more how can I increase clouds/raindrops/snow etc numbers
    In Javascript/Weather/iph4 (or 5) here is example of rain.js but you have to adjust them all.



    Quote Originally Posted by King_O_Hill View Post
    Did you use the one on the first post?

    Do you still have myLocation turn on?

    Do you have GPS set back to true?
    He's not got the UniAW Brian, it wouldn't say "wait Dude", I think it's an older one and Dacal just posted a new (for older versions) on last page for Gunny.
    Attached Thumbnails Attached Thumbnails UniAW6.0 for iph4 & iph5-screen-shot-2013-04-03-10.31.57-pm.png  
    Last edited by Ian Nicoll; 04-03-2013 at 08:38 AM.

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

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

    King_O_Hill (04-03-2013), mrsmickey (04-21-2013), Sazzat (04-03-2013)

  8. #385
    iPhone? More like MyPhone mohseen488's Avatar
    Join Date
    Feb 2011
    Location
    Bost, Helmand, Afghanistan
    Posts
    273
    Thanks
    847
    Thanked 1,312 Times in 204 Posts

    I tried to setup like this but seems I messed up and nothing showing now.


    can somebody help me to setup like this. really appreciate it.

    I made the location.js working now. but all messed up the above setup.
    If you like my Post please hit the Thanks button on the bottom Left Corner.


  9. The Following User Says Thank You to mohseen488 For This Useful Post:

    King_O_Hill (04-03-2013)

  10. #386
    King Kong ain't got nothing on me! King_O_Hill's Avatar
    Join Date
    Apr 2011
    Location
    USA
    Posts
    9,119
    Thanks
    40,359
    Thanked 17,028 Times in 6,213 Posts

    Quote Originally Posted by Ian Nicoll View Post
    He's not got the UniAW Brian, it wouldn't say "wait Dude", I think it's an older one and Dacal just posted a new (for older versions) on last page for Gunny.
    Good point!
    Widget-Weather App Now Available! Also with MyLocation Support!
    Check out the thread here - Widget-Weather
    To install the Widget-Weather app, just go to Cydia and install. This will also remove MyLocation, as it is built in!
    Want to protect your JailBreak! Add this repo http://cydia.myrepospace.com/iLEXiNFO/ & Install "iLEX R.A.T."
    It will allow you to bring your phone back to a fresh jailbroken state!

  11. #387
    iPhoneaholic
    Join Date
    Sep 2010
    Location
    /root/user
    Posts
    464
    Thanks
    373
    Thanked 338 Times in 149 Posts

    Awesome, I just Love it. After 2 sleepless night at last I got what I wanted. Thanks to all in this tread.
    Attached Thumbnails Attached Thumbnails UniAW6.0 for iph4 & iph5-img_0025.png  

  12. The Following 2 Users Say Thank You to Sazzat For This Useful Post:

    Ian Nicoll (04-03-2013), It's Mi (04-18-2013)

  13. #388
    King Kong ain't got nothing on me! King_O_Hill's Avatar
    Join Date
    Apr 2011
    Location
    USA
    Posts
    9,119
    Thanks
    40,359
    Thanked 17,028 Times in 6,213 Posts

    Quote Originally Posted by mohseen488 View Post
    I tried to setup like this but seems I messed up and nothing showing now.

    can somebody help me to setup like this. really appreciate it.

    I made the location.js working now. but all messed up the above setup.
    Did you download the new version from page 1? Ian already fixed it.
    Widget-Weather App Now Available! Also with MyLocation Support!
    Check out the thread here - Widget-Weather
    To install the Widget-Weather app, just go to Cydia and install. This will also remove MyLocation, as it is built in!
    Want to protect your JailBreak! Add this repo http://cydia.myrepospace.com/iLEXiNFO/ & Install "iLEX R.A.T."
    It will allow you to bring your phone back to a fresh jailbroken state!

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

    mohseen488 (04-03-2013), wasserinc (04-03-2013)

  15. #389
    iPhone? More like MyPhone mohseen488's Avatar
    Join Date
    Feb 2011
    Location
    Bost, Helmand, Afghanistan
    Posts
    273
    Thanks
    847
    Thanked 1,312 Times in 204 Posts

    Yep bro, working but seems the couldn't made just like above I posted. I only see clouds and moon. nothing more.

    I want to change the background like in custom folder. where can i set that.
    If you like my Post please hit the Thanks button on the bottom Left Corner.


  16. #390
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in Philippines.
    Posts
    4,907
    Thanks
    7,515
    Thanked 19,017 Times in 3,872 Posts

    Quote Originally Posted by mohseen488 View Post
    I tried to setup like this but seems I messed up and nothing showing now.

    can somebody help me to setup like this. really appreciate it.

    I made the location.js working now. but all messed up the above setup.
    Since we don't know what you have done it's probably best to re-download the widget from page 1.
    Not that all the downloads on page 1 have already been fixed so you don't need to do anything.
    You do need the MyLocation app installed for the gps to function (see "King_O_Hills" signature)

    Quote Originally Posted by mohseen488 View Post
    Yep bro, working but seems the couldn't made just like above I posted. I only see clouds and moon. nothing more.

    I want to change the background like in custom folder. where can i set that.
    What background do you want? The full screen weather backgrounds? Your own background? or your own day & night backgrounds?

    Did you download WinterBoard version? Because it has no info displayed.

    If you want all the info use the PP or iW widget.
    Last edited by Ian Nicoll; 04-03-2013 at 08:57 AM.

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

  17. The Following 2 Users Say Thank You to Ian Nicoll For This Useful Post:

    King_O_Hill (04-03-2013), mrsmickey (04-21-2013)

  18. #391
    Developer bushe's Avatar
    Join Date
    Jan 2011
    Posts
    150
    Thanks
    12
    Thanked 317 Times in 60 Posts

    I tried my hand at fixing the location.js for a widget but I didn't have any luck(I am definitely not a javascript person).

    Would anyone mind fixing this up for me : location.zip

    That would be amazing if you could.
    Creator of LockHTML 2

    Visit LockHTML Forum Page Here

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

    King_O_Hill (04-03-2013)

  20. #392
    iPhone? More like MyPhone mohseen488's Avatar
    Join Date
    Feb 2011
    Location
    Bost, Helmand, Afghanistan
    Posts
    273
    Thanks
    847
    Thanked 1,312 Times in 204 Posts

    Quote Originally Posted by Ian Nicoll View Post
    Since we don't know what you have done it's probably best to re-download the widget from page 1.
    Not that all the downloads on page 1 have already been fixed so you don't need to do anything.
    You do need the MyLocation app installed for the gps to function (see "King_O_Hills" signature)



    What background do you want? The full screen weather backgrounds? Your own background? or your own day & night backgrounds?

    Did you download WinterBoard version? Because it has no info displayed.

    If you want all the info use the PP or iW widget.
    the background in icon sets --> customs. I want to set that as background change according to weather.
    I changed the Lockscreen.html to wallpaper.html. works fine. but just want to change the background according to weather.
    If you like my Post please hit the Thanks button on the bottom Left Corner.


  21. #393
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in Philippines.
    Posts
    4,907
    Thanks
    7,515
    Thanked 19,017 Times in 3,872 Posts

    Quote Originally Posted by mohseen488 View Post
    the background in icon sets --> customs. I want to set that as background change according to weather.
    I changed the Lockscreen.html to wallpaper.html. works fine. but just want to change the background according to weather.
    Change these 2 settings in the UniAW6_iph4 or iph5.css file:



    But why would you change the name of the LockBackground? So now you have the Analog clock and all info on every page of your springboard? Is that what you wanted?

    EDIT.. Sorry the screen shot is wrong, wait I re-post.... Done, all good now.
    Attached Thumbnails Attached Thumbnails UniAW6.0 for iph4 & iph5-screen-shot-2013-04-03-11.12.58-pm.png  
    Last edited by Ian Nicoll; 04-03-2013 at 09:15 AM.

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

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

    CrazyChester (04-03-2013), Karoonchai (04-03-2013), King_O_Hill (04-03-2013), mohseen488 (04-03-2013), mrsmickey (04-21-2013)

  23. #394
    Man of iWidgets The.Drifter's Avatar
    Join Date
    Aug 2012
    Posts
    999
    Thanks
    5,107
    Thanked 6,987 Times in 932 Posts

    I think I found the issue with Dacals latest location.js not working on other widgets.

    Ian and Dacal set a UseNeighborhood and UseGPSCity variable their in the config.js.
    For weather widgets that do not set those variable, the widget will fail.

    So I came up with a quick and dirty fix for this and it seems to work for most of the weather widgets I have tried them on.

    Try adding this to Dacals latest location.js:



    While this has worked for most of the weather widgets I have tried it on,
    I cannot guarantee that it will work for everybody.

    ------------------------------------------------------------------------------------

    Two options available:

    First option uses Dacals latest Location.js Fix with the variables added : location option1.zip

    Second option in-case the first one don't work : location option2.zip

    ------------------------------------------------------------------------------------

    Edit: Link has been updated to Dacal's Latest GPS Location fix now as of 7 April 2013
    No need to edit the Location.js anymore Thanks Dacal !

    Edit2: I will continue to add fresh links as the Location.js changes.

    ------------------------------------------------------------------------------------
    Last edited by The.Drifter; 04-07-2013 at 06:04 PM.

  24. The Following 27 Users Say Thank You to The.Drifter For This Useful Post:

    azaleea (04-04-2013), Bashyman (04-12-2013), bushe (04-03-2013), Carvensno (04-04-2013), chevymusclecar (04-03-2013), Cloud2Ground (04-03-2013), Dacal (04-03-2013), Destan (04-07-2013), ferlop15 (04-05-2013), iamtwinn (04-03-2013), Ian Nicoll (04-03-2013), joshlogic (04-03-2013), Karoonchai (04-03-2013), Kazuyoshi (04-03-2013), Kr0NiK (04-03-2013), kristatos (04-03-2013), lostinthemes (04-03-2013), Lucys (04-03-2013), Marty McFly (04-03-2013), nik1975 (04-03-2013), pnunez1310 (04-03-2013), Project5 (04-03-2013), RKO1195 (04-03-2013), SHARON1O (04-12-2013), sigit (04-03-2013), simer_cool (04-04-2013), The_Durben (04-03-2013)

  25. #395
    Developer bushe's Avatar
    Join Date
    Jan 2011
    Posts
    150
    Thanks
    12
    Thanked 317 Times in 60 Posts

    Quote Originally Posted by The.Drifter View Post
    I think I found the issue with Dacals latest location.js not working on other widgets.

    Ian and Dacal set a UseNeighborhood variable in the config.js.
    For weather widgets that do not set that variable, the widget will fail.

    So I came up with a quick and dirty fix for this and it seems to work for most of the weather widgets I have tried them on.

    Try adding this to Dacals latest location.js:



    While this has worked for most of the weather widgets I have tried it on, I cannot guarantee that it will work for everybody.

    For those uncomfortable with editing their own location.js,
    I have added a link for you to download my modded version here: location.zip

    Hope this helps with some of the pain in trying to get older weather widgets to work with Dacals latest fix
    Amazing Thanks!

    You Rock!!!!
    Creator of LockHTML 2

    Visit LockHTML Forum Page Here

  26. The Following 3 Users Say Thank You to bushe For This Useful Post:

    King_O_Hill (04-03-2013), RKO1195 (04-03-2013), The.Drifter (04-03-2013)

  27. #396
    bdo
    bdo is offline
    Green Apple bdo's Avatar
    Join Date
    Sep 2007
    Posts
    83
    Thanks
    10
    Thanked 22 Times in 19 Posts

    Hi Ian really happy to see Uniaw updated 4 iP5 ^^Just a question , is it possible to make a version "InFrontOfIconsMod" and with mobile substrate ... I prefer Uniaw With substrate cause i don't use Wtb and the in front of icon mod is so sleek ?

  28. #397
    iPhone? More like MyPhone driftzorz's Avatar
    Join Date
    Feb 2012
    Posts
    293
    Thanks
    83
    Thanked 228 Times in 112 Posts

    I have a question maybe y'all can help. With the old GPS it always showed my correct town name. Now it's shows a different town name. What's causing this? Is there a fix for it maybe?

  29. #398
    widget modder RKO1195's Avatar
    Join Date
    Aug 2010
    Location
    Alabama
    Posts
    2,289
    Thanks
    10,408
    Thanked 5,231 Times in 1,778 Posts

    Really appreciate you Dacal thanks bud mine works great
    Last edited by RKO1195; 04-03-2013 at 09:42 AM.

  30. The Following 5 Users Say Thank You to RKO1195 For This Useful Post:

    Dacal (04-03-2013), iamaqtpa2t (04-03-2013), Ian Nicoll (04-03-2013), joshlogic (04-03-2013), King_O_Hill (04-03-2013)

  31. #399
    Addicted to Code Dacal's Avatar
    Join Date
    Nov 2010
    Posts
    1,891
    Thanks
    2,897
    Thanked 8,484 Times in 1,500 Posts

    Quote Originally Posted by driftzorz View Post
    I have a question maybe y'all can help. With the old GPS it always showed my correct town name. Now it's shows a different town name. What's causing this? Is there a fix for it maybe?
    Be careful, so much GPS code here... . In the latest uniaw version, Ian suggested me to add a neighborhood option for specific situations. If it's turn on, city may be false... I don't know the code you use. Look that point first.

    Quote Originally Posted by RKO1195 View Post
    Really appreciate you Dacal thanks bud
    Thx bro


    My themes : Jade HD, Silex HD, BaSalt HD,ToPaz
    All are on Cydia and/or Theme It.

  32. The Following 6 Users Say Thank You to Dacal For This Useful Post:

    Cloud2Ground (04-03-2013), Ian Nicoll (04-03-2013), King_O_Hill (04-03-2013), mrsmickey (04-21-2013), NewdestinyX (04-03-2013), RKO1195 (04-03-2013)

  33. #400
    Livin the iPhone Life nik1975's Avatar
    Join Date
    Feb 2008
    Location
    Thessaloniki, Greece
    Posts
    1,289
    Thanks
    2,880
    Thanked 930 Times in 572 Posts

    @Dacal first of all because he is a yahoo monster and @Drifter how maked the changes of all the widgets, THANK YOU!!!!
    Yahoo????

  34. The Following User Says Thank You to nik1975 For This Useful Post:

    Dacal (04-03-2013)

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts