+ Reply
Page 49 of 136 FirstFirst ... 394748495051 59 99 ... LastLast
Results 961 to 980 of 2706

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


Thread: GPS Based HTML Lockscreen Weather Theme

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 Ian Nicoll Yeah I also noticed it wasn't auto updating, but now Dacal is on it we got no worries M8. The GPS is almost too good
...
  1. #961
    What's Jailbreak?
    Join Date
    Sep 2007
    Posts
    5
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Quote Originally Posted by Ian Nicoll View Post
    Yeah I also noticed it wasn't auto updating, but now Dacal is on it we got no worries M8.


    The GPS is almost too good as Yahoo doesn't know all the places, this is what the UniAW looks like when Yahoo gives the "Unknown" weather condition, but for some weard reason it knows all the other info!

    I'm thinking this will be a common complaint!




    Good afternoon guys, I would like to know what is the name of the theme of this catch and where I can find, the icons seem very nice, sorry my bad English, I use a translator to write in English. thank you very much

  2. #962
    Dalmatinac stratnik's Avatar
    Join Date
    Dec 2010
    Posts
    1,076
    Thanks
    5,880
    Thanked 4,157 Times in 835 Posts

    Quote Originally Posted by texuas View Post
    Good afternoon guys, I would like to know what is the name of the theme of this catch and where I can find, the icons seem very nice, sorry my bad English, I use a translator to write in English. thank you very much
    It is UniAW from Ian Nicoll, here you will find all the links you need

    -->> http://modmyi.com/forums/iphone-4-ne...niaw5-0-a.html

    To work through the GPS you need to download from cydia crazyvivek "GPS Weather Lockscreen".
    Go to first post and read the instructions
    -->> http://modmyi.com/forums/iphone-4-ne...her-theme.html

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

    chevymusclecar (03-21-2012), elilab (03-22-2012), Ian Nicoll (03-21-2012), KraXik (03-21-2012)

  4. #963
    What's Jailbreak?
    Join Date
    Sep 2007
    Posts
    5
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Thank you very much for your quick response, but my question relates to the original theme has icons sms, mail etc, which are seen in this screenshot, the theme UniAW5.0, I know and I have it installed on my iphone , but the icons of the applications that are in the catch are very beautiful and is the theme for which I ask you, Thank you
    Last edited by texuas; 03-21-2012 at 09:23 AM.

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

    stratnik (03-21-2012)

  6. #964
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in the Philippines.
    Posts
    4,955
    Thanks
    7,608
    Thanked 19,219 Times in 3,920 Posts

    Quote Originally Posted by texuas View Post
    Thank you very much for your quick response, but my question relates to the original theme has icons sms, mail etc, which are seen in this screenshot, the theme UniAW5.0, I know and I have it installed on my iphone , but the icons of the applications that are in the catch are very beautiful and is the theme for which I ask you, Thank you
    Thoso icons were my 1st attempt at making icon masks, I don't have them anymore.. Sorry.

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

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

    chg128 (03-22-2012), elilab (03-22-2012), KraXik (03-21-2012), stratnik (03-21-2012), The_Durben (03-21-2012)

  8. #965
    Livin the iPhone Life KraXik's Avatar
    Join Date
    Mar 2011
    Location
    Winchester, UK
    Posts
    2,624
    Thanks
    2,671
    Thanked 1,754 Times in 891 Posts

    Quote Originally Posted by Ian Nicoll View Post
    Thoso icons were my 1st attempt at making icon masks, I don't have them anymore.. Sorry.
    Not bad. They look like I could pop them!

  9. The Following 2 Users Say Thank You to KraXik For This Useful Post:

    Ian Nicoll (03-21-2012), stratnik (03-21-2012)

  10. #966
    desconocido
    Join Date
    Sep 2008
    Posts
    2,941
    Thanks
    2,901
    Thanked 25,718 Times in 2,504 Posts

    Quote Originally Posted by chevymusclecar View Post
    I just don't get it I guess is not working out for me so easy...will sleep on it. And try tomorrow...very encouraging you now get update time stratnik

    Great stuff Ras! great innovation.

    it's simple chevi:


    in Weather.js search the first and last line in this code and replace with these (the middle lines are the new ones)

    Code:
                  var SunRiseSet = findChild(effectiveRoot, "yweather:astronomy");
    
                  var date = conditionTag.getAttribute("date");
                  var date = date.split('2012')[1]
                  var dateday = date.split('2012')[0]
                  var datetimehr = date.split(':')[0]
                  var datetimemin = date.split(':')[1] 
    
                  var dateTime = datetimehr + ":" + datetimemin;
    
    	      if (ampm == true)

    some lines below


    Code:
                 $("#desc").text(text);
                 $('#lastupdate').text("Last update:" + dateTime);
    	     $('#humidity').text("Humidity: " + humidity + "%");

    in Wallpaper.html


    Code:
    <div id="lastupdate"></div>

    and finally in Style.css

    Code:
    #lastupdate{
    	position:absolute; top:310px; left:0px; width:320px; height:480px; text-align:center; z-index:90;
    	font-weight:100; 
    	font-size:13px;
    	color: white;
    	text-shadow: 0px 0px 1px black;
    	font-family: Helvetica;
    }

    credits for this are for rasputin and stratnik
    Last edited by Schnedi; 03-21-2012 at 03:25 PM.

  11. The Following 13 Users Say Thank You to Schnedi For This Useful Post:

    bombmom (03-21-2012), chevymusclecar (03-21-2012), chg128 (03-22-2012), Dacal (03-21-2012), elilab (03-22-2012), GUNNY29 (03-21-2012), Ian Nicoll (03-21-2012), KraXik (03-21-2012), laurence0609 (03-21-2012), metaserph (03-21-2012), RKO1195 (06-16-2012), stratnik (03-22-2012), The_Durben (03-21-2012)

  12. #967
    Mudder GUNNY29's Avatar
    Join Date
    Aug 2010
    Posts
    5,433
    Thanks
    4,571
    Thanked 15,591 Times in 4,087 Posts

    Nice one Schnedi seems abit easier for a novice like me to follow. Thanks again to everyone who has contributed to this thread
    Click My Sig For my auros Mods

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

    chevymusclecar (03-21-2012), elilab (03-22-2012), metaserph (03-21-2012)

  14. #968
    desconocido
    Join Date
    Sep 2008
    Posts
    2,941
    Thanks
    2,901
    Thanked 25,718 Times in 2,504 Posts

    BTW Dacal i haven't tried your guide but i hope do it soon to see if i can get it. just wanted to say thanks a lot for what you have done with this widget it's

    and of course all the users helping here!! amazing modders/coders.

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

    chevymusclecar (03-21-2012), chg128 (03-22-2012), Dacal (03-22-2012), elilab (03-22-2012), Ian Nicoll (03-21-2012), stratnik (03-22-2012)

  16. #969
    My iPhone is a Part of Me
    Join Date
    Aug 2009
    Posts
    666
    Thanks
    325
    Thanked 2,140 Times in 490 Posts

    Quote Originally Posted by lostinthemes View Post
    Very nice icon sets, hope youll share it in the future...
    No!
    They are for my 3GS and would look too fuzzy if blown up for retina display.

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

    lostinthemes (03-22-2012)

  18. #970
    I know nothing! bombmom's Avatar
    Join Date
    Jul 2010
    Location
    RETIRED
    Posts
    2,223
    Thanks
    3,820
    Thanked 3,482 Times in 1,457 Posts

    Quote Originally Posted by Dacal View Post
    Hi, i posted a tutorial. It must work for any theme it think, with little adjustment : http://modmyi.com/forums/iphone-4-ne...ml#post6452480

    Let me know.
    Is there anyway to have the dual function added to Rasputian's 5 day forcast code?

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

    chevymusclecar (03-21-2012)

  20. #971
    Addicted to Code Dacal's Avatar
    Join Date
    Nov 2010
    Posts
    1,891
    Thanks
    2,903
    Thanked 8,488 Times in 1,500 Posts

    Quote Originally Posted by bombmom View Post
    Is there anyway to have the dual function added to Rasputian's 5 day forcast code?

    Already done for a mod (quickly). Here is the location.js i use :

    //-----------------------------------------------------------------------------------------------------------
    //-----------------------------------------------------------------------------------------------------------
    // Author : Vivek Thakur
    // Date : 25 Feb 2012
    //-----------------------------------------------------------------------------------------------------------
    //-----------------------------------------------------------------------------------------------------------
    // Modified by Dacal for BaSalt HD theme.
    //-----------------------------------------------------------------------------------------------------------
    //-----------------------------------------------------------------------------------------------------------

    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"});
    }
    }

    In the main theme, check the dealWithWeather function. Must be something like that (some lines are useless or need to be adapted, function of the rest of the script) :

    function dealWithWeather(obj) {
    if (obj.error == false){
    document.getElementById("city").innerText=obj.city ;
    document.getElementById("desc").innerText = LangTranslate[obj.icon*1];

    if (useRealFeel == true){
    tempValue = obj.realFeel;
    }else{
    tempValue = obj.temp;
    }

    if (obj.sunsethr < currentHours) { obj.TOD = "Tonight"; }
    else if (obj.sunsethr < currentHours) { obj.TOD = "Tonight"; }
    else if (currentHours < 2) { obj.TOD = "Tonight"; }
    else { obj.TOD = "Today"; }

    document.getElementById("temp").innerHTML=tempValu e+ ""
    document.getElementById("weatherIcon").src="Icon Sets/MyIcons/"+obj.icon+".png";


    document.getElementById("Today").innerHTML=Forecas tDayNames(obj.TOD);
    document.getElementById("TodayIcon").src="Icon Sets/MyIcons/"+obj.TodayCode+".png";
    document.getElementById("TodayHiLo").innerHTML=obj .TodayHi+ " / <font color=#a8a8a8>"+obj.TodayLo+ "</font>";

    document.getElementById("Day1").innerHTML=Forecast DayNames(obj.Day1);
    document.getElementById("Day1Icon").src="Icon Sets/MyIcons/"+obj.Day1Code+".png";
    document.getElementById("Day1HiLo").innerHTML=obj. Day1Hi+ " / <font color=#a8a8a8>"+obj.Day1Lo+ "</font>";

    document.getElementById("Day2").innerHTML=Forecast DayNames(obj.Day2);
    document.getElementById("Day2Icon").src="Icon Sets/MyIcons/"+obj.Day2Code+".png";
    document.getElementById("Day2HiLo").innerHTML=obj. Day2Hi+ " / <font color=#a8a8a8>"+obj.Day2Lo+ "</font>";

    document.getElementById("Day3").innerHTML=Forecast DayNames(obj.Day3);
    document.getElementById("Day3Icon").src="Icon Sets/MyIcons/"+obj.Day3Code+".png";
    document.getElementById("Day3HiLo").innerHTML=obj. Day3Hi+ " / <font color=#a8a8a8>"+obj.Day3Lo+ "</font>";

    document.getElementById("Day4").innerHTML=Forecast DayNames(obj.Day4);
    document.getElementById("Day4Icon").src="Icon Sets/MyIcons/"+obj.Day4Code+".png";
    document.getElementById("Day4HiLo").innerHTML=obj. Day4Hi+ " / <font color=#a8a8a8>"+obj.Day4Lo+ "</font>";
    }
    else
    {
    document.getElementById("city").innerText= "Internet ?!";
    }
    }
    Sorry, not the time to explain more (other modifications are the same as before, ie add the script in the HTML, the "if (gps == true) ....",... As soon as i can, i'll post a complete widget.
    Last edited by Dacal; 03-21-2012 at 04:58 PM.


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

  21. The Following 12 Users Say Thank You to Dacal For This Useful Post:

    bombmom (03-21-2012), chevymusclecar (03-21-2012), chg128 (03-22-2012), elilab (03-22-2012), Ian Nicoll (03-21-2012), laurence0609 (03-21-2012), lostinthemes (03-22-2012), metaserph (03-21-2012), RKO1195 (06-16-2012), Schnedi (03-21-2012), stratnik (03-22-2012), The_Durben (03-21-2012)

  22. #972
    I know nothing! bombmom's Avatar
    Join Date
    Jul 2010
    Location
    RETIRED
    Posts
    2,223
    Thanks
    3,820
    Thanked 3,482 Times in 1,457 Posts

    Quote Originally Posted by Dacal View Post
    Already done for a mod (quickly). Here is the location.js i use :




    In the main theme, check the dealWithWeather function. Must be something like that (some lines are useless or need to be adapted, function of the rest of the script) :



    Sorry, not the time to explain more (other modifications are the same as before, ie add the script in the HTML, the "if (gps == true) ....",... As soon as i can, i'll post a complete widget.
    Thanks Dacal I see what you have done. I have already stripped out alot of the uneeded code.

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

    elilab (03-22-2012), stratnik (03-22-2012), The_Durben (03-21-2012)

  24. #973
    Addicted to Code Dacal's Avatar
    Join Date
    Nov 2010
    Posts
    1,891
    Thanks
    2,903
    Thanked 8,488 Times in 1,500 Posts

    Quote Originally Posted by bombmom View Post
    Thanks Dacal I see what you have done. I have already stripped out alot of the uneeded code.
    U're welcome. I must 'clean' the code a little, but it works fine like that.


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

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

    bombmom (03-21-2012), elilab (03-22-2012), stratnik (03-22-2012), The_Durben (03-22-2012)

  26. #974
    iPhone? More like MyPhone
    Join Date
    Apr 2009
    Location
    In a galaxy far far away
    Posts
    191
    Thanks
    114
    Thanked 64 Times in 51 Posts

    Could someone help me convert this from a per page widget to a lockscreen. Preferably without the animation. Thanks
    http://modmyi.com/forums/iphone-4-4s-new-skins-themes-launches/792965-spectre_hd-hd-only-ios-5-above-post6456386.html

  27. #975
    Power User chevymusclecar's Avatar
    Join Date
    Aug 2010
    Location
    Seattle, WA
    Posts
    5,886
    Thanks
    18,045
    Thanked 19,197 Times in 4,218 Posts

    Quote Originally Posted by schnedi View Post
    it's simple chevi:


    credits for this are for rasputin and stratnik
    Thank you guys!!

    Schnedi thank you for spelling it out for me. I appreciate it pal!

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

    stratnik (03-22-2012)

  29. #976
    My iPhone is a Part of Me kimvy's Avatar
    Join Date
    Sep 2010
    Location
    Vancouver, Canada
    Posts
    626
    Thanks
    3,013
    Thanked 543 Times in 328 Posts

    Quote Originally Posted by rasputin007 View Post
    That is no theme, just part of my own icons and setup. The idea was and still is that the icons in the folders have different colour, but same design.
    I do not want to fill up this thread with this, but you can get more info at MobileModding.US - View Single Post - Screen Shot of your Iphone.
    Pretty cool. Thanks for the link and info!

  30. #977
    Power User chevymusclecar's Avatar
    Join Date
    Aug 2010
    Location
    Seattle, WA
    Posts
    5,886
    Thanks
    18,045
    Thanked 19,197 Times in 4,218 Posts

    http://db.tt/2axtLUAe
    Quote Originally Posted by chevymusclecar View Post
    Thank you guys!!

    Schnedi thank you for spelling it out for me. I appreciate it pal!
    Got it to display but how does it get update time? It shows last update over an hour ago?

    http://db.tt/2axtLUAe

    Last edited by chevymusclecar; 03-21-2012 at 08:15 PM.

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

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

  32. #978
    What's Jailbreak?
    Join Date
    Mar 2012
    Posts
    6
    Thanks
    0
    Thanked 2 Times in 1 Post
    Quote Originally Posted by Ian Nicoll View Post
    Thoso icons were my 1st attempt at making icon masks, I don't have them anymore.. Sorry.
    Ian,

    What about the date bar above the dock? I did not notice that in the UniAW5 package but my eyesight is pretty bad these days! Can you point me in the right direction?

    Thanks!

  33. #979
    Dalmatinac stratnik's Avatar
    Join Date
    Dec 2010
    Posts
    1,076
    Thanks
    5,880
    Thanked 4,157 Times in 835 Posts

    Quote Originally Posted by chevymusclecar View Post
    http://db.tt/2axtLUAe

    Got it to display but how does it get update time? It shows last update over an hour ago?

    http://db.tt/2axtLUAe


    Yes I know, drives me nuts

  34. The Following 2 Users Say Thank You to stratnik For This Useful Post:

    chevymusclecar (03-22-2012), chg128 (03-22-2012)

  35. #980
    CHG128 和平與愛 chg128's Avatar
    Join Date
    Jan 2008
    Location
    KL-UK
    Posts
    1,872
    Thanks
    4,324
    Thanked 4,679 Times in 1,212 Posts

    Quote Originally Posted by stratnik View Post
    Yes I know, drives me nuts
    i dont think it is slow the last update time,i got the same before,when the TEMP change,the time just chagne !

    i use it on Perpage ,i think lot better .i use the original GPS widget !

    Last edited by chg128; 03-22-2012 at 05:25 AM.

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

    chevymusclecar (03-22-2012), elilab (03-22-2012), Ramses2 (03-22-2012), stratnik (03-22-2012)

LinkBacks (?)

  1. 04-12-2013, 02:27 PM
  2. 03-15-2013, 10:09 AM
  3. 08-11-2012, 12:06 AM
  4. 03-03-2012, 12:38 PM

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