+ Reply
Page 70 of 136 FirstFirst ... 20 606869707172 80 120 ... LastLast
Results 1,381 to 1,400 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 I do the same as I do not need constant gps update. A "gps-update on demand" is enough for me. I have rewritten the web server
...
  1. #1381
    Green Apple
    Join Date
    Mar 2012
    Posts
    30
    Thanks
    25
    Thanked 7 Times in 6 Posts

    Quote Originally Posted by rasputin007 View Post
    I do the same as I do not need constant gps update. A "gps-update on demand" is enough for me.
    I have rewritten the web server method so that the latitude and longitude are now saved in /var/mobile/Documents/myLocation.txt in the same way the MyLocation app is doing it.
    So now I can use any previous GPS-based lockscreen/widget that used the myLocation.txt file without editing any of them, but I do not need the MyLocation app at all now, just open Safari at "http://127.0.0.1/index.html" and gps is updated.
    Attached are the new web server files, index.html and run.php.
    Sometimes it works instantly, sometimes it does take a bit of time for the update on the lockscreen (depends on signal strength and how that GPS based theme/widget is written in terms of location/weather update) and sometimes it does not work at all, which might be my fault as I have a Safari bookmark to "http://127.0.0.1/", but I also have a index.php - experimental file - which might be called instead of index.html.
    When using the http://127.0.0.1/index.html in Safari I get a gps update success rate of 70%, when I reload that page this goes to 99%.
    Not perfect, but working.

    Just a question cause i'm not sure but your new file has a run.php and the original had a go.php Do I need to use only one or do they both need to be there.

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

    The old index.html called the go.php which created the test.xml file. Delete all 3 files from /var/www!
    copy the new index.html and the run.php, that will give you the myLocation.txt file now.

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

    King_O_Hill (05-07-2012), poofster1 (05-05-2012), The_Durben (05-05-2012)

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

    This does not work at all for me using MyGPS Weather theme. It does create the myLocation.txt file but I'm guessing the MyGPS theme doesn't use it .... Will have to try it with themes...unless I'm doing something wrong..

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

    Eh ... yes, the "old" My GPS Weather theme that came with the original web server idea (the test.xml file) is still looking for for that file. The code has not change in that theme and does not take any notice of the myLocation.txt file. Dump that "My GPS Weather" theme and try any other of the GPS based lockscreen/widgets that require the MyLocation app. Those should work (maybe not perfect on 4.2.1, they do not work on 3.1.3).

  6. The Following User Says Thank You to rasputin007 For This Useful Post:

    King_O_Hill (05-07-2012)

  7. #1385
    What's Jailbreak?
    Join Date
    Nov 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    rasputin007 i have an question for you, how kan i instal (use) your server aplication

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

    Open Cydia and search for
    1.) lighttpd ( a very small, but very powerful web server that does not need much resources)
    2.) php (a very powerful addition to html)
    3.) 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).
    4.) GPS for web server from MMUS repo (apt.mmus.us) will install the index.html and run.php into the iPhone web server at /var/www.
    Install them, 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.
    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).
    Now you should have a myLocation.txt file with those coordinates in /var/mobile/Documents.
    Select your GPS based lockscreen/widget, respring and enjoy.

    Hint for MyLocation app users:
    Turn "Sig. Change" OFF, or myLocation.txt file gets overwritten by MyLocation app.
    Last edited by rasputin007; 05-24-2012 at 02:17 PM.

  9. The Following 18 Users Say Thank You to rasputin007 For This Useful Post:

    bcscustom (05-31-2012), dakkota (05-25-2012), eason318 (11-27-2012), folch28 (05-26-2012), GUNNY29 (05-25-2012), jjk454ss (05-27-2012), King_O_Hill (05-07-2012), KraXik (05-23-2012), loopweb (05-26-2012), Max_Pa1n (05-27-2012), metaserph (05-28-2012), muted_mind (05-26-2012), RKO1195 (05-10-2012), SciPunk (05-27-2012), stratnik (05-26-2012), TV-Junkie (06-08-2012), yamakasi73 (06-05-2012), ZFrost (05-27-2012)

  10. #1387
    Green Apple CrazyChester's Avatar
    Join Date
    Jul 2011
    Posts
    82
    Thanks
    367
    Thanked 43 Times in 25 Posts

    I really love the fact that my weather widgets now work with GPS because I live in small city and my zip code doesn't work. Now with GPS I've got my city weather, the only problem is:
    I use a Max_Pa1n LS that's work perfect GPS Based HTML Lockscreen Weather Theme-imageuploadedbymodmyi1336554084.865138.jpg
    And for the SB I use a Schnedi creationGPS Based HTML Lockscreen Weather Theme-imageuploadedbymodmyi1336554163.898848.jpg the fact is that city is a bigger city 20 km from here (Osimo) how is this possible?
    Can someone please help me

  11. The Following User Says Thank You to CrazyChester For This Useful Post:

    Max_Pa1n (05-26-2012)

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

    The name for the location is set by Yahoo Weather (mostly), but Yahoo is rather tight with distinction in location names.
    I live in a small village and I always get the name of the next village as this is the biggest settlement around.
    I have started to use Google maps for the location name which is much more spot on and I now got my village name on the display.
    It all comes down to the fact that Yahoo is simply too sloppy with names, certainly when it comes to settlements below a certain size, they get ignored and the next biggest settlement name is displayed

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

    CrazyChester (05-09-2012), It's Mi (05-25-2012), King_O_Hill (05-09-2012), RKO1195 (05-10-2012)

  14. #1389
    Green Apple CrazyChester's Avatar
    Join Date
    Jul 2011
    Posts
    82
    Thanks
    367
    Thanked 43 Times in 25 Posts

    Thanks man! I was thinking about that but I don't know how to change it. Is there a way to change it or it's better if I change widget?

  15. #1390
    Power User chevymusclecar's Avatar
    Join Date
    Aug 2010
    Location
    Seattle, WA
    Posts
    5,925
    Thanks
    18,265
    Thanked 19,343 Times in 4,251 Posts

    What up peeps!!*

    It's your cyberworld homie chevymusclecar!!

    Finally at a point of release for this bad boy!!

    Credits and Thanks to*Dacal, Ian Nicoll, crazyvivek, Subywrex, Schnedi, my homies Durben, Pinoy and barsoverbeats. Thank them all they are good peeps with great talent!

    *Hope you all enjoy this as much as I do...I present to you...

    CMC_GPS_LS_ULTIMATE

    "it's all in the config.js"









    chevymusclecarTV2012!!!

    CMC_GPS_LS_ ULTIMATE - YouTube

    Required: GPS Weather Lockscreen *by crazyvivek, Available in cydia.

    Conflict: Lockinfo; disables touch forecast

    Download*

    --->*http://bit.ly/LS_ULTIMATE

    Please hit thanks it took me a while to get this all sorted for this community!

  16. The Following 33 Users Say Thank You to chevymusclecar For This Useful Post:

    ag92 (06-03-2012), Beastlee (05-14-2012), Belgmeister (05-11-2012), BOGMAT (05-20-2012), boywonder34 (05-24-2013), cassio299 (05-27-2012), cdrwinston (05-10-2012), Chuck1969 (05-13-2012), D1LL1NG3R (05-13-2012), Darrenrooster (05-10-2012), eskco (08-31-2012), GUNNY29 (05-27-2012), Hosko817 (05-29-2012), It's Mi (05-11-2012), King_O_Hill (05-10-2012), kruzzit (05-13-2012), latpeuw (05-11-2012), lostinthemes (05-10-2012), marco29 (08-31-2012), metaserph (05-28-2012), mikelikesanime (05-25-2012), Mokabaer (05-13-2012), nik1975 (05-11-2012), poofster1 (05-12-2012), Ramses2 (05-10-2012), rasputin007 (05-10-2012), RippedThemer (05-10-2012), RKO1195 (05-10-2012), Shad0wM0nk3y (05-26-2012), SHARON1O (12-16-2012), sickchris714 (05-10-2012), The_Durben (05-11-2012), _CAZZ_ (05-13-2012)

  17. #1391
    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 CrazyChester View Post
    Thanks man! I was thinking about that but I don't know how to change it. Is there a way to change it or it's better if I change widget?
    As far as I know there is not one widget/lockscreen that uses Google maps for the location name. They all use Yahoo info.
    So you have to edit code.
    I would love to give you the code, but I have a huge problem with a simpler version. I can not get any response data, either xml or JSON. I tried with javascript and php ..... nothing.
    However if you enter the url in the browser you get the xml or json response file.
    http://maps.googleapis.com/maps/api/...e/json?latlng=YourLongitude,YourLatitude&sensor=false
    http://maps.googleapis.com/maps/api/geocode/xml?latlng=YourLongitude,YourLatitude&sensor=false
    Try them, add your latitude and longitude and see if the response file has the right name for your location. You find them in first results in JSON, second results in xml->second address_components->second long_names
    I am currently still using a Google Map with a size of 0px x 0px, as that is so far the only way I can get the correct location name.
    As I often work in lots of little villages I tried it and it has been spot on each time, whereas Yahoo gave wrong location name (next biggest settlement nearby instead) in almost all cases.

    Quote Originally Posted by chevymusclecar View Post
    Required: GPS Weather Lockscreen *by crazyvivek, Available in cydia or iPhone web server with index.html and run.php
    Little info update.
    Last edited by rasputin007; 05-10-2012 at 02:56 PM.

  18. The Following 2 Users Say Thank You to rasputin007 For This Useful Post:

    chevymusclecar (05-10-2012), It's Mi (05-11-2012)

  19. #1392
    widget modder RKO1195's Avatar
    Join Date
    Aug 2010
    Location
    Alabama
    Posts
    2,331
    Thanks
    10,727
    Thanked 5,393 Times in 1,814 Posts

    You the man Chevy! Great job bud witch you always amaze me with your talent!!

  20. The Following User Says Thank You to RKO1195 For This Useful Post:

    chevymusclecar (05-10-2012)

  21. #1393
    "The Original Modsta" _Vansmak_'s Avatar
    Join Date
    Jul 2011
    Posts
    1,652
    Thanks
    295
    Thanked 5,868 Times in 1,227 Posts

    So I have an idea. Maybe its not feasible on the website end of the idea, but here goes.

    So many weather widgets; native, gps etc. but what makes the widget work is the weather images. So many great images, but in the end it's still just seeing the same image most of the time. Then you see another widget with really sweet images and so on and so on.

    Also the images takes up precious capacity.
    So, why not have the images pulled from a website? I know gunny has a site of weather images. They can be sorted by conditions and maybe randomized.

    Then widgets can all be a uniform naming structure, partly_cloudy etc etc. then when partly_cloudy happens, the image location is on the website and will show whatever is the current one for that condition.

    You never know what you'll get.
    Variety, fresh and saving space on your device. Not to mention the time saved in creating weather widgets.

    Pipe dream?

  22. The Following 4 Users Say Thank You to _Vansmak_ For This Useful Post:

    chevymusclecar (05-11-2012), GUNNY29 (05-27-2012), hemptation (05-10-2012), It's Mi (05-11-2012)

  23. #1394
    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 _Vansmak_ View Post
    So I have an idea. Maybe its not feasible on the website end of the idea, but here goes.

    So many weather widgets; native, gps etc. but what makes the widget work is the weather images. So many great images, but in the end it's still just seeing the same image most of the time. Then you see another widget with really sweet images and so on and so on.

    Also the images takes up precious capacity.
    So, why not have the images pulled from a website? I know gunny has a site of weather images. They can be sorted by conditions and maybe randomized.

    Then widgets can all be a uniform naming structure, partly_cloudy etc etc. then when partly_cloudy happens, the image location is on the website and will show whatever is the current one for that condition.

    You never know what you'll get.
    Variety, fresh and saving space on your device. Not to mention the time saved in creating weather widgets.

    Pipe dream?
    The idea is great, but I would not use any of those widgets/lockscreens, simply because I have a really crap signal (no 3G, no EDGE, only GPRS) and loading a website can take minutes or not at all. Even updating the weather info can leave the lockscreen black for quite some time.
    So anything that can reduce downloading something is a big help for me, that's why I always will have the images on the iPhone.

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

    nateD (05-31-2012), _Vansmak_ (05-11-2012)

  25. #1395
    King Kong ain't got nothing on me! King_O_Hill's Avatar
    Join Date
    Apr 2011
    Location
    USA
    Posts
    9,483
    Thanks
    41,974
    Thanked 17,875 Times in 6,509 Posts

    Quote Originally Posted by rasputin007 View Post
    The idea is great, but I would not use any of those widgets/lockscreens, simply because I have a really crap signal (no 3G, no EDGE, only GPRS) and loading a website can take minutes or not at all. Even updating the weather info can leave the lockscreen black for quite some time.
    So anything that can reduce downloading something is a big help for me, that's why I always will have the images on the iPhone.
    I agree with Ras, too much time and unnecessary data usage.

    Actually the image names are uniform coming out of Yahoo, 1-47 & 3200. These are typically used for icon images. If you use them for screen images also, then they are usually converted to about a dozen named images that typically everyone uses with the UniAW naming convention, rain, sleet, thunderstorm etc.

    Still not a bad idea, just not real practical atm

  26. The Following User Says Thank You to King_O_Hill For This Useful Post:

    _Vansmak_ (05-11-2012)

  27. #1396
    iPhoneaholic dReAdLoKdEmOn's Avatar
    Join Date
    Aug 2010
    Location
    Arlington, Texas
    Posts
    329
    Thanks
    186
    Thanked 129 Times in 102 Posts

    Hey guys, i had this a month ago then I had to restore my phone, went into Cydia and dl'd it, but this time, I get no MyLocation app after the download. Does anyone know what I can do to fix this?

  28. #1397
    King Kong ain't got nothing on me! King_O_Hill's Avatar
    Join Date
    Apr 2011
    Location
    USA
    Posts
    9,483
    Thanks
    41,974
    Thanked 17,875 Times in 6,509 Posts

    Quote Originally Posted by dReAdLoKdEmOn View Post
    Hey guys, i had this a month ago then I had to restore my phone, went into Cydia and dl'd it, but this time, I get no MyLocation app after the download. Does anyone know what I can do to fix this?
    try and download again.

  29. #1398
    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 dReAdLoKdEmOn View Post
    Hey guys, i had this a month ago then I had to restore my phone, went into Cydia and dl'd it, but this time, I get no MyLocation app after the download. Does anyone know what I can do to fix this?
    Did you reboot after downloading through Cydia?
    You need a reboot to see the MyLocation App icon, for anything else read my post #1379 on page 69!

    Alternative read my post #1386 this page, same thing without MyLocation app, in case you are absolute unable to run MyLocation app.
    Last edited by rasputin007; 05-12-2012 at 04:37 AM.

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

    Originally Posted by rasputin007

    This is not exactly GPS based weather widget, but because it is based on crazy's tweak, I thought I post it here.
    It is a PerPage+ widget for all those that always get lost. It still needs some fine tuning, but here is a preview



    Based on your GPS location (crazy's tweak), you can find yourself quite literally "on the map" with the current address on the top.

    Tidied up the code a bit more and arranged everything a little bit neater (kind off )

    deb file download
    unrar, copy deb file onto iPhone and install with iFile, nothing else.
    Now select widget in PerPage+ and respring (happens automatically) and enjoy.

    Some remarks:
    The map is not touch sensitive, so switching from Satellite view to Roadmap view is not possible via touch (through code very easy!).
    GPS accuracy is not brilliant yet, maybe when the next generation of GPS satellites are out in a few years time.
    Refresh time is set to 5 minutes.
    The address is from a google map response file, so no influence about content. I tried it with house number, street name, city, region and country, which worked, but took too much space.
    So, what is left of the GPS based weather code, well, almost nothing, apart from the latitude and longitude extraction from the myLocation.txt and the display. Of course you still need crazy's MyLocation app for it to work as it relies on the myLocation.txt file.
    Otherwise it is really small, 3 jquery js files, one Widget.html file and one background png file, that's all! Against all my usual way of work the code is quite simple and easy to read/understand.
    Enjoy and have fun playing around with it.
    Quote Originally Posted by Waverley73 View Post
    EDIT - found it. This is brilliant! Works as a lockscreen as well. \m/
    From page 48 in this thread. Sorry using iPod 2g to send this

    Two questions for you very smart people here, is there anyway to add a weather widget to this? I'm using it as a lockscreen and would like a small weather widget with it somewhere. And second I have a lockscreen that shows my " neighborhood" but it's off. Can I change it to my city instead? I think i've read that somewhere but not sure. Thanks in advance
    Last edited by poofster1; 05-12-2012 at 09:45 PM.

  31. #1400
    Green Apple dakota43's Avatar
    Join Date
    Sep 2009
    Location
    france
    Posts
    37
    Thanks
    13
    Thanked 67 Times in 17 Posts

    hello
    MyLocation the tweak does not work on IOS 5.1 please help me

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