+ Reply
Page 171 of 201 FirstFirst ... 71 121 161169170171172173 181 ... LastLast
Results 3,401 to 3,420 of 4020

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


Thread: Widget Weather

is a discussion within the

File Mods

forums, a part of the

iPhone Modding

section;
Hi all, Completely forgotten to post outside of WW circle. Here the 2.4 version of my LS (no major changes, more a fine tuning update as my friend Chevy said)
...
  1. #3401
    Addicted to Code Dacal's Avatar
    Join Date
    Nov 2010
    Posts
    1,889
    Thanks
    2,885
    Thanked 8,475 Times in 1,496 Posts

    Default Dacal Yahoo Widget v2.4
    Hi all,

    Completely forgotten to post outside of WW circle.



    Here the 2.4 version of my LS (no major changes, more a fine tuning update as my friend Chevy said) :

    - No more sunny description during the night,
    - Add a blue color on the moon 1 hour after sunset and 1 hour before sunrise (= twilight effect).
    - Change a little the random walls function to never have the same picture two times.
    - Change some animations to be more realistic, as suggested by NewDestinyX on uniAW thread).
    - Add leaves as an alternative to dandelion (not the same way as Marty, i prefer to have the choice for each weather condition, so no choice in Config.js => Look in animation.js).
    - Now, 0 value works for the functions in animations.js.

    Link : https://www.dropbox.com/s/zxiz4a31jd...v2.4.theme.zip

    Credits : as usual .

    Dacal


    My themes : Jade HD, Silex HD, BaSalt HD,ToPaz
    All are on Cydia and/or Theme It.

  2. The Following 20 Users Say Thank You to Dacal For This Useful Post:

    Darrenrooster (04-15-2014), Destan (04-15-2014), jawonder (04-15-2014), King_O_Hill (04-14-2014), kristatos (04-17-2014), lostinthemes (04-15-2014), MamaJaay (04-14-2014), Marmoul (04-14-2014), Marty McFly (04-14-2014), menard_00 (04-16-2014), meth357 (04-14-2014), mfisherbsu (04-19-2014), NewdestinyX (04-14-2014), nik1975 (04-14-2014), phil73 (04-15-2014), RKO1195 (04-14-2014), Smitbeat (04-14-2014), stratnik (04-19-2014), Tav681 (04-17-2014), The.Drifter (04-14-2014)

  3. #3402
    The Big D NewdestinyX's Avatar
    Join Date
    Jan 2012
    Posts
    9,446
    Thanks
    3,727
    Thanked 8,522 Times in 4,317 Posts

    Fabulous Dacal!! Thanks!!

    Can you please share the code line that allows for using a "0" in the animations.js' functions section - so that we can have that ability in the Marty-Dacal LS as well?
    Here to help if I can. If I can't I know someone who can!

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

    Dacal (04-14-2014)

  5. #3403
    Addicted to Code Dacal's Avatar
    Join Date
    Nov 2010
    Posts
    1,889
    Thanks
    2,885
    Thanked 8,475 Times in 1,496 Posts

    Quote Originally Posted by NewdestinyX View Post
    Fabulous Dacal!! Thanks!!

    Can you please share the code line that allows for using a "0" in the animations.js' functions section - so that we can have that ability in the Marty-Dacal LS as well?
    I already posted that here :

    Widget Weather

    Hi NewD. Yes, for every weather conditions. If you put 0 in parameter for the function, it doesn't work => you will use the default number. I can correct that, but for me :

    - if you don't want an element (=0), remove the line (createXXXX()).
    - if you want a different number of elements (>=1), just put the right number in the parameter for the function (createXXXX(2)).


    Edit : in the next version, i will correct that, so 0 will work (just need to change the test that is done in each function : if (number) { // do something... => if (number >=0) { // do something...
    Dacal


    My themes : Jade HD, Silex HD, BaSalt HD,ToPaz
    All are on Cydia and/or Theme It.

  6. The Following 5 Users Say Thank You to Dacal For This Useful Post:

    Alfroggy (04-16-2014), King_O_Hill (04-14-2014), Marty McFly (04-14-2014), RKO1195 (04-14-2014), Smitbeat (04-14-2014)

  7. #3404
    Theme Modder Smitbeat's Avatar
    Join Date
    Feb 2012
    Posts
    1,418
    Thanks
    2,775
    Thanked 5,897 Times in 1,057 Posts

    Quote Originally Posted by Dacal View Post
    Hi all,

    Completely forgotten to post outside of WW circle.



    Here the 2.4 version of my LS (no major changes, more a fine tuning update as my friend Chevy said) :

    - No more sunny description during the night,
    - Add a blue color on the moon 1 hour after sunset and 1 hour before sunrise (= twilight effect).
    - Change a little the random walls function to never have the same picture two times.
    - Change some animations to be more realistic, as suggested by NewDestinyX on uniAW thread).
    - Add leaves as an alternative to dandelion (not the same way as Marty, i prefer to have the choice for each weather condition, so no choice in Config.js => Look in animation.js).
    - Now, 0 value works for the functions in animations.js.

    Link : https://www.dropbox.com/s/zxiz4a31jd...v2.4.theme.zip

    Credits : as usual .

    Dacal
    Thanks bro) as always everything accurately and qualitatively

  8. The Following 4 Users Say Thank You to Smitbeat For This Useful Post:

    Dacal (04-14-2014), King_O_Hill (04-14-2014), Marty McFly (04-14-2014), RKO1195 (04-15-2014)

  9. #3405
    Green Apple
    Join Date
    Dec 2009
    Posts
    86
    Thanks
    15
    Thanked 32 Times in 18 Posts

    Quote Originally Posted by King_O_Hill View Post
    Hey, does anyone have an updated WW HTC iWidget? I've seen them around and know there's one or 2 out there.
    Have a look here:

    HTC Animated Weather Widget Question

  10. The Following 2 Users Say Thank You to dragonjo8 For This Useful Post:

    King_O_Hill (04-14-2014), Marty McFly (04-14-2014)

  11. #3406
    iPhoneaholic lostinthemes's Avatar
    Join Date
    Dec 2010
    Location
    Istanbul, Turkey
    Posts
    360
    Thanks
    4,756
    Thanked 238 Times in 133 Posts

    This is the html code I use in my map iWidget...
    If I add an update interval code in it, it crashes the phone every half an hour.
    So how can I add a code in it to take the coordinates from widget weather.xml?

    Widget Weather-img_0065.png


    <?xml version="1.0" encoding="UTF-8"?>
    <html>

    <head>
    <META HTTP-EQUIV="refresh" CONTENT="900">
    <meta name="viewport" content="width=320, initial-scale=1, maximum-scale=1, minimum-scale=1.0 user-scalable=no" />
    <script src="http://maps.google.com/maps/api/js?sensor=true" type="text/javascript"></script>
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/jquery.ui.map.full.min.js"></script>
    <script type="text/javascript" src="js/jquery.ui.map.services.min.js"></script>
    <link rel="stylesheet" href="Style/Style.css" type="text/css" media="screen"/>

    <script type="text/javascript">

    var textLat;
    var textLong;
    function UpdateLocation() {
    jQuery.get('/var/mobile/Documents/myLocation.txt', function(appdata) {
    var myvar = appdata;
    var substr = appdata.split('\n');
    var templatitude=(substr[0]).split('=');
    var templongitude=(substr[1]).split('=');
    var latitude = $.trim(templatitude[1]);
    var longitude = $.trim(templongitude[1]);
    var Yahooappid =""


    if (latitude < 0) {
    textLat = Math.round(latitude*100)/100 + "\u00B0" + "S";
    }
    else if (latitude > 0){
    textLat = Math.round(latitude*100)/100 + "\u00B0" + "N";
    }
    else {
    textLat = Math.round(latitude*100)/100 + "\u00B0";
    }

    if (longitude < 0) {
    textLong = Math.round(longitude*100)/100 + "\u00B0" + "W";
    }
    else if (longitude > 0) {
    textLong = Math.round(longitude*100)/100 + "\u00B0" + "E";
    }
    else {
    textLong = Math.round(longitude*100)/100 + "\u00B0";
    }

    $("#lat").text(textLat);
    $("#long").text(textLong);

    var geocoder;
    var map;
    var marker;
    $(function() {
    geocoder = new google.maps.Geocoder();
    var latlng = new google.maps.LatLng(latitude,longitude);
    var myOptions = {
    zoom: 18,
    center: latlng,
    disableDefaultUI: true,
    disableMarkerUI: false,
    mapTypeId: google.maps.MapTypeId.HYBRID
    }
    map = new google.maps.Map(document.getElementById("map_canva s"), myOptions);
    codeLatLng()
    })

    function codeLatLng() {
    var latlng = new google.maps.LatLng(latitude,longitude);
    geocoder.geocode({'latLng': latlng}, function(results, status) {
    if (status == google.maps.GeocoderStatus.OK) {
    if (results[1]) {
    map.setZoom(18);
    marker = new google.maps.Marker({
    position: latlng,
    map: map
    });
    var address=results[0].formatted_address;
    $("#address").text(address);
    }
    } else {
    alert("Geocoder failed due to: " + status);
    }
    });
    }
    });


    }


    </script>


    </head>


    <body onLoad="UpdateLocation()">

    <div id="map_canvas" style="width:290px;height:200px;left:0px;top:10px" ></div>


    <img id="Frame" src="Images/Frame.png" />

    </body>
    </html>

  12. #3407
    What's Jailbreak?
    Join Date
    Apr 2010
    Posts
    17
    Thanks
    101
    Thanked 6 Times in 4 Posts

    Widget Weather-img_1531.png
    Hi guys,
    How can i change the arrow in the compass ? I want to change the "red" arrow 180 degress, so instead pointing "away", point to the right given wind.
    Thank you and take care out there and sorry for my bad english .

  13. #3408
    The Formulator Marty McFly's Avatar
    Join Date
    Mar 2013
    Location
    Barrie
    Posts
    1,310
    Thanks
    4,047
    Thanked 4,566 Times in 1,020 Posts

    Quote Originally Posted by lostinthemes View Post
    This is the html code I use in my map iWidget...
    If I add an update interval code in it, it crashes the phone every half an hour.
    So how can I add a code in it to take the coordinates from widget weather.xml?
    Looks like it just needs to be converted to WidgetWeather (update interval then set in the settings app). Either that or use one of Drifter's new widgets. They use Google street view and are widget weather based. I can convert it for you if you want to post a link - or PM - whatever.

    Edit: post changed. I meant Drifter not Chevy. Sorry.

  14. The Following 3 Users Say Thank You to Marty McFly For This Useful Post:

    King_O_Hill (04-15-2014), lostinthemes (04-16-2014), The.Drifter (04-15-2014)

  15. #3409
    Man of iWidgets The.Drifter's Avatar
    Join Date
    Aug 2012
    Posts
    999
    Thanks
    5,106
    Thanked 6,983 Times in 932 Posts

    I didn't know Chevy made a Streetview version too. Do you have a link to his release post? I would love to check it out

  16. The Following 3 Users Say Thank You to The.Drifter For This Useful Post:

    King_O_Hill (04-15-2014), lostinthemes (04-16-2014), Marty McFly (04-15-2014)

  17. #3410
    The Formulator Marty McFly's Avatar
    Join Date
    Mar 2013
    Location
    Barrie
    Posts
    1,310
    Thanks
    4,047
    Thanked 4,566 Times in 1,020 Posts

    Quote Originally Posted by The.Drifter View Post
    I didn't know Chevy made a Streetview version too. Do you have a link to his release post? I would love to check it out
    Sorry bro. Totally meant you!! Post changed.

  18. The Following 3 Users Say Thank You to Marty McFly For This Useful Post:

    King_O_Hill (04-15-2014), lostinthemes (04-16-2014), The.Drifter (04-15-2014)

  19. #3411
    Man of iWidgets The.Drifter's Avatar
    Join Date
    Aug 2012
    Posts
    999
    Thanks
    5,106
    Thanked 6,983 Times in 932 Posts

    Quote Originally Posted by Marty McFly View Post
    Sorry bro. Totally meant you!! Post changed.

  20. The Following 3 Users Say Thank You to The.Drifter For This Useful Post:

    King_O_Hill (04-15-2014), lostinthemes (04-16-2014), Marty McFly (04-15-2014)

  21. #3412
    Addicted to Code Dacal's Avatar
    Join Date
    Nov 2010
    Posts
    1,889
    Thanks
    2,885
    Thanked 8,475 Times in 1,496 Posts

    Quote Originally Posted by MegaTechMann View Post
    Attachment 665554
    Hi guys,
    How can i change the arrow in the compass ? I want to change the "red" arrow 180 degress, so instead pointing "away", point to the right given wind.
    Thank you and take care out there and sorry for my bad english .
    Just replace the arrow.png file in Images/Compass folder with this one.
    Attached Thumbnails Attached Thumbnails Widget Weather-arrow.png  


    My themes : Jade HD, Silex HD, BaSalt HD,ToPaz
    All are on Cydia and/or Theme It.

  22. The Following 7 Users Say Thank You to Dacal For This Useful Post:

    King_O_Hill (04-15-2014), lostinthemes (04-16-2014), MamaJaay (04-15-2014), Marty McFly (04-15-2014), MegaTechMann (04-15-2014), RKO1195 (04-15-2014), The.Drifter (04-15-2014)

  23. #3413
    iPhoneaholic lostinthemes's Avatar
    Join Date
    Dec 2010
    Location
    Istanbul, Turkey
    Posts
    360
    Thanks
    4,756
    Thanked 238 Times in 133 Posts

    Quote Originally Posted by Marty McFly View Post
    Looks like it just needs to be converted to WidgetWeather (update interval then set in the settings app). Either that or use one of Drifter's new widgets. They use Google street view and are widget weather based. I can convert it for you if you want to post a link - or PM - whatever.

    Edit: post changed. I meant Drifter not Chevy. Sorry.
    Thank you very much sir...
    The main problem is that, Google doesnt support streetview in my country
    So here's the link of my iwidget


    https://www.dropbox.com/s/jugicfb02lrbu57/Map.rar

  24. #3414
    Livin the iPhone Life nik1975's Avatar
    Join Date
    Feb 2008
    Location
    Thessaloniki, Greece
    Posts
    1,266
    Thanks
    2,825
    Thanked 917 Times in 562 Posts

    @Marty a little bug of your super ls widget.The wind even is 3km says no wind!See the photo.Also i have a photo of Dacal weather widget for comparisorImageUploadedByModMyi1397651114.844266.jpgImageUploadedByModMyi1397651124.118327.jpg

  25. The Following 2 Users Say Thank You to nik1975 For This Useful Post:

    Marty McFly (04-16-2014), MegaTechMann (04-16-2014)

  26. #3415
    Addicted to Code Dacal's Avatar
    Join Date
    Nov 2010
    Posts
    1,889
    Thanks
    2,885
    Thanked 8,475 Times in 1,496 Posts

    Quote Originally Posted by nik1975 View Post
    @Marty a little bug of your super ls widget.The wind even is 3km says no wind!See the photo.Also i have a photo of Dacal weather widget for comparisorAttachment 665627Attachment 665628
    Mmmmm... Need a little change in the code. Wind direction is probably exactly 0. There is two explaination, depends of the system used : no wind or wind comes from North.

    When i have coded that long times ago, the documentation i have used said 0 = No wind.

    Seems it's not the case with WW or i have done a mistake .

    The code should be someting like that (in the main JavaScript) :

    ...
    if (direction == 0) var winddir = "N";
    ...


    Quote Originally Posted by lostinthemes View Post
    Thank you very much sir...
    The main problem is that, Google doesnt support streetview in my country
    So here's the link of my iwidget


    https://www.dropbox.com/s/jugicfb02lrbu57/Map.rar
    Try and let me know : https://www.dropbox.com/s/ns0h8lqgaczemno/Map.zip

    No need for a complete conversion to WW (just need to activate the myLocation option).
    Last edited by Dacal; 04-16-2014 at 08:19 AM.


    My themes : Jade HD, Silex HD, BaSalt HD,ToPaz
    All are on Cydia and/or Theme It.

  27. The Following 5 Users Say Thank You to Dacal For This Useful Post:

    King_O_Hill (04-16-2014), lostinthemes (04-16-2014), Marty McFly (04-16-2014), nik1975 (04-16-2014), The.Drifter (04-16-2014)

  28. #3416
    Livin the iPhone Life nik1975's Avatar
    Join Date
    Feb 2008
    Location
    Thessaloniki, Greece
    Posts
    1,266
    Thanks
    2,825
    Thanked 917 Times in 562 Posts

    Quote Originally Posted by Dacal View Post
    Mmmmm... Need a little change in the code. Wind direction is probably exactly 0. There is two explaination, depends of the system used : no wind or wind comes from North.

    When i have coded that long times ago, the documentation i have used said 0 = No wind.

    Seems it's not the case with WW or i have done a mistake .

    The code should be someting like that (in the main JavaScript) :





    Try and let me know : https://www.dropbox.com/s/ns0h8lqgaczemno/Map.zip

    No need for a complete conversion to WW (just need to activate the myLocation option).
    Yeah as you can see in your widget photo the wind is 3km from North!

  29. #3417
    Addicted to Code Dacal's Avatar
    Join Date
    Nov 2010
    Posts
    1,889
    Thanks
    2,885
    Thanked 8,475 Times in 1,496 Posts

    Quote Originally Posted by nik1975 View Post
    Yeah as you can see in your widget photo the wind is 3km from North!
    Yes

    0/360 => North.

    In previous widgets (including Marty widget), 0 => No wind.


    My themes : Jade HD, Silex HD, BaSalt HD,ToPaz
    All are on Cydia and/or Theme It.

  30. The Following 4 Users Say Thank You to Dacal For This Useful Post:

    lostinthemes (04-16-2014), Marty McFly (04-16-2014), nik1975 (04-16-2014), The.Drifter (04-16-2014)

  31. #3418
    Livin the iPhone Life nik1975's Avatar
    Join Date
    Feb 2008
    Location
    Thessaloniki, Greece
    Posts
    1,266
    Thanks
    2,825
    Thanked 917 Times in 562 Posts

    Quote Originally Posted by Dacal View Post
    Yes

    0/360 => North.

    In previous widgets (including Marty widget), 0 => No wind.
    Is it easy to fix it by myself?

  32. #3419
    The Formulator Marty McFly's Avatar
    Join Date
    Mar 2013
    Location
    Barrie
    Posts
    1,310
    Thanks
    4,047
    Thanked 4,566 Times in 1,020 Posts

    Quote Originally Posted by Dacal View Post
    Mmmmm... Need a little change in the code. Wind direction is probably exactly 0. There is two explaination, depends of the system used : no wind or wind comes from North.

    When i have coded that long times ago, the documentation i have used said 0 = No wind.

    Seems it's not the case with WW or i have done a mistake .

    The code should be someting like that (in the main JavaScript) :





    Try and let me know : https://www.dropbox.com/s/ns0h8lqgaczemno/Map.zip

    No need for a complete conversion to WW (just need to activate the myLocation option).
    Thank you very much sir! Also, thank you Nik for pointing this out. Bliken let me know about this a while ago but I thought it was a temporary feed issue as how can you have any amount of wind coming from no direction!? But I didn't even think that 0 could just mean coming from the north haha! Simple enough. I will add that to list of changes I want to make!

    Also, thanks for looking at 'lostinthemes' widget!! So the link you posted, does it now look to the xml file for coordinates? I can just download and look for myself I guess - lol.

    @ lostinthemes: I'm a little confused. I thought you said the main issue was when you try to add an update interval it crashes? If Google St view is not available in your area, it won't matter what changes we make. Let me know. Also you are very fortunate that the master (Dacal) looked at your widget as I'm sure any changes he made are much more efficient then anything I would have done!!

    Thanks again guys. Dacal, how's the little one doing??

  33. The Following 6 Users Say Thank You to Marty McFly For This Useful Post:

    bliken (04-16-2014), Dacal (04-16-2014), King_O_Hill (04-16-2014), lostinthemes (04-16-2014), nik1975 (04-16-2014), The.Drifter (04-16-2014)

  34. #3420
    Addicted to Code Dacal's Avatar
    Join Date
    Nov 2010
    Posts
    1,889
    Thanks
    2,885
    Thanked 8,475 Times in 1,496 Posts

    Quote Originally Posted by nik1975 View Post
    Is it easy to fix it by myself?
    Yes,

    Just need to replace a line for your language .

    if (direction == 0) var winddir = "No wind";

    With :

    if (direction == 0) var winddir = "N";

    Quote Originally Posted by Marty McFly View Post
    Thank you very much sir! Also, thank you Nik for pointing this out. Bliken let me know about this a while ago but I thought it was a temporary feed issue as how can you have any amount of wind coming from no direction!? But I didn't even think that 0 could just mean coming from the north haha! Simple enough. I will add that to list of changes I want to make!

    Also, thanks for looking at 'lostinthemes' widget!! So the link you posted, does it now look to the xml file for coordinates? I can just download and look for myself I guess - lol.

    @ lostinthemes: I'm a little confused. I thought you said the main issue was when you try to add an update interval it crashes? If Google St view is not available in your area, it won't matter what changes we make. Let me know. Also you are very fortunate that the master (Dacal) looked at your widget as I'm sure any changes he made are much more efficient then anything I would have done!!

    Thanks again guys. Dacal, how's the little one doing??
    Thx Marty .

    No, i just have corrected a little the script and add a 20 secondes interval to check myLocation.txt. Wait a little to download, i add a test to not update the picture if same coordinates.

    Link updated (same link) : https://www.dropbox.com/s/ns0h8lqgaczemno/Map.zip

    Picture doesn't update if coordinates stay the same.
    Last edited by Dacal; 04-16-2014 at 08:53 AM. Reason: A little change in the script


    My themes : Jade HD, Silex HD, BaSalt HD,ToPaz
    All are on Cydia and/or Theme It.

  35. The Following 6 Users Say Thank You to Dacal For This Useful Post:

    bliken (04-16-2014), King_O_Hill (04-16-2014), lostinthemes (04-16-2014), Marty McFly (04-16-2014), mfisherbsu (04-19-2014), nik1975 (04-16-2014)

LinkBacks (?)

  1. 08-08-2013, 04:14 PM

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