+ Reply
Page 1 of 19 123 11 ... LastLast
Results 1 to 20 of 377

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


Thread: [BETA] Dusk - LIVE Animated Weather [LAW]

is a discussion within the

iPhone 4|4S New Skins / Themes Launches

forums, a part of the

New Skins / Themes Launches

section;
DUSK LAW PLUG-IN A lot of people have been asking for a live weather plugin for this amazing theme, so I decided to make one. DUSK Evolution with LIVE Weather
...
  1. #1
    Theme Creator wyndwarrior's Avatar
    Join Date
    Jun 2009
    Location
    com.apple.springboard
    Posts
    677
    Thanks
    74
    Thanked 3,288 Times in 361 Posts

    Default [BETA] Dusk - LIVE Animated Weather [LAW]
    DUSK LAW PLUG-IN

    A lot of people have been asking for a live weather plugin for this amazing theme, so I decided to make one.

    DUSK Evolution with LIVE Weather [4.0 & iP4]




    Compatable with your Favorite Clock Widgets (HTC, iClocktopia, Dusk LCD, etc.)




    Live Weather on your HomeScreen (works stand-alone for other themes as well)




    Download Here. And this widget will be free, courtesy to ALIEN for making the animations.

    So a lot of people are confused as to how the conditions are determined and how to set your own weather condition (ex. nothing for fair)

    Here's how it works:

    Weather request sent -> Yahoo weather
    Yahoo weather responds -> obj.icon returns the current condition
    obj.icon is put into -> an array that determines the condition to display

    If you open functions.js, half way down you should see a Conditions array:
    PHP Code:
    var Conditions = ["thunderstorm","rain","rain","thunderstorm","thunderstorm","rain","rain","snow","snow","rain","snow","rain","rain","snow","snow","snow","snow","snow","snow","fog","fog","fog","fog","cloud","cloud","cloud","cloud","cloud","cloud","cloud","cloud","sun","sun","fog","fog","rain","sun","thunderstorm","thunderstorm","thunderstorm","thunderstorm","snow","snow","snow","cloud","thunderstorm","snow","thunderstorm","blank"]; 
    It should look something like that ^

    Now, obj.icon returns a number and this number is one of those conditions in the list above. If it returned 0 then you would have thunderstorms, if it returned 10 then you would have snow. (index for JavaScript arrays start from 0)

    So if you were to change the first string in the array to rain, then you would get rain instead of thunderstorms. Simple?

    All you need to know now are the original conditions that the weather source returns in order to change whichever condition you want to display on Dusk LAW.

    PHP Code:
    //these are the original conditions
    var MiniIcons =
    [
        
    "tstorm3",        //0    tornado
        
    "tstorm3",        //1    tropical storm
        
    "tstorm3",        //2    hurricane
        
    "tstorm3",        //3    severe thunderstorms
        
    "tstorm2",        //4    thunderstorms
        
    "sleet",        //5    mixed rain and snow
        
    "sleet",        //6    mixed rain and sleet
        
    "sleet",        //7    mixed snow and sleet
        
    "sleet",        //8    freezing drizzle
        
    "light_rain",        //9    drizzle
        
    "sleet",        //10    freezing rain
        
    "shower2",        //11    showers
        
    "shower2",        //12    showers
        
    "snow1",        //13    snow flurries
        
    "snow2",        //14    light snow showers
        
    "snow4",        //15    blowing snow
        
    "snow4",        //16    snow
        
    "hail",     //17    hail
        
    "sleet",        //18    sleet
        
    "mist",     //19    dust
        
    "fog",               //20    foggy
        
    "fog",               //21    haze
        
    "fog",               //22    smoky
        
    "cloudy1",        //23    blustery
        
    "cloudy1",        //24    windy
        
    "overcast",        //25    cold
        
    "cloudy1",        //26    cloudy
        
    "cloudy4_night",    //27    mostly cloudy (night)
        
    "cloudy4",        //28    mostly cloudy (day)
        
    "cloudy2_night",    //29    partly cloudy (night)
        
    "cloudy2",        //30    partly cloudy (day)
        
    "sunny_night",    //31    clear (night)
        
    "sunny",        //32    sunny
        
    "mist_night",        //33    fair (night)
        
    "mist",     //34    fair (day)
        
    "hail",     //35    mixed rain and hail
        
    "sunny",        //36    hot
        
    "tstorm1",        //37    isolated thunderstorms
        
    "tstorm2",        //38    scattered thunderstorms
        
    "tstorm2",        //39    scattered thunderstorms
        
    "tstorm2",        //40    scattered showers
        
    "snow5",        //41    heavy snow
        
    "snow3",        //42    scattered snow showers
        
    "snow5",        //43    heavy snow
        
    "cloudy1",        //44    Gedeeltelijk Bewolkt
        
    "storm1",        //45    thundershowers
        
    "snow2",        //46    snow showers
        
    "tstorm1",        //47    isolated thundershowers
        
    "dunno",        //3200    not available

    As you can see, fair is number 33 and 34. If you wanted fair to display as blank then go back into functions.js where you have the Conditions array and count to the 34th and 35th values (remember you start from 0) and change "fog" to "blank".

    The resulting array would look something like this:
    PHP Code:
    var Conditions = ["thunderstorm","rain","rain","thunderstorm","thunderstorm","rain","rain","snow","snow","rain","snow","rain","rain","snow","snow","snow","snow","snow","snow","fog","fog","fog","fog","cloud","cloud","cloud","cloud","cloud","cloud","cloud","cloud","sun","sun","blank","blank","rain","sun","thunderstorm","thunderstorm","thunderstorm","thunderstorm","snow","snow","snow","cloud","thunderstorm","snow","thunderstorm","blank"]; 
    Once you update functions.js copy it to Dusk LAW (Add-on) and DUSK LAW (stand-alone). However if you changed "cloud" or "thunderstorm" then you will also have to edit the functions.js in Dusk LAW (Part 2) to match the one in the add-on version.

    Part 2 is different, it only has clouds and thunderstorms

    PHP Code:
    var Conditions = ["thunderstorm","","","thunderstorm","thunderstorm","blank","blank","blank","blank","blank","blank","blank","blank","blank","blank","blank","blank","blank","blank","blank","blank","blank","blank","cloud","cloud","cloud","cloud","cloud","cloud","cloud","cloud","blank","blank","blank","blank","blank","blank","thunderstorm","thunderstorm","thunderstorm","thunderstorm","blank","blank","blank","cloud","thunderstorm","blank","thunderstorm","blank"]; 
    Part 2 conditions ^

    If you changed a cloud condition in part one to something else, then you would also have to change the cloud condition in part 2 to to "blank". Same with thunderstorms. If you changed a condition to "cloud" in part 1 then you will also have to change same condition from "blank" to "cloud"


    I hope this clears everything up, if you have more questions, feel free to post.

    Also, I am working on a css wiper animation. (which I'm hoping to complete by 10/9/10) And it will be released as an update to Dusk LAW, free of charge
    Attached Images Attached Images  
    Last edited by wyndwarrior; 10-02-2010 at 03:09 PM.

  2. The Following 39 Users Say Thank You to wyndwarrior For This Useful Post:

    3nCoRe (09-20-2010), austin_099 (10-12-2010), B1teable (10-14-2010), bigco504 (09-18-2010), blast123 (09-18-2010), Carvensno (11-01-2010), Ch3rishYourLif3 (12-05-2010), chrisrotolo (09-18-2010), Coop2009 (09-29-2010), Dark_Ninja (11-03-2010), donaglia (11-08-2010), Downloadeous Maximus (10-23-2010), dudemanly (09-20-2010), FreeApple (09-19-2010), freebie (12-23-2010), henftling (09-20-2010), Huaikong (09-29-2010), iguazu (03-23-2011), It's Mi (10-05-2010), jakobxxl (02-22-2011), jepp376 (10-03-2010), kevin.e.white (09-30-2010), kiet03 (06-04-2012), lao3hero (09-28-2010), lostinthemes (12-17-2010), monchy36 (09-18-2010), mvveelen (09-28-2010), natrev (10-13-2010), norcal415 (12-10-2010), Pain55 (09-26-2010), Perplexity24 (01-14-2011), Scrape (12-06-2010), sergy330 (11-04-2010), SnowLeo (10-02-2010), speedfreak228 (09-28-2010), stlwkr (11-05-2010), v0calstrut (09-30-2010), ziggy7 (09-18-2010), Zooropalg (09-25-2010)

  3. #2
    iPhone? More like MyPhone
    Join Date
    Aug 2010
    Location
    France
    Posts
    212
    Thanks
    35
    Thanked 108 Times in 62 Posts

    Hello i have iphone 4 ready for test if you want )

  4. The Following User Says Thank You to tigrou85 For This Useful Post:

    Lloyd Evil (03-13-2011)

  5. #3
    Livin the iPhone Life
    Join Date
    Feb 2008
    Posts
    1,094
    Thanks
    242
    Thanked 366 Times in 242 Posts

    ill test

  6. #4
    iPhoneaholic
    Join Date
    Feb 2009
    Posts
    373
    Thanks
    28
    Thanked 39 Times in 28 Posts

    I'll test, I had aliens hd2 theme on my 3GS before

  7. #5
    Green Apple bigco504's Avatar
    Join Date
    Mar 2010
    Location
    Louisiana
    Posts
    31
    Thanks
    9
    Thanked 2 Times in 2 Posts

    hey i love it i've been waiting for some live animated weather i would love to test it

  8. #6
    Undisputed Theme Champ AnthonyGiola's Avatar
    Join Date
    Jun 2010
    Location
    .theme>Bundles
    Posts
    2,344
    Thanks
    588
    Thanked 1,568 Times in 853 Posts

    lmao he bolded it! :P
    Great job wynd! Nice to see you back!
    Oh and I was wondering how well does backboard work on iP4/ iOS4?

  9. #7
    Failing means yer playin! ziggy7's Avatar
    Join Date
    Mar 2010
    Location
    Scotland
    Posts
    2,750
    Thanks
    4,008
    Thanked 2,315 Times in 1,245 Posts

    Ooooooommmmmmggggggg!!!!! am i really seeing this right lol

    Awesome!!!!!!!!!!!

    Truly great work wyndwarrior

    Wait till Alien see's this..he'll be mega impressed
    Last edited by ziggy7; 09-18-2010 at 03:19 PM.

  10. #8
    Green Apple zyzz's Avatar
    Join Date
    Sep 2010
    Location
    Dubai
    Posts
    32
    Thanks
    4
    Thanked 12 Times in 6 Posts

    i'm willing to test out with my iphone 4. looks awesome!

  11. #9
    Theme Creator wyndwarrior's Avatar
    Join Date
    Jun 2009
    Location
    com.apple.springboard
    Posts
    677
    Thanks
    74
    Thanked 3,288 Times in 361 Posts

    I will be sending beta's tomorrow. Unfortunately the plug-in will only work if you are living in the US, unless I can fix the zip-code issue today.

  12. #10
    What's Jailbreak?
    Join Date
    Sep 2010
    Posts
    23
    Thanks
    8
    Thanked 9 Times in 4 Posts

    I'll also test if you need anyone else

  13. #11
    iPhoneaholic
    Join Date
    Nov 2009
    Posts
    444
    Thanks
    13
    Thanked 54 Times in 48 Posts

    If you need some more testers for i4 shoot me a message. I'll gladly test for you.

  14. #12
    The Entertainer monchy36's Avatar
    Join Date
    Mar 2008
    Location
    Slatington, PA
    Posts
    1,790
    Thanks
    3,015
    Thanked 2,224 Times in 870 Posts

    Got one too ready to text when you are!!!

  15. #13
    iPhoneaholic jon347's Avatar
    Join Date
    Jul 2007
    Location
    SoCal
    Posts
    476
    Thanks
    389
    Thanked 278 Times in 149 Posts

    I'll test it out if you need more testers

  16. #14
    What's Jailbreak?
    Join Date
    Sep 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    if your still looking for beta testers im up for it. been using iHY HD for a lil bit now, very awsome.

  17. #15
    iPhone? More like MyPhone
    Join Date
    Nov 2009
    Posts
    273
    Thanks
    106
    Thanked 104 Times in 74 Posts

    I'll beta test this, looks great--

  18. #16
    iPhoneaholic chrisrotolo's Avatar
    Join Date
    Jun 2008
    Location
    CT
    Posts
    464
    Thanks
    106
    Thanked 36 Times in 30 Posts

    Will this include wipers, thunder, falli g rain plug-ins, big sunbursts?? Does it lag??

  19. #17
    What's Jailbreak?
    Join Date
    May 2008
    Posts
    28
    Thanks
    4
    Thanked 3 Times in 3 Posts

    I can beta test it for ya also.

  20. #18
    iPhoneaholic
    Join Date
    Sep 2007
    Posts
    404
    Thanks
    228
    Thanked 60 Times in 50 Posts

    i can also beta test for iphone 4

  21. #19
    Theme Creator wyndwarrior's Avatar
    Join Date
    Jun 2009
    Location
    com.apple.springboard
    Posts
    677
    Thanks
    74
    Thanked 3,288 Times in 361 Posts

    Quote Originally Posted by chrisrotolo View Post
    Will this include wipers, thunder, falli g rain plug-ins, big sunbursts?? Does it lag??
    No lag. No wipers since there weren't any in Dusk Evolution. Includes: sunshine, rain, clouds, thunder, fog, and snow.

  22. #20
    Master Theme Creator FreeApple's Avatar
    Join Date
    Mar 2010
    Location
    Lake George, NY
    Posts
    1,085
    Thanks
    1,328
    Thanked 1,049 Times in 414 Posts

    Wynd your freakin awsome man! I have been trying to get the actual plug in that Alien made to work since day 1 with no luck....cant wait to see what you came up with! Will this eventually work on non retnia devices?

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts