User Tag List

  1. NewD's Avatar
    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 04:02 PM.
    2014-12-31 08:20 PM
  2. NewD's Avatar
    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 02:39 PM.
    2014-12-31 08:21 PM
  3. NewD's Avatar
    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 03:33 PM.
    2014-12-31 08:22 PM
  4. NewD's Avatar
    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 05:32 PM.
    2014-12-31 08:35 PM
  5. bliken's Avatar
    Sounds great. So this is for the older widgets to get working in GL+/GB+?
    2014-12-31 08:36 PM
  6. jawonder's Avatar
    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 08:46 PM.
    2014-12-31 08:43 PM
  7. NewD's Avatar
    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...
    2014-12-31 08:43 PM
  8. signori's Avatar
    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+?
    2014-12-31 08:47 PM
  9. TiLT1oNE's Avatar
    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.
    2014-12-31 08:54 PM
  10. NewD's Avatar
    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.
    2014-12-31 08:55 PM
  11. NewD's Avatar
    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?
    2014-12-31 08:56 PM
  12. NewD's Avatar
    And the thanks button is 'just good manners', gang.
    Last edited by NewD; 2015-01-01 at 03:19 AM.
    2014-12-31 08:58 PM
  13. mfisherbsu's Avatar
    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 09:09 PM. Reason: Brain Fart
    2014-12-31 09:02 PM
  14. signori's Avatar
    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.
    2014-12-31 09:05 PM
  15. SHARON1O's Avatar
    thanks !!!

    " ​Quiereme cuando menos lo merezca , y sera cuando mas lo necesite " X X X ....
    2014-12-31 09:15 PM
  16. st0n3parad0x's Avatar
    Excellent I shall be reading this thread and trying to learn as much as possible
    Thank you
    2014-12-31 09:21 PM
  17. nik1975's Avatar
    Nice and very detailed thread Newdestiny!!
    Last edited by nik1975; 2014-12-31 at 09:52 PM.
    2014-12-31 09:30 PM
  18. RKO1195's Avatar
    Oh my you really just said that ?? about the peeps needing to thank you! Lmao
    2014-12-31 09:37 PM
  19. nik1975's Avatar
    Edit😉
    2014-12-31 09:52 PM
  20. NewD's Avatar
    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.
    2014-12-31 10:36 PM
831 12311 ...
LINK TO POST COPIED TO CLIPBOARD