Page 472 of 614 FirstFirst ... 372422462470471472473474482522572 ... LastLast
Results 9,421 to 9,440 of 12265

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


Thread: UniAW7

  1. #9421
    Sweet bro! Glad your sorted.

    Check out WW3 for iOS 9/10 - Widget-Weather 3.0

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

    TiLT1oNE (2016-02-03)

  3. #9422
    Quote Originally Posted by TiLT1oNE View Post
    @Ian @Marty McFly @King_O_Hill I changed all the font sizes in the style.css from vw to vh, and now all worked perfect Drag around in jiggle mode or access the apps around the iWidget

    Thanks for the help in here
    Awesome! Well done bro.

  4. The Following User Says Thank You to Marty McFly For This Useful Post:

    TiLT1oNE (2016-02-03)

  5. #9423
    Well I give up on new yahoo for G+...
    Google will have to do until update is on repo. At least I can still have address...

    -imageuploadedbymodmyi1454464775.309284.jpg

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

    GAPI+ did give us access to all in the Documents folder, King. I remember redoing an older widget and had access to the myLocation.txt file. I'm home in a few minutes and can test on my 6.

    Hang in there IAME.

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

    laMe (2016-02-03)

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

    Default Get Google and New Yahoo feeds to work with G+
    Okay IaMe, Nik and others.. interested in these newer widgets working in G+.. They work GREAT!. Just tested on my iPhone 6 using GroovyBoard+ and GroovyLock+... You just need to make sure that you use the groovyAPI.do line of code anywhere the Documents Folder needs accessing in a jQuery line..

    So in main.js...
    In the updateWeather () function you need to replace this:
    Code:
    jQuery.get(url2, function(appdata){
    ..with this:
    Code:
    //jQuery.get(url2, function(appdata){
    groovyAPI.do ( { read: "widgetweather" + xmlnumber + ".xml" }, function(data) {
    That's the code we've had for months - that we've been referring to as the 'simple one line of code' change for G+..

    BUT - in the newer Google or Yahoo code widgets we've added a call to Yahoo and/or Google that relies on the myLocation.txt file. SO.. In the both the Ycity () and Gcity () functions you need to replace this:
    Code:
    jQuery.get(url2, function(appdata){
    ..with this:
    Code:
    //jQuery.get(url2, function(appdata){
    groovyAPI.do ( { read: "myLocation.txt" }, function(appdata) {
    That's all there is to it. Works perfectly here for me in the Original Google fix, The New Yahoo fix AND the combo New Yahoo + Google versions of UniAW7.1. I've been able to make it work in all three. Let me know if you have any trouble with the above.

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

    Clem-Clone (2016-02-03), King_O_Hill (2016-02-03), kristatos (2016-02-03), laMe (2016-02-03), nik1975 (2016-02-03)

  10. #9426
    main.zip

    Mine is a bit different.. can u give it a shot?

    Edit: yea not working for me
    Last edited by laMe; 2016-02-03 at 04:37 AM.

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

    Quote Originally Posted by laMe View Post
    main.zip

    Mine is a bit different.. can u give it a shot?
    It'll work on yours too, IaMe. In yours - the 'switch' I built for the GroovyPlus+ last year already has the updateWeather function handled for G+.. So just add what I explained to the Ycity() and Gcity() functions (add the groovyAPI.do line change..) And it'll work. Trust me - you'll feel way better nailing this yourself, bro! Go for it! Easy peazey!

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

    King_O_Hill (2016-02-03)

  13. #9428
    i have this in Y and G city functions...
    still not showing location

    This is what i have
    Code:
    	function Ycity() {
    
    	// Use alternative for City Name only if the API WW2 uses is down
    	if (iOS == false) { var coords = "test_files/myLocation" + ".txt"; } else { var coords = "file:///private/var/mobile/Documents/myLocation" + ".txt"; }
    
    	// Get coordinates
    	jQuery.get(coords, function(appdata){
    		var substr = appdata.split('\n');		var templatitude=substr[0].split('=');
    		var templongitude=substr[1].split('=');
    		var Ylat = $.trim(templatitude[1]);
    		var Ylong = $.trim(templongitude[1]);
    		
    		if (xmlnumber == "") { obj.Ycoords = Ylat + "," + Ylong; } else { obj.Ycoords = obj.extraLocName2; }
    
    		var Yurl = "http://gws2.maps.yahoo.com/findlocation?pf=1&locale=en_US&offset=15&flags=&q=" + obj.Ycoords + "&gflags=R&start=0&count=100";
    
    		// Get new cityname
    		//jQuery.get(Yurl, function(data) {
    			groovyAPI.do ( { read: "myLocation.txt" }, function(appdata) {
    			$(data).find('Result').each( function() {
    				obj.Yaddress = $(this).find('line1').text();
    				obj.Ycity = $(this).find('city').text();
    				obj.Yneigh = $(this).find('neighborhood').text();
    			});
    Last edited by laMe; 2016-02-03 at 05:12 AM.

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

    No. Put everything back the way it was.. You're not replacing the things I said to replace. You're trying to change ALL jQueryGets. But I could have been clearer.

    You need to look ONLY for the 1 jQuery.get in Ycity and the 1 jQuery.get in Gcity both that have function(appdata) later in the line. Then place // in front of each of those two lines..

    Then in both locations add this line.. after the one you added // to.
    groovyAPI.do ( { read: "myLocation.txt" }, function(appdata) {

    Don't touch anything else. If you've done it correctly

    The line right AFTER the groovyAPI.do line should read:
    var substr = appdata.split............ etc..
    Last edited by NewD; 2016-02-03 at 05:16 AM.

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

    King_O_Hill (2016-02-03)

  16. #9430
    Code:
    function Ycity() {
    
    	// Use alternative for City Name only if the API WW2 uses is down
    	if (iOS == false) { var coords = "test_files/myLocation" + ".txt"; } else { var coords = "file:///private/var/mobile/Documents/myLocation" + ".txt"; }
    
    	// Get coordinates
    	//jQuery.get(coords, function(appdata)
    		groovyAPI.do ( { read: "myLocation.txt" }, function(appdata) {
    		var substr = appdata.split('\n');		var templatitude=substr[0].split('=');
    		var templongitude=substr[1].split('=');
    		var Ylat = $.trim(templatitude[1]);
    		var Ylong = $.trim(templongitude[1]);
    		
    		if (xmlnumber == "") { obj.Ycoords = Ylat + "," + Ylong; } else { obj.Ycoords = obj.extraLocName2; }
    
    		var Yurl = "http://gws2.maps.yahoo.com/findlocation?pf=1&locale=en_US&offset=15&flags=&q=" + obj.Ycoords + "&gflags=R&start=0&count=100";
    
    		// Get new cityname
    		jQuery.get(Yurl, function(data) {
    			$(data).find('Result').each( function() {
    				obj.Yaddress = $(this).find('line1').text();
    				obj.Ycity = $(this).find('city').text();
    				obj.Yneigh = $(this).find('neighborhood').text();
    			});
    Code:
    function Gcity() {
    
    	// Use GOOGLE for City Name only if the API WW2 uses is down and SWITCH IS ON
    	if (iOS == false) { var coords = "test_files/myLocation" + ".txt"; } else { var coords = "file:///private/var/mobile/Documents/myLocation" + ".txt"; }
    
    	// Get coordinates from myLocation.txt file
    	//jQuery.get(coords, function(appdata){
    	groovyAPI.do ( { read: "myLocation.txt" }, function(appdata) {
    		var substr = appdata.split('\n');		var templatitude=substr[0].split('=');
    		var templongitude=substr[1].split('=');
    		var Glat = $.trim(templatitude[1]);
    		var Glong = $.trim(templongitude[1]);
    		
    		if (xmlnumber == "") { obj.Gcoords = Glat + "," + Glong; } else { obj.Gcoords = obj.extraLocName2; }	
    					
    		//Get new cityname from Google
    		var Gurl = "http://maps.googleapis.com/maps/api/geocode/xml?latlng=" + obj.Gcoords + "&sensor=false";
    		jQuery.get(Gurl, function(data) {
    			obj.type = [];
    			obj.longname = [];
    Still not working... this is frustrating. I'm probably making a tiny mistake but idk
    Last edited by laMe; 2016-02-03 at 05:35 AM.

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

    Quote Originally Posted by laMe View Post
    Code:
    function Ycity() {
    
    	// Use alternative for City Name only if the API WW2 uses is down
    	if (iOS == false) { var coords = "test_files/myLocation" + ".txt"; } else { var coords = "file:///private/var/mobile/Documents/myLocation" + ".txt"; }
    
    	// Get coordinates
    	//jQuery.get(coords, function(appdata)
    		groovyAPI.do ( { read: "myLocation.txt" }, function(appdata) {
    		var substr = appdata.split('\n');		var templatitude=substr[0].split('=');
    		var templongitude=substr[1].split('=');
    		var Ylat = $.trim(templatitude[1]);
    		var Ylong = $.trim(templongitude[1]);
    		
    		if (xmlnumber == "") { obj.Ycoords = Ylat + "," + Ylong; } else { obj.Ycoords = obj.extraLocName2; }
    
    		var Yurl = "http://gws2.maps.yahoo.com/findlocation?pf=1&locale=en_US&offset=15&flags=&q=" + obj.Ycoords + "&gflags=R&start=0&count=100";
    
    		// Get new cityname
    		jQuery.get(Yurl, function(data) {
    			$(data).find('Result').each( function() {
    				obj.Yaddress = $(this).find('line1').text();
    				obj.Ycity = $(this).find('city').text();
    				obj.Yneigh = $(this).find('neighborhood').text();
    			});
    Still not working... replaced the same in gcity
    The groovyAPI lines look perfect now. I can't tell (because the code tags distort any lines with the character \ in it ...

    Did you ever correct these lines in each function:
    var substr = appdata.split('\n var templatitude=substr[0].split('=');

    And replaced that whole line with:

    var substr = appdata.split('\n');
    var templatitude=substr[0].split('=');

    ??.. Ian mentioned it in several posts.. that if you just cut and paste from the code tags in your browser it'll fail the widget. I'm even looking at your code there from in Tapatalk and can't see a line break between the \n line and the next 'var' line. They have to be on separate lines. Check that out and clean it up if it's not correct in your actual code. If it is clean - and your city still isn't showing.. Then attach your main.js for me one more time with the code changes you've made.

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

    #m37h{ (2016-02-03), King_O_Hill (2016-02-03)

  19. #9432
    -untitled.png

    yes code is good i believe


    changed code to this...
    -untitleghghd.png
    still not working
    Attached Files Attached Files
    Last edited by laMe; 2016-02-03 at 05:51 AM.

  20. #9433
    If you look at his main.js posted in #9426 you will see he has 2 instances of the UseExtraLocation switch, I don't know what else may be wrong as no time to look, I'm going to catch a flight in 15 mins.

    Best start from scratch with UniAW7.1 from post 1:
    https://www.dropbox.com/s/le4nv4b83s...AW7.1.zip?dl=0

  21. The Following 2 Users Say Thank You to <Ian Nicoll/> For This Useful Post:

    King_O_Hill (2016-02-03), Marty McFly (2016-02-03)

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

    Quote Originally Posted by ;7350958
    If you look at his main.js posted in #9426 you will see he has 2 instances of the UseExtraLocation switch, I don't know what else may be wrong as no time to look, I'm going to catch a flight in 15 mins.

    Best start from scratch with UniAW7.1 from post 1:
    https://www.dropbox.com/s/le4nv4b83s...AW7.1.zip?dl=0
    Yes. I saw that, Ian. But removed it and still no city showing. Not sure what's wrong. Safe flight bro!

    IaMe.. You do need to get rid of the //City Information section down to //Main Information.. That's incorrect. But it's not your issue. At this point I'm stumped. Everything looks right now.

    The difference between the widget you have and the one in post #1 is the GroovyPlus switch in updateWeather() function.

    Ian's right.. Start with the widget in post #1.. Then follow my exact instructions in that first tutorial post I made for you for conversion to G+

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

    laMe (2016-02-03)

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

    Try this main.js, IaMe.. See if it works for you.

    main-grant.js

  25. #9436
    used new main.js and still not working

    nothing except sunris and set show withthe one you provided newd

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

    Quote Originally Posted by laMe View Post
    used new main.js and still not working

    nothing except sunris and set show withthe one you provided newd
    Yep just noticed that.. I think asking groovy API.do to look two functions deep may be our problem here with the my location.txt calls being trapped within Ycity and Gcity functions which are both in dealWithWeather function. In the widget I successfully converted to G+ - it only has the Google call stuff early in dealWithWeather (Marty's original tutorial). That works perfectly in G+ running Google. Is that the one you also say was working perfectly for you?

  27. #9438
    yes the very first gcity code posted works

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

    Quote Originally Posted by laMe View Post
    yes the very first gcity code posted works
    In G+.. Right?

    It does for me too.

    In that widget..

    groovyAPI.do ( { read: "widgetweather" + xmlnumber + ".xml" }, function(data) {
    ..exists right in the updateWeather() function - root level.. no levels deeper in the function.

    Then...
    groovyAPI.do ( { read: "myLocation.txt" }, function(appdata) {
    ..exists also right at the root level of the dealWithWeather() function.. no levels deeper.

    Something about nesting the myLocation.txt groovyAPI.do calls deeper into the 2nd tier function (Ycity & Gcity) in the newer version of the widget - seems to be the issue with G+, IaMe.

    Sorry we couldn't nail it tonight.. I'm heading to bed.. Late here. We tried! The good news is that WW2 will likely be live in Cydia real soon and this will all be moot..

    I'll eventually figure it out..

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

    laMe (2016-02-03), Wayne Ross (2016-02-03)

  30. #9440
    Quote Originally Posted by NewD View Post
    In G+.. Right?

    It does for me too.

    In that widget..

    groovyAPI.do ( { read: "widgetweather" + xmlnumber + ".xml" }, function(data) {
    ..exists right in the updateWeather() function - root level.. no levels deeper in the function.

    Then...
    groovyAPI.do ( { read: "myLocation.txt" }, function(appdata) {
    ..exists also right at the root level of the dealWithWeather() function.. no levels deeper.

    Something about nesting the myLocation.txt groovyAPI.do calls deeper into the 2nd tier function (Ycity & Gcity) in the newer version of the widget - seems to be the issue with G+, IaMe.

    Sorry we couldn't nail it tonight.. I'm heading to bed.. Late here. We tried! The good news is that WW2 will likely be live in Cydia real soon and this will all be moot..

    I'll eventually figure it out..
    Sounds good. I'm headed to bed too. Thanks for working on it with me man! Appreciate it much!

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

    NewD (2016-02-03)

Page 472 of 614 FirstFirst ... 372422462470471472473474482522572 ... 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
  •