Page 447 of 614 FirstFirst ... 347397437445446447448449457497547 ... LastLast
Results 8,921 to 8,940 of 12265

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


Thread: UniAW7

  1. #8921
    Livin the iPhone Life nik1975's Avatar
    Join Date
    Feb 2008
    Location
    Thessaloniki, Greece
    Posts
    1,908
    Thanks
    4,509
    Thanked 1,485 Times in 879 Posts

    Default UniAW7
    @Ian take a look if you want to the files i need to change
    https://www.dropbox.com/s/1qamjn4dh0...chevy.zip?dl=0
    Last edited by nik1975; 2016-01-23 at 11:59 AM.

  2. #8922
    Hi Marty
    This is the widget that goes blank when making changes in the main.js file

    Any help appreciated

    https://www.dropbox.com/s/urfb58dqhbxyh7j/WW2.zip?dl=0

  3. The Following User Says Thank You to shamjosh For This Useful Post:

    Marty McFly (2016-01-23)

  4. #8923
    @nik1975
    It's Chevy's ww2 that I am using as well
    Getting same issue as you are

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

    nik1975 (2016-01-23)

  6. #8924
    Quote Originally Posted by Marty McFly View Post
    Yes absolutely. Check that too V. Thanks Blik. Look at the picture at the bottom of the instruction post V and make sure it looks exactly the same. Specifically, the "var substr" and "var templatitude" lines near the top. Those are the ones not displaying properly in the post. Unfortunately just copying and pasting won't work. Need to fix those two lines manually.
    This applies for Ian's latest code too.

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

    #m37h{ (2016-01-23), <Ian Nicoll/> (2016-01-23), Irish_Man (2016-01-23), menard_00 (2016-01-23)

  8. #8925
    Guys I edited my instructions, please check post #8915 again. Maybe that is your issue.

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

    #m37h{ (2016-01-23), kristatos (2016-01-23), Marty McFly (2016-01-23)

  10. #8926
    Ian Is this also true for Germany

  11. #8927
    Quote Originally Posted by schalker44 View Post
    Ian Is this also true for Germany
    If you give me your coordinates from the "MyLocation.txt" file I can check for you, also tell me what you want your city name to say.

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

    #m37h{ (2016-01-23), schalker44 (2016-01-23)

  13. #8928
    Quote Originally Posted by nik1975 View Post
    @Ian take a look if you want to the files i need to change
    https://www.dropbox.com/s/1qamjn4dh0...chevy.zip?dl=0
    Check my instructions again & be sure all is ok, if not I need the complete widget not just the files as need to see it working.

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

    NewD (2016-01-23), nik1975 (2016-01-23)

  15. #8929
    Quote Originally Posted by <Ian Nicoll/> View Post
    A huge thanks to Marty for finding another feed , hope this one gives you all neighborhood (it works for me now). You can choose city or neighborhood in the Config file (or Widget options) but don't select "default".
    For the address, I just made it the first line, if you want more than that just ask here & I or somebody will help you out.

    So here is the new instructions for getting your city name back to normal in UniAW7.1

    In main.js add this to top of dealWithWeather function:
    Code:
    	// Use alternative for City Name only if the API WW2 uses is down
    	if (iOS == false) { var url2 = "test_files/myLocation" + ".txt"; } else { var url2 = "file:///private/var/mobile/Documents/myLocation" + ".txt"; }
    
    	if (obj.city == "TBD") {
    		document.getElementById("city").style.display = 'none';
    		document.getElementById("address").style.display = 'none';
    
    		jQuery.get(url2, function(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]);
    			obj.coords = latitude + "," + longitude;
    				
    			var Gurl = "http://gws2.maps.yahoo.com/findlocation?pf=1&locale=en_US&offset=15&flags=&q=" + obj.coords + "&gflags=R&start=0&count=100";
    			
    			jQuery.get(Gurl, 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();
    		
    					// CORRECT YOUR YCITY NAME HERE!
        				if ((obj.Yneigh == "Tawid") || (obj.Yneigh == "Cabulihan") || (obj.Yneigh == "Libagon") || (obj.Yneigh == "Panan-Awan")) {
    						obj.Yneigh = "Guadalupe";
    					}
    					
    				switch (UseExtraLocation) {
    					case "city":
    					document.getElementById("Ycity").innerHTML = obj.Ycity;
    					break;
    					case "neighborhood":
    					document.getElementById("Ycity").innerHTML = obj.Yneigh;
    					break;
    				}
    			
    				if (ShowAddress == true) {
    					document.getElementById("Yaddress").innerHTML = obj.Yaddress;
    				}
    		
    				});
    			});
    		});	
    	}


    In style.css, duplicate #city AND #address, re-name the duplicates to #Ycity AND #Yaddress (case sensitive).
    When I say ""duplicate #city" I mean the complete group of settings for #city, e.g all this:
    Code:
    #city {
    	position: absolute;
    	top: 3.65%;
    	left: 0%;
    	width: 100%;
    	height: 4%;
    	font-size: 4.3vw;
    	text-align: center;
    	text-shadow: black -1px 1px 1px, black -2px 2px 3px;
    	z-index: 50;
    }
    In ALL html files add these div's inside the WeatherContainer div: <div id="Ycity"></div> AND <div id="Yaddress"></div>

    This uses the coordinates from the "MyLocation.txt file so you WILL need to activate the "MyLocation" option in WW2 settings page, I tried it using the coordinates from the xml file but because they only have 2 digits after the decimal point it's not so accurate, I would like to ask KOH if he can change this so the .xml file shows 6 digits after the decimal point for our coordinates, thanks Brian.

    If Yahoo API starts working again this code will not run, it will automatically revert to the "normal" way.

    I will give it a week or so before I update UniAW7.1 in 1st post, lets see what pans out first.

    EDIT:
    Same issue Marty had, the browser is messing with the pasted code, please be sure the line under this line: jQuery.get(url2, function(appdata){ looks like this: (check for missing closing bracket & semi-colon at the end of it).
    var substr = appdata.split('\n');
    I'm on iphone 6 ios 8.1 UniAW7SB.
    Unfortunately, the code is not working.
    Can you please look at the widget?

    Dropbox - UniAW7SB_Ferlop.theme.rar



    Last edited by basis2000; 2016-01-23 at 12:40 PM.

  16. #8930
    Quote Originally Posted by basis2000 View Post
    I'm on iphone 6 ios 8.1 UniAW7SB.
    Unfortunately, the code is not working.
    Can you please look at the widget?

    Dropbox - UniAW7SB_Ferlop.theme.rar
    Did you check the "EDIT" at the bottom of my post? is the line of code correct?

  17. The Following User Says Thank You to <Ian Nicoll/> For This Useful Post:

    Marty McFly (2016-01-23)

  18. #8931
    Quote Originally Posted by <Ian Nicoll/> View Post
    Did you check the "EDIT" at the bottom of my post? is the line of code correct?
    Yes, it's correct.

    Perhaps I should mention, I use Groovy Board+.
    Last edited by basis2000; 2016-01-23 at 12:48 PM.

  19. #8932
    Hey all. Please post links to complete widgets if you are having issues. Please also state whether you'd like the Google or the new Yahoo fix. Thanks.

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

    <Ian Nicoll/> (2016-01-23), basis2000 (2016-01-23), Irish_Man (2016-01-23), kristatos (2016-01-23), menard_00 (2016-01-23), nik1975 (2016-01-23), Splatty79 (2016-01-23)

  21. #8933
    var prevlatitude;
    var prevlongitude;
    var refreshLocationTimer;

    // LOCAL REQUEST : UPDATE THE COORDINATES FROM MYLOCATION.TXT FILE
    function UpdateLocation() {
    refreshLocationTimer = setTimeout(UpdateLocation, 30*1000);
    if (XML_TEST == true) { var url = "myLocation.txt"; } else { var url = "file:///private/var/mobile/Documents/myLocation.txt"; }
    jQuery.get(url, function(appdata) {
    var myvar = appdata;
    var substr = appdata.split('\n');
    var templatitude=(substr[0]).split('=');
    var templongitude=(substr[1]).split('=');
    obj.latitude = $.trim(templatitude[1])*1;
    obj.longitude = $.trim(templongitude[1])*1;

    if ((prevlatitude != obj.latitude) || (prevlongitude != obj.longitude)) {
    prevlatitude = obj.latitude;
    prevlongitude = obj.longitude;
    searchWoeid(obj.latitude, obj.longitude); // SUCCESS
    }
    }).fail(function() {
    document.getElementById("Day0desc").innerHTML = "No myLocation.txt file !";
    document.getElementById("WeatherInfoBG").style.dis play = "none";
    document.getElementById("forecastBG").style.displa y = "none";
    document.getElementById("hourlyforecastBG").style. display = "none";
    document.getElementById("mooninfoBG").style.displa y = "none";
    });
    }

    // SEARCH WOEID FROM THE COORDINATES
    function searchWoeid(latitude, longitude) {
    var url = 'http://query.yahooapis.com/v1/public/yql?q=select * from geo.placefinder where text="'+latitude+','+longitude+'" and gflags="R"&format=json';
    $.getJSON(url, function(data) {
    found = data.query.count; // Check if coordinates return a valid location.
    if ( found == 1) {
    obj.woeid = data.query.results.Result.woeid;
    obj.extraLocCity = data.query.results.Result.city;
    obj.extraLocNeighborhood = data.query.results.Result.neighborhood;
    obj.extraLocCounty = data.query.results.Result.county;
    obj.extraLocName = latitude + "," + longitude;
    searchZipcode(obj.woeid); // SUCCESS
    } else {
    if (dayhour == null) {
    document.getElementById("Day0desc").innerHTML = "No Woeid for these coordinates !";
    document.getElementById("WeatherInfoBG").style.dis play = "none";
    document.getElementById("forecastBG").style.displa y = "none";
    document.getElementById("hourlyforecastBG").style. display = "none";
    document.getElementById("mooninfoBG").style.displa y = "none";
    } else {
    obj.offline = true;
    document.getElementById("city").className = "FontColorRed";
    }
    }
    }).fail(function() {
    prevlatitude = "";
    prevlongitude = "";
    if (dayhour == null) {
    document.getElementById("Day0desc").innerHTML = "No Internet !";
    document.getElementById("WeatherInfoBG").style.dis play = "none";
    document.getElementById("forecastBG").style.displa y = "none";
    document.getElementById("hourlyforecastBG").style. display = "none";
    document.getElementById("mooninfoBG").style.displa y = "none";
    } else {
    obj.offline = true;
    document.getElementById("city").className = "FontColorRed";
    }
    });
    }

  22. #8934
    Quote Originally Posted by shamjosh View Post
    Hi Marty
    This is the widget that goes blank when making changes in the main.js file

    Any help appreciated

    https://www.dropbox.com/s/urfb58dqhbxyh7j/WW2.zip?dl=0
    I will get this done for you shortly. Google or Yahoo?

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

    #m37h{ (2016-01-23), Irish_Man (2016-01-23), kristatos (2016-01-23), nik1975 (2016-01-23)

  24. #8935
    Hi Marty
    Yahoo please

    Tried on another widget
    Same issue goes blank

    Thanks very much

  25. The Following 2 Users Say Thank You to shamjosh For This Useful Post:

    Marty McFly (2016-01-23), nik1975 (2016-01-23)

  26. #8936
    iPhoneaholic Splatty79's Avatar
    Join Date
    Jan 2012
    Location
    Melbourne, Australia
    Posts
    499
    Thanks
    434
    Thanked 711 Times in 235 Posts

    Hey Marty thanks for your tireless work! If you have a chance could you look at my widget too, neighbourhood is blank even after adding Ian's code. Happy to try Google or yahoo but both haven't worked for me. TIA

    https://www.dropbox.com/s/t3i21984n7...Touch.zip?dl=0

  27. The Following User Says Thank You to Splatty79 For This Useful Post:

    Marty McFly (2016-01-23)

  28. #8937
    Quote Originally Posted by Splatty79 View Post
    Hey Marty thanks for your tireless work! If you have a chance could you look at my widget too, neighbourhood is blank even after adding Ian's code. Happy to try Google or yahoo but both haven't worked for me. TIA

    https://www.dropbox.com/s/t3i21984n7...Touch.zip?dl=0
    Happy to bro. Will look shortly.

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

    Irish_Man (2016-01-23), kristatos (2016-01-23), menard_00 (2016-01-23), metaserph (2016-01-23), Splatty79 (2016-01-23)

  30. #8938
    Hey Marty
    Really appreciate all the time you are putting in
    Just tried to amend another widget
    Below with same results
    Have used pc to amend these but to no avail!


    https://www.dropbox.com/s/tj0p794m2a...56%2B.zip?dl=0

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

    #m37h{ (2016-01-23)

  32. #8939
    hi guys thanx for updates on codes i will try my luck with yahoo later because google is incorrect for me
    p.s.
    people please don't mod main.js file with iFile it will break your widget

  33. The Following 2 Users Say Thank You to #m37h{ For This Useful Post:

    <Ian Nicoll/> (2016-01-23), kristatos (2016-01-23)

  34. #8940
    Quote Originally Posted by Marty McFly View Post
    Hey all. Please post links to complete widgets if you are having issues. Please also state whether you'd like the Google or the new Yahoo fix. Thanks.
    Dropbox - UniAW7SB_Ferlop.theme.rar

    I'd like the Google Fix.

Page 447 of 614 FirstFirst ... 347397437445446447448449457497547 ... 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
  •