1. NewD's Avatar
    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?
    2014-04-14 03:19 PM
  2. Dacal's Avatar
    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 :

    http://modmyi.com/forums/file-mods/8...ml#post7057532

    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.
    2014-04-14 03:23 PM
  3. Smitbeat's Avatar
    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
    2014-04-14 07:34 PM
  4. dragonjo8's Avatar
    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:

    http://modmyi.com/forums/file-mods/8...ml#post7063389
    2014-04-15 12:23 AM
  5. lostinthemes's Avatar
    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>
    2014-04-15 03:20 PM
  6. MegaTechMann's Avatar
    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 .
    2014-04-15 03:36 PM
  7. Marty McFly's Avatar
    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.
    Last edited by Marty McFly; 2014-04-15 at 04:01 PM.
    2014-04-15 03:46 PM
  8. The.Drifter's Avatar
    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
    2014-04-15 03:57 PM
  9. Marty McFly's Avatar
    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.
    2014-04-15 04:02 PM
  10. The.Drifter's Avatar
    Sorry bro. Totally meant you!! Post changed.
    2014-04-15 04:09 PM
  11. Dacal's Avatar
    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 .
    Just replace the arrow.png file in Images/Compass folder with this one.
    Attached Thumbnails Widget Weather-arrow.png  


    My themes : Jade HD, Silex HD, BaSalt HD,ToPaz
    All are on Cydia and/or Theme It.
    2014-04-15 04:21 PM
  12. lostinthemes's Avatar
    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
    2014-04-16 01:39 PM
  13. nik1975's Avatar
    @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
    2014-04-16 03:25 PM
  14. Dacal's Avatar
    @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";
    ...


    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; 2014-04-16 at 05:19 PM.


    My themes : Jade HD, Silex HD, BaSalt HD,ToPaz
    All are on Cydia and/or Theme It.
    2014-04-16 04:16 PM
  15. nik1975's Avatar
    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!
    2014-04-16 05:17 PM
  16. Dacal's Avatar
    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.
    2014-04-16 05:21 PM
  17. nik1975's Avatar
    Yes

    0/360 => North.

    In previous widgets (including Marty widget), 0 => No wind.
    Is it easy to fix it by myself?
    2014-04-16 05:29 PM
  18. Marty McFly's Avatar
    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??
    2014-04-16 05:30 PM
  19. Dacal's Avatar
    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";

    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; 2014-04-16 at 05:53 PM. Reason: A little change in the script


    My themes : Jade HD, Silex HD, BaSalt HD,ToPaz
    All are on Cydia and/or Theme It.
    2014-04-16 05:39 PM
  20. nik1975's Avatar
    Thanks Dacal!
    2014-04-16 06:09 PM
4,318 ... 69119159167168169170171179 ...
LINK TO POST COPIED TO CLIPBOARD