1. Simon's Avatar
    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
    2013-08-18 06:33 PM
  2. rasputin007's Avatar
    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; 2013-08-18 at 06:49 PM.
    Nothing is impossible only miracles take a bit longer!
    2013-08-18 06:46 PM
  3. RKO1195's Avatar
    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

    ...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
    2013-08-18 06:54 PM
  4. daddykool's Avatar
    WOW! Can't believe I missed this!! Amazing work guys!
    2013-08-18 06:58 PM
  5. Krima's Avatar
    Edit
    2013-08-18 07:02 PM
  6. Jesus™'s Avatar
    [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.
    2013-08-18 07:31 PM
  7. The_Durben's Avatar
    Congrats on the release!! This is huge thank you to all that were involved in this large scale project!!
    Thanks my brother!
    2013-08-18 07:50 PM
  8. NewD's Avatar
    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.

    Widget weather work on iPad mini bro ?
    No - because there is no Weather.app on iPads.
    2013-08-18 07:52 PM
  9. King_O_Hill's Avatar
    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 WW3 for iOS 9/10 - Widget-Weather 3.0
    2013-08-18 07:56 PM
  10. joshlogic's Avatar
    I am drooling to get some compatible springboard iWidgets! Woohoo!
    2013-08-18 07:58 PM
  11. The_Durben's Avatar
    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.
    2013-08-18 08:01 PM
  12. GUNNY29's Avatar
    D any chance after you have released the tweak properly of it being ios5 compatible?
    Click My Sig For my auros Mods
    2013-08-18 08:03 PM
  13. RKO1195's Avatar
    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
    2013-08-18 08:03 PM
  14. The_Durben's Avatar
    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.
    2013-08-18 08:06 PM
  15. King_O_Hill's Avatar
    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 WW3 for iOS 9/10 - Widget-Weather 3.0
    2013-08-18 08:07 PM
  16. GUNNY29's Avatar
    No ios5 but iPad?? Lol
    Click My Sig For my auros Mods
    2013-08-18 08:08 PM
  17. King_O_Hill's Avatar
    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 WW3 for iOS 9/10 - Widget-Weather 3.0
    2013-08-18 08:10 PM
  18. The_Durben's Avatar
    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
    2013-08-18 08:12 PM
  19. rasputin007's Avatar
    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.

    - 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!
    2013-08-18 08:14 PM
  20. GUNNY29's Avatar
    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
    2013-08-18 08:15 PM
4,318 ... 816171819202868118 ...
LINK TO POST COPIED TO CLIPBOARD