Page 1 of 42 12311 ... LastLast
Results 1 to 20 of 831

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


Thread: Workaround Stategies for iOS8 respringing using GroovyAPI+

  1. #1
    Code Dependent NewD's Avatar
    Join Date
    Jan 2012
    Location
    Northeast US
    Posts
    5,710
    Thanks
    8,337
    Thanked 16,466 Times in 7,697 Posts

    Default Workaround Stategies for iOS8 respringing using GroovyAPI+
    Hello JB community.. Those of us who love weather info-based HTML Lockscreens and SpringBoard widgets have had no easy time of it in iOS8. As soon as we got our first Jailbreaks and added GroovyLock or Convergence or LockHTML 3 we noticed that we'd start getting random respringing. For iPhone 6+ users it was even more intense - sometimes respring loops! If you have animation in your LockScreen or SpringBoard widget - even worse. Though a little less on iPhones 4S/5/5S and 6... still respringing there too.

    There's been a lot of chatter in different threads about it, mainly the UniAW7 and GroovyLock threads.. but I asked some of the regulars here if it might not be a good idea to have a single thread where I could post some helpful info in the first couple of posts here and then answer general questions about regaining stability in one place..

    Let me start off by saying.. those of you on 4S, 5, and 5S might lose more than you gain by using these workarounds. But I hear you guys are getting too many resprings too. iPhone 6/6+ users have the most to gain.

    The MAIN workaround we now have is from our Amazing Developer GROOVYCARROT (Jake) who, in iOS7, when Saurik stopped allowing HTML LS and SB widget in WB - gave us GroovyLock and SBHTML!!!..and who's been a constant help to us this last year! His NextGenUI is also an amazing tweak!

    The first think you'll want to try to gain stability is to UN-INSTALL GroovyLock, SBHTML and groovyAPI (groovyAPI you'll only see in Cydia if you have the EXPERT tab depressed in the Installed window). And then install, using iFile the following three .deb files. Simply click on these links one by one (groovyAPI+ first).. then when it asks you to OPEN IN - click on iFile.. In iFile you'll see a choice called INSTALLER.. Use that.. If you get error code 256 - you haven't uninstalled all the 3 older versions I mention above. If you get error code 512 you need to close out of Cydia in the APP SWITCHER (double click home button and swipe up on Cydia til it disappears). YOu want to get result code '0' for each of the three installs.. then you know you're ready to go...

    So here is the new groovyAPI+ package:
    https://www.dropbox.com/s/enr1pjqxf4...B_1.0.deb?dl=0

    Here is GroovyLock+ beta2 using the new WebKit wrapper:
    https://www.dropbox.com/s/oe1ig6ydam...beta2.deb?dl=0

    And GroovyBoard+ RC1 using the new WebKit wrapper:
    https://www.dropbox.com/s/nxfj8l0bfl...1.0rc.deb?dl=0
    Then place a copy of this widget in both the var/mobile/Library/Groovylock and var/mobile/Library/Groovyboard folders..
    CLICK HERE-->UniAW7 release from page 1 of UniAW7 thread
    You're not done yet.. Go to post #2 here and see how to add the one code line to make it GL+/GB+ ready for use..

    That's how to get started getting OUT of Respring purgatory. Especially you 6+ users will noticed no more resprings running that version of UniAW7 on your Lockscreen and springboard IF you've put a 2nd copy of it in var/mobile/Library/Groovyboard.

    This is NOT PRIMARILY an "ASK NewD (Grant) to convert old widgets" thread. I don't have the time nor the inclination. And I don't take public PM's on MMi.. Please bring all your questions to the thread.

    I will be primarily 'teaching you to fish' - not 'giving you a fish'.. if you know how that old saying goes.
    Last edited by NewD; 2015-02-10 at 05:02 PM.

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

    #m37h{ (2015-01-22), Alexweli69 (2014-12-31), Azon3 (2015-02-16), basis2000 (2015-02-02), burrzoo (2015-02-04), chevymusclecar (2015-01-01), Clem-Clone (2015-01-03), DaddyMatty (2015-04-02), DEH (2015-01-02), erayser (2015-01-03), haylazz (2015-01-03), hemi_0539 (2015-01-21), Hip5 (2015-02-08), It's Mi (2015-09-23), jawonder (2014-12-31), Jkauf55 (2015-03-17), johncon68 (2015-02-22), kai312 (2015-01-16), kid1110 (2016-12-11), kimvy (2015-01-23), King_O_Hill (2015-01-02), knowledge561 (2015-01-01), kristatos (2016-07-29), markotak (2015-01-28), Mav1971 (2015-01-03), Max_Pa1n (2015-01-11), mfisherbsu (2014-12-31), nik1975 (2014-12-31), Padgoi (2015-01-02), Related Addict (2015-01-15), rio2105 (2015-01-23), roneraven (2015-01-01), SHARON1O (2014-12-31), Simon (2015-03-30), st0n3parad0x (2014-12-31), TiLT1oNE (2014-12-31), TruthDivine666 (2015-01-22), undersea (2015-02-04), zero.cool (2015-02-03)

  3. #2
    Code Dependent NewD's Avatar
    Join Date
    Jan 2012
    Location
    Northeast US
    Posts
    5,710
    Thanks
    8,337
    Thanked 16,466 Times in 7,697 Posts

    Default Workaround Stategies for iOS8 respringing using GroovyAPI+
    So here's the quick and dirty method to mod widgetweather.xml-reading LS and SB widgets for use in GL+ and GB+ (with groovyAPI+):

    STEP 1
    With iFile or Filza on your phone go into the Javascript folder of your LS or SB widget folder and open "main.js" or "UniAW6.js" and look for this line of code:
    Code:
    jQuery.get(url, function(data) {
    or this line:
    Code:
    jQuery.get('file:///private/var/mobile/Documents/widgetweather.xml', function(data) {
    ..and add two forward slashes in front of that line so it looks like this:
    Code:
    //jQuery.get(url, function(data) {
    or this:
    Code:
    //jQuery.get('file:///private/var/mobile/Documents/widgetweather.xml', function(data) {
    STEP 2
    Now underneath that line of code that is now, what we call, 'commented out' (no longer running because of the 2 forward slashes)
    add this line of code for the newer UniAW7-based widgets:
    Code:
    groovyAPI.do ( { read: "widgetweather" + xmlnumber + ".xml" }, function(data) {
    or this line - for many earlier WW2 widgets not based on UniAW7
    Code:
    groovyAPI.do ( { read: "widgetweather.xml" }, function(data) {
    Make sure nothing is after the last curved bracket '{' on that line..

    Save the changes and you're done.

    Simply - Choose your Lockscreen or SB widget in GroovyLock+ or GroovyBoard+ and Respring. And, if you're running no iWidgets, you should be random respring free.

    Now THAT was easy - wasn't it!!! This will permanently convert your widget to be used only in GL+ or GB+. It will no longer work in Convergence, LockHTML 3 or 4 or GroovyLock (original).

    Also if you are desiring to run a certain widget on your Lockscreen (in GL+), the .html file in the main widget folder must be named LockBackground.html and the whole widget must be placed in var/mobile/Library/Groovylock and chosen in the GroovyLock+ preference pane.

    If you want it to run on your Springboard (in GB+) the .html file in the main widget folder needs to be named Wallpaper.html. And the whole widget folder needs to be placed in var/mobile/Library/Groovyboard and chosen in the GroovyBoard+ preference pane.

    Also for any older widgetweather.xml-based widgets that still have Use_Accuweather in the Config.js. Make sure that's set to "false".

    Using GL+ you'll notice a small bug: that your lockscreen widget will occasionally fall asleep and not keep proper time, sometimes even the screen will freeze to your touch or the widget won't load at all. This is because WK Webbview doesn't wake up from deep sleep very well. A temporary workaround for this is a tweak in Cydia called "Insomnia". Install that, and your experience on your lock screen should be more steady. Though you might get a little bit of extra battery drain using Insomnia and you may occasionally see a few more white screens on your Homescreen if you're running GB+ as well. There's always a trade-off when a product is in alpha/beta which GL+/GB+ and gAPI+ are.
    Last edited by NewD; 2016-08-11 at 03:39 PM.

  4. The Following 19 Users Say Thank You to NewD For This Useful Post:

    #m37h{ (2015-01-22), Azon3 (2015-02-16), basis2000 (2015-02-02), chevymusclecar (2015-01-01), DEH (2015-01-02), hemi_0539 (2015-01-21), Hip5 (2015-02-14), It's Mi (2015-09-23), jawonder (2015-01-01), Jazzman UK (2015-01-31), kid1110 (2016-12-11), kimvy (2015-01-23), King_O_Hill (2015-01-02), Marty McFly (2015-01-08), Mav1971 (2015-01-03), nik1975 (2015-01-01), Padgoi (2015-01-02), rio2105 (2015-01-23), undersea (2015-02-04)

  5. #3
    Code Dependent NewD's Avatar
    Join Date
    Jan 2012
    Location
    Northeast US
    Posts
    5,710
    Thanks
    8,337
    Thanked 16,466 Times in 7,697 Posts

    Default LS and SB Widgets MODDED for use with GL+/GB+
    For your LockScreen -modded for GL+:
    Orange Freddie's BTTF mod of UniAW7rc10



    For your Springboard -modded for GB+:


    ----------
    Getting any widget from iPhone5/5S converted for i6 or i6+ is fairly easy to do on your own... It won't get you 100% of the way there and you may have to move a couple of other items in the .css file.. But you'll be 93% complete...

    In the Style folder in the widget.. Look for Style.css or iPhone5.css and with move the file to your Computer with iFunBox or CyberDuck.. In your computer with NotePad++ on PC or TacoHtmlEdit, BBEdit or TextWrangler on your Mac.. open the file..

    Locate the FIND command..
    Step 1 -
    In the top box (find) write: 320
    In the bottom box (replace) write: 375 (for an iPhone 6) or 414 (for an iPhone 6+)
    -------HIT "REPLACE ALL"

    Step 2-
    In the top box again (find) write: 568
    In the bottom box (replace) write: 667 (for an iPhone 6) or 736 (for an iPhone 6+).
    ------HIT "REPLACE ALL"...

    Step 3-
    Hit save on the file, move it back to your phone (after making a backup of the original).. let it replace the file when it asks you to OVERWRITE..

    RESPRING and ENJOY!! There may be a few elements in that iPhone5.css file that you need to manually edit to the best place.. But that's all part of your learning how to mod your stuff without waiting on someone else to do it for you!

    Have fun!
    Grant
    Last edited by NewD; 2015-06-01 at 04:33 PM.

  6. The Following 12 Users Say Thank You to NewD For This Useful Post:

    #m37h{ (2015-01-22), basis2000 (2015-02-02), chevymusclecar (2015-01-01), Glawrence33 (2015-02-12), Hip5 (2015-02-14), It's Mi (2015-09-23), jawonder (2015-01-03), Jazzman UK (2015-01-31), kai312 (2015-01-15), kimvy (2015-01-23), King_O_Hill (2015-01-02), s22lane (2015-01-02)

  7. #4
    Code Dependent NewD's Avatar
    Join Date
    Jan 2012
    Location
    Northeast US
    Posts
    5,710
    Thanks
    8,337
    Thanked 16,466 Times in 7,697 Posts

    Default Add a SWITCH for GroovyLock+ or all other LS players
    So King, Chevy and I agreed to abandoning the 'DUAL MODE' or 'AUTO SENSING' code originally given me by Jake to detect the presence of GL+ or not since it didn't work on old GroovyLock or LH3 -- and I built a safer method by using a SWITCH in the main.js with a variable in the config.js.. It has been tested thoroughly now and has been implemented into the new 02_WidgetWeather_Base.. for release in Cydia shortly.

    THIS HAS NOT BEEN TESTED ON ANY VERSION OF UNIAW7!

    It's not a simple rework for anyone without at least some code experience.. But here goes:

    So in the main js, about 3/4 of the way down--
    Replace this:
    Code:
    function updateWeather() {
    if (XML_TEST == true) { var url = "widgetweather" + xmlnumber + ".xml"; } else { var url = "file:///private/var/mobile/Documents/widgetweather" + xmlnumber + ".xml"; }
    jQuery.get(url, function(data) {
    ..with this:
    Code:
    function updateWeather() {
        var files = "widgetweather.xml";
        //var files = "widgetweather" + xmlnumber + ".xml"; /* use this for multilocation only-see below */	
        switch (GroovyLockPlus) {
    	case true: 
    		groovyAPI.do ({ read: files }, function(data) { weatherHandler(data); });
    	break;
    	case false: 
    		if (XML_TEST == true) { url = files; } else { url = "file:///private/var/mobile/Documents/" + files; }
    		jQuery.get(url, function(data) { weatherHandler(data); }).fail( function () {
    			document.getElementById("desc").innerHTML = "No widgetweather.xml file !"; 
    		}); 
    	break;
         } 
    	
        // REINITIALIZE THE TIMER TO NOT LAUNCH MULTIPLE INSTANCES OF THE FUNCTION	
        clearTimeout(refreshTimer); 
        refreshTimer = setTimeout(updateWeather_XML, 30*1000);
    }
    
    function weatherHandler (data)  {
    Then in the config.js add:
    Code:
     var GroovyLockPlus = false; // TRUE only for use with Groovylock+
    Dacal's new base uses the 'function updateWeather_XML()' but UniAW widgets use updateWeather without the '_XML'.. that's why I didn't include it above.. This switch works in every scenario - so it's more 'bullet proof' which is what KOH wanted for the new WW2 base.

    EDITED:
    Also IF your mod is based on Dacal's new multilocation addition which he also added to UniAW7rc9 - which is a base to a lot of Marty's recent work too.. then you have to change the variable declaration for 'files' (in the main.js) to the below....
    Code:
    var files = "widgetweather" + xmlnumber + ".xml";
    Last edited by NewD; 2015-01-12 at 06:32 PM.

  8. The Following 7 Users Say Thank You to NewD For This Useful Post:

    #m37h{ (2015-01-22), chevymusclecar (2015-01-01), Hip5 (2015-02-14), It's Mi (2015-09-23), jawonder (2015-01-10), kai312 (2015-01-15), kimvy (2015-01-23)

  9. #5
    Sounds great. So this is for the older widgets to get working in GL+/GB+?

  10. #6
    Mi Deh Yah jawonder's Avatar
    Join Date
    Jul 2011
    Location
    Boynton Beach, Florida
    Posts
    4,029
    Thanks
    8,041
    Thanked 4,481 Times in 2,139 Posts

    Nice job New, glad we have somewhere to discuss these issues.

    Waiting for you to post your tutorial on getting some of those old UniAW 6.4 widgets running with the new Goovylock+ and GroovyBoard+. Thanks
    Last edited by jawonder; 2014-12-31 at 09:46 PM.

  11. The Following User Says Thank You to jawonder For This Useful Post:

    Hip5 (2015-02-14)

  12. #7
    Code Dependent NewD's Avatar
    Join Date
    Jan 2012
    Location
    Northeast US
    Posts
    5,710
    Thanks
    8,337
    Thanked 16,466 Times in 7,697 Posts

    Quote Originally Posted by bliken View Post
    Sounds great. So this is for the older widgets to get working in GL+/GB+?
    I will provide TUTORIALS for YOU GUYS to mod the older widgets, yes.. This thread will be about the old adage:
    "GIVE a man a fish, he will eat for one day. TEACH a man TO fish, he will eat for a lifetime."

    I will NOT, repeat, NOT be doing conversions for anyone who asks. I will be teaching you to do YOUR OWN converting. Some widgets are NOT convertible - so don't ask. Widgets based on reading the myLocation.txt files are not convertible at this time. Our focus will be mainly on WidgetWeather widgets and a few that were combo WW/Accuweather widgets. The older myLocation Yahoo/Accuweather widgets are not convertible --- yet.... so don't ask, please...

  13. The Following 10 Users Say Thank You to NewD For This Useful Post:

    #m37h{ (2015-01-22), bliken (2015-01-01), Boots (2015-01-01), chevymusclecar (2015-01-01), Hip5 (2015-02-14), It's Mi (2015-09-23), jawonder (2014-12-31), mfisherbsu (2014-12-31), nik1975 (2014-12-31), st0n3parad0x (2014-12-31)

  14. #8
    My iPhone is a Part of Me signori's Avatar
    Join Date
    Oct 2007
    Location
    Toronto
    Posts
    918
    Thanks
    689
    Thanked 758 Times in 397 Posts

    Quote Originally Posted by NewdestinyX View Post
    I will provide TUTORIALS for YOU GUYS to mod the older widgets, yes.. This thread will be about the old adage:
    "GIVE a man a fish, he will eat for one day. TEACH a man TO fish, he will eat for a lifetime."

    I will NOT, repeat, NOT be doing conversions for anyone who asks. I will be teaching you to do YOUR OWN converting. Some widgets are NOT convertible - so don't ask. Widgets based on reading the myLocation.txt files are not convertible at this time. Our focus will be mainly on WidgetWeather widgets and a few that were combo WW/Accuweather widgets. The older myLocation Yahoo/Accuweather widgets are not convertible --- yet.... so don't ask, please...
    Hey. Will Marty's 6.4 weatherwidget be able to work with the new groovylock+?

  15. #9
    Quote Originally Posted by NewdestinyX View Post
    So -- I'm having trouble following you here.. Have you gotten everything fixed the way you'd like it now with groovyAPI+ and the other (+) versions?
    Hi NewD,

    Yea now all + stuff is gone, and Im back to my regular groovyAPi,GL,sbhtml non plus.

  16. #10
    Code Dependent NewD's Avatar
    Join Date
    Jan 2012
    Location
    Northeast US
    Posts
    5,710
    Thanks
    8,337
    Thanked 16,466 Times in 7,697 Posts

    Quote Originally Posted by signori View Post
    Hey. Will Marty's 6.4 weatherwidget be able to work with the new groovylock+?
    Depends on which one you mean. Marty made several versions of 6.4 while it was in between bring a Yahoo/Accuweater widget based on myLocation.txt to when he converted some of his 6.4 work to read the widgetweather.xml file. You need to find out which it is.

    I current have Marty's RainyDay version of UniAW6.4 working on my iPhone 6 in the (+) versions. It is all widgetweather.xml-based.

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

    chevymusclecar (2015-01-01), Hip5 (2015-02-14)

  18. #11
    Code Dependent NewD's Avatar
    Join Date
    Jan 2012
    Location
    Northeast US
    Posts
    5,710
    Thanks
    8,337
    Thanked 16,466 Times in 7,697 Posts

    Quote Originally Posted by TiLT1oNE View Post
    Hi NewD,

    Yea now all + stuff is gone, and Im back to my regular groovyAPi,GL,sbhtml non plus.
    What went wrong with the (+) versions that made you retreat back to the original versions?

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

    chevymusclecar (2015-01-01)

  20. #12
    Code Dependent NewD's Avatar
    Join Date
    Jan 2012
    Location
    Northeast US
    Posts
    5,710
    Thanks
    8,337
    Thanked 16,466 Times in 7,697 Posts

    And the thanks button is 'just good manners', gang.
    Last edited by NewD; 2015-01-01 at 04:19 AM.

  21. The Following 10 Users Say Thank You to NewD For This Useful Post:

    bliken (2015-01-01), chevymusclecar (2015-01-01), erayser (2015-01-03), Glawrence33 (2014-12-31), Hip5 (2015-02-14), It's Mi (2015-09-23), Mav1971 (2015-01-03), mfisherbsu (2014-12-31), Padgoi (2015-01-02), st0n3parad0x (2014-12-31)

  22. #13
    Thanks NewD! Still a bit confused though... do I need to enable (and select the theme in) both GroovyBoard+ AND GroovyLock+ on the 6+ settings?


    Edit: I did enable both but the setting did not "sitck" for whatever reason. I went back into them, selected this updated version (rc10...) and it working. If I only use the LS do I need to enable both, though?

    Thanks and Happy New Year!!

    Matt
    Last edited by mfisherbsu; 2014-12-31 at 10:09 PM. Reason: Brain Fart

  23. #14
    My iPhone is a Part of Me signori's Avatar
    Join Date
    Oct 2007
    Location
    Toronto
    Posts
    918
    Thanks
    689
    Thanked 758 Times in 397 Posts

    Quote Originally Posted by NewdestinyX View Post
    Depends on which one you mean. Marty made several versions of 6.4 while it was in between bring a Yahoo/Accuweater widget based on myLocation.txt to when he converted some of his 6.4 work to read the widgetweather.xml file. You need to find out which it is.

    I current have Marty's RainyDay version of UniAW6.4 working on my iPhone 6 in the (+) versions. It is all widgetweather.xml-based.
    The one I posted for you to take a look at the other day. WidgetWeather UniAW6.4 McFly (Rainy Day).theme. If it works can you zip it so I can use it.

  24. #15
    iPhone? More like MyPhone SHARON1O's Avatar
    Join Date
    Oct 2012
    Location
    Valencia , ESPAÑA
    Posts
    759
    Thanks
    3,029
    Thanked 686 Times in 372 Posts

    thanks !!!

    " ​Quiereme cuando menos lo merezca , y sera cuando mas lo necesite " X X X ....

  25. #16
    Excellent I shall be reading this thread and trying to learn as much as possible
    Thank you

  26. #17
    Livin the iPhone Life nik1975's Avatar
    Join Date
    Feb 2008
    Location
    Thessaloniki, Greece
    Posts
    1,908
    Thanks
    4,509
    Thanked 1,485 Times in 879 Posts

    Default Workaround Stategies for iOS8 respringing using GroovyAPI+
    Nice and very detailed thread Newdestiny!!
    Last edited by nik1975; 2014-12-31 at 10:52 PM.

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

    NewD (2014-12-31)

  28. #18
    Oh my you really just said that ?? about the peeps needing to thank you! Lmao

  29. The Following 4 Users Say Thank You to RKO1195 For This Useful Post:

    Boots (2015-01-01), Krima (2014-12-31), Marty McFly (2015-01-01), nik1975 (2014-12-31)

  30. #19
    Livin the iPhone Life nik1975's Avatar
    Join Date
    Feb 2008
    Location
    Thessaloniki, Greece
    Posts
    1,908
    Thanks
    4,509
    Thanked 1,485 Times in 879 Posts

    Default Workaround Stategies for iOS8 respringing using GroovyAPI+
    Edit😉

  31. The Following User Says Thank You to nik1975 For This Useful Post:

    NewD (2015-01-01)

  32. #20
    Code Dependent NewD's Avatar
    Join Date
    Jan 2012
    Location
    Northeast US
    Posts
    5,710
    Thanks
    8,337
    Thanked 16,466 Times in 7,697 Posts

    Quote Originally Posted by mfisherbsu View Post
    Thanks NewD! Still a bit confused though... do I need to enable (and select the theme in) both GroovyBoard+ AND GroovyLock+ on the 6+ settings?


    Edit: I did enable both but the setting did not "sitck" for whatever reason. I went back into them, selected this updated version (rc10...) and it working. If I only use the LS do I need to enable both, though?

    Thanks and Happy New Year!!

    Matt
    exactly correct, Matt. And yes sometimes they don't stick the first time unless you have more than one theme in each folder. Sounds like you're squared away now.

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

    chevymusclecar (2015-01-01)

Page 1 of 42 12311 ... 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
  •