Page 590 of 614 FirstFirst ... 90490540580588589590591592600 ... LastLast
Results 11,781 to 11,800 of 12264

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


Thread: UniAW7

  1. #11781
    Default UniAW7
    Quote Originally Posted by NewD View Post
    "RemAinder".. .. All good, bro!!


    Houston we have a problem...
    Now here has just passed midnight and until 3 am the names of the forecast days will not change.
    But... the number did change...
    This is also a result that the number is not taken from the .xml file.
    Am I right Grant?

    Last edited by morkino; 2017-03-02 at 12:11 AM.

  2. #11782
    Code Dependent NewD's Avatar
    Join Date
    Jan 2012
    Location
    Northeast US
    Posts
    5,709
    Thanks
    8,337
    Thanked 16,465 Times in 7,696 Posts

    Default UniAW7
    Quote Originally Posted by morkino View Post


    Houston we have a problem...
    Now here has just passed midnight and until 3 am the names of the forecast days will not change.
    But... the number did change...
    This is also a result that the number is not taken from the .xml file.
    Am I right Grant?

    Well no.. that's a different problem… I had to write some code in there several weeks ago to make sure that the day name didn't advance too quickly because many of the extra APIs kept reporting the wrong day until after 3 AM. But that's influencing our newer code. Let me try and work that out. Can you send me The XML you're working with.

    Well.. it could also be because of current date rather than xml date.. both could be the issue. Send me your xml
    Last edited by NewD; 2017-03-02 at 12:27 AM.

  3. #11783
    Quote Originally Posted by NewD View Post
    Well no.. that's a different problem… I had to write some code in there several weeks ago to make sure that the day name didn't advance too quickly because many of the extra APIs kept reporting the wrong day until after 3 AM. But that's influencing our newer code. Let me try and work that out. Can you send me The XML you're working with.

    Well.. it could also be because of current date rather than xml date.. both could be the issue. Send me your xml
    Here bro:
    https://www.dropbox.com/s/00oljj3u4m...ather.xml?dl=0

  4. #11784
    Code Dependent NewD's Avatar
    Join Date
    Jan 2012
    Location
    Northeast US
    Posts
    5,709
    Thanks
    8,337
    Thanked 16,465 Times in 7,696 Posts

    Actually, Morkino, the more I think about this.. it's actually exactly the opposite of my first post to you there.. "I" actually NOTICED the 12am to 3am problem with MY Mod of U7... when I noticed after midnight that the Weekdays for the forecasts didn't update to the next day until after 3am.. But that's a function of the API's themselves.. EVEN Weather.com, the API Apple started using after iOS8.., doesn't advance the day or the forecasts until around 3am...

    SO... you were right in your assessment that it's because this new code, of yours and Jacques', that uses currentTime.getDate, that's the problem. This is why your NUMBER (Date) advanced at midnight but the WEEKDAY (from the xml) did not.

    So... what we have to do is align the new code for DATE with the xml 'WEEKDAY' update timing (3am-4am'ish)..

    So I'm working on some widgets for Cocco28 now for his themes.. So if you want to get to work on finding a way to deal with this.. have fun.. It's fun working on these 'puzzles'. You'll figure it out..

    It's not really going to be about finding anything in the xml... I think it may be as easy as another IF statement like I used in my forecast summary fix section... modified for this instance. Maybe something like this:
    Code:
    // DAY FORECAST
    if (0 == currentTime.getHours() || currentTime.getHours() <= 3) {
    	var DayNum = (currentTime.getDate() -1);
    	var Today = (currentTime.getDate() -1);
    } else {
    	var DayNum = currentTime.getDate();
    	var Today = currentTime.getDate();
    }
    var Tomorrow = 0;
    ///.....rest of code.....///
    Last edited by NewD; 2017-03-02 at 03:39 AM.

  5. The Following 2 Users Say Thank You to NewD For This Useful Post:

    jm26200 (2017-03-02), morkino (2017-03-02)

  6. #11785
    hmm for me 6:05 am all ok try also for put ge and good

    -img_0021.png -img_0022.png

    but no same code

    ty Morkino and NewD for work more and and lignt codi !!

    // DAY FORECAST
    for (var i=1; i < 6; i++) {
    $("#Day" + i).removeClass();
    var j = 0;
    if (lang == "ge") {
    j = 2;
    } else {
    j = 3;
    }
    var DayNum = currentTime.getDate();
    switch(currentTime.getMonth()+1) {
    case 1:
    case 3:
    case 5:
    case 7:
    case 8:
    case 10:
    case 12:
    DayNum = currentTime.getDate()+i;
    break;
    case 2:
    if(currentTime.getFullYear() % 4 ==0 && currentTime.getFullYear() % 100 != 0){
    DayNum = (currentTime.getDate()+i -29);
    }else if(currentTime.getFullYear() % 400 == 0){
    DayNum = (currentTime.getDate()+i -29);
    }else {
    DayNum = (currentTime.getDate()+i -28);
    }
    break;
    case 4:
    case 6:
    case 9:
    case 11:
    DayNum = currentTime.getDate()+i;
    break;
    }
    switch (lang) {
    case 'ge' :
    $("#Day" + i).html(days[obj.dayofweek[i]-1].substring(0,j) + " " + DayNum);
    break;
    default :
    if (Single_Line_Date_Suffix == true) {
    $("#Day" + i).html(days[obj.dayofweek[i]-1].substring(0,j) + " " + Suffix(DayNum));
    }else {$("#Day" + i).html(days[obj.dayofweek[i]-1].substring(0,j) + " " + DayNum);}
    break;
    }
    Last edited by jm26200; 2017-03-02 at 06:17 AM.
    Iphone 7 IOS 10.1.1

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

    morkino (2017-03-02), NewD (2017-03-02)

  8. #11786
    Quote Originally Posted by NewD View Post
    So.. I added another config.js variable
    Code:
    var Forecast_Date_Suffix = true; // true to use number suffix ('st', 'nd', etc) with date number in 5-day forecast
    And changed the code one last time to...

    Code:
    if (lang == "ge") {
    	$("#Day" + i).html(days[obj.dayofweek[i]-1].substring(0,2) + " " + ( Forecast_Date_Suffix == true ? Suffix(Tomorrow) : Tomorrow ));
    } else {
    	$("#Day" + i).html(days[obj.dayofweek[i]-1].substring(0,3) + " " + ( Forecast_Date_Suffix == true ? Suffix(Tomorrow) : Tomorrow ));
    }
    ty for that but we have already this Single_Line_Date_Suffix also use the first code u show
    Suffix(DayNum) and its ok

    PS: sorry for my frenglish cant explain more often no found good words
    Iphone 7 IOS 10.1.1

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

    morkino (2017-03-02)

  10. #11787
    Quote Originally Posted by NewD View Post
    Actually, Morkino, the more I think about this.. it's actually exactly the opposite of my first post to you there.. "I" actually NOTICED the 12am to 3am problem with MY Mod of U7... when I noticed after midnight that the Weekdays for the forecasts didn't update to the next day until after 3am.. But that's a function of the API's themselves.. EVEN Weather.com, the API Apple started using after iOS8.., doesn't advance the day or the forecasts until around 3am...

    SO... you were right in your assessment that it's because this new code, of yours and Jacques', that uses currentTime.getDate, that's the problem. This is why your NUMBER (Date) advanced at midnight but the WEEKDAY (from the xml) did not.

    So... what we have to do is align the new code for DATE with the xml 'WEEKDAY' update timing (3am-4am'ish)..

    So I'm working on some widgets for Cocco28 now for his themes.. So if you want to get to work on finding a way to deal with this.. have fun.. It's fun working on these 'puzzles'. You'll figure it out..

    It's not really going to be about finding anything in the xml... I think it may be as easy as another IF statement like I used in my forecast summary fix section... modified for this instance. Maybe something like this:
    Code:
    // DAY FORECAST
    if (0 == currentTime.getHours() || currentTime.getHours() <= 3) {
    var DayNum = (currentTime.getDate() -1);
    var Today = (currentTime.getDate() -1);
    } else {
    var DayNum = currentTime.getDate();
    var Today = currentTime.getDate();
    }
    var Tomorrow = 0;
    ///.....rest of code.....///
    Yes, exactly what I thought in my sleep tonight (best time for intuitions ). An if statement on the interval between 0 and 3 that, if true, put DayNum and Today temporary back.
    Thank you Grant, I'll try it later and let you know.

  11. #11788
    Quote Originally Posted by jm26200 View Post
    ty for that but we have already this Single_Line_Date_Suffix also use the first code u show
    Suffix(DayNum) and its ok

    PS: sorry for my frenglish cant explain more often no found good words
    Good morning Jacques, we are daily up almost at the same time.
    Checking Modmyi with coffee
    Have a wonderful day!

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

    jm26200 (2017-03-03)

  13. #11789

  14. #11790

  15. #11791
    Default UniAW7
    Quote Originally Posted by NewD View Post

    It's fun working on these 'puzzles'. You'll figure it out..

    Maybe something like this:

    // DAY FORECAST
    if (0 == currentTime.getHours() || currentTime.getHours() ...
    Yes Grant, precisely just this:

    if (currentTime.getHours() == 0 ||currentTime.getHours() < 3) { DayNum = DayNum - 1; Today = Today -1}

    To be placed under the checking of the leap years, here:

    Last edited by morkino; 2017-03-02 at 12:32 PM.

  16. The Following User Says Thank You to morkino For This Useful Post:

    menard_00 (2017-03-03)

  17. #11792
    Code Dependent NewD's Avatar
    Join Date
    Jan 2012
    Location
    Northeast US
    Posts
    5,709
    Thanks
    8,337
    Thanked 16,465 Times in 7,696 Posts

    Default UniAW7
    Quote Originally Posted by morkino View Post
    Yes Grant, precisely just this:

    if (currentTime.getHours() == 0 ||currentTime.getHours() < 3) { DayNum = DayNum - 1; Today = Today -1}

    To be placed under the checking of the leap years, here:

    Yes, that will be nice & clean. But please re-add the German language IF statement before you release any mods.. I'm hoping all modders will work from the final U7_WW3 and it has to be "inclusive" of all Ian/Dacal's original considerations for multi-language too.
    Last edited by NewD; 2017-03-02 at 02:26 PM.

  18. #11793
    Code Dependent NewD's Avatar
    Join Date
    Jan 2012
    Location
    Northeast US
    Posts
    5,709
    Thanks
    8,337
    Thanked 16,465 Times in 7,696 Posts

    Quote Originally Posted by jm26200 View Post
    ty for that but we have already this Single_Line_Date_Suffix also use the first code u show
    Suffix(DayNum) and its ok

    PS: sorry for my frenglish cant explain more often no found good words
    Actually, no, Jacques.. that variable is for a different element in U7. It will not help add suffix to our Date in the Forecast. That variable only adds Date Suffix to the "SingleLine"Date that looks like this - in the clock :

    "Sat March 4th, 2017".

    To have suffix in the 5-day forecast requires a different piece of coding and new variable in config.js.

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

    jm26200 (2017-03-03)

  20. #11794
    Default UniAW7
    Quote Originally Posted by NewD View Post
    Yes, that will be nice & clean. But please re-add the German language IF statement before you release any mods.. I'm hoping all modders will work from the final U7_WW3 and it has to be "inclusive" of all Ian/Dacal's original considerations for multi-language too.
    I'll do, of course.
    For public release I'll use your final version.
    The picture above is taken from my old uniaw, remember? The only working with GroovyBoard + on my i6 with ios8.3...

  21. #11795
    Code Dependent NewD's Avatar
    Join Date
    Jan 2012
    Location
    Northeast US
    Posts
    5,709
    Thanks
    8,337
    Thanked 16,465 Times in 7,696 Posts

    Default UniAW7
    Quote Originally Posted by morkino View Post
    I'll do, of course.
    For public release I'll use your final version.
    The picture above is taken from my old uniaw, remember? The only working with GroovyBoard + on my i6 with ios8.3...
    The U7_WW3 base works on GroovyBoard+ perfectly. I've tested it on my 5S on 8.1.2. Auto detects GroovyBoard+ and AnemoneHTML.

    No need for a special version. Just import your style.css settings and images to new base and it will work perfectly.

  22. #11796
    Default UniAW7
    Quote Originally Posted by NewD View Post
    The U7_WW3 base works on GroovyBoard+ perfectly. I've tested it on my 5S on 8.1.2. Auto detects GroovyBoard+ and AnemoneHTML.

    No need for a special version. Just import your style.css settings and images to new base and it will work perfectly.
    Can you send me the link for the ultimate version with our final code added?

  23. The Following User Says Thank You to morkino For This Useful Post:

    NewD (2017-03-02)

  24. #11797
    Code Dependent NewD's Avatar
    Join Date
    Jan 2012
    Location
    Northeast US
    Posts
    5,709
    Thanks
    8,337
    Thanked 16,465 Times in 7,696 Posts

    Quote Originally Posted by morkino View Post
    Can you send me the link for the ultimate version with our final code added?
    Yes.. shortly..

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

    morkino (2017-03-02)

  26. #11798
    Code Dependent NewD's Avatar
    Join Date
    Jan 2012
    Location
    Northeast US
    Posts
    5,709
    Thanks
    8,337
    Thanked 16,465 Times in 7,696 Posts

    Final update to DAY FORECAST section of code:

    Code:
    // DAY FORECAST
    for (var i=1; i < 6; i++) {
    	$("#Day" + i).removeClass();
    
    	if (Use_Date_with_Weekday == true) { /* new for WW3; credit to Morkino & Jm26200 */
    		var DayNum = currentTime.getDate(); /* adding the number of the day */	
    		var Today = currentTime.getDate();
    		var Tomorrow = 0;
    	
    		var Leap = 27; /* factoring in Lead years */
    		if (currentTime.getFullYear() % 4 == 0 && currentTime.getFullYear() % 100 != 0) { Leap = 28; }
    		else if (currentTime.getFullYear() % 400 == 0) { Leap = 28; }
    	
    		if (currentTime.getHours() == 0 ||currentTime.getHours() < 3) { /* workaround for API's not updating between 12am and 3am */
    			DayNum = DayNum - 1; Today = Today -1;
    		}
    		switch(currentTime.getMonth()+1) {
    			case 1:
    			case 3:
    			case 5:
    			case 7:
    			case 8:
    			case 10:
    			case 12:
    				if (Today > 30) { DayNum = 0; }
    				else if (Tomorrow > 30) { DayNum = 1-i; }
    				Tomorrow = DayNum+i;
    			break;
    			case 2:
    				if (Today > Leap) { DayNum = 0; }
    				else if (Tomorrow > Leap) { DayNum = 1-i; }
    				Tomorrow = DayNum + i;
    			break;
    			case 4:
    			case 6:
    			case 9:
    			case 11:
    				if(Today > 29) { DayNum = 0; }
    				else if (Tomorrow > 29) { DayNum = 1-i; }
    				Tomorrow = DayNum+i;
    			break;
    		}
    		if (lang == "ge") {
    			$("#Day" + i).html(days[obj.dayofweek[i]-1].substring(0,2) + " " + ( Forecast_Date_Suffix == true ? Suffix(Tomorrow) : Tomorrow ));
    		} else {
    			$("#Day" + i).html(days[obj.dayofweek[i]-1].substring(0,3) + " " + ( Forecast_Date_Suffix == true ? Suffix(Tomorrow) : Tomorrow ));
    		}
    	} else {
    		if (lang == "ge") {
    			$("#Day" + i).html(days[obj.dayofweek[i]-1].substring(0,2));
    		} else {
    			$("#Day" + i).html(days[obj.dayofweek[i]-1].substring(0,3));
    		}
    	}
    	$("#Day" + i + "Pop").html(obj.pop[i] + "%");
    	$("#Day" + i + "Icon").attr("src", dualP + "Icon Sets/" + iconSetForForecast+"/" + AdjustIcon(obj.code[i], "day") + ".png");
    	if (Hi_Lo_Reversed == false) {
    		$("#Day" + i + "HiLo").html('<span style= color:' + tempColor(obj.low[i]) + ';>' + obj.low[i]  +  tempUnit_Forecast + " / " + '<span style= color:' + tempColor(obj.high[i]) + ';>' + obj.high[i] + tempUnit_Forecast) + '</span>';
    	} else {
    		$("#Day" + i + "HiLo").html('<span style= color:' + tempColor(obj.high[i]) + ';>' + obj.high[i] +  tempUnit_Forecast + " / " + '<span style= color:' + tempColor(obj.low[i]) + ';>' + obj.low[i] + tempUnit_Forecast) + '</span>';		
    	}
    }
    Morkino, the most current version of UniAW7.1_WW3 is always linked in my signature - though signatures can't be seen on Tapatalk and MMi app. Only on computer browser. This link will always be the same:
    https://dl.dropboxusercontent.com/u/...iAW7.1_WW3.zip

  27. The Following 5 Users Say Thank You to NewD For This Useful Post:

    jm26200 (2017-03-03), kristatos (2017-03-02), Mary48336 (2017-03-04), menard_00 (2017-03-03), morkino (2017-03-02)

  28. #11799
    Quote Originally Posted by NewD View Post
    Final update to DAY FORECAST section of code:

    Code:
    // DAY FORECAST
    for (var i=1; i < 6; i++) {
    $("#Day" + i).removeClass();
    
    if (Use_Date_with_Weekday == true) { /* new for WW3; credit to Morkino & Jm26200 */
    var DayNum = currentTime.getDate(); /* adding the number of the day */
    var Today = currentTime.getDate();
    var Tomorrow = 0;
    
    var Leap = 27; /* factoring in Lead years */
    if (currentTime.getFullYear() % 4 == 0 && currentTime.getFullYear() % 100 != 0) { Leap = 28; }
    else if (currentTime.getFullYear() % 400 == 0) { Leap = 28; }
    
    if (currentTime.getHours() == 0 ||currentTime.getHours() < 3) { /* workaround for API's not updating between 12am and 3am */
    DayNum = DayNum - 1; Today = Today -1;
    }
    switch(currentTime.getMonth()+1) {
    case 1:
    case 3:
    case 5:
    case 7:
    case 8:
    case 10:
    case 12:
    if (Today > 30) { DayNum = 0; }
    else if (Tomorrow > 30) { DayNum = 1-i; }
    Tomorrow = DayNum+i;
    break;
    case 2:
    if (Today > Leap) { DayNum = 0; }
    else if (Tomorrow > Leap) { DayNum = 1-i; }
    Tomorrow = DayNum + i;
    break;
    case 4:
    case 6:
    case 9:
    case 11:
    if(Today > 29) { DayNum = 0; }
    else if (Tomorrow > 29) { DayNum = 1-i; }
    Tomorrow = DayNum+i;
    break;
    }
    if (lang == "ge") {
    $("#Day" + i).html(days[obj.dayofweek[i]-1].substring(0,2) + " " + ( Forecast_Date_Suffix == true ? Suffix(Tomorrow) : Tomorrow ));
    } else {
    $("#Day" + i).html(days[obj.dayofweek[i]-1].substring(0,3) + " " + ( Forecast_Date_Suffix == true ? Suffix(Tomorrow) : Tomorrow ));
    }
    } else {
    if (lang == "ge") {
    $("#Day" + i).html(days[obj.dayofweek[i]-1].substring(0,2));
    } else {
    $("#Day" + i).html(days[obj.dayofweek[i]-1].substring(0,3));
    }
    }
    $("#Day" + i + "Pop").html(obj.pop[i] + "%");
    $("#Day" + i + "Icon").attr("src", dualP + "Icon Sets/" + iconSetForForecast+"/" + AdjustIcon(obj.code[i], "day") + ".png");
    if (Hi_Lo_Reversed == false) {
    $("#Day" + i + "HiLo").html('<span style= color:' + tempColor(obj.low[i]) + ';>' + obj.low[i]  +  tempUnit_Forecast + " / " + '<span style= color:' + tempColor(obj.high[i]) + ';>' + obj.high[i] + tempUnit_Forecast) + '</span>';
    } else {
    $("#Day" + i + "HiLo").html('<span style= color:' + tempColor(obj.high[i]) + ';>' + obj.high[i] +  tempUnit_Forecast + " / " + '<span style= color:' + tempColor(obj.low[i]) + ';>' + obj.low[i] + tempUnit_Forecast) + '</span>';
    }
    }
    Morkino, the most current version of UniAW7.1_WW3 is always linked in my signature - though signatures can't be seen on Tapatalk and MMi app. Only on computer browser. This link will always be the same:
    https://dl.dropboxusercontent.com/u/...iAW7.1_WW3.zip
    Fantastic NewD!
    Thank you very much for giving us credits!
    And thanks for the link, I mostly use Tapatalk and didn't know that...

  29. #11800
    Code Dependent NewD's Avatar
    Join Date
    Jan 2012
    Location
    Northeast US
    Posts
    5,709
    Thanks
    8,337
    Thanked 16,465 Times in 7,696 Posts

    Quote Originally Posted by morkino View Post
    Fantastic NewD!
    Thank you very much for giving us credits!
    And thanks for the link, I mostly use Tapatalk and didn't know that...
    Excellent! Please let me know when you have your widget working in the new Base in GroovyBoard+.. Just want to make sure it's also fine in iOS8 with G+ stuff.

    I also let this thread always know when I've made more updates to the base.

  30. The Following 3 Users Say Thank You to NewD For This Useful Post:

    jm26200 (2017-03-03), morkino (2017-03-02), oswaldo-1985 (2017-03-03)

Page 590 of 614 FirstFirst ... 90490540580588589590591592600 ... 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
  •