+ Reply
Page 80 of 136 FirstFirst ... 30 707879808182 90 130 ... LastLast
Results 1,581 to 1,600 of 2706

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


Thread: GPS Based HTML Lockscreen Weather Theme

is a discussion within the

iPhone 4|4S New Skins / Themes Launches

forums, a part of the

New Skins / Themes Launches

section;
Originally Posted by rasputin007 UPDATE Due to 2 factors coming up again and again I have changed the GPS web server packages. Firstly they include lighttpd and PHP as dependencies,
...
  1. #1581
    The BatGirl MamaJaay's Avatar
    Join Date
    Mar 2012
    Location
    @TheMamaJaay
    Posts
    5,177
    Thanks
    4,220
    Thanked 16,681 Times in 4,004 Posts

    Quote Originally Posted by rasputin007 View Post
    UPDATE
    Due to 2 factors coming up again and again I have changed the GPS web server packages.
    Firstly they include lighttpd and PHP as dependencies, so no more need to search for those in Cydia (was a problem for those that were not Developers status in Cydia).
    Secondly not everybody wants SBSettings on their iPhone (including me), so there is now a seperate GPS web server PLUS package that does not need SBSettings to toggle lighttpd on, it will auto start each time you turn on your iPhone.

    New way to install
    Add MMUS repo (apt.mmus.us) as a new source to Cydia (Hint: if the MMi repo crawler would do its job correctly, you would not need to do this as the MMUS repo had been submitted to be crawled by MMI, but it does not work!).
    For people that have SBSetting already
    Open Cydia and search for
    1.) GPS for web server from MMUS repo (apt.mmus.us), install. Will take a while as it also will install lighttpd and PHP
    2.) Lighttpd SBSetting Toggle (this gives you a turn on/off switch for lighttpd, as well as a configuration file for lighttpd, no further setup/configuration needed! Works right out of the box).
    Open SBSettings, open "Set Windows Toggles" and switch Lighttpd to ON, I have done the same for Location, but don't know if that is needed.
    When you close SBSetting it resprings, but reboot as well to make sure lighttpd is running.
    Done!
    For people that do not want SBSetting
    Open Cydia and search for
    1.) GPS for web server PLUS from MMUS repo (apt.mmus.us), install. Will take a while as it also will install lighttpd and PHP, PLUS a lighttpd configuration file and a web server start-up file.
    When finished reboot.
    Done!

    Now some reminders: You need to have Location Service enabled for Safari and you need to allow Safari to except cookies.

    Now open Safari (make sure you allow Location Service for Safari!) on the iPhone and enter this url address "http://127.0.0.1/index.html". You get a pop-up window asking if you want to allow "http://127.0.0.1/index.html access to your location", say OK. You should now see the latitude and longitude on the screen. To be on the safe side reload that page (tap that little curly arrow at the right hand side in the address bar). You can now create a Safari bookmark to that page on your home screen for easier GPS updates.
    Now you should have a myLocation.txt file with those coordinates in /var/mobile/Documents.
    Select your GPS based lockscreen/widget, respring and enjoy.
    Wow
    Rasputin you are a coding genius. Thanks so much for this.

  2. The Following 3 Users Say Thank You to MamaJaay For This Useful Post:

    hemptation (05-31-2012), James77614 (08-19-2012), KraXik (06-01-2012)

  3. #1582
    King Kong ain't got nothing on me! King_O_Hill's Avatar
    Join Date
    Apr 2011
    Location
    USA
    Posts
    9,147
    Thanks
    40,426
    Thanked 17,066 Times in 6,236 Posts

    Quote Originally Posted by gadezu View Post
    I have a simple solution... Just use the Google Latitude JSON feed to update your widget location and Ladidude or Google Latitude app to update your Google Latitude account!
    Can you post the code here for us to try?
    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!

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

    betonblack (09-05-2012), KraXik (06-01-2012), pnunez1310 (06-01-2012)

  5. #1583
    Theme Creator gadezu's Avatar
    Join Date
    Dec 2008
    Location
    Japan
    Posts
    455
    Thanks
    374
    Thanked 421 Times in 219 Posts

    Quote Originally Posted by King_O_Hill View Post
    Can you post the code here for us to try?
    Sure! You will need a Google Latitude account for this!

    Login into your Google Latitude account.
    Enable Location History in History Settings.

    Get your LatitudeID in Application Settings.

    var LatitudeID = your Google Latitude ID

    function getLocation(){

    var JSONfeed = "http://www.google.com/latitude/apps/badge/api?user=" + LatitudeID + "&type=json"
    $.getJSON(JSONfeed, function(data){
    latitude = data.features[0].geometry.coordinates[0];
    longitude = data.features[0].geometry.coordinates[1];
    retrieveLocation();
    });
    }

    function retrieveLocation(){

    if (prevlatitude != latitude || prevlongitude != longitude){
    var url = "http://where.yahooapis.com/geocode?location=" + latitude + "+" + longitude + "&gflags=R&flags=J"
    $.getJSON(url, function(data){
    woeid = data.ResultSet.Results[0].woeid;
    city = data.ResultSet.Results[0].city;
    prevlatitude = latitude;
    prevlongitude = longitude;
    });
    }
    }
    Last edited by gadezu; 05-31-2012 at 09:54 PM.
    READ THIS BEFORE YOU ASK. THANK YOU!

  6. The Following 8 Users Say Thank You to gadezu For This Useful Post:

    chevymusclecar (06-02-2012), cuzin (06-01-2012), jjk454ss (06-01-2012), King_O_Hill (06-01-2012), KraXik (06-01-2012), metaserph (06-01-2012), rasputin007 (06-01-2012), The_Durben (06-01-2012)

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

    Quote Originally Posted by gadezu View Post
    Sure! You will need a Google Latitude account for this!

    Login into your Google Latitude account.
    Enable Location History in History Settings.

    Get your LatitudeID in Application Settings.

    var LatitudeID = your Google Latitude ID

    function getLocation(){

    var JSONfeed = "http://www.google.com/latitude/apps/badge/api?user=" + LatitudeID + "&type=json"
    $.getJSON(JSONfeed, function(data){
    latitude = data.features[0].geometry.coordinates[0];
    longitude = data.features[0].geometry.coordinates[1];
    retrieveLocation();
    });
    }

    function retrieveLocation(){

    if (prevlatitude != latitude || prevlongitude != longitude){
    var url = "http://where.yahooapis.com/geocode?location=" + latitude + "+" + longitude + "&gflags=R&flags=J"
    $.getJSON(url, function(data){
    woeid = data.ResultSet.Results[0].woeid;
    city = data.ResultSet.Results[0].city;
    prevlatitude = latitude;
    prevlongitude = longitude;
    });
    }
    }
    That sounds very interesting!

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

    chevymusclecar (06-02-2012), King_O_Hill (06-01-2012), KraXik (06-01-2012), The_Durben (06-01-2012)

  9. #1585
    Addicted to Code Dacal's Avatar
    Join Date
    Nov 2010
    Posts
    1,891
    Thanks
    2,898
    Thanked 8,485 Times in 1,500 Posts

    Quote Originally Posted by rasputin007 View Post
    That sounds very interesting!
    +1 !!! I will try.

    Found a location.plist file in Latitude app... Must look if we can open this file easily (i checked : not crypted).

    Must work with a symlink in Documents folder... Unfortunatly, need to create it manually. But after that, i think we can use the old way with some minor adjustments.

    Crazy, are you planned to update your tweak soon ?
    Last edited by Dacal; 06-01-2012 at 04:45 AM.


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

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

    chevymusclecar (06-02-2012), cuzin (06-01-2012), King_O_Hill (06-01-2012), KraXik (06-01-2012), The_Durben (06-01-2012)

  11. #1586
    Theme Creator gadezu's Avatar
    Join Date
    Dec 2008
    Location
    Japan
    Posts
    455
    Thanks
    374
    Thanked 421 Times in 219 Posts

    Quote Originally Posted by Dacal View Post
    +1 !!! I will try.

    Found a location.plist file in Latitude app... Must look if we can open this file easily (i checked : not crypted).

    Must work with a symlink in Documents folder... Unfortunatly, need to create it manually. But after that, i think we can use the old way with some minor adjustments.

    Crazy, are you planned to update your tweak soon ?
    I already did that! But Google Latitude app killed my battery!

    I'm using Ladidude to update my location, and it doesn't have a plist to retrieve location!
    READ THIS BEFORE YOU ASK. THANK YOU!

  12. The Following 3 Users Say Thank You to gadezu For This Useful Post:

    King_O_Hill (06-01-2012), KraXik (06-01-2012), The_Durben (06-01-2012)

  13. #1587
    Addicted to Code Dacal's Avatar
    Join Date
    Nov 2010
    Posts
    1,891
    Thanks
    2,898
    Thanked 8,485 Times in 1,500 Posts

    Quote Originally Posted by gadezu View Post
    I already did that! But Google Latitude app killed my battery!

    I'm using Ladidude to update my location, and it doesn't have a plist to retrieve location!
    Yes, there is a plist file, in the application/Document folder. But if Google Latitude kill your battery, it's not a good news.


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

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

    cuzin (06-01-2012), King_O_Hill (06-01-2012), KraXik (06-01-2012), The_Durben (06-01-2012)

  15. #1588
    Theme Creator gadezu's Avatar
    Join Date
    Dec 2008
    Location
    Japan
    Posts
    455
    Thanks
    374
    Thanked 421 Times in 219 Posts

    Quote Originally Posted by Dacal View Post
    Yes, there is a plist file, in the application/Document folder. But if Google Latitude kill your battery, it's not a good news.
    I'm not using Google Latitude app anymore! I'm using Ladidude app to update my location! I'm waiting for Google Latitude to update and fix battery issues! I tried a lot of apps but only two of them have latitude and longitude updated in plist!
    READ THIS BEFORE YOU ASK. THANK YOU!

  16. The Following 3 Users Say Thank You to gadezu For This Useful Post:

    King_O_Hill (06-01-2012), KraXik (06-01-2012), The_Durben (06-01-2012)

  17. #1589
    Addicted to Code Dacal's Avatar
    Join Date
    Nov 2010
    Posts
    1,891
    Thanks
    2,898
    Thanked 8,485 Times in 1,500 Posts

    OK, i understand. I will test...

    I just updated the code of my last LS widget to get the coordinates from a symlink of the location.plist of Google Latitude... Seems to working fine...


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

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

    King_O_Hill (06-01-2012), KraXik (06-01-2012), lostinthemes (06-04-2012), The_Durben (06-01-2012)

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

    Quote Originally Posted by Dacal View Post
    OK, i understand. I will test...

    I just updated the code of my last LS widget to get the coordinates from a symlink of the location.plist of Google Latitude... Seems to working fine...
    You're awesome Dacal
    I found that last night after the post with the script.
    I was going to message you today that there was a location.plist with the lat/long in it

    Google Latitude does use the location service when left on but you can choose to get your location and leave off after. Not sure how much it will affect battery being left on. Have to check it out further.

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

    cuzin (06-01-2012), Dacal (06-01-2012), King_O_Hill (06-01-2012), KraXik (06-01-2012)

  21. #1591
    Addicted to Code Dacal's Avatar
    Join Date
    Nov 2010
    Posts
    1,891
    Thanks
    2,898
    Thanked 8,485 Times in 1,500 Posts

    Quote Originally Posted by The_Durben View Post
    You're awesome Dacal
    I found that last night after the post with the script.
    I was going to message you today that there was a location.plist with the lat/long in it

    Google Latitude does use the location service when left on but you can choose to get your location and leave off after. Not sure how much it will affect battery being left on. Have to check it out further.
    Hi bro ! I confirm, it works ! But need to create a symlink manually with iFile.

    Here the location.js i use.


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

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

    cuzin (06-01-2012), King_O_Hill (06-01-2012), KraXik (06-01-2012), lostinthemes (06-04-2012), stratnik (06-01-2012), The_Durben (06-01-2012)

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

    Quote Originally Posted by Dacal View Post
    Hi bro ! I confirm, it works ! But need to create a symlink manually with iFile.

    Here the location.js i use.
    Thanks my man! I'll throw this on a widget and run it today with latitude location turned on and see the performance.
    Any way to have it be able to not set a symlink manually?

    Only asking because a lot of users would not be able to do this easily.
    I can see the PMs now.....lol

    Regardless it works no problem.



    Leaving location on I'll see what this does to the battery.
    Last edited by The_Durben; 06-01-2012 at 10:08 AM.

  24. The Following 5 Users Say Thank You to The_Durben For This Useful Post:

    cuzin (06-01-2012), King_O_Hill (06-01-2012), KraXik (06-01-2012), rumcajs (06-01-2012), stratnik (06-01-2012)

  25. #1593
    Addicted to Code Dacal's Avatar
    Join Date
    Nov 2010
    Posts
    1,891
    Thanks
    2,898
    Thanked 8,485 Times in 1,500 Posts

    Quote Originally Posted by The_Durben View Post
    Thanks my man! I'll throw this on a widget and run it today with latitude location turned on and see the performance.
    Any way to have it be able to not set a symlink manually?
    No way i think... The location.plist is in the application directory (ex : 1223213-ZEZE2334.... id).


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

  26. The Following 6 Users Say Thank You to Dacal For This Useful Post:

    cuzin (06-01-2012), King_O_Hill (06-01-2012), KraXik (06-01-2012), metaserph (06-01-2012), stratnik (06-01-2012), The_Durben (06-01-2012)

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

    Quote Originally Posted by Dacal View Post
    No way i think... The location.plist is in the application directory (ex : 1223213-ZEZE2334.... id).
    Yeah that's going to be different I think for all people who install it.

    But it works

    Great job Dacal and very nice find/work gadezu!

    Amazing thing this tweak by crazy has created.
    Between the MyLocation app, rasputins work around, using Google apps we now have multiple ways to grab our weather location easily.

    My personal thanks to all who have been involved here from the beginning.
    Great work done in this thread
    Last edited by The_Durben; 06-01-2012 at 11:09 AM.

  28. The Following 8 Users Say Thank You to The_Durben For This Useful Post:

    cuzin (06-01-2012), Dacal (06-01-2012), King_O_Hill (06-01-2012), KraXik (06-01-2012), lostinthemes (06-04-2012), metaserph (06-01-2012), rasputin007 (06-01-2012), stratnik (06-01-2012)

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

    Quote Originally Posted by The_Durben View Post
    Amazing thing this tweak by crazy has created.
    Between the MyLocation app, rasputins work around, using Google apps we now have multiple ways to grab our weather location easily.
    As the saying goes: "There is more then one way to skin a cat!"

    Symlinks ....hmmmm!
    Usually those app folder all have a UUID, but iFile has the option to display the App name instead of the UUID. Would be nice if that would work for a symlink as well.
    Anyway it is not too hard to create symlinks with iFile, even for novices, it is the same procedure as copying a file, only last step is "create link" instead of "paste".
    Last edited by rasputin007; 06-01-2012 at 12:58 PM.

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

    Dacal (06-01-2012), King_O_Hill (06-01-2012), KraXik (06-01-2012), metaserph (06-01-2012), stratnik (06-01-2012)

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

    Quote Originally Posted by rasputin007 View Post
    As the saying goes: "There is more then one way to skin a cat!"

    Symlinks ....hmmmm!
    Usually those app folder all have a UUID, but iFile has the option to display the App name instead of the UUID. Would be nice if that would work for a symlink as well.
    Anyway it is not too hard to create symlinks with iFile, even for novices, it is the same procedure as copying a file, only last step is "create link" instead of "paste".
    That's the truth

    Symlinks are easy. At least for people who read. App info would also help them out
    But as we see, people still ask if the MyLocation is working lol.

    By the way I tested with direct link to the plist in the app using the app name as I have AppInfo and I'd does not work. Needs to be the app uuid

    ** Just to note, leaving the Google app running does impact battery

    Not really a concern for me as I used MyLocation app in the off state and updated as I moved.
    Same with using rasputins way at present as well basically.
    I'd use this but only open the app to get a new location and turn it off after.

    Still a great alternative at this point until crazy gets his app compatible.
    Last edited by The_Durben; 06-01-2012 at 01:47 PM.

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

    bombmom (06-01-2012), chevymusclecar (06-02-2012), cuzin (06-01-2012), King_O_Hill (06-01-2012), KraXik (06-01-2012), metaserph (06-01-2012), stratnik (06-01-2012)

  33. #1597
    Addicted to Code Dacal's Avatar
    Join Date
    Nov 2010
    Posts
    1,891
    Thanks
    2,898
    Thanked 8,485 Times in 1,500 Posts

    Quote Originally Posted by The_Durben View Post
    That's the truth

    Symlinks are easy. At least for people who read. App info would also help them out
    But as we see, people still ask if the MyLocation is working lol.

    By the way I tested with direct link to the plist in the app using the app name as I have AppInfo and I'd does not work. Needs to be the app uuid

    ** Just to note, leaving the Google app running does impact battery

    Not really a concern for me as I used MyLocation app in the off state and updated as I moved.
    Same with using rasputins way at present as well basically.
    I'd use this but only open the app to get a new location and turn it off after.

    Still a great alternative at this point until crazy gets his app compatible.
    Agree. Craaaaaaaaaaaazyyyyyyyy ! We all need you


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

  34. The Following 9 Users Say Thank You to Dacal For This Useful Post:

    bombmom (06-01-2012), chevymusclecar (06-02-2012), cuzin (06-01-2012), King_O_Hill (06-01-2012), KraXik (06-01-2012), lostinthemes (06-04-2012), metaserph (06-01-2012), stratnik (06-01-2012), The_Durben (06-01-2012)

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

    Quote Originally Posted by Dacal View Post
    Agree. Craaaaaaaaaaaazyyyyyyyy ! We all need you
    Definitely need an update from him

    But wow, huge difference in the battery with this compared to MyLocation app
    Google obviously doesn't use the Significant Change option.... 5 hours running with nominal use of other apps on the phone and down 70% approximately. Keep in mind this is on a 4S which isn't the greatest on battery in the first place
    Bad Google!
    Last edited by The_Durben; 06-01-2012 at 02:16 PM.

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

    chevymusclecar (06-02-2012), cuzin (06-01-2012), King_O_Hill (06-01-2012), KraXik (06-01-2012), metaserph (06-01-2012), stratnik (06-01-2012)

  37. #1599
    Green Apple
    Join Date
    Mar 2012
    Posts
    30
    Thanks
    25
    Thanked 7 Times in 6 Posts

    Off topic alittle...I'm no coder but with all the great people here have gotten my ipod touch 2g ios 4.2.1 to do pretty much everything used in this thread..for me the lighttpd setup works the best..now for my question...is there a simple code that can be written and then just added to any existing lockscreen (using zipcode) to make the lockscreen use gps instead of the zipcode without a lot of hassle? Just wondering. Thanks...

  38. #1600
    iPhoneaholic
    Join Date
    Jan 2010
    Posts
    373
    Thanks
    386
    Thanked 43 Times in 33 Posts

    I made the myLocation.txt file like Durban said but still not working?GPS Based HTML Lockscreen Weather Theme-imageuploadedbymodmyi1338585820.326933.jpg

LinkBacks (?)

  1. 04-12-2013, 02:27 PM
  2. 03-15-2013, 10:09 AM
  3. 08-11-2012, 12:06 AM
  4. 03-03-2012, 12:38 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