1. NewD's Avatar
    I guess I am lucky having an "old" 5S, which does not produce any resprings using cydgets with animation. Otherwise I would not use cydgets or anything else that would cause resprings.
    The whole point of moddding is to enhance the mobile and not to diminish it's funcionality.
    Yes, that's why most of us (who loves animation) switched to GL+/GB+.. And Saurik did build Cydgets with the dual layer and to be more hearty and resource saving with UIWebView than the other devs.. Many 5S users have respringing with GL/Conv/LH4.. But less respringing than on a 6/6+.. My guess is that a 5S is just less resource intensive enough that, with Cydget's lean resources, could be Respring free.. Though I'll bet if you did the simple conversion to Cydget of UniAW7.1, your 5S would Respring too, Ras.

    Saurik was taken by surprise too that UIWebView was in such bad shape.. in iOS 8. But he wasn't willing to invest in WKWebView because of it being "too new and untested". If it hadn't been for GroovyCarrot (GL+/GB+) - IOS 8 jailbreak would have been very disappointing.. Saurik missed an opportunity.. and stranded 6/6+ users without the ability to use his precious Cydget with animation widgets.
    2015-04-13 02:24 PM
  2. #m37h{'s Avatar
    okay so i got on GB+/GL+ side, i may have a couple questions so please bear with me if this was already answered...
    first i want to know how to hide LS stock clock in GL+,if i hide it with in GL+ setting,widgets don't show at all on LS,i'm using convergance with none widgets selected and selected widget in GL+...i hide clock in convergance but still showes on LS.
    any thoughts on this?thanx
    Last edited by #m37h{; 2015-04-21 at 06:42 PM.
    2015-04-21 06:37 PM
  3. King_O_Hill's Avatar
    Create an empty folder in the LockHTML folder named Meth.theme select that in Convergance as your HTML widget and make sure that you have the stock clock turned off inside of Convergance. Now go to GL+ and activate the LS widget that you want to use. Turning off the stock clock inside GL+ won't do anything, that's why we control it with the empty folder selected in Convergance.

    Check out WW3 for iOS 9/10 - Widget-Weather 3.0
    2015-04-21 07:28 PM
  4. #m37h{'s Avatar
    Create an empty folder in the LockHTML folder named Meth.theme select that in Convergance as your HTML widget and make sure that you have the stock clock turned off inside of Convergance. Now go to GL+ and activate the LS widget that you want to use. Turning off the stock clock inside GL+ won't do anything, that's why we control it with the empty folder selected in Convergance.
    thank you KOH,i forgot about that blank folder thing,that was my problem

    does this line of codes
    ''groovyAPI.do ( { read: "widgetweather" + xmlnumber + ".xml" }, function(data) {''
    need to be inserted under ''function updateweather'' section after
    //jQuery.get(url, function(data) {
    because my mod of WW1 base LS is not working with that?

    Workaround Stategies for iOS8 respringing using GroovyAPI+-img_0498.png
    Last edited by #m37h{; 2015-04-21 at 07:54 PM.
    2015-04-21 07:34 PM
  5. NewD's Avatar
    thank you KOH,i forgot about that blank folder thing,that was my problem

    does this line of codes
    ''groovyAPI.do ( { read: "widgetweather" + xmlnumber + ".xml" }, function(data) {''
    need to be inserted under ''function updateweather'' section after
    //jQuery.get(url, function(data) {
    because my mod of WW1 base LS is not working with that?
    Not sure mods based on WW1 will work, Meth.. But zip it up and send it to me.. and I'll troubleshoot and let you know if it's possible..

    But try this first - get rid of the 'xmlnumber part' - like this:
    Code:
    groovyAPI.do ( { read: "widgetweather.xml" }, function(data) {
    2015-04-21 11:27 PM
  6. #m37h{'s Avatar
    Not sure mods based on WW1 will work, Meth.. But zip it up and send it to me.. and I'll troubleshoot and let you know if it's possible..

    But try this first - get rid of the 'xmlnumber part' - like this:
    Code:
    groovyAPI.do ( { read: "widgetweather.xml" }, function(data) {
    thank you Grant,i will try this later today,but i am getting more white screens than i had resprings with sbhtml...
    2015-04-22 04:35 AM
  7. NewD's Avatar
    thank you Grant,i will try this later today,but i am getting more white screens than i had resprings with sbhtml...
    You using Insomnia and on a 6+?
    2015-04-22 05:14 AM
  8. #m37h{'s Avatar
    You using Insomnia and on a 6+?
    no i'm on iph 6 without insomnia,my phone started heating up when i installed insomnia while charging,
    you second code worked Grant,thank you
    one more question,all LS widgets refresh weirdly,while locked i hit home button than LS apear for a sec or two than dissaper for a sec or two and apear again,is this normal?
    2015-04-22 05:22 AM
  9. NewD's Avatar
    no i'm on iph 6 without insomnia,my phone started heating up when i installed insomnia while charging,.
    Wow weird.. Never experienced that.
    one more question,all LS widgets refresh weirdly,while locked i hit home button than LS appear for a sec or two than dissaper for a sec or two and apear again,is this normal?
    Yes. Jake built in that auto-refresh of the LS when we first discovered the JS timers bug in WKWebView. He thought an HTML refresh feature would trick it to reload.. But it doesn't help with the black screens.. I've just gotten used to it.. Don't even notice it anymore.
    2015-04-22 05:31 AM
  10. #m37h{'s Avatar
    so i need to try insomnia for white scrrens again?
    thank you
    2015-04-22 05:34 AM
  11. NewD's Avatar
    so i need to try insomnia for white scrrens again?
    thank you
    Nothing cures white screens on SB - but in my 6 I only get 1-3 a day. Doesn't bother me.. Insomnia only helps black screens or non showing widgets on the LS.
    2015-04-22 05:39 AM
  12. #m37h{'s Avatar
    Nothing cures white screens on SB - but in my 6 I only get 1-3 a day. Doesn't bother me.. Insomnia only helps black screens or non showing widgets on the LS.
    sorry now this is funny really i get more white screens than i had resprings before and have to respring it on purpose,i'm swithcing back to regular sbhtml and API
    sorry to bother you folks and thanx for help
    P.S. i had 3 white screen i an hour and with sbhtml maybe 1 respring a day
    Last edited by #m37h{; 2015-04-22 at 11:17 AM.
    2015-04-22 11:13 AM
  13. NewD's Avatar
    sorry now this is funny really i get more white screens than i had resprings before and have to respring it on purpose,i'm swithcing back to regular sbhtml and API
    sorry to bother you folks and thanx for help
    P.S. i had 3 white screen i an hour and with sbhtml maybe 1 respring a day
    If you have a iPhone 6 you most likely have a tweak conflict there that's causing your extra white screens. On my 6 I got way more resprings than white screens. And I have about 35 tweaks on my phone. So you have something a little different there with your phone there, my friend. But everyone has to make their own decisions at to which bugs they can put up with more.
    2015-04-22 07:58 PM
  14. #m37h{'s Avatar
    i am near your count of tweaks mate
    2015-04-22 08:02 PM
  15. #m37h{'s Avatar
    i got a question again
    if i use just GL+ without GB+ installed will i have white screens?
    2015-04-30 03:18 PM
  16. NewD's Avatar
    i got a question again
    if i use just GL+ without GB+ installed will i have white screens?
    Not that I've heard of. White screens are a phenomenon on the springboard when using Groovyboard+. But you also can't use GL+ and SBHTML together. Keep that in mind.. You'd have to go with no widgets at all on SB except iWidgets.. which can cause resprings but no white screens.
    2015-04-30 11:54 PM
  17. #m37h{'s Avatar
    edit
    Last edited by #m37h{; 2015-05-02 at 05:55 PM.
    2015-05-02 05:11 PM
  18. Wildfowler's Avatar
    Here is a "cleaned up" version i use in MYO5.
    Code:
    var latitude; //latitude is the latitude you can get from widgetweather.xml
    var longitude; //longitude is the longitude you can get from widgetweather.xml
    var lat1;
    var lat2;
    var lat3;
    var long1;
    var long2;
    var long3;
    var textLat;
    var textLong;
    					
    				
    				if (latitude < 0) {
    					 textLat = Math.round(latitude*100)/100 + "\u00B0" + "S";
    					 lat3=textLat.split('\u00B0')[0];
    					 lat1=Math.abs(lat3);
    					 lat2=textLat.split('\u00B0')[1];
    					}
    					 else if (latitude > 0){
    						textLat = Math.round(latitude*100)/100 + "\u00B0" + "N";
    						lat1=textLat.split('\u00B0')[0];
    						lat2=textLat.split('\u00B0')[1];
    					 }
    					 else {
    						textLat = Math.round(latitude*100)/100 + "\u00B0";
    					 }
    					 
    					 if (longitude < 0) {
    						textLong = Math.round(longitude*100)/100 + "\u00B0" + "W";
    						long3=textLong.split('\u00B0')[0];
    						long1=Math.abs(long3);
    						long2=textLong.split('\u00B0')[1];
    					}
    					else if (longitude > 0) {
    						textLong = Math.round(longitude*100)/100 + "\u00B0" + "E";
    						long1=textLong.split('\u00B0')[0];
    						long2=textLong.split('\u00B0')[1];
    					}
    					else {
    						textLong = Math.round(longitude*100)/100 + "\u00B0";
    					 }
    												
    					sunriseSunset(long1, long2, lat1, lat2, 0) 			// hour adjustment 0 if wintertime, 1 if summertime
    				
    
    function sunriseSunset(longitude, ew, latitude, ns, localoffset)
    {
              var d = new Date();
              var dyear = d.getUTCFullYear();
              var dmonth = d.getUTCMonth() + 1;
              var dday = d.getUTCDate();
              var zenith = 90.83;
              var lnghour;
              var n1, n2, n3, n, t1, t2, m1, m2, l1, l2, ra1, ra2, lquadrant1, lquadrant2, raquadrant1, raquadrant2;
              var sindec1, sindec2, cosdec1, cosdec2, cosh1, cosh2, h1, h2, T1, T2, UT1, UT2, localT1, localT2;
              var output = " ", output1 = " ", output2 = " ";
    
              // Set coords as negative if West or South.
              if(ew == 'w' || ew == 'W'){longitude *= -1;}
              if(ns == 's' || ns == 'S'){latitude *= -1;}
              
              lnghour = longitude / 15.0;
    
              // Calculate the day of the year.
              n1 = Math.floor(275 * dmonth / 9);
              n2 = Math.floor((dmonth + 9) / 12);
              n3 = (1 + Math.floor((dyear - 4 * Math.floor(dyear / 4) + 2) / 3));
              n = n1 - (n2 * n3) + dday - 30;
              // Get sunrise and sunset times.
              t1 = n + ((6 - lnghour) / 24);
              t2 = n + ((18 - lnghour) / 24);
              // Sun's mean anomaly.
              m1 = (0.9856 * t1) - 3.289;
              m2 = (0.9856 * t2) - 3.289;
              // Sun's true longitude.
              l1 = m1 + (1.916 * Math.sin((Math.PI/180)*m1)) + (0.020 * Math.sin((Math.PI/180)*2 * m1)) + 282.634;
              if(l1 < 0){l1 += 360;}
              if(l1 > 360){l1 -= 360;}
              l2 = m2 + (1.916 * Math.sin((Math.PI/180)*m2)) + (0.020 * Math.sin(2 * (Math.PI/180)*m2)) + 282.634;
              if(l2 < 0){l2 += 360;}
              if(l2 > 360){l2 -= 360;}
              // Sun's right ascension.
              ra1 = (180/Math.PI)*Math.atan(0.91764 * Math.tan((Math.PI/180)*l1));
              if(ra1 < 0){ra1 += 360;}
              if(ra1 > 360){ra1 -= 360;}
              ra2 = (180/Math.PI)*Math.atan(0.91764 * Math.tan((Math.PI/180)*l2));
              if(ra2 < 0){ra2 += 360;}
              if(ra2 > 360){ra2 -= 360;}
              // Sun's quadrant.
              lquadrant1  = (Math.floor(l1/90)) * 90;
              raquadrant1 = (Math.floor(ra1/90)) * 90;
              ra1 = ra1 + (lquadrant1 - raquadrant1);
              lquadrant2  = (Math.floor(l2/90)) * 90;
              raquadrant2 = (Math.floor(ra2/90)) * 90;
              ra2 = ra2 + (lquadrant2 - raquadrant2);
              // Convert right ascension into hours.
              ra1 = ra1 / 15.0;
              ra2 = ra2 / 15.0;
              // Get sun's declination.
              sindec1 = 0.39782 * Math.sin((Math.PI/180)*l1);
              sindec2 = 0.39782 * Math.sin((Math.PI/180)*l2);
              cosdec1 = Math.cos(Math.asin(sindec1));
              cosdec2 = Math.cos(Math.asin(sindec2));
              // Sun's local hour angle.
              cosh1 = (Math.cos((Math.PI/180)*zenith) - (sindec1 * Math.sin((Math.PI/180)*latitude))) / (cosdec1 * Math.cos((Math.PI/180)*latitude));
              cosh2 = (Math.cos((Math.PI/180)*zenith) - (sindec2 * Math.sin((Math.PI/180)*latitude))) / (cosdec2 * Math.cos((Math.PI/180)*latitude));
              if(cosh1 > 1){output1 = "No sunrise.";}
              if(cosh2 < -1){output2 = "No sunset.";}
              // Get hour.
              h1 = 360 - (180/Math.PI)*Math.acos(cosh1);
              h2 = (180/Math.PI)*Math.acos(cosh2);
              h1 = h1 / 15;
              h2 = h2 / 15;
              // Local mean time for rise and set.
              T1 = h1 + ra1 - (0.06571 * t1) - 6.622;
              T2 = h2 + ra2 - (0.06571 * t2) - 6.622;
              // Adjust back to UTC.
              UT1 = T1 - lnghour;
              if(UT1 < 0){UT1 += 24;}
              if(UT1 > 24){UT1 -= 24;}
              UT2 = T2 - lnghour;
              if(UT2 < 0){UT2 += 24;}
              if(UT2 > 24){UT2 -= 24;}
              // Convert UTC value to local based on longitude and latitude.
              localT1 = UT1 + localoffset;
              localT1 = (localT1 > 24) ? localT1-24:localT1;
              localT1 = (localT1 < 0) ? localT1+24:localT1;
              localT2 = UT2 + localoffset;
              localT2 = (localT2 > 24) ? localT2-24:localT2;
              localT2 = (localT2 < 0) ? localT2+24:localT2;
              // Output sunrise and sunset times as a string.
              if(output1 != " "){localT1 = output1;}
              if(output2 != " "){localT2 = output2;}
    		  // Correct underflow/overflow and convert to 12 hour - am/pm format
              var localT1Hour = Math.floor(localT1);
              var localT1Minute = Math.floor((localT1 - localT1Hour)*60);
              localT1Minute = (localT1Minute < 10) ? "0" + localT1Minute: localT1Minute;
              localT1MinutePM = (localT1Hour < 12) ? localT1Minute + " AM":localT1Minute + " PM";
              localT1HourPM = (localT1Hour > 12) ? localT1Hour - 12: localT1Hour;
              var localT2Hour = Math.floor(localT2);
              var localT2Minute = Math.floor((localT2 - localT2Hour)*60);
              localT2Minute = (localT2Minute < 10) ? "0" + localT2Minute: localT2Minute;
              localT2MinutePM = (localT2Hour < 12) ? localT2Minute + " AM":localT2Minute + " PM";
              localT2HourPM = (localT2Hour > 12) ? localT2Hour - 12: localT2Hour;
    		  
    }
    Thank you for this. I've used your get-around-the-updatetimestring code which works perfectly. I've tried adding this sunrise and sunset code to main.js but with no success. Can you point me to where I should be adding the code please?

    Andy
    Last edited by Wildfowler; 2015-05-17 at 10:05 AM.
    2015-05-17 09:46 AM
  19. rasputin007's Avatar
    I just found out that it does not work!
    I copy & paste this code and all I got was "NaN".
    After a closer look I noticed that the MMI forum software had changed the code after placing it in a code tag.
    Look in the UniAW7 thread where I added this in an attached file.
    Nothing is impossible only miracles take a bit longer!
    2015-05-17 11:37 AM
  20. ryanDC's Avatar
    Can someone help me, I've installed the debs from post 1, re springing once all done, then using the widget on post 3 "orange Freddie's BTTF mod of UniAW7rc10" but that into the relevant folder for both groovyboard+ & groovylock+...
    I can access the config stuff in the settings menu but nothing appears on lock screen or springboard...it's just my default wallpaper....can someone help. It's winding me up coz I can't figure out what needs to be done.

    I'm on iphone6plus

    I've made sure that the groovylock folder has the lockbackground file and the groovyboard has wallpaper file in the parent directory of the them.


    HEEELPP
    2015-06-01 01:35 PM
831 ... 223031323334 ...
LINK TO POST COPIED TO CLIPBOARD