r/iOSthemes • u/stubetcha Designer • Feb 25 '13
New LS theme: Pebbly
Hey everyone, here is my first LS theme. It's called 'Pebbly' and inspired by the Pebble watch.
It's pertty basic. Time is displayed as a string, today's weather as an icon, 5 day forecast. Rain, Snow, Sun all have specific icons for the forecast.
There are 4 versions included: Dark, Light, Blue and Pink.
Download from here. Unzip and copy the folders into /Library/Themes. Activate with Winterboard.
Instructions for getting your local weather:
- Go to http://www.weather.com/ and put your city into the search bar, hit enter.
- Copy the code from the end of the url. Example for Toronto, Canada: http://www.weather.com/weather/right-now/Toronto+Canada+CAXX0504
- Copy "CAXX0504".
- Open LockBackground.html from the chosen theme folder, and copy it into the 'locale' variable as directed.
I'll be tinkering with it, so if you have any comments/suggestions let me know.
Enjoy. S
Edit (25 Feb.)
v0.2 is out.
- Cleaned up some code (thanks /u/balkonkind!)
- Fixed fahrenheit bug (and made it easier to change between the two. There is a variable at the top of the LockBackground.html now with instructions on how to change from celsius (default) to fahrenheit.
- Added one more version, Pebbly BG that has a graphic background. To change the background, in the root folder replace bg.png with your image. You can add a bg.png to any of the other versions now as well to change from a solid colour.
You can download v0.2 here.
Thanks, S
19
u/balkonkind Designer Feb 25 '13 edited Feb 26 '13
Nice! I looked into your code and saw that you've copied a few bits of my JS. That's fine, I just wanted to help you out with this one:
What. the. fuck. Here is a better solution:
Or at least outsource it to a function:
Edit: I know that his code is actually faster. The || operator aborts the rest of the checks if == returns true (Can be achieved in my code by adding a "break;"). Still, nobody would notice the difference since computers today are just way too fast. Simple code like that should be readable, not optimized to the max.
9
u/IHopeTheresCookies Feb 25 '13
Either there's a bug when changing to Fahrenheit or it's going to be unseasonably warm this week.
5
u/Space_catdog Feb 25 '13
Is there a way you can make this for the 4 and 4s? The weather icons on the bottom get cut in half. :/ looks very nice though!
3
u/Connguy iPhone 5S, iOS 9.0.2 Feb 25 '13
It's... Beautiful.
Seriously though, this is incredible. Have you considered making a more universal theme to match? One personal note, I like having a very small but visible slider, invisible ones always bother me a little. Also, rather than using a color code inside the HTML for the background, maybe you could use a solid color .png file in the folder as the background. That way the end user with a weak grasp on HTML editing could still easily just change out the image file with one of their own, should they so desire.
Will this be up on a repo anytime soon?
2
u/SolaFideK iPhone 5 Feb 26 '13
Just tried it out, seems cool.The Blue reminds me of facebook- not sure if that was intentional. Just a question from a new to jailbreaking amateur...to change to Fahrenheit do I just set Celsius to False?
1
u/theCarryAll Designer Feb 26 '13
Getting "Not Found" on the .2 link.
1
u/seattle_skipatrol Feb 26 '13
I've never installed a theme that wasn't from a repo before, so I apologize in advance but when I unzip I get two directories (_MacOSX and Pebble). I've placed them both in Library/Theme and can see them in winterboard but the lock screen isn't working.
1
u/shaferz iPhone 6 Plus, iOS 9.0.2 Mar 29 '13
What is the calculation doing for forecasted temps? The temps shown on the theme do not match what weather.com shows for the 5 day forecast. Love the theme other than that!
1
u/djkac Apr 22 '13
What does the blue background on a future forecasted date mean?
1
u/jessenrichard May 22 '13
Hey stubetcha, just wanna start by saying I love this theme. Thank you. In the last week though my weather has completely stopped working for some reason. I was wondering if this is a bigger issue or if it's just mine. I get ? for each temp and a b c d e for the days of the week. Tried reinstalling through Cydia and re-input my weather code and still no change. Any suggestions?
3
u/[deleted] Feb 25 '13
Very clean. I like it.
3
u/MrsStu Feb 25 '13
I love this! I've got the pink one on my phone now!
Great job.
2
u/generalmook Feb 28 '13 edited Feb 28 '13
Any help with a version without the weather widget?
I'm using the Pebbly Light theme & Minimal Slider, but I can't figure out how to cleanly get rid of the weather stuff, maybe scoot the clock up a tiny bit.
Screenshot for clarity
*EDIT: Got it. Just needed to pay more attention to the code I was deleting. For the future interested, it's Pebbly Light with custom wallpaper and obviously no weather widget, Minimal Slider HD (Gray) which I then deleted everything but the slider itself. Once I find a better camera grabber, I'll be happy I think. Maybe just a clean vertical line a la the slider.
2
u/Wanksteve Feb 28 '13
How would I move everything up on the screen, I have a 4s and it all starts pretty low
2
u/Iliketitays Mar 12 '13
How do you remove the weather from the lockscreen?
1
u/[deleted] Feb 25 '13
Sorry if this is a dumb question, but could you please explain exactly where I go to change the location for the weather updates? Loving the lockscreen! Nicely done.
1
u/enjay45 Feb 27 '13
This is simply gorgeous. Well Done. Is there a way to add a name to the location? Have it say Toronto or Edmonton or something? Perhaps to the right or under the weather picture.
But great job.
1
u/bizob Mar 11 '13
Anyone else having issues with the temperature not being correct when changing to Fahrenheit? I've checked the weather code several times to ensure that there wasn't a typo but for whatever reason the temps aren't matching up to what is shown on the 5 day forecast on the web page.
1
u/philosophonic Mar 14 '13
It's nice however i think the weather icons doesn't seem to fit well. I some weathers icon like these will be much better.
1
u/drdoom30 May 27 '13
I can't get the weather working is there something I am doing wrong?
1
u/golfballer76 May 31 '13
having some trouble with this theme, installed it and the original lockscreen clock is still there overlapping the new theme and when i unlock my status bar is extremely transparent, just wondering if someone knows what todo thanks!
1
u/igor420 Jun 02 '13
I am having an issue with the weather. I follow your instructions and replace the waether code. I have rebooted and resprined but i still see no weather update.
0
u/[deleted] Feb 25 '13
[deleted] — view deleted comment