1. koyote_0942's Avatar
    Can you tell me your weather code? I would like to add flying leaves to that description but need a City that has Partly Cloudy/Windy so I can see what code it uses. Thanks.
    PS I need it before the weather changes!
    weather code is 766582
    2012-01-18 04:07 PM
  2. <Ian Nicoll/>'s Avatar
    weather code is 766582
    Thank You.

    I can't get clouds + leaves at present, but try this & see how it performs.

    In the UniAW.js, change the parameter for number 30 to wind as in the screen shot below.




    FLYING LEAVES.

    Attached Thumbnails UniAW5.0-screen-shot-2012-01-18-10.13.38-pm.png   UniAW5.0-img_0528.png  
    Last edited by <Ian Nicoll/>; 2012-01-18 at 04:27 PM.
    2012-01-18 04:08 PM
  3. Darrenrooster's Avatar
    Ian,

    It is currently raining where I am but the rain is only falling one side of the lockscreen? Can you tell me what I should alter to make it rain on the whole screen, please?
    Last edited by Darrenrooster; 2012-01-18 at 05:16 PM.
    2012-01-18 05:14 PM
  4. <Ian Nicoll/>'s Avatar
    Ian,

    It is currently raining where I am but the rain is only falling one side of the lockscreen? Can you tell me what I should alter to make it rain on the whole screen, please?
    The rain & snow falls randomly from left 10px to left 310px, because it's completely random & only used 8 drops I guess sometimes it will not be evenly distributed! but it's never the same twice so just re-load it.
    2012-01-18 05:26 PM
  5. chevymusclecar's Avatar
    Ian how to get real feel to display? Only a matter of adding files and turn in real feel?

    Edit: ok it changed main temp to "real feel" but not as extra info

    Edit: ok just re read your post on optional display thanks Ian!!
    Last edited by chevymusclecar; 2012-01-18 at 05:36 PM.
    2012-01-18 05:31 PM
  6. koyote_0942's Avatar
    ian sorry but I put the line and everything is still in English
    Last edited by koyote_0942; 2012-01-18 at 05:53 PM.
    2012-01-18 05:49 PM
  7. <Ian Nicoll/>'s Avatar
    Ian how to get real feel to display? Only a matter of adding files and turn in real feel?

    Edit: ok it changed main temp to "real feel" but not as extra info

    Edit: ok just re read your post on optional display thanks Ian!!
    Yeah Chevy, I just played with this tonight.
    If you want it to display as an extra setting do this:

    Replace your UniAW.js file with the one I attach here.

    Add the section of code as highlighted in the screen shot below to the .html file (you can change the text to whatever you want displayed)



    Plus this line.



    Add the section of code as highlighted in the screen shot below to the UniAW.css file



    Then you can make all the adjustments to the css for where you want it displayed.
    Attached Thumbnails UniAW5.0-screen-shot-2012-01-18-11.46.00-pm.png   UniAW5.0-screen-shot-2012-01-18-11.45.07-pm.png   UniAW5.0-screen-shot-2012-01-19-10.04.15-am.png  
    Attached Files
    Last edited by <Ian Nicoll/>; 2012-01-19 at 04:06 AM.
    2012-01-18 05:53 PM
  8. sciroccoman's Avatar
    How can we increase the speed of the animation;
    2012-01-18 05:54 PM
  9. <Ian Nicoll/>'s Avatar
    ian sorry but I put the line and everything is still in English
    Sorry, my mistake, no capital letters in the English description. Works, I just tested it.



    How can we increase the speed of the animation;
    What animation exactly? More speed needs more resources so be careful or it will get jerky!
    Attached Thumbnails UniAW5.0-screen-shot-2012-01-18-11.59.15-pm.png  
    2012-01-18 05:59 PM
  10. sciroccoman's Avatar
    increase the speed of clouds animation .
    Last edited by sciroccoman; 2012-01-18 at 06:12 PM.
    2012-01-18 06:06 PM
  11. <Ian Nicoll/>'s Avatar
    clouds .
    I think you can speed up the clouds okay but I wouldn't touch the speed the rain/snow falls.
    You need to go into the "JavaScript/Weather" folder, you will need to do this adjustment for all animations that have clouds i.e "Cloud" "partlycloud" "rain" "showers_cloud" "sleet" "snow" & "thunderstorms"

    Look at the screen shot below, you adjust the 40, 100 values, these are the random seconds for the float duration across the screen, the slowest cloud will float across in 100 seconds and the fastest one in 40 seconds and since its random could be anywhere in between.
    Try something like 25, 70. Or whatever till your happy.

    Attached Thumbnails UniAW5.0-screen-shot-2012-01-19-12.09.52-am.png  
    2012-01-18 06:16 PM
  12. sciroccoman's Avatar
    I tried 25/70 ,15/50, even 5/20 (with respring) but nothing happened .Whats wrong ;
    2012-01-18 06:29 PM
  13. koyote_0942's Avatar
    ian to run the translation in the English language and change the uppercase for lowercase and now work fine

    if (translatedesc=='partly cloudy/windy') { document.getElementById("desc").innerHTML='parcial mente nublado con viento'; }
    2012-01-18 06:30 PM
  14. <Ian Nicoll/>'s Avatar
    I tried 25/70 ,15/50, even 5/20 (with respring) but nothing happened .Whats wrong ;
    You wont see any change unless you adjust the correct .js file, i.e if your current weather condition is "Mostly or Partly Cloudy" and you adjusted the "cloud.js" you will see nothing. You must adjust the one relevant to your current condition to see the changes.
    2012-01-18 06:51 PM
  15. chevymusclecar's Avatar
    Must of did something wrong so I went over instruction again, can't seem to sort it
    Attached Thumbnails UniAW5.0-imageuploadedbymodmyi1326905826.632139.jpg  
    2012-01-18 06:55 PM
  16. sciroccoman's Avatar
    You need to go into the "JavaScript/Weather" folder, you will need to do this adjustment for all animations that have clouds i.e "Cloud" "partlycloud" "rain" "showers_cloud" "sleet" "snow" & "thunderstorms"

    I change all of them .
    2012-01-18 06:57 PM
  17. <Ian Nicoll/>'s Avatar
    Must of did something wrong so I went over instruction again, can't seem to sort it
    Maybe I missed something, will look again tomorrow M8, 1:38am here!.
    2012-01-18 07:37 PM
  18. kwajkid's Avatar
    Ian, sorry for the late reply, had to get some sleep but the real feel works like a charm! Thanks s ton. You are simply amazing buddy!!
    2012-01-18 07:49 PM
  19. CloggieUK's Avatar
    Ian,

    I've added a Dutch translation (nl) to both the files. Any other files that have translations in them apart from the two .js scripts in this zip file? Let me know if I missed any translation somewhere...

    B.t.w. I assume that some lines need adding to the weather.css file to make the real feel show up (and the positioning in the widget)?
    Attached Files
    2012-01-18 11:17 PM
  20. VOLTAGExDT's Avatar
    is the wiper animation gone from this?
    2012-01-18 11:41 PM
3,236 ... 2533343536374585135 ...
LINK TO POST COPIED TO CLIPBOARD