+ Reply
Page 18 of 210 FirstFirst ... 81617181920 28 68 118 ... LastLast
Results 341 to 360 of 4200

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


Thread: Widget Weather

is a discussion within the

File Mods

forums, a part of the

iPhone Modding

section;
You're very welcome Ted! Thanks for the comment - much appreciated. Enjoy!
...
  1. #341

  2. The Following 2 Users Say Thank You to Marty McFly For This Useful Post:

    RKO1195 (08-18-2013), TeddyDiesel (08-18-2013)

  3. #342
    2k1
    2k1 is offline
    Sug Luv Super Moderator 2k1's Avatar
    Join Date
    Jan 2011
    Location
    Hammond Louisiana
    Posts
    34,057
    Thanks
    1,815
    Thanked 7,065 Times in 4,206 Posts

    Thank you everyone for the work y'all put into this. Really do appetciate what y'all do to make out i devices better than they were. Just amazing.

  4. The Following 5 Users Say Thank You to 2k1 For This Useful Post:

    joshlogic (08-18-2013), King_O_Hill (08-18-2013), Marty McFly (08-18-2013), RKO1195 (08-18-2013), The_Durben (08-18-2013)

  5. #343
    My iPhone is a Part of Me
    Join Date
    Aug 2009
    Posts
    666
    Thanks
    325
    Thanked 2,140 Times in 490 Posts

    This is strange.
    I downloaded the weatherwidget.xml file to my computer and saw it has a "extraLocName" section with latitude and longitude - 6 values on the right hand side. Great I can use these, quick code edit, upload, respring and .... nothing.
    Opened weatherwidget.xml file on iPhone with iFile and NO "extraLocName" section in it, hence no location name.
    How come it is there at one time and gone another time????
    Ahhh, did not had the Neighbourhood Location toggle on ON, OK so that changes the xml file content. Something new learned
    Last edited by rasputin007; 08-18-2013 at 10:14 AM.

  6. The Following 5 Users Say Thank You to rasputin007 For This Useful Post:

    King_O_Hill (08-18-2013), lostinthemes (08-19-2013), Marty McFly (08-18-2013), RKO1195 (08-18-2013), The_Durben (08-18-2013)

  7. #344
    iPhoneaholic ndhoang_angimex's Avatar
    Join Date
    Mar 2008
    Location
    Vietnam
    Posts
    306
    Thanks
    795
    Thanked 225 Times in 137 Posts

    Widget weather work on iPad mini bro ?

  8. #345
    My iPhone is a Part of Me
    Join Date
    Feb 2008
    Posts
    775
    Thanks
    497
    Thanked 279 Times in 196 Posts

    Quote Originally Posted by j0k3r View Post
    Hi Durben,

    can u pls help me with ma prob? should i try ilex, or the One Person who get it to work,
    how did he do that? Because when i try ilex, some people are losing their weather app
    simply because there's some tweaks they have installed are moving the weather app from
    its original place to installed apps directory to fix some crashes people experiencing on iOS 6.
    ...something iss really strange @ my end :/ I tried all to fix my weather.app, but still nothing, it
    wont start. BUT on my LS are weather infos, and in my documents folder is the .xml file, that is
    really strange, cause my weather.app is bricked :/.

  9. The Following 2 Users Say Thank You to j0k3r For This Useful Post:

    King_O_Hill (08-18-2013), The_Durben (08-18-2013)

  10. #346
    iPhone? More like MyPhone Jesus™'s Avatar
    Join Date
    Mar 2013
    Posts
    157
    Thanks
    29
    Thanked 209 Times in 81 Posts

    Has anyone tried/managed to convert an iWidget to use WidgetWeather?
    Last edited by Jesus™; 08-18-2013 at 10:33 AM.

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

    King_O_Hill (08-18-2013)

  12. #347
    Superbad Modder-ator Simon's Avatar
    Join Date
    Nov 2007
    Location
    Bermuda
    Posts
    46,577
    Thanks
    6,851
    Thanked 15,269 Times in 7,004 Posts

    Here's my latest. Slide show walls (thx Durben) that move around with the accelerometer. Slightly tweaked from what I have on cydia since those use my location. This is a all in one version of those too so 100 walls. Works best on i5. If on a i4 change the slideshow transition to none at bottom of lock background (it's set to wipe now) for better performance.





    Download: https://www.dropbox.com/s/33fi2z5sqt...elWalls_WW.zip

  13. The Following 14 Users Say Thank You to Simon For This Useful Post:

    Dacal (08-18-2013), EricB78 (08-18-2013), It's Mi (09-30-2013), joshlogic (08-18-2013), King_O_Hill (08-18-2013), lostinthemes (08-19-2013), Marty McFly (08-18-2013), NewdestinyX (08-18-2013), phil73 (08-18-2013), RKO1195 (08-18-2013), TeddyDiesel (08-18-2013), The.Drifter (08-18-2013), The_Durben (08-18-2013), UNLOCKZ (08-18-2013)

  14. #348
    My iPhone is a Part of Me
    Join Date
    Aug 2009
    Posts
    666
    Thanks
    325
    Thanked 2,140 Times in 490 Posts

    OK, got it sorted now, works a treat to see the right location name on the display.

    Here is the Google location mod for everybody who would like to try it or who has problems with their location name.

    It is just a little code change in 3 files, I used the WidgetWeather Base theme. The files you need to edit are LockBackground.html, Style.css and main.js.
    Below you will see the changes (in red color). They are almost all code additions.

    LockBackground.html
    Code:
    <div id="date"></div>
    <div id="city"></div>
    <div id="city2"></div>
    <div id="extraLocCity"></div>
    Style.css
    Code:
    #city {
    	position:absolute;
    	top:42px;
    	left: 32px;
    	width:320px;
    	height:32px;
    	text-align:left;
    	font-weight: normal; 
    	font-size:12px;
    	color: white;
    	text-shadow: 0px 2px 2px #000;
    }
    
    #city2 {
    	position:absolute;
    	top:42px;
    	left: 32px;
    	width:120px;
    	height:32px;
    	text-align:left;
    	font-weight: normal; 
    	font-size:12px;
    	color: white;
    	text-shadow: 0px 2px 2px #000;
    }
    
    #extraLocCity {
    	position:absolute;
    	top:42px;
    	left: 32px;
    	width:320px;
    	height:32px;
    	text-align:left;
    	font-weight: normal; 
    	font-size:12px;
    	color: Red;
    	text-shadow: 0px 2px 2px #000;
    	display:none;
    }
    
    #neighborhood {
    	position:absolute;
    	top:52px;
    	left: 32px;
    	width:320px;
    	height:32px;
    	text-align:left;
    	font-weight: normal; 
    	font-size:10px;
    	color: white;
    	text-shadow: 0px 2px 2px #000;
    	display:none;
    }
    
    #county {
    	position:absolute;
    	top:61px;
    	left: 32px;
    	width:320px;
    	height:32px;
    	text-align:left;
    	font-weight: normal; 
    	font-size:10px;
    	color: white;
    	text-shadow: 0px 2px 2px #000;
    	display:none;
    }
    
    #state {
    	position:absolute;
    	top:71px;
    	left: 32px;
    	width:320px;
    	height:32px;
    	text-align:left;
    	font-weight: normal; 
    	font-size:10px;
    	color: white;
    	text-shadow: 0px 2px 2px #000;
    	display:none;
    }
    
    #country {
    	position:absolute; 
    	top:63px;
    	left: -32px;
    	width:320px; 
    	height:20px; 
    	text-align:right; 
    	z-index:90;
    	font-weight: normal; 
    	font-size:12px;
    	color: white;
    	text-shadow: 0px 2px 2px #000;
    	text-transform:uppercase;
    	display:none;
    }
    Had to set all other location elements to "display:none" as I did not wanted to much repetition.

    main.js
    Code:
    function init() {
    updateClock();
    setInterval(updateClock, 1000);
    updateWeather();
    
    if (useExtraLocationCity == false) {
    	document.getElementById("city").style.display = "none";
    
    document.getElementById("extraLocCity").style.display = "none";
    
    	} else {
    
    document.getElementById("extraLocCity");
    	document.getElementById("city").style.display = "none";
    	}
    }
    
    .....
    ......
    //much further down the main.js file
    ....
    ....
    
    	$(data).find('currentcondition').each( function() {
    		obj.city =$(this).find('name').text();
    		obj.extraLocCity =$(this).find('extraLocCity').text();
    		obj.state =$(this).find('state').text();
    		obj.neighborhood =$(this).find('extraLocNeighborhood').text();
    		obj.county =$(this).find('extraLocCounty').text();
    		obj.country =$(this).find('extraLocCountry').text();
    		obj.countrycode =$(this).find('extraLocCountryCode').text();
    		obj.statecode =$(this).find('extraLocStateCode').text();
    		obj.postalcode =$(this).find('extraLocUzip').text();
    		obj.woeid = $(this).find('woeid').text();
    		obj.locationid = $(this).find('locationid').text();	
    		obj.temp = $(this).find('temp').text(); 
    		obj.icon = $(this).find('code').text();
    		obj.observationtime = $(this).find('observationtime').text();
    		obj.sunset = $(this).find('sunsettime').text();
    		obj.sunrise = $(this).find('sunrisetime').text();
    		obj.tempUnit = $(this).find('celsius').text();
    		obj.moonphase = $(this).find('moonphase').text()*1;
    		obj.pressure = $(this).find('pressure').text();
    		obj.humidity = $(this).find('humidity').text(); 
    		obj.rising = $(this).find('rising').text()*1;		
    		obj.visibility = $(this).find('visibility').text();
    		obj.RealFeel = $(this).find('chill').text();
    		obj.direction = $(data).find('direction').text();
    		obj.windspeed = Math.round($(data).find('speed').text());
    		obj.unitsdistance = $(this).find('unitsdistance').text();
    		obj.unitspressure = $(this).find('unitspressure').text();
    		obj.unitsspeed = $(this).find('unitsspeed').text();
    		obj.unitstemperature = $(this).find('unitstemperature').text();
    		obj.coords = $(this).find('extraLocName').text();
    		obj.lati = obj.coords.split(",")[0];
    		obj.longi = obj.coords.split(" ")[1];
    		
    		var url = "http://maps.googleapis.com/maps/api/geocode/json?latlng=" + obj.lati + "," + obj.longi + "&sensor=false"
    	$.getJSON(url, function(data) {
    	 var address=data.results[3].formatted_address;
    	  document.getElementById("city2").innerText=address;
    	})
    The number in the line var address=data.results[3].formatted_address; can be changed according to Google.
    You just have to figure out which number is best for you.

    Code:
    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"
    Only works when Neighbourhood Location is enabled as only then there will be the latitude and longitude in sufficient length in the weatherwidget.xml file.
    Last edited by rasputin007; 08-18-2013 at 10:49 AM.

  15. The Following 8 Users Say Thank You to rasputin007 For This Useful Post:

    Ian Nicoll (08-18-2013), It's Mi (09-30-2013), King_O_Hill (08-18-2013), lostinthemes (08-19-2013), Marty McFly (08-18-2013), NewdestinyX (08-18-2013), RKO1195 (08-18-2013), The_Durben (08-18-2013)

  16. #349
    widget modder RKO1195's Avatar
    Join Date
    Aug 2010
    Location
    Alabama
    Posts
    2,331
    Thanks
    10,727
    Thanked 5,393 Times in 1,814 Posts

    Quote Originally Posted by Jesus™ View Post
    Has anyone tried/managed to convert an iWidget to use WidgetWeather?

    Yes Durben has done a few of his, best way to do it is just take the main js from one of the locks on here and just adjust stuff to work it's not hard just rename some stuff in your css and html

    Quote Originally Posted by j0k3r View Post
    ...something iss really strange @ my end :/ I tried all to fix my weather.app, but still nothing, it
    wont start. BUT on my LS are weather infos, and in my documents folder is the .xml file, that is
    really strange, cause my weather.app is bricked :/.

    If this works what's it matter lol

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

    Jesus™ (08-18-2013), King_O_Hill (08-18-2013), The_Durben (08-18-2013)

  18. #350
    Too Cool daddykool's Avatar
    Join Date
    Mar 2011
    Location
    Leeds UK
    Posts
    1,509
    Thanks
    3,296
    Thanked 5,586 Times in 1,149 Posts

    WOW! Can't believe I missed this!! Amazing work guys!

  19. The Following 6 Users Say Thank You to daddykool For This Useful Post:

    joshlogic (08-18-2013), King_O_Hill (08-18-2013), Marty McFly (08-18-2013), RKO1195 (08-18-2013), The.Drifter (08-18-2013), The_Durben (08-18-2013)

  20. #351
    Full Moon Krima's Avatar
    Join Date
    Jul 2011
    Location
    Nashville, Tn
    Posts
    3,115
    Thanks
    4,028
    Thanked 7,779 Times in 2,431 Posts

    Edit

  21. The Following User Says Thank You to Krima For This Useful Post:

    King_O_Hill (08-18-2013)

  22. #352
    iPhone? More like MyPhone Jesus™'s Avatar
    Join Date
    Mar 2013
    Posts
    157
    Thanks
    29
    Thanked 209 Times in 81 Posts

    [QUOTE=RKO1195;6929741]Yes Durben has done a few of his, best way to do it is just take the main js from one of the locks on here and just adjust stuff to work it's not hard just rename some stuff in your css and html



    I'm apparently in over my head with this. I guess I'll have to wait for a tutorial. Thank you for responding though, it's appreciated.

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

    King_O_Hill (08-18-2013), RKO1195 (08-18-2013), The_Durben (08-18-2013)

  24. #353
    The Mechanic The_Durben's Avatar
    Join Date
    Aug 2010
    Location
    Vancouver Canada
    Posts
    8,424
    Thanks
    34,944
    Thanked 40,563 Times in 7,513 Posts

    Quote Originally Posted by barsoverbeats View Post
    Congrats on the release!! This is huge thank you to all that were involved in this large scale project!!
    Thanks my brother!

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

    King_O_Hill (08-18-2013)

  26. #354
    ----NewD 2.0---- NewdestinyX's Avatar
    Join Date
    Jan 2012
    Posts
    10,056
    Thanks
    4,377
    Thanked 9,157 Times in 4,595 Posts

    Quote Originally Posted by rasputin007 View Post
    OK, got it sorted now, works a treat to see the right location name on the display.

    Here is the Google location mod for everybody who would like to try it or who has problems with their location name.

    It is just a little code change in 3 files, I used the WidgetWeather Base theme. The files you need to edit are LockBackground.html, Style.css and main.js.
    <<big snip>>
    Only works when Neighbourhood Location is enabled as only then there will be the latitude and longitude in sufficient length in the weatherwidget.xml file.
    Ras.. This is great!! Just what I was looking for. I almost got the code right myself but forgot the $get this code lines.. Could you simplify for me this one thing..

    The way Dacal, Durben and most of the early widgets are coded - has city2 (or extraLocCity) return "township" for US cities. All well & good!

    But when Neighborhood is set to "true" in the config.js it returns the same as city1.. In most myLocation widgets.. Neighborhood returns "township" or "county" in a US city.. Can you just show me how to recode the main.js for when Neighborhood is set to True that it return "County"? City and City2 (extraLocCity) are working great (like CityGPS false/true in myLocation widgets.

    Thanks in advance sir!

    I'm hoping all modders will eventually standardize what "neighborhood" pulls as a name. Right now there's no difference in name for a US city between having neighborhood on or off.

    Quote Originally Posted by ndhoang_angimex View Post
    Widget weather work on iPad mini bro ?
    No - because there is no Weather.app on iPads.
    Here to help if I can. If I can't I know someone who can!

  27. The Following 3 Users Say Thank You to NewdestinyX For This Useful Post:

    It's Mi (09-30-2013), King_O_Hill (08-18-2013), The_Durben (08-18-2013)

  28. #355
    King Kong ain't got nothing on me! King_O_Hill's Avatar
    Join Date
    Apr 2011
    Location
    USA
    Posts
    9,494
    Thanks
    42,033
    Thanked 17,915 Times in 6,519 Posts

    Quote Originally Posted by rasputin007 View Post
    OK, got it sorted now, works a treat to see the right location name on the display.
    Awesome bro! Glad you can get what you want out of it!
    Widget-Weather App Now Available! Also with MyLocation Support!
    Check out the thread here - Widget-Weather
    To install the Widget-Weather app, just go to Cydia and install. This will also remove MyLocation, as it is built in!
    Want to protect your JailBreak! Add this repo http://cydia.myrepospace.com/iLEXiNFO/ & Install "iLEX R.A.T."
    It will allow you to bring your phone back to a fresh jailbroken state!

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

    Marty McFly (08-18-2013), rasputin007 (08-18-2013), RKO1195 (08-18-2013), The_Durben (08-18-2013)

  30. #356
    iPhone? More like MyPhone joshlogic's Avatar
    Join Date
    Aug 2011
    Posts
    189
    Thanks
    463
    Thanked 158 Times in 74 Posts

    I am drooling to get some compatible springboard iWidgets! Woohoo!

  31. The Following 3 Users Say Thank You to joshlogic For This Useful Post:

    King_O_Hill (08-18-2013), RKO1195 (08-18-2013), The_Durben (08-18-2013)

  32. #357
    The Mechanic The_Durben's Avatar
    Join Date
    Aug 2010
    Location
    Vancouver Canada
    Posts
    8,424
    Thanks
    34,944
    Thanked 40,563 Times in 7,513 Posts

    Quote Originally Posted by j0k3r View Post
    Hi Durben,

    can u pls help me with ma prob? should i try ilex, or the One Person who get it to work,
    how did he do that? Because when i try ilex, some people are losing their weather app
    simply because there's some tweaks they have installed are moving the weather app from
    its original place to installed apps directory to fix some crashes people experiencing on iOS 6.
    I'm confused. You said it's not working but it is working?

    Honestly I have no suggestions for people who use app sync
    One has said it's working with app sync, a few have not been able to.
    Unfortunately when you install stuff like this it messes with your phone.

    The only thing no one has tried who had a broken weather app was ilex or semi restore.
    Up to you if you want to or not.

    We will likely not be looking at making it compatible with app sync
    Unfortunately a large majority of people who have it installed are pirates of apps and tweaks and themes.
    From a personal standpoint I don't support that.

  33. The Following 4 Users Say Thank You to The_Durben For This Useful Post:

    King_O_Hill (08-18-2013), Marty McFly (08-18-2013), mentop (08-19-2013), RKO1195 (08-18-2013)

  34. #358
    Mudder GUNNY29's Avatar
    Join Date
    Aug 2010
    Posts
    5,433
    Thanks
    4,571
    Thanked 15,591 Times in 4,087 Posts

    D any chance after you have released the tweak properly of it being ios5 compatible?
    Click My Sig For my auros Mods

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

    King_O_Hill (08-18-2013), The_Durben (08-18-2013)

  36. #359
    widget modder RKO1195's Avatar
    Join Date
    Aug 2010
    Location
    Alabama
    Posts
    2,331
    Thanks
    10,727
    Thanked 5,393 Times in 1,814 Posts

    Hey Grant will you try my Lock and see if it shows your right city and stuff mine don't have the extra city stuff but I want to know if it shows for your location. Just curious

  37. The Following 2 Users Say Thank You to RKO1195 For This Useful Post:

    King_O_Hill (08-18-2013), The_Durben (08-18-2013)

  38. #360
    The Mechanic The_Durben's Avatar
    Join Date
    Aug 2010
    Location
    Vancouver Canada
    Posts
    8,424
    Thanks
    34,944
    Thanked 40,563 Times in 7,513 Posts

    Quote Originally Posted by Jesus™ View Post
    I'm no master coder, I'm a "rank noob". I'm a roofer by day, I do modding of widgets because I enjoy it. Any help in the iWidget conversion process would be appreciated. I understand your busy and I cannot thank you enough for all your hard work.
    Really the same as making any other iWidget
    You just need to make a few changes to iWidget format
    LockBackground.html to Widget.html
    Add a Widget.plist for your size and start moving things around.

    Really not an easy way to explain this. You do need to know your way around an html and the js if your making major changes.

  39. The Following 3 Users Say Thank You to The_Durben For This Useful Post:

    Jesus™ (08-18-2013), King_O_Hill (08-18-2013), The.Drifter (08-18-2013)

LinkBacks (?)

  1. 08-08-2013, 04:14 PM

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts