Page 169 of 216 FirstFirst ... 69 119 159167168169170171 179 ... LastLast
Results 3,361 to 3,380 of 4310

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


Thread: Widget Weather

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

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

    Dacal (04-14-2014)

  3. #3362
    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.

  4. 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)

  5. #3363
    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

  6. 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)

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

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

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

  9. #3365
    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?

    -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>

  10. #3366
    -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 .

  11. #3367
    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.

  12. 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)

  13. #3368
    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

  14. 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)

  15. #3369
    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.

  16. 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)

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

  18. 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)

  19. #3371
    Quote Originally Posted by MegaTechMann View Post
    -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 .
    Just replace the arrow.png file in Images/Compass folder with this one.
    Attached Thumbnails Attached Thumbnails -arrow.png  


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

  20. 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)

  21. #3372
    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

  22. #3373
    Livin the iPhone Life nik1975's Avatar
    Join Date
    Feb 2008
    Location
    Thessaloniki, Greece
    Posts
    1,425
    Thanks
    3,267
    Thanked 1,130 Times in 659 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

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

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

  24. #3374
    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 comparisorImageUploadedByModMyi1397651114.844266.jpgImageUploadedByModMyi1397651124.118327.jpg
    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 09:19 AM.


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

  25. 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)

  26. #3375
    Livin the iPhone Life nik1975's Avatar
    Join Date
    Feb 2008
    Location
    Thessaloniki, Greece
    Posts
    1,425
    Thanks
    3,267
    Thanked 1,130 Times in 659 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!

  27. #3376
    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.

  28. 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)

  29. #3377
    Livin the iPhone Life nik1975's Avatar
    Join Date
    Feb 2008
    Location
    Thessaloniki, Greece
    Posts
    1,425
    Thanks
    3,267
    Thanked 1,130 Times in 659 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?

  30. #3378
    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??

  31. 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)

  32. #3379
    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 09: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.

  33. 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)

  34. #3380
    Livin the iPhone Life nik1975's Avatar
    Join Date
    Feb 2008
    Location
    Thessaloniki, Greece
    Posts
    1,425
    Thanks
    3,267
    Thanked 1,130 Times in 659 Posts

    Thanks Dacal!

Page 169 of 216 FirstFirst ... 69 119 159167168169170171 179 ... 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
  •