Page 240 of 875 FirstFirst ... 140 190 230238239240241242 250 290 340 740 ... LastLast
Results 4,781 to 4,800 of 17493

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


Thread: UniAW6.0 for iph4 & iph5

  1. #4781
    Quote Originally Posted by 2k1 View Post
    So mama that thing ya sent me for my lockscreen I have to mess with the code for it to work again huh?
    Oh 2k... I may have to really redo that one completely. I'd go back to the default one that installed with the theme. As that one is working. Smash extreme is just all screwed up right now.

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

    2k1 (05-21-2013)

  3. #4782
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in the Philippines.
    Posts
    5,407
    Thanks
    8,473
    Thanked 21,635 Times in 4,335 Posts

    Nvm.
    Last edited by Ian Nicoll; 05-21-2013 at 07:45 AM.

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

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

    RandyTG (05-21-2013)

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

    Ok ill do that then. No rush when ever ya git a chance to do it. Thank yiu

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

    MamaJaay (05-21-2013)

  7. #4784
    Quote Originally Posted by 2k1 View Post
    Ok ill do that then. No rush when ever ya git a chance to do it. Thank yiu
    I may be recoding things completely. I'm sick of yahoo.

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

    2k1 (05-21-2013), Best01 (05-21-2013), bliken (05-21-2013), oloung1 (05-21-2013)

  9. #4785
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in the Philippines.
    Posts
    5,407
    Thanks
    8,473
    Thanked 21,635 Times in 4,335 Posts

    Quote Originally Posted by MamaJaay View Post
    Oh 2k... I may have to really redo that one completely. I'd go back to the default one that installed with the theme. As that one is working. Smash extreme is just all screwed up right now.
    If you are talking about the touch screen one then just do as I did in last post.

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

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

    Kazuyoshi (05-21-2013)

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

    Quote Originally Posted by Ian Nicoll View Post
    If you are talking about the touch screen one then just do as I did in last post.
    Think that one is different than what she did for me.

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

    Ian Nicoll (05-21-2013)

  13. #4787
    For anyone still having issues, Dacal posted the fix a few pages back but Ian has posted it again here:

    UniAW6.0 for iph4 & iph5

    This will get you back up and running. Instead of a 4-day forecast, you will only have a 1-day forecast (for tomorrow).

    EDIT: Heat Index code coming later today. Just want to run it on my phone for the first half of the day to make sure everything is still working properly.

  14. The Following 10 Users Say Thank You to Marty McFly For This Useful Post:

    bliken (05-21-2013), Hip5 (05-21-2013), Ian Nicoll (05-21-2013), King_O_Hill (05-21-2013), nik1975 (05-21-2013), Noobiusmaximus (05-21-2013), pnunez1310 (05-21-2013), Simon (05-21-2013), TaJr12 (05-21-2013), The_Durben (05-21-2013)

  15. #4788
    My iPhone is a Part of Me RandyTG's Avatar
    Join Date
    May 2010
    Location
    NH, USA
    Posts
    911
    Thanks
    2,256
    Thanked 626 Times in 362 Posts

    Quote Originally Posted by MamaJaay View Post
    It's not that yahoo is down, per se. They have changed their feed, and are not allowing a (real) forecast pull any longer. You now simply get today and tomorrow. Attachment 639250

    So any code that's trying to query anything past tomorrow is breaking things.

    This may be the end of forecast widgets in general.
    The new Yahoo weather app seems to be working just fine with a five day forecast and all, so they just broke it for everyone not named yahoo.

  16. #4789
    Quote Originally Posted by Ian Nicoll View Post
    Users for SE version:

    (I don't actually have the SE version but I presume it's the same as the new code for 6.3 (with the json cookie.))


    /* if (Reverse_Hi_Lo == true) {
    document.getElementById("Day1").innerHTML=Forecast DayNames($.cookie('jsonCookie').forecastday[1]).substring(0,3);
    document.getElementById("Day1Icon").src="Icon Sets/"+iconSet+"/"+$.cookie('jsonCookie').forecastcode[1]+".png";
    document.getElementById("Day1HiLo").innerHTML=$.co okie('jsonCookie').forecasthigh[1]+ "°/ "+$.cookie('jsonCookie').forecastlow[1]+ "°";
    document.getElementById("Day2").innerHTML=Forecast DayNames($.cookie('jsonCookie').forecastday[2]).substring(0,3);
    document.getElementById("Day2Icon").src="Icon Sets/"+iconSet+"/"+$.cookie('jsonCookie').forecastcode[2]+".png";
    document.getElementById("Day2HiLo").innerHTML=$.co okie('jsonCookie').forecasthigh[2]+ "°/ "+$.cookie('jsonCookie').forecastlow[2]+ "°";
    document.getElementById("Day3").innerHTML=Forecast DayNames($.cookie('jsonCookie').forecastday[3]).substring(0,3);
    document.getElementById("Day3Icon").src="Icon Sets/"+iconSet+"/"+$.cookie('jsonCookie').forecastcode[3]+".png";
    document.getElementById("Day3HiLo").innerHTML=$.co okie('jsonCookie').forecasthigh[3]+ "°/ "+$.cookie('jsonCookie').forecastlow[3]+ "°";
    document.getElementById("Day4").innerHTML=Forecast DayNames($.cookie('jsonCookie').forecastday[4]).substring(0,3);
    document.getElementById("Day4Icon").src="Icon Sets/"+iconSet+"/"+$.cookie('jsonCookie').forecastcode[4]+".png";
    document.getElementById("Day4HiLo").innerHTML=$.co okie('jsonCookie').forecasthigh[4]+ "°/ "+$.cookie('jsonCookie').forecastlow[4]+ "°";
    } else {
    document.getElementById("Day1").innerHTML=Forecast DayNames($.cookie('jsonCookie').forecastday[1]).substring(0,3);
    document.getElementById("Day1Icon").src="Icon Sets/"+iconSet+"/"+$.cookie('jsonCookie').forecastcode[1]+".png";
    document.getElementById("Day1HiLo").innerHTML=$.co okie('jsonCookie').forecastlow[1]+ "°/ "+$.cookie('jsonCookie').forecasthigh[1]+ "°";
    document.getElementById("Day2").innerHTML=Forecast DayNames($.cookie('jsonCookie').forecastday[2]).substring(0,3);
    document.getElementById("Day2Icon").src="Icon Sets/"+iconSet+"/"+$.cookie('jsonCookie').forecastcode[2]+".png";
    document.getElementById("Day2HiLo").innerHTML=$.co okie('jsonCookie').forecastlow[2]+ "°/ "+$.cookie('jsonCookie').forecasthigh[2]+ "°";
    document.getElementById("Day3").innerHTML=Forecast DayNames($.cookie('jsonCookie').forecastday[3]).substring(0,3);
    document.getElementById("Day3Icon").src="Icon Sets/"+iconSet+"/"+$.cookie('jsonCookie').forecastcode[3]+".png";
    document.getElementById("Day3HiLo").innerHTML=$.co okie('jsonCookie').forecastlow[3]+ "°/ "+$.cookie('jsonCookie').forecasthigh[3]+ "°";
    document.getElementById("Day4").innerHTML=Forecast DayNames($.cookie('jsonCookie').forecastday[4]).substring(0,3);
    document.getElementById("Day4Icon").src="Icon Sets/"+iconSet+"/"+$.cookie('jsonCookie').forecastcode[4]+".png";
    document.getElementById("Day4HiLo").innerHTML=$.co okie('jsonCookie').forecastlow[4]+ "°/ "+$.cookie('jsonCookie').forecasthigh[3]+ "°";
    } */





    AND (if you have this)


    // RESTORE THE LAYOUT IF "NOINTERNET".
    document.getElementById("nointernet").style.displa y='none';
    if (Hide_Forecast_Background == false) { document.getElementById("forecastbg").style.displa y='none'; }
    if (Hide_WeatherInfo_Background == false) { document.getElementById("WeatherInfoBG").style.dis play='block'; }
    // END
    No, the first SE is the same as uniAW 6.2 . This new code is just for the new beta .


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

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

    Hip5 (05-21-2013), Ian Nicoll (05-21-2013), Kazuyoshi (05-21-2013), King_O_Hill (05-21-2013), TaJr12 (05-21-2013), The_Durben (05-21-2013)

  18. #4790
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in the Philippines.
    Posts
    5,407
    Thanks
    8,473
    Thanked 21,635 Times in 4,335 Posts

    Quote Originally Posted by Marty McFly View Post
    For anyone still having issues, Dacal posted the fix a few pages back but Ian has posted it again here:

    UniAW6.0 for iph4 & iph5

    This will get you back up and running. Instead of a 4-day forecast, you will only have a 1-day forecast (for tomorrow).

    EDIT: Heat Index code coming later today. Just want to run it on my phone for the first half of the day to make sure everything is still working properly.
    Hi Marty,

    How does your "Heat Index" work?
    Will it calculate feels like based on humidity for temps over 27º and based on wind speed for temps under 16º?

    Quote Originally Posted by Dacal View Post
    No, the first SE is the same as uniAW 6.2 . This new code is just for the new beta .
    Ah ok, sorry about the post then.
    I know the fix is rough, but it gets me up & running again.

    Dacal,

    You know Yahoo also has a free api key like the others, maybe we need this to get access? Yahoo site shows a 10 day forecast!

    I think if we try another option we will need an api key anyway.
    Last edited by Ian Nicoll; 05-21-2013 at 07:50 AM.

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

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

    azaleea (05-25-2013), Kazuyoshi (05-21-2013), King_O_Hill (05-21-2013), TaJr12 (05-21-2013), The_Durben (05-21-2013)

  20. #4791
    Quote Originally Posted by Ian Nicoll View Post
    Hi Marty,

    How does your "Heat Index" work?
    Will it calculate feels like based on humidity for temps over 27º and based on wind speed for temps under 16º?



    Ah ok, sorry about the post then.
    I know the fix is rough, but it gets me up & running again.

    Dacal,

    You know Yahoo also has a free api key like the others, maybe we need this to get access? Yahoo site shows a 10 day forecast!

    I think if we try another option we will need an api key anyway.
    I must look . At work, not the time maybe tonight.


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

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

    Ian Nicoll (05-21-2013), King_O_Hill (05-21-2013), Marty McFly (05-21-2013), TaJr12 (05-21-2013)

  22. #4792
    Quote Originally Posted by Ian Nicoll View Post
    Hi Marty,

    How does your "Heat Index" work?
    Will it calculate feels like based on humidity for temps over 27º and based on wind speed for temps under 16º?
    Hi Ian,

    If the current temp is above 27c/80f AND the humidity is 40% or greater, the heat index calculation kicks in and the "feels like" number will be based on humidity and displayed as such. Otherwise, the standard wind chill number will be shown. I don't think we need to worry about that "middle area" you mentioned in your other post (between 16-27c). In that case, the script will be using the wind chill number. Typically when "wind chill" is used in nicer conditions it just shows the same temp as current temp which is accurate in that 'middle area' condition. Sound good?

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

    bliken (05-21-2013), Ian Nicoll (05-21-2013), TaJr12 (05-21-2013), The_Durben (05-21-2013)

  24. #4793
    iPhone? More like MyPhone mister jay's Avatar
    Join Date
    Nov 2010
    Location
    Germany (S-H)
    Posts
    122
    Thanks
    41
    Thanked 9 Times in 7 Posts

    thanks to all for the good and fast support

  25. The Following User Says Thank You to mister jay For This Useful Post:

    Ian Nicoll (05-21-2013)

  26. #4794
    My iPhone is a Part of Me RandyTG's Avatar
    Join Date
    May 2010
    Location
    NH, USA
    Posts
    911
    Thanks
    2,256
    Thanked 626 Times in 362 Posts

    Quote Originally Posted by Ian Nicoll View Post
    Nvm.
    For the SE version you also need to do this (in addition to what Ian posted to do for the SE version);

    if (obj.icon == 3200) obj.icon = 48;

    /*obj.Day1 = request.responseXML.getElementsByTagName("forecast ")[1].getAttribute("day");
    obj.Day1Hi = request.responseXML.getElementsByTagName("forecast ")[1].getAttribute("high");
    obj.Day1Lo = request.responseXML.getElementsByTagName("forecast ")[1].getAttribute("low");
    obj.Day1Code = request.responseXML.getElementsByTagName("forecast ")[1].getAttribute("code");

    obj.Day2 = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("day");
    obj.Day2Hi = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("high");
    obj.Day2Lo = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("low");
    obj.Day2Code = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("code");

    obj.Day3 = request.responseXML.getElementsByTagName("forecast ")[3].getAttribute("day");
    obj.Day3Hi = request.responseXML.getElementsByTagName("forecast ")[3].getAttribute("high");
    obj.Day3Lo = request.responseXML.getElementsByTagName("forecast ")[3].getAttribute("low");
    obj.Day3Code = request.responseXML.getElementsByTagName("forecast ")[3].getAttribute("code");

    obj.Day4 = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("day");
    obj.Day4Hi = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("high");
    obj.Day4Lo = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("low");
    obj.Day4Code = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("code");*/

  27. The Following User Says Thank You to RandyTG For This Useful Post:

    signori (05-21-2013)

  28. #4795
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in the Philippines.
    Posts
    5,407
    Thanks
    8,473
    Thanked 21,635 Times in 4,335 Posts

    Quote Originally Posted by Marty McFly View Post
    Hi Ian,

    If the current temp is above 27c/80f AND the humidity is 40% or greater, the heat index calculation kicks in and the "feels like" number will be based on humidity and displayed as such. Otherwise, the standard wind chill number will be shown. I don't think we need to worry about that "middle area" you mentioned in your other post (between 16-27c). In that case, the script will be using the wind chill number but it will just be reporting the same temp as current temp which is accurate in that 'middle area' condition. Sound good?
    So temps below 16º calculate wind chill as well as the heat index with temps over 27º? If so... absolutely perfect M8... Gimmie Gimmie

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

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

    King_O_Hill (05-21-2013), Marty McFly (05-21-2013), TaJr12 (05-21-2013)

  30. #4796
    Quote Originally Posted by Ian Nicoll View Post
    So temps below 16º calculate wind chill as well as the heat index with temps over 27º? If so... absolutely perfect M8... Gimmie Gimmie
    Close: Temperatures above 27c/80f AND humidity above 40% - use heat index. Otherwise, use wind chill number.

    That seems to be standard in Meteorology after doing some reading. Easily changed in the code but I think it's working perfectly as is

    EDIT: So in nicer weather, you will see one of two things. If there is no heat index (ie: temp is low, early in the morning, no humidity, etc..), your 'feels like' temp will be the same as your current temp (which is the wind chill number. Totally accurate in this condition). As soon as humidity rises or a heat index condition presents itself, the 'feels like' number will be the heat index number (greater then current temp obviously). Hope that's clear. I feel like I'm not explaining it well
    Last edited by Marty McFly; 05-21-2013 at 08:06 AM.

  31. The Following 3 Users Say Thank You to Marty McFly For This Useful Post:

    bliken (05-21-2013), Ian Nicoll (05-21-2013), King_O_Hill (05-21-2013)

  32. #4797
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in the Philippines.
    Posts
    5,407
    Thanks
    8,473
    Thanked 21,635 Times in 4,335 Posts

    Quote Originally Posted by Marty McFly View Post
    Close: Temperatures above 27c/80f AND humidity above 40% - use heat index. Otherwise, use wind chill number.

    That seems to be standard in Meteorology after doing some reading. Easily changed in the code but I think it's working perfectly as is
    I'll give it a good test. It's my specialty, just ask Dacal.
    Now hand it over before I get angry.
    Jokin bud.
    Last edited by Ian Nicoll; 05-21-2013 at 08:08 AM.

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

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

    King_O_Hill (05-21-2013)

  34. #4798
    Quote Originally Posted by Ian Nicoll View Post
    I'll give it a good test. It's my specialty, just ask Dacal.
    Now hand it over before I get angry.
    Jokin bud.
    Hahaha. OK, why wait. Everyone can test it with me today

    Heat Index Code

    Always back up! Place below code in UniwAW6.js file, near the bottom, after all 'yweathercalls', directly under this line:

    obj.icon = forecast.getAttribute("code");
    }


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

    // Heat index computed using air temperature F and RH%

    if (tempUnit=="c"){

    if (obj.temp >= 27 && obj.humidity >= 40) {

    obj.temp = 1.80 * (obj.temp) + 32.0;

    var hi = -42.379+2.04901523*(obj.temp)+10.14333127*(obj.humi dity)-0.22475541*(obj.temp)*(obj.humidity)-6.83783*(Math.pow(10, -3))*(Math.pow(obj.temp, 2))-5.481717*(Math.pow(10, -2))*(Math.pow((obj.humidity), 2))+1.22874*(Math.pow(10, -3))*(Math.pow((obj.temp), 2))*(obj.humidity)+8.5282*(Math.pow(10, -4))*(obj.temp)*(Math.pow((obj.humidity), 2))-1.99*(Math.pow(10, -6))*(Math.pow((obj.temp), 2))*(Math.pow((obj.humidity),2));

    var heatindex = Math.round((hi - 32) * .556) + " C";
    obj.chill = heatindex;
    }}

    if (tempUnit=="f"){

    if (obj.temp >= 80 && obj.humidity >=40) {

    var hi = -42.379+2.04901523*(obj.temp)+10.14333127*(obj.humi dity)-0.22475541*(obj.temp)*(obj.humidity)-6.83783*(Math.pow(10, -3))*(Math.pow(obj.temp, 2))-5.481717*(Math.pow(10, -2))*(Math.pow((obj.humidity), 2))+1.22874*(Math.pow(10, -3))*(Math.pow((obj.temp), 2))*(obj.humidity)+8.5282*(Math.pow(10, -4))*(obj.temp)*(Math.pow((obj.humidity), 2))-1.99*(Math.pow(10, -6))*(Math.pow((obj.temp), 2))*(Math.pow((obj.humidity),2));

    var heatindex = Math.round(hi) + " F";
    obj.chill = heatindex;
    }}

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

    I'm sure the code can be improved upon as you all know I'm fairly new to this. I'm anxious to get Dacal & Ian's thoughts!

    Enjoy!

    EDIT: If you want to test functionality, add these two lines to the top of script and play with the numbers:

    obj.temp = 30;
    obj.humidity = 85;

    - Don't worry about formatting or any other values when testing as some things might appear out of whack. It's just the 'Feels Like' number you want to check.
    - I like to enter the same test values on this page: http://www.csgnetwork.com/heatindexcalcs.html and compare results to make sure all is working well.
    - Just remember when you are entering 'temperature' values, enter them as per what you have set in config (F or C).
    - Also remember to comment the two lines out or remove them completely when you are done testing.
    Last edited by Marty McFly; 05-21-2013 at 11:31 AM.

  35. The Following 5 Users Say Thank You to Marty McFly For This Useful Post:

    Dacal (05-21-2013), Ian Nicoll (05-21-2013), lostinthemes (05-22-2013), RandyTG (05-21-2013), TaJr12 (05-21-2013)

  36. #4799
    iPhone? More like MyPhone Kazuyoshi's Avatar
    Join Date
    Sep 2011
    Location
    near Nürnberg, Germany
    Posts
    393
    Thanks
    1,307
    Thanked 529 Times in 233 Posts

    I think the only answer could be 42
    Matux is past ... Kazuyoshi is back (thx Simon )

    Dropbox
    : exxOS -- Shine --

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

    Marty McFly (05-21-2013)

  38. #4800
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in the Philippines.
    Posts
    5,407
    Thanks
    8,473
    Thanked 21,635 Times in 4,335 Posts

    Thanks Marty,

    Gonna try nooo. (Scottish )

    Where did you find the formula?

    I'm sure it's 42.123583495859385983745928759... roughly.

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

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

    King_O_Hill (05-21-2013), Marty McFly (05-21-2013)

Page 240 of 875 FirstFirst ... 140 190 230238239240241242 250 290 340 740 ... 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
  •