Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: Weather Widget Help...
09-23-2008, 11:50 AM #1
Weather Widget Help...
I'm working on another full screen winterboard theme using the weather widget however I would like to use an icon file that has (2) diff file format exts such as .gif (for animated weather icons) and also .png (for the static weather icons)
Reason being I don't want to animate all the icons only a few, so my question is where and how in the .js file do I edit so it will first search out a .gif and if no .gif exist it will then display the .png?
Here is a snipit of the current .js file...
var iconExtWall = '.png' //'.png'|.'gif' etc.
Thank you for any help...
09-23-2008, 12:39 PM #2
Doreen, I wish I could help you, but I dont know the answer. All I can say is that I hope someone does, because I would love to have this on my phone. I have the other one you did with the 'Bliss"-like walls from macthemes, and being that I live by the beach, this one would be more appropriate. If you arent able to get the .gifs working, would you mind at least sharing the image set of the static .pngs ?
Edit: just an idea..... .gif can be static also. So possibly convert the .png images to .gif, and use only .gif. I dunno if that would work, or what that would do to the image quality, but it would get rid of the need to use 2 different formats.
Just an idea
Last edited by Chefanim; 09-23-2008 at 12:41 PM.So long, and thanks for all the fish
09-23-2008, 03:04 PM #3
Make all of the icons gifs. Just open them up and resave them as gif files, without added animation. then use gif as your file format.
09-23-2008, 03:34 PM #4
Hi you guys I had already thought of that and tried it but the quality of the static images saved as .gifs goes down toliet. I need to find out how to have the app display the pngs "and" the gifs when one or the other image and format are not avail in the folder.
I'll release this theme when I get that resolved Chefanim however, if I can't get it resolved then I'll go ahead and release the static theme it still looks good when the static images change throughout the day and night but on a sunny day at the beach I want to see the rays of the sun animating...
09-23-2008, 04:20 PM #5
could you use
var iconExtWall = '.*' //'.png'|.'gif' etc.
I remember using *.* back in the old DOS days
I dont know how this stuff works?So long, and thanks for all the fish
09-23-2008, 04:57 PM #6
Nope I just tried that and still no go, Shoot I cannot believe no one has been able to help me out w/ that one line of code (I've been asking all over for two weeks now) *sigh*
And google has not been my friend either in regards to that, most likely cuz I'm not searching right since I know nothing of java scripting.
If someone can help me out I promise to make the stars twinkle on that beach when it turns to a clear night okay...
09-23-2008, 06:05 PM #7
You must not be converting the pngs to gifs properly. Why else would your animated images look good but the static ones look bad? That doesnt make any sense.
09-23-2008, 06:33 PM #8
As far as I know there is no way to make a .gif look as good as a .png and I'm willing to sacrifice the clarity alil on the animated gifs but not on the static images therefore I want to have the static images in .png format so they look crisp however, the animated .gifs will not look as crisp no matter what I do since winterboard does not support animated png support (which is .mng) but most ppl will not notice the slight grain since the animation will distract them from even noticing.
09-24-2008, 10:22 PM #9
Sorry Chefanim for the delay, so it seems nobody can help me w/ that script so I'm going to release it now and you can download it from over here:
I officially released it here: MacThemes Forum / Beach Weather Widget Release
The Following User Says Thank You to Doreen For This Useful Post:
09-24-2008, 10:45 PM #10
Looks Great Doreen, Ill set it up for myself and apply it tomorrow (I gotta go to bed). I think Ill have to get that 'Lets see' Theme from Cydia.
Only 1 suggestion that I would have would be to make the sand and water darker at night.
I did 1 to see how it looks.... what do you think?
Thanks again, great work, with or without animation
Last edited by Chefanim; 09-24-2008 at 10:48 PM.So long, and thanks for all the fish
09-24-2008, 10:57 PM #11
I like it! you did a great job on that, I thought about that but my laziness over powered me and some of the weather images display for both night and day such as the fog etc.
but the clear night one obviously only displays in the evening, I'll have to update that, let me know how you like it when you use it over the course of a day, I have yet to see how it looks w/ rain or lightning since I live in California.
09-24-2008, 11:00 PM #12
Glad you like. Here is the darkened beach, you can just paste it over the night images.
Now this time Im really going to bed Ill post some screenshots tomorrow. I have an Idea for a dock, I want to see how it looks.
Also, I live in Florida, and our forcast calls for a beautiful week, so I dont think Ill get to see all the images soon either
Last edited by Chefanim; 09-24-2008 at 11:04 PM.So long, and thanks for all the fish
09-24-2008, 11:28 PM #13
Atleast you guys sometimes get rain. hehe!
Feel free to post anything to this theme, I'd like to see your dock I forgot to add my Shell, Seahorse, Map and Crab for the bottom icons, I'll update it again later on tonight...
Last edited by Doreen; 09-24-2008 at 11:53 PM.
09-25-2008, 10:45 AM #14
Fantastic! Really incredible! Thank you!
Now I just have to figure out why it's not working correctly in WinterBoard
Okay, I can use a little help here...
I'm currently using the "Illuminous" theme with a custom wallpaper because I like the icons with this theme. So, how am I able to use this awesome Beach theme and still use the icons I like?
If I turn both the Illuminuous theme and Beach theme on, that doesn't work. If I turn Illuminous off, that doesn't work either!
Can someone give me a step-by-step with my situation so I can use the Beach theme with the Illuminous icons?
Last edited by Adrenaline68; 09-25-2008 at 10:45 AM. Reason: Automerged Doublepost
09-25-2008, 10:54 AM #15
You can use your icon sets by two ways:
1. Go into Winterboard and tap and slide the Beach theme on top of your other theme so it loads the Beach Weather theme first then searches your second theme for the icons.
2. Place the entire Icon folder into my WinterBoard Beach theme folder and then respring.
Note: you will still need to make one transparent icon (preferably the weather app) and place that on your weather page to make it stick then set up all your other pages/screens w/ your other icons as you would normally. If you use the "Lets See" winterboard theme then you don't need to since you will be able to see through all your icons on all your pages.
Last edited by Doreen; 09-25-2008 at 10:57 AM.
09-25-2008, 11:27 AM #16
Thanks Doreen! I did #1.
Now, the other small issue I'm having is that I would like to use the "StatusBar_Tiny.css" so I have the weather in the Status Bar instead of on the theme like you have it (sorry!).
09-25-2008, 11:56 AM #17
09-25-2008, 02:42 PM #18
Ok, got that part working correctly, but now my Winterboard fonts are not white anymore!
Fixed! Just edited the info.plist
Last edited by Adrenaline68; 09-25-2008 at 02:49 PM.
09-25-2008, 05:04 PM #19
I dont know If I can help with that one. What color are they now? and is it just the weather or all the text?
What do you think? A rustic table dock, and a Corona'd iPhone
Icons thanks to Stereo's Leopard Theme will a little mod by me.
Last edited by Chefanim; 09-25-2008 at 05:04 PM. Reason: Automerged DoublepostSo long, and thanks for all the fish
The Following User Says Thank You to Chefanim For This Useful Post:
09-25-2008, 07:11 PM #20
Love that wooden table dock! can I have that? I was thinking what can I use as a dock drift wood, seaweed, rocks and then I never did one. hehe
Also I took your advise and darkened all the night time images, I will be updating it in a few mins I'm almost done...
Last edited by Doreen; 09-25-2008 at 07:14 PM.