Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: GPS Based HTML Lockscreen Weather Theme
is a discussion within theiPhone 4|4S New Skins / Themes Launches
forums, a part of theNew Skins / Themes Launches
section;Originally Posted by rasputin007 I could offer an alternative: Add the MMUS repo "apt.mmus.us" in Cydia then select the "MyLocation app & GPS Theme". It is the MyLocation app as
...-
03-16-2012, 08:46 PM #861".plist master"
- Join Date
- Mar 2011
- Location
- Pittsburgh
- Posts
- 2,059
- Thanks
- 638
- Thanked 2,624 Times in 1,027 Posts
I had serious issues as well. The fix for me was. Uninstalling all previous versions thru cydia/Ifile. Then rebooting my phone. Then downloading the GPS lockscreen in cydia by crazy. Then a reboot before even trying to open it. Then another respring for good measure. Then open it.
I couldn't get it to work no matter what until that
-
The Following User Says Thank You to Them3this For This Useful Post:
stratnik (03-17-2012)
-
03-17-2012, 12:56 AM #862My iPhone is a Part of Me
- Join Date
- Mar 2011
- Location
- Melbourne, Australia
- Posts
- 649
- Thanks
- 1,452
- Thanked 1,612 Times in 397 Posts
Loving this LS, credit to everyone ur hard work is appreciated...
-
The Following User Says Thank You to biers For This Useful Post:
elilab (03-17-2012)
-
03-17-2012, 03:25 AM #863
Hi I have a very noob question to ask as I said before I have been following this thread and was reading and trying to learn how to incorporate the gps into existing mods but as there were a few people with different ways of doing it I kinda got lost. Is it an easy task to undertake, If so would someone mind giving me instructions on how to do it please if you have the time willing to donate if that is what's needed thank you for your time
-
03-17-2012, 03:33 AM #864Theme Creator
- Join Date
- Nov 2010
- Location
- Tunis, Tunisie
- Posts
- 1,512
- Thanks
- 1,953
- Thanked 5,579 Times in 1,129 Posts
-
The Following 3 Users Say Thank You to Dacal For This Useful Post:
GUNNY29 (03-17-2012), Ian Nicoll (03-17-2012), The_Durben (03-17-2012)
-
03-17-2012, 03:49 AM #865
Ok thank you this the base weather widget i use
weather widget.zip
-
03-17-2012, 05:32 AM #866Theme Creator
- Join Date
- Nov 2010
- Location
- Tunis, Tunisie
- Posts
- 1,512
- Thanks
- 1,953
- Thanked 5,579 Times in 1,129 Posts
OK. Let's go (link of the modified theme : weather widget.theme.zip
Quick tutorial :
1) First, you must add in your theme the GPS script. If you use mine, it's GetLocation_Weather.js (post above). Put the file in root folder. Then, you must load this javascript. Add this line in red at the beginning of the Wallpaper HTML (in head section) :
Unfortunatly, the script can't work like that with your theme, cause there are small differences in the data recovery. So need to adjust a little. Edit "GetLocation_Weather.js" and add the line below (in red), at the beginning :<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<script type="text/javascript" charset="utf-8" src="GetLocation_Weather.js"></script>
For consitency with your theme, you can add the real feel temp at the end :var prevlatitude = "";
var prevlongitude = "";
var textLat;
var textLong;
var refreshWeatherTimer;
var refrechLocationTimer;
var get_location = false;
var tempUnit = "f";
var updateWeatherEvery = 15*60*1000; // Update weather every 15 minutes
2) Next, if you want to do correctly the thingsfunction xml_GPS_loaded (event, request, callback) {
if (request.responseXML)
{
var obj = {error:false, errorString:null};
xmldata = true;
var effectiveRoot = findChild(findChild(request.responseXML, "rss"), "channel");
obj.city = findChild(effectiveRoot, "yweather:location").getAttribute("city");
obj.realFeel = findChild(effectiveRoot, "yweather:wind").getAttribute("chill");//Only accounts for windChill
, add a new variable in the Wallpaper.html to initiate (or not) the GPS mode. Search for the script section and add the line in red :
var gps = true;
var locale = "UKXX1186" //e.g. 'North Attleboro, Massachusetts'|'Moscow, Russia'|'Ledyard, AT'|'London, UK'
3) Then, you must find which line launch the weather update. For this theme, there is no external javascript. All is in the Wallpaper.html.
The line is in the "onLoad" function : validateWeatherLocation(escape(locale).replace(/^%u/g, "%"), setPostal)
You must change this line to :
Explaination : if gps is set to true, you call the UpdateLocation() function wich is in external GPS script. If false, work the same as before and use the locale variable.if (gps == true) { UpdateLocation(); }
else { validateWeatherLocation(escape(locale).replace(/^%u/g, "%"), setPostal); }
This is the main part. Now, there are some optional adjustments you can make... (add coordinates, etc...).
-
The Following 10 Users Say Thank You to Dacal For This Useful Post:
bod699 (03-17-2012), conflict73 (03-27-2012), elilab (03-17-2012), GUNNY29 (03-17-2012), Ian Nicoll (03-17-2012), jjk454ss (04-28-2012), RKO1195 (03-18-2012), schnedi (03-21-2012), stratnik (03-17-2012), The_Durben (03-17-2012)
-
03-17-2012, 05:52 AM #867
-
03-17-2012, 05:53 AM #868
[QUOTE=Dacal;6452480]OK. Let's go (link of the modified theme : weather widget.theme.zip
Quick tutorial :
.......................
QUOTE]
Hi,
I've been visiting this thread for a couple of weeks and am amazed at the teams collaboration.
So I registered to say thanks to Dacal and Durben, Rasputin, Ian and all that contributed...
Cheers,
-
The Following 4 Users Say Thank You to Modeep For This Useful Post:
Dacal (03-17-2012), Ian Nicoll (03-17-2012), stratnik (03-17-2012), The_Durben (03-17-2012)
-
03-17-2012, 06:01 AM #869Theme Creator
- Join Date
- Nov 2010
- Location
- Tunis, Tunisie
- Posts
- 1,512
- Thanks
- 1,953
- Thanked 5,579 Times in 1,129 Posts
-
The Following 6 Users Say Thank You to Dacal For This Useful Post:
elilab (03-17-2012), GUNNY29 (03-17-2012), Ian Nicoll (03-17-2012), RKO1195 (03-18-2012), stratnik (03-17-2012), The_Durben (03-17-2012)
-
03-17-2012, 06:05 AM #870
-
The Following 3 Users Say Thank You to GUNNY29 For This Useful Post:
Dacal (03-17-2012), Ian Nicoll (03-17-2012), The_Durben (03-17-2012)
-
03-17-2012, 06:41 AM #871The Infamous Modder
- Join Date
- Oct 2008
- Location
- From Scotland, live in Philippines, German company, work worldwide.
- Posts
- 3,830
- Thanks
- 4,954
- Thanked 11,935 Times in 2,842 Posts
-
The Following 8 Users Say Thank You to Ian Nicoll For This Useful Post:
chevymusclecar (03-17-2012), Dacal (03-17-2012), elilab (03-17-2012), GUNNY29 (03-17-2012), RKO1195 (03-18-2012), schnedi (03-17-2012), stratnik (03-17-2012), The_Durben (03-17-2012)
-
03-17-2012, 07:51 AM #872
-
The Following 2 Users Say Thank You to stratnik For This Useful Post:
Dacal (03-17-2012), Ian Nicoll (03-17-2012)
-
03-17-2012, 08:13 AM #873The Infamous Modder
- Join Date
- Oct 2008
- Location
- From Scotland, live in Philippines, German company, work worldwide.
- Posts
- 3,830
- Thanks
- 4,954
- Thanked 11,935 Times in 2,842 Posts
Might as well share this here too.
(Posted it in the UniAW thread)
Special thanks to crazy, Dacal, in-fact everybody here, great thread.
PerPage version of UniAW5.0 All_in_one GPS. (Springjumps and icons not included)
Last edited by Ian Nicoll; 03-17-2012 at 08:20 AM.

