Page 35 of 875 FirstFirst ... 253334353637 45 85 135 535 ... LastLast
Results 681 to 700 of 17493

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


Thread: UniAW6.0 for iph4 & iph5

  1. #681
    Quote Originally Posted by Dacal View Post
    Like i explain one (two ? Three ?)pages back, Ian doesn't included the latest code for this : for uniAW 6, neighborhood option doesn't change anything if the WOEID given by the GPS coordinates is good and return an available city.

    To have something more accurate (for the location, not the weather condition...) and based on GPS coordinates :

    Add in Config.js :



    And replace the location.js file with the BaSalt one (oups, the code is not up to date on BaSalt thread...).

    Here what you must change in location.js :

    $.getJSON(url, function(data) {
    found = data.query.count; // Check if coordinates return a valid localization.
    if ( found == 1) {
    var woeid = data.query.results.Result.woeid;
    city = data.query.results.Result.city;
    neighborhood = data.query.results.Result.neighborhood;
    state = data.query.results.Result.state;

    if ((UseNeighborhood == true) && (neighborhood != "")) { city = neighborhood; }
    else if (UseNeighborhood == true) { city = state; }

    // GET OLD LOCALE FROM WOEID
    var url = "http://weather.yahooapis.com/forecastrss?w="+woeid+"&u=f";
    $.get(url, function(data) {
    title = $(data).find('title').text(); // Check if a city is found.
    if (title != "Yahoo! Weather - ErrorCity not found") {
    gps = true;
    zip = $(data).find('guid').text().split('_')[0];
    if (UseCityGPS == false) {
    if (UseNeighborhood == false) { city = $(data).find('location').attr('city'); }
    }
    Sorry man, missed that explanation. I'll check it out.
    Last edited by bfichtner; 04-04-2013 at 07:28 PM.

  2. The Following User Says Thank You to bfichtner For This Useful Post:

    Hip5 (04-04-2013)

  3. #682
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in the Philippines.
    Posts
    5,396
    Thanks
    8,453
    Thanked 21,576 Times in 4,325 Posts

    Quote Originally Posted by Dacal View Post
    Like i explain one (two ? Three ?)pages back, Ian doesn't included the latest code for this : for uniAW 6, neighborhood option doesn't change anything if the WOEID given by the GPS coordinates is good and return an available city.

    To have something more accurate (for the location, not the weather condition...) and based on GPS coordinates :

    Add in Config.js :



    And replace the location.js file with the BaSalt one (oups, the code is not up to date on BaSalt thread...).

    Here what you must change in location.js :

    $.getJSON(url, function(data) {
    found = data.query.count; // Check if coordinates return a valid localization.
    if ( found == 1) {
    var woeid = data.query.results.Result.woeid;
    city = data.query.results.Result.city;
    neighborhood = data.query.results.Result.neighborhood;
    state = data.query.results.Result.state;

    if ((UseNeighborhood == true) && (neighborhood != "")) { city = neighborhood; }
    else if (UseNeighborhood == true) { city = state; }

    // GET OLD LOCALE FROM WOEID
    var url = "http://weather.yahooapis.com/forecastrss?w="+woeid+"&u=f";
    $.get(url, function(data) {
    title = $(data).find('title').text(); // Check if a city is found.
    if (title != "Yahoo! Weather - ErrorCity not found") {
    gps = true;
    zip = $(data).find('guid').text().split('_')[0];
    if (UseCityGPS == false) {
    if (UseNeighborhood == false) { city = $(data).find('location').attr('city'); }
    }
    Cheers Dacal,

    Gonna add this now but won't update all the download links just for this, I will wait till I finish all the other tweaks, and we might be changing it again in a day or 2... you never know M8.

    EDIT:

    Dacal, I already have "var gps = true;" in the config file, do I replace it with this?

    If I change that then I must change the wording in the UniAW6.js too.

    I think I use this?

    if (gps == false) {
    if (UseNeighborhood == false) { city = $(data).find('location').attr('city'); }

    Correct?

    EDIT again:

    Oh no, now I see it is a addon, ok, got you. No problem.
    Last edited by Ian Nicoll; 04-04-2013 at 07:37 PM.

    "If it's not broken, I'll fix it till it is"

  4. The Following 9 Users Say Thank You to Ian Nicoll For This Useful Post:

    Cloud2Ground (04-05-2013), Dacal (04-04-2013), Hip5 (04-04-2013), James424 (04-04-2013), Kazuyoshi (04-05-2013), King_O_Hill (04-04-2013), mrsmickey (04-21-2013), sigit (04-04-2013), The_Durben (04-04-2013)

  5. #683
    Quote Originally Posted by Turbo1dr View Post
    I must be very dumb. How do I even install this on my iPhone5? I've downloaded the iWidget and the PerPage version but now, what do I do with folders and files? I like to just click the "Install" button in Cydia and it installs what I want on my phone. Is that possible? I have access to the "raw" file system on my phone using my PC.

    OK, I'm slowly getting it on my phone... Learning as I go...

  6. #684
    Quote Originally Posted by Ian Nicoll View Post
    Cheers Dacal,

    Gonna add this now but won't update all the download links just for this, I will wait till I finish all the other tweaks, and we might be changing it again in a day or 2... you never know M8.

    EDIT:

    Dacal, I already have "var gps = true;" in the config file, do I replace it with this?
    It's in addition to it Ian
    The city GPS is for fallback errors

    Dacal just messed with one of mine.

    Yours didn't have the issue even without I think though

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

    Cloud2Ground (04-05-2013), Hip5 (04-04-2013), Ian Nicoll (04-04-2013)

  8. #685
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in the Philippines.
    Posts
    5,396
    Thanks
    8,453
    Thanked 21,576 Times in 4,325 Posts

    Quote Originally Posted by The_Durben View Post
    It's in addition to it Ian
    The city GPS is for fallback errors

    Dacal just messed with one of mine.

    Yours didn't have the issue even without I think though
    Yes M8, I edited my post as soon as I realized

    "If it's not broken, I'll fix it till it is"

  9. The Following 7 Users Say Thank You to Ian Nicoll For This Useful Post:

    Cloud2Ground (04-05-2013), Dacal (04-04-2013), Hip5 (04-04-2013), Kazuyoshi (04-05-2013), King_O_Hill (04-04-2013), mrsmickey (04-21-2013), The_Durben (04-04-2013)

  10. #686
    Livin the iPhone Life Carvensno's Avatar
    Join Date
    Oct 2010
    Location
    Fresno, Calli
    Posts
    2,013
    Thanks
    2,650
    Thanked 1,757 Times in 753 Posts

    Quote Originally Posted by Ian Nicoll View Post
    Sounds like your not connected to the internet!



    Partly cloudy here.
    I have Internet and cell LTE. Guess ill redownload the location file and redo everything again. Resetting and etc....

  11. #687
    Quote Originally Posted by bfichtner View Post
    Sorry man, missed that explanation. I'll check it out.
    No problem .

    I have added these options to give the choice. For me, better to get the city from the second step (what i call RSS feed).

    Just in case, for information if you don't know, there is 3 requests to have a GPS widget that working with forecast :

    First step : Get the WOEID from the coordinates. You can catch a city name here (and neighborhood, state, county,...).
    Second Step : Get the "old" locale format (TX10000, UAX54000,...) with the WOEID (only way to have, in the next step, the 4 days forecast). At this step, you can also catch a city name, sometimes different from the first one.
    Third step : Get all the weather informations from the XML url, that has a 4 days forecast. You can also catch a city name here, but i don't give this option, except if you don't use the GPS (it's often/always the same as step 1 or 2).

    In my case :

    1) Tunis (not very accurate... The large town near my location).
    2) Sukrah : Perfect ! It's where i live.
    3) Tunis.

    Quote Originally Posted by Ian Nicoll View Post
    Cheers Dacal,

    Gonna add this now but won't update all the download links just for this, I will wait till I finish all the other tweaks, and we might be changing it again in a day or 2... you never know M8.

    EDIT:

    Dacal, I already have "var gps = true;" in the config file, do I replace it with this?

    If I change that then I must change the wording in the UniAW6.js too.

    I think I use this?

    if (gps == false) {
    if (UseNeighborhood == false) { city = $(data).find('location').attr('city'); }

    Correct?

    EDIT again:

    Oh no, now I see it is a addon, ok, got you. No problem.
    Just the part in red .

    BaSalt LS updated, just in case...
    Last edited by Dacal; 04-04-2013 at 07:48 PM.


    My themes : Jade HD, Silex HD, BaSalt HD,ToPaz
    All are on Cydia and/or Theme It.

  12. The Following 7 Users Say Thank You to Dacal For This Useful Post:

    Cloud2Ground (04-05-2013), Ian Nicoll (04-04-2013), King_O_Hill (04-04-2013), mrsmickey (04-21-2013), RKO1195 (04-05-2013), sigit (04-04-2013), The_Durben (04-04-2013)

  13. #688
    Quote Originally Posted by Dacal View Post
    No problem .

    I have added these options to give the choice. For me, better to get the city from the second step (what i call RSS feed).

    Just in case, for information if you don't know, there is 3 requests to have a GPS widget that working with forecast :

    First step : Get the WOEID from the coordinates. You can catch a city name here (and neighborhood, state, county,...).
    Second Step : Get the "old" locale format (TX10000, UAX54000,...) with the WOEID (only way to have, in the next step, the 4 days forecast). At this step, you can also catch a city name, sometimes different from the first one.
    Third step : Get all the weather informations from the XML url, that has a 4 days forecast. You can also catch a city name here, but i don't give this option, except if you don't use the GPS (it's often/always the same as step 1 or 2).

    In my case :

    1) Tunis (not very accurate... The large town near my location).
    2) Sukrah : Perfect ! It's where i live.
    3) Tunis.



    Just the part in red .

    BaSalt LS updated, just in case...
    This also works better for me too Dacal
    Previously had a city 2km away (also some cities not showing)
    What you did is pretty awesome. Works great

    Quote Originally Posted by Ian Nicoll View Post
    Yes M8, I edited my post as soon as I realized
    I see

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

    Cloud2Ground (04-05-2013), Dacal (04-04-2013), RKO1195 (04-05-2013)

  15. #689
    Quote Originally Posted by bfichtner View Post
    Sorry man, missed that explanation. I'll check it out.
    All I'm getting is "Loading". When I make the changes.

  16. The Following User Says Thank You to bfichtner For This Useful Post:

    Hip5 (04-04-2013)

  17. #690
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in the Philippines.
    Posts
    5,396
    Thanks
    8,453
    Thanked 21,576 Times in 4,325 Posts

    Ok, added the new lines of code and all working well.

    Thanks Dacal.

    Quote Originally Posted by bfichtner View Post
    All I'm getting is "Loading". When I make the changes.
    Double check: And remember to add the line in the Config.js file too.

    // GET OLD LOCALE FROM WOEID
    var url = "http://weather.yahooapis.com/forecastrss?w="+woeid+"&u=f";
    $.get(url, function(data) {
    title = $(data).find('title').text(); // Check if a city is found.
    if (title != "Yahoo! Weather - ErrorCity not found") {
    gps = true;
    zip = $(data).find('guid').text().split('_')[0];
    if (UseCityGPS == false) {
    if (UseNeighborhood == false) { city = $(data).find('location').attr('city'); }
    }
    //city = $(data).find('location').attr('city');
    TextColor = "TextColorGrey";
    weatherRefresherTemp(zip); // Refresh weather as specified in Config.js.
    } else {
    if ( xmldata == false ) { // Back to locale, but keep the 20s refresh for GPS localization.
    gps = false;
    TextColor = "TextColorGrey";
    validateWeatherLocation(escape(locale).replace(/^%u/g, "%"), setPostal);
    } else {
    gps = true;
    TextColor = "TextColorRed";
    weatherRefresherTemp(zip); // Keep the latest valid zip to update the weather.
    }


    NOTE: You can delete the line in red if you wish.
    Last edited by Ian Nicoll; 04-04-2013 at 07:59 PM.

    "If it's not broken, I'll fix it till it is"

  18. The Following 8 Users Say Thank You to Ian Nicoll For This Useful Post:

    Cloud2Ground (04-05-2013), Hip5 (04-04-2013), Kazuyoshi (04-05-2013), King_O_Hill (04-04-2013), mrsmickey (04-21-2013), sigit (04-04-2013), stratnik (04-04-2013), The_Durben (04-04-2013)

  19. #691
    Quote Originally Posted by bfichtner View Post
    All I'm getting is "Loading". When I make the changes.
    You miss something. Don't forget the variable in Config.js and get the "full" location.js from BaSalt. I say again, it's for very specific situation. UniAW is good like that (i want Ian to update one day , because if we need to make some changes in the future, more simple to have the same base)


    My themes : Jade HD, Silex HD, BaSalt HD,ToPaz
    All are on Cydia and/or Theme It.

  20. The Following 8 Users Say Thank You to Dacal For This Useful Post:

    Cloud2Ground (04-05-2013), Ian Nicoll (04-04-2013), King_O_Hill (04-04-2013), lostinthemes (04-05-2013), mrsmickey (04-21-2013), RKO1195 (04-05-2013), stratnik (04-04-2013), The_Durben (04-04-2013)

  21. #692
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in the Philippines.
    Posts
    5,396
    Thanks
    8,453
    Thanked 21,576 Times in 4,325 Posts

    Quote Originally Posted by Dacal View Post
    You miss something. Don't forget the variable in Config.js and get the "full" location.js from BaSalt. I say again, it's for very specific situation. UniAW is good like that (i want Ian to update one day , because if we need to make some changes in the future, more simple to have the same base)
    Dacal, I put this new lines in already M8, it this the only difference we had in the location.js file?

    Am I right we don't need the line in red (above) anymore?

    Also, I downloaded the Basalt LS yesterday from your post 1, so I should download it again now?

    Thanks M8.
    Last edited by Ian Nicoll; 04-04-2013 at 08:07 PM.

    "If it's not broken, I'll fix it till it is"

  22. The Following 6 Users Say Thank You to Ian Nicoll For This Useful Post:

    Cloud2Ground (04-05-2013), Dacal (04-04-2013), Hip5 (04-04-2013), King_O_Hill (04-04-2013), mrsmickey (04-21-2013), stratnik (04-04-2013)

  23. #693
    Quote Originally Posted by Ian Nicoll View Post
    Dacal, I put it in already M8.

    Am I right we don't need the line in red (above) anymore?

    Also, I downloaded the Basalt LS yesterday from your post 1, so I should download it again now?

    Thanks M8.
    Yes for both . The line in red is useless, the cityGPS option is made for that, and i have updated the BaSalt LS 10 minutes ago.

    For all, to resume :

    Step 1)

    if UseNeighborhood is true : you catch the neighborhood (or state, if neighborhood is empty) and store it as the city.
    if false, you catch the city name from the GPS.

    Step 2)

    If UseCityGPS is true, no change from step 1. You keep the information above (from step 1, so the neighborhood/state or the city from the localization request).
    If UseCityGPS is false and, but neighboohood is true, you keep the neighborhood/state from step 1.
    If UseCityGPS is false and use neighborhood is false, you catch the city from the second request.

    Clear ? I hope... For me, no, but because it's late. Tilme to go to bed...
    Last edited by Dacal; 04-04-2013 at 08:26 PM.


    My themes : Jade HD, Silex HD, BaSalt HD,ToPaz
    All are on Cydia and/or Theme It.

  24. The Following 10 Users Say Thank You to Dacal For This Useful Post:

    chevymusclecar (04-04-2013), Cloud2Ground (04-05-2013), Hip5 (04-04-2013), Ian Nicoll (04-04-2013), King_O_Hill (04-04-2013), lostinthemes (04-05-2013), mrsmickey (04-21-2013), sigit (04-04-2013), stratnik (04-04-2013), The_Durben (04-04-2013)

  25. #694
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in the Philippines.
    Posts
    5,396
    Thanks
    8,453
    Thanked 21,576 Times in 4,325 Posts

    Quote Originally Posted by Dacal View Post
    Yes for both . The line in red is useless, the cityGPS option is made for that, and i have updated the BaSalt LS 10 minutes ago.
    Ok M8, thanks, going to download again now, (think I have about 10 versions already)

    "If it's not broken, I'll fix it till it is"

  26. The Following 5 Users Say Thank You to Ian Nicoll For This Useful Post:

    Cloud2Ground (04-05-2013), Dacal (04-04-2013), Hip5 (04-04-2013), King_O_Hill (04-04-2013), mrsmickey (04-21-2013)

  27. #695
    Quote Originally Posted by Dacal View Post
    You miss something. Don't forget the variable in Config.js and get the "full" location.js from BaSalt. I say again, it's for very specific situation. UniAW is good like that (i want Ian to update one day , because if we need to make some changes in the future, more simple to have the same base)
    That's what it was. Just updated the location file in UniAW. Checking it now.

  28. #696
    I updated the LS for Basalt and I'm getting only loading.

  29. #697
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in the Philippines.
    Posts
    5,396
    Thanks
    8,453
    Thanked 21,576 Times in 4,325 Posts

    FOR UNIAW6.

    Just to make it easier for you all, use the two files attached here as complete replacements.
    Location.js and Config.js.
    Attached Files Attached Files
    Last edited by Ian Nicoll; 04-04-2013 at 09:04 PM.

    "If it's not broken, I'll fix it till it is"

  30. The Following 17 Users Say Thank You to Ian Nicoll For This Useful Post:

    Alexweli69 (04-04-2013), Cloud2Ground (04-05-2013), Dacal (04-04-2013), Hip5 (04-04-2013), It's Mi (04-18-2013), Kazuyoshi (04-05-2013), King_O_Hill (04-04-2013), kristatos (04-04-2013), lexus934 (04-05-2013), lostinthemes (04-05-2013), mrsmickey (04-21-2013), RKO1195 (04-05-2013), sigit (04-04-2013), simer_cool (04-05-2013), Simon (04-04-2013), stratnik (04-04-2013), The_Durben (04-04-2013)

  31. #698
    Quote Originally Posted by Fattone66 View Post
    I updated the LS for Basalt and I'm getting only loading.
    Sure Tone ? I check that.

    Good for me ?
    Last edited by Dacal; 04-04-2013 at 08:44 PM.


    My themes : Jade HD, Silex HD, BaSalt HD,ToPaz
    All are on Cydia and/or Theme It.

  32. The Following 4 Users Say Thank You to Dacal For This Useful Post:

    Cloud2Ground (04-05-2013), Hip5 (04-04-2013), King_O_Hill (04-04-2013), Simon (04-04-2013)

  33. #699
    Quote Originally Posted by Carvensno View Post
    Ok question? Im running Chevy's ultimate LS v3 for iPhone5. i loaded in the location file as per 1st post of this thread, and was just reading and D/L'ed the backboard to backup my settings and did the reset setting did a reboot and loaded my setting back up again, and the LS say loading data and that's it? did i miss something? or didn't understand something right?
    Try the location.js file from Drifter in this post: UniAW6.0 for iph4 & iph5

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

    chevymusclecar (04-04-2013)

  35. #700
    Quote Originally Posted by Ian Nicoll View Post
    If you blow on the screen very very hard, the clock will move, just be careful not to blow it completely off the screen! (I've had lots of complaints about this)
    It takes a lot of practice so just keep trying.
    -32433370_176x208_splash.gifName:  bth_ROFLMAO-1.gif
Views: 362
Size:  58.3 KB

  36. The Following 6 Users Say Thank You to stratnik For This Useful Post:

    Hip5 (04-04-2013), Ian Nicoll (04-04-2013), King_O_Hill (04-04-2013), lostinthemes (04-05-2013), RKO1195 (04-05-2013), The_Durben (04-04-2013)

Page 35 of 875 FirstFirst ... 253334353637 45 85 135 535 ... 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
  •