Page 108 of 365 FirstFirst ... 8 58 98106107108109110 118 158 208 ... LastLast
Results 2,141 to 2,160 of 7290

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


Thread: [Tweak] iWidgets

  1. #2141
    Quote Originally Posted by The_Durben View Post
    That's yahoo then. There's nothing to "fix" it's just the way they are reporting your neighborhood
    Try looking last page or two
    Quote Originally Posted by The_Durben View Post
    Yahoo does that sometimes. When I'm in another city it gives me city name city name instead of neighborhood.
    One is North York which is in Toronto but it displays as city- North York / neighborhood- North York
    Yepp, the curse of Yahoo Location Service, you never know what name you get. It all depends on the way the response file is build and that again depends on the which Yahoo url you used to get the response file from, see this post (#1283)

    That's why I use Google Maps for location name (it even knows my little village, Yahoo does not and gives me the name of the next village instead).
    I think the easiest way is to use a code like this (usually found in location.js)

    Code:
    function UpdateLocation() {  
    		jQuery.get('/var/mobile/Documents/myLocation.txt', function(appdata) {
    			var myvar = appdata;
    			var substr = appdata.split('\n');
    			var templatitude=(substr[0]).split('=');
    			var templongitude=(substr[1]).split('=');
    			var latitude = $.trim(templatitude[1]);
    			var longitude = $.trim(templongitude[1]);
    			var Yahooappid =""
    			
    			if (prevlatitude != latitude || prevlongitude != longitude) {
    				var url = "http://where.yahooapis.com/geocode?location=" + latitude + "+" + longitude + "&gflags=R&flags=J"
    				$.getJSON(url, function(data) {
    					woeid = data.ResultSet.Results[0].woeid;
    					if (latitude < 0) {
    					 textLat = Math.round(latitude*100)/100 + "\u00B0" + "S";
    					}
    					 else if (latitude > 0){
    						textLat = Math.round(latitude*100)/100 + "\u00B0" + "N";
    					 }
    					 else {
    						textLat = Math.round(latitude*100)/100 + "\u00B0";
    					 }
    					 
    					 if (longitude < 0) {
    						textLong = Math.round(longitude*100)/100 + "\u00B0" + "W";
    					}
    					else if (longitude > 0) {
    						textLong = Math.round(longitude*100)/100 + "\u00B0" + "E";
    					}
    					else {
    						textLong = Math.round(longitude*100)/100 + "\u00B0";
    					 }
    					$("#latlong").text(textLat + "  " + textLong);
    					
    					var geocoder;
    					var map;
    					var marker;
    
    					  geocoder = new google.maps.Geocoder();
    					  var latlng = new google.maps.LatLng(latitude,longitude);
    					  var myOptions = {
    					    zoom: 10,
    					    center: latlng,
    					    mapTypeId: google.maps.MapTypeId.SATELLITE
    					  }
    					  map = new google.maps.Map(myOptions);
    
    					var geocoder = new google.maps.Geocoder();
    					var latlng = new google.maps.LatLng(latitude,longitude);
    					 geocoder.geocode({'latLng': latlng}, function(results, status) {
    					   if (status == google.maps.GeocoderStatus.OK) {
    					     if (results[1]) {
    					        map.setZoom(10);
    					  		marker = new google.maps.Marker({
    						    position: latlng,
    					        map: map
    					     });
    					  var town=results[1].address_components[1].long_name;
    					  document.getElementById("city").innerText=town;
    					  prevlatitude = latitude;
    					  prevlongitude = longitude;
    					  GetWeather(woeid); setInterval('GetWeather(woeid)', 1000*20*60 );
    					  }
    					} else {
            
    					}
    					})
    				});
    			}	
    		});	
     }
    New additional code in RED!

    You have to "disable" the "city" read-out from the Yahoo response file, usually found in another xxxx.js file or even a html file and looks like document.getElementById("city").innerText=city;!
    You can get different location info by adding/changing the
    results[1].address_components[1].long_name;
    line with

    results[0].formatted_address: "275-291 Bedford Ave, Brooklyn, NY 11211, USA",
    results[1].formatted_address: "Williamsburg, NY, USA",
    results[2].formatted_address: "New York 11211, USA",
    results[3].formatted_address: "Kings, New York, USA",
    results[4].formatted_address: "Brooklyn, New York, USA",
    results[5].formatted_address: "New York, New York, USA",
    results[6].formatted_address: "New York, USA",
    results[7].formatted_address: "United States"

    Google info page see "Reverse geocoding" section!
    Last edited by rasputin007; 12-10-2012 at 04:22 PM. Reason: A bit more of a hint :D

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

    GUNNY29 (12-10-2012), It's Mi (12-12-2012), King_O_Hill (12-10-2012), NewdestinyX (12-10-2012), RKO1195 (12-10-2012), Sk37cH (12-10-2012), The_Durben (12-10-2012)

  3. #2142
    Quote Originally Posted by rasputin007 View Post
    Yepp, the curse of Yahoo Location Service, you never know what name you get. It all depends on the way the response file is build and that again depends on the which Yahoo url you used to get the response file from, see this post (#1283)

    That's why I use Google Maps for location name (it even knows my little village, Yahoo does not and gives me the name of the next village instead).
    I think the easiest way is to use a code like this (usually found in location.js)

    [CODE]
    function UpdateLocation() {
    jQuery.get('/var
    Okay, Ras.. I'll bite.. But we need more info. From where to where, in what specific file do we paste all that code?
    Here to help if I can. If I can't I know someone who can!

  4. #2143
    He has told you in his post where it should go
    Click My Sig For my auros Mods

  5. The Following User Says Thank You to GUNNY29 For This Useful Post:

    King_O_Hill (12-10-2012)

  6. #2144
    Quote Originally Posted by GUNNY29 View Post
    He has told you in his post where it should go
    C'mon Gunny. If it were clear I never would've asked the question. "Usually in the location.js" isn't specific enough. And it doesn't specify what to replace that's already in there. What gets 'snipped out' and replaced by the new. I never ask a question here unless I've already read something several times, TRIED the solution, and it HASN'T worked.

    So my question stands.
    Last edited by NewdestinyX; 12-10-2012 at 09:26 AM.
    Here to help if I can. If I can't I know someone who can!

  7. #2145
    He has in brackets usually found in location.js

    Wild idea here but try looking in location.js and comparing what ras has posted and what's in the file.

    I've not got a location.js to hand as I'm at work but I know where rasputins code goes simply by the first few lines
    Last edited by GUNNY29; 12-10-2012 at 09:31 AM.
    Click My Sig For my auros Mods

  8. The Following 2 Users Say Thank You to GUNNY29 For This Useful Post:

    King_O_Hill (12-10-2012), rasputin007 (12-11-2012)

  9. #2146
    Quote Originally Posted by GUNNY29 View Post
    He has in brackets usually found in location.js

    Wild idea here but try looking in location.js and comparing what ras has posted and what's in the file.

    I've not got a location.js to hand as I'm at work but I know where rasputins code goes simply by the first few lines
    I did that already, Gunny, and it didn't work. Again, that's why I asked for more specific instructions. If you tried what is 'implied' in Ras' post, it wouldn't have worked for you either. That's why I asked. I will never ask a question if there's an 'obvious' answer. That would be a waste of time. If I ask -- it's because I tested and it didn't work.

    But hey..... There's always the possibility of user error.. So I will try yet again.. . If this works -- I'll be forever unattached to the most annoying aspects of Yahoo's implementation.

  10. #2147
    Quote Originally Posted by rasputin007 View Post
    Yepp, the curse of Yahoo Location Service, you never know what name you get. It all depends on the way the response file is build and that again depends on the which Yahoo url you used to get the response file from, see this post (#1283)

    That's why I use Google Maps for location name (it even knows my little village, Yahoo does not and gives me the name of the next village instead).
    I think the easiest way is to use a code like this (usually found in location.js)

    Code:
    function UpdateLocation() {  
    		jQuery.get('/var/mobile/Documents/myLocation.txt', function(appdata) {
    			var myvar = appdata;
    			var substr = appdata.split('\n');
    			var templatitude=(substr[0]).split('=');
    			var templongitude=(substr[1]).split('=');
    			var latitude = $.trim(templatitude[1]);
    			var longitude = $.trim(templongitude[1]);
    			var Yahooappid =""
    			
    			if (prevlatitude != latitude || prevlongitude != longitude) {
    				var url = "http://where.yahooapis.com/geocode?location=" + latitude + "+" + longitude + "&gflags=R&flags=J"
    				$.getJSON(url, function(data) {
    					woeid = data.ResultSet.Results[0].woeid;
    					if (latitude < 0) {
    					 textLat = Math.round(latitude*100)/100 + "\u00B0" + "S";
    					}
    					 else if (latitude > 0){
    						textLat = Math.round(latitude*100)/100 + "\u00B0" + "N";
    					 }
    					 else {
    						textLat = Math.round(latitude*100)/100 + "\u00B0";
    					 }
    					 
    					 if (longitude < 0) {
    						textLong = Math.round(longitude*100)/100 + "\u00B0" + "W";
    					}
    					else if (longitude > 0) {
    						textLong = Math.round(longitude*100)/100 + "\u00B0" + "E";
    					}
    					else {
    						textLong = Math.round(longitude*100)/100 + "\u00B0";
    					 }
    					$("#latlong").text(textLat + "  " + textLong);
    					
    					var geocoder;
    					var map;
    					var marker;
    
    					  geocoder = new google.maps.Geocoder();
    					  var latlng = new google.maps.LatLng(latitude,longitude);
    					  var myOptions = {
    					    zoom: 10,
    					    center: latlng,
    					    mapTypeId: google.maps.MapTypeId.SATELLITE
    					  }
    					  map = new google.maps.Map(myOptions);
    
    					var geocoder = new google.maps.Geocoder();
    					var latlng = new google.maps.LatLng(latitude,longitude);
    					 geocoder.geocode({'latLng': latlng}, function(results, status) {
    					   if (status == google.maps.GeocoderStatus.OK) {
    					     if (results[1]) {
    					        map.setZoom(10);
    					  		marker = new google.maps.Marker({
    						    position: latlng,
    					        map: map
    					     });
    					  var town=results[1].address_components[1].long_name;
    					  document.getElementById("city").innerText=town;
    					  prevlatitude = latitude;
    					  prevlongitude = longitude;
    					  GetWeather(woeid); setInterval('GetWeather(woeid)', 1000*20*60 );
    					  }
    					} else {
            
    					}
    					})
    				});
    			}	
    		});	
     }
    You have to "disable" the "city" read-out from the Yahoo response file, usually found in another xxxx.js file or even a html file!
    You can get different location info by adding/changing the
    results[1].address_components[1].long_name;
    line with
    Thanks Ras! Yahoo is crappy for this. For the most part it picks up my city/neighborhood correctly so I never bother messing with it. Seems users outside North America have the issue more often.
    I'll have a look at this when my eyes wake up.

  11. The Following 2 Users Say Thank You to The_Durben For This Useful Post:

    King_O_Hill (12-10-2012), rasputin007 (12-11-2012)

  12. #2148
    wow all the snowflake widgets makes me want to turn my boss fish tank into an iwidget i miss workin on iwidgets, though i miss having a jailbreak more

    HotPink | iApplesauce | Hypnotiq | iAppleWood | boss mods

  13. The Following 3 Users Say Thank You to larke For This Useful Post:

    azaleea (12-10-2012), King_O_Hill (12-10-2012), The_Durben (12-10-2012)

  14. #2149
    That would be awesome Larkalicious. You should turn it into a snow globe.

    With weather info as well. And maybe if you shake it it makes the snow fly all around. Ha

  15. The Following 4 Users Say Thank You to hemptation For This Useful Post:

    azaleea (12-10-2012), King_O_Hill (12-10-2012), SHARON1O (12-10-2012), The_Durben (12-10-2012)

  16. #2150
    Quote Originally Posted by hemptation View Post
    That would be awesome Larkalicious. You should turn it into a snow globe.

    With weather info as well. And maybe if you shake it it makes the snow fly all around. Ha
    oooo snowglobe is a good idea! though shaking it is not something i know how to do lol, or even know if its possible

    HotPink | iApplesauce | Hypnotiq | iAppleWood | boss mods

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

    hemptation (12-10-2012), King_O_Hill (12-10-2012)

  18. #2151
    Well if you don't know how to shake it..then who does? Ha ha. I Kidd I Kidd

    Sow globe would be awesome. And would be nice to have some gps weather in there as well.
    Maybe city and temp. Something simple. Yall are the masters tho. I'm just here enjoying the work.

  19. The Following 2 Users Say Thank You to hemptation For This Useful Post:

    King_O_Hill (12-10-2012), The_Durben (12-10-2012)

  20. #2152
    I know June can do it. Just whether he has the time as he's busy upgrading iLink. I've let him know about the idea
    Click My Sig For my auros Mods

  21. The Following 2 Users Say Thank You to GUNNY29 For This Useful Post:

    hemptation (12-10-2012), King_O_Hill (12-10-2012)

  22. #2153
    June already has a iWidget that you shake with snow on cydia I believe

  23. The Following 3 Users Say Thank You to RKO1195 For This Useful Post:

    hemptation (12-10-2012), King_O_Hill (12-10-2012), The_Durben (12-10-2012)

  24. #2154
    Quote Originally Posted by larke View Post
    wow all the snowflake widgets makes me want to turn my boss fish tank into an iwidget i miss workin on iwidgets, though i miss having a jailbreak more
    Hi Larke

    for your fishtank you could use the bubbles, i think they would fit perfectly
    (let me know if you have them, or need them, i ll send them to you)
    regardless what you do with the snowglobe

    great idea hemptation
    Last edited by azaleea; 12-10-2012 at 03:36 PM.

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

    hemptation (12-10-2012)

  26. #2155
    hi guys..I have a problem with my iwidgets..could anyone help?
    I accidently pull my iwidget down to dock postion and now I can't move it.
    I can't delete it,either.
    I tried to uninstall iwidgets and reinstall it again..
    It still shows up on my dock..
    Could anyone tell me how to move it or delete it? Thank u so much

  27. #2156
    Try making the height in the plist bigger or deleting the actual widget


    Quote Originally Posted by Vanasian View Post
    hi guys..I have a problem with my iwidgets..could anyone help?
    I accidently pull my iwidget down to dock postion and now I can't move it.
    I can't delete it,either.
    I tried to uninstall iwidgets and reinstall it again..
    It still shows up on my dock..
    Could anyone tell me how to move it or delete it? Thank u so much
    Yeah he does touch functions and shake themed for his 1nfected theme


    Quote Originally Posted by RKO1195 View Post
    June already has a iWidget that you shake with snow on cydia I believe
    Click My Sig For my auros Mods

  28. The Following 2 Users Say Thank You to GUNNY29 For This Useful Post:

    King_O_Hill (12-10-2012), Vanasian (12-10-2012)

  29. #2157
    Quote Originally Posted by GUNNY29 View Post
    Try making the height in the plist bigger or deleting the actual widget




    Yeah he does touch functions and shake themed for his 1nfected theme
    Thank u so much..I deleted it from iwidgets folder...
    then I respring and add it back to iwidgets..
    it works fine now..Thank u so much,,

  30. #2158
    No worries bro glad you got it sorted


    Quote Originally Posted by Vanasian View Post
    Thank u so much..I deleted it from iwidgets folder...
    then I respring and add it back to iwidgets..
    it works fine now..Thank u so much,,
    Click My Sig For my auros Mods

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

    King_O_Hill (12-10-2012)

  32. #2159
    iPhone? More like MyPhone
    Join Date
    Aug 2012
    Posts
    162
    Thanks
    0
    Thanked 92 Times in 48 Posts

    Chevy muscle car dude where is your widget you posted a screen shot of in themishd I want it and can't find it. Thank you

  33. #2160
    Random Thanks Collector Richard's Avatar
    Join Date
    Mar 2008
    Location
    England (leeds)
    Posts
    1,614
    Thanks
    688
    Thanked 1,111 Times in 547 Posts

    What happened to the Drifter ? I have not seen him around for like ever ?
    . I Am the Random Thanks Collector So Please Press the Thanks Button

  34. The Following User Says Thank You to Richard For This Useful Post:

    The.Drifter (12-11-2012)

Page 108 of 365 FirstFirst ... 8 58 98106107108109110 118 158 208 ... 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
  •