1. texuas's Avatar
    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
    2012-03-21 05:50 PM
  2. stratnik's Avatar
    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
    2012-03-21 06:04 PM
  3. texuas's Avatar
    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; 2012-03-21 at 06:23 PM.
    2012-03-21 06:15 PM
  4. <Ian Nicoll/>'s Avatar
    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.
    2012-03-21 06:56 PM
  5. KraXik's Avatar
    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!
    2012-03-21 07:27 PM
  6. Schnedi's Avatar
    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; 2012-03-22 at 12:25 AM.
    2012-03-22 12:22 AM
  7. GUNNY29's Avatar
    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
    2012-03-22 12:26 AM
  8. Schnedi's Avatar
    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.
    2012-03-22 01:25 AM
  9. rasputin007's Avatar
    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.
    2012-03-22 01:27 AM
  10. bombmom's Avatar
    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?
    2012-03-22 01:27 AM
  11. Dacal's Avatar
    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; 2012-03-22 at 01:58 AM.


    My themes : Jade HD, Silex HD, BaSalt HD,ToPaz
    All are on Cydia and/or Theme It.
    2012-03-22 01:52 AM
  12. bombmom's Avatar
    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.
    2012-03-22 02:02 AM
  13. Dacal's Avatar
    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.
    2012-03-22 02:29 AM
  14. itr2sti's Avatar
    Could someone help me convert this from a per page widget to a lockscreen. Preferably without the animation. Thanks
    http://modmyi.com/showthread.php?p=6456386
    2012-03-22 03:12 AM
  15. chevymusclecar's Avatar
    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!
    2012-03-22 04:19 AM
  16. kimvy's Avatar
    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!
    2012-03-22 04:49 AM
  17. chevymusclecar's Avatar
    http://db.tt/2axtLUAe
    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; 2012-03-22 at 05:15 AM.
    2012-03-22 05:08 AM
  18. SG555's Avatar
    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!
    2012-03-22 07:07 AM
  19. stratnik's Avatar
    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
    2012-03-22 01:42 PM
  20. chg128's Avatar
    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; 2012-03-22 at 02:25 PM.
    2012-03-22 02:18 PM
2,706 ... 3947484950515999 ...
LINK TO POST COPIED TO CLIPBOARD