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]

  1. #1
    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

  6. #4
    I'll test, I had aliens hd2 theme on my 3GS before

  7. #5
    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,803
    Thanks
    4,465
    Thanked 2,376 Times in 1,277 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
    i'm willing to test out with my iphone 4. looks awesome!

  11. #9
    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
    I'll also test if you need anyone else

  13. #11
    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
    I'll test it out if you need more testers

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

  17. #15
    I'll beta test this, looks great--

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

  19. #17
    I can beta test it for ya also.

  20. #18
    i can also beta test for iphone 4

  21. #19
    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
    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?

Page 1 of 19 123 11 ... LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •