Page 18 of 216 FirstFirst ... 81617181920 28 68 118 ... LastLast
Results 341 to 360 of 4310

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


Thread: Widget Weather

  1. #341
    Superbad Modder-ator Simon's Avatar
    Join Date
    Nov 2007
    Location
    Bermuda
    Posts
    46,790
    Thanks
    7,006
    Thanked 15,564 Times in 7,113 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

  2. 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)

  3. #342
    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 11:49 AM.
    Nothing is impossible only miracles take a bit longer!

  4. 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)

  5. #343
    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

  6. 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)

  7. #344
    WOW! Can't believe I missed this!! Amazing work guys!

  8. 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)

  9. #345
    Edit

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

    King_O_Hill (08-18-2013)

  11. #346
    [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.

  12. 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)

  13. #347
    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!

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

    King_O_Hill (08-18-2013)

  15. #348
    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!

  16. 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)

  17. #349
    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!

    Check out WW2 for iOS 8 - Widget-Weather 2.0

  18. 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)

  19. #350
    I am drooling to get some compatible springboard iWidgets! Woohoo!

  20. 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)

  21. #351
    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.

  22. 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)

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

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

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

  25. #353
    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

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

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

  27. #354
    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.

  28. 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)

  29. #355
    Quote Originally Posted by GUNNY29 View Post
    D any chance after you have released the tweak properly of it being ios5 compatible?
    There is no current plan on iOS 5, Sorry!

    We are going to look at iPad support though!

    Check out WW2 for iOS 8 - Widget-Weather 2.0

  30. The Following 2 Users Say Thank You to King_O_Hill For This Useful Post:

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

  31. #356
    No ios5 but iPad?? Lol
    Click My Sig For my auros Mods

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

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

  33. #357
    Quote Originally Posted by GUNNY29 View Post
    No ios5 but iPad?? Lol
    I don't think the dev has an iOS 5 device. So that makes it a little difficult.

    Plus iOS 7 is coming out soon.

    Check out WW2 for iOS 8 - Widget-Weather 2.0

  34. The Following 3 Users Say Thank You to King_O_Hill For This Useful Post:

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

  35. #358
    Quote Originally Posted by GUNNY29 View Post
    D any chance after you have released the tweak properly of it being ios5 compatible?
    That would be tough. Stephen doesn't have any iOS 5 device
    The weather app and location services changed between those firmwares so it's unlikely.
    We can see what Stephen can look at but can't make promises my man

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

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

  37. #359
    Quote Originally Posted by NewdestinyX View Post
    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...
    That's my weak point, would take me quite some time to read into other people's code, better ask the people that actually wrote that code.

    Quote Originally Posted by NewdestinyX View Post
    - 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!
    Honestly I can not help you as I have not used Yahoo location for years, so all this "city", "neighborhood", "county" and "state" stuff is almost unknown to me. Always used Google maps for location names.
    Nothing is impossible only miracles take a bit longer!

  38. The Following 3 Users Say Thank You to rasputin007 For This Useful Post:

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

  39. #360
    Quote Originally Posted by The_Durben View Post
    That would be tough. Stephen doesn't have any iOS 5 device
    The weather app and location services changed between those firmwares so it's unlikely.
    We can see what Stephen can look at but can't make promises my man
    That's fair enough. If he wants to go ahead only device I have jb is ios5 so can test it. There is still a lot of people on ios5 so would be worth it IMO

    Cheers for reply and king too
    Click My Sig For my auros Mods

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

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

Page 18 of 216 FirstFirst ... 81617181920 28 68 118 ... 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
  •