If I've helped you, please press my "Thanks" button. Thank you.

-
The Following 14 Users Say Thank You to Ian Nicoll For This Useful Post:
bombmom (03-21-2012), chevymusclecar (03-17-2012), chg128 (03-17-2012), conflict73 (03-17-2012), Dacal (03-17-2012), elilab (03-17-2012), King_O_Hill (03-18-2012), KraXik (03-17-2012), metaserph (03-17-2012), phil73 (03-17-2012), schnedi (03-17-2012), sickchris714 (03-17-2012), stratnik (03-17-2012), The_Durben (03-17-2012)
-
03-17-2012, 09:26 AM #874
Come on guys, anyone
I added the last update on the original gps widget
and got this

This gives me a night icon

Does anyone know a fix for this?
-
03-17-2012, 10:49 AM #875CHG128 和平與愛
- Join Date
- Jan 2008
- Location
- KL-UK
- Posts
- 1,872
- Thanks
- 4,324
- Thanked 4,680 Times in 1,212 Posts
-
The Following User Says Thank You to chg128 For This Useful Post:
stratnik (03-18-2012)
-
03-17-2012, 01:15 PM #876
Just a little tip for those who don't Need to use any other location services and don't like keeping sig change on.
Turn on sig change so the status bar icon shows and close the app
Set the location sb settings toggle so it shows in sb settings probably already there
And use that from anywhere on the phone to turn sig change on and off when you need to update
Would be cool to have a separate sb settings toggle but this is a workaround
-
The Following 6 Users Say Thank You to GUNNY29 For This Useful Post:
conflict73 (03-17-2012), Coop2009 (04-30-2012), Dacal (03-17-2012), GAIAStevef (03-17-2012), Ian Nicoll (03-17-2012), metaserph (03-17-2012)
-
03-17-2012, 04:36 PM #877
Thanks for the quick tutorial Dacal, I used it and successfully converted an old Legacy LS I am using from Schnedi to work with GPS.
-
The Following User Says Thank You to bod699 For This Useful Post:
Dacal (03-17-2012)
-
03-17-2012, 04:45 PM #878Master Modder
- Join Date
- Feb 2010
- Location
- Through The Never, Australia
- Posts
- 3,367
- Thanks
- 3,951
- Thanked 8,907 Times in 2,277 Posts
I definately agree with this. How you doing Ian, and gang? Durben alerted me to the fact this is much easier to install and it works perfectly. I am currently working on a SB weather widget (first one I've released in like 5 months - it's for an upcoming theme called #Faith by Cukheim) and will definately want to have a GPS version of it. What the best way to go about this? Should I contact one of you guys off-line or through this thread?
-
The Following 7 Users Say Thank You to Waverley73 For This Useful Post:
bombmom (03-21-2012), chevymusclecar (03-17-2012), elilab (03-18-2012), Ian Nicoll (03-17-2012), metaserph (03-17-2012), The_Durben (03-17-2012), zocker48 (03-22-2012)
-
03-17-2012, 05:10 PM #879Theme Creator
- Join Date
- Nov 2010
- Location
- Tunis, Tunisie
- Posts
- 1,512
- Thanks
- 1,953
- Thanked 5,579 Times in 1,129 Posts
-
The Following User Says Thank You to Dacal For This Useful Post:
Ian Nicoll (03-17-2012)
-
03-17-2012, 05:11 PM #880My iPhone is a Part of Me
- Join Date
- Aug 2009
- Location
- UK
- Posts
- 523
- Thanks
- 265
- Thanked 1,578 Times in 367 Posts
As much as I like the 5 day forecast it takes a lot of space, so either make it smaller with almost too little font or leave out some info. That I found rather annoying, so I remade the PerPage+ Widget and this is the result


Basically the forecast for the next 4 days now only need the space of one as they change every 6 seconds.
I used the cube plugin for jquery, but it does not behave as a rotating cube, it just changes the display from one day to the next.
Well, not quite what I wanted but the end result is the same, 5 day forecast using much less space.
deb file download
-
The Following 11 Users Say Thank You to rasputin007 For This Useful Post:
chg128 (03-18-2012), elilab (03-18-2012), Ian Nicoll (03-17-2012), King_O_Hill (03-18-2012), nik1975 (03-17-2012), Ramses2 (03-18-2012), schnedi (03-18-2012), stratnik (03-18-2012), The_Durben (03-17-2012), trebor130657 (03-18-2012), zocker48 (03-22-2012)
LinkBacks (?)
-
Curry's little Repo
Refback This thread04-12-2013, 02:27 PM -
overview for bushe
Refback This thread03-15-2013, 10:09 AM -
08-11-2012, 12:06 AM
-
Elite Pro HD - Seite 40
Refback This thread03-03-2012, 12:38 PM




LinkBack URL
About LinkBacks
Reply With Quote
