Page 77 of 82 FirstFirst ... 27677576777879 ... LastLast
Results 1,521 to 1,540 of 1621

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


Thread: Widget Weather 2.0 - New and Extemely Improved

  1. #1521
    Default Widget Weather 2.0 - New and Extemely Improved
    So hopefully one of you gurus can help me out. I recently modded a LS and I'm trying to change the way the clock is displayed. The Main.js has this:

    -imageuploadedbymodmyi1457804046.707876.jpg

    The only thing I'm doing is trying to do is separate the hours and minutes into individual containers. I would like to be able to place the hours and minutes separately at different placements on the screen. I had done this:

    -imageuploadedbymodmyi1457804296.115947.jpg

    But I don't think it's working correctly.One user isn't getting the time to display, I believe it's because his country uses
    24hr format. Any help would be appreciated.

    Here's the widget
    -imageuploadedbymodmyi1457804473.971652.jpg

    https://www.dropbox.com/s/08lg23xv5w...LSWW2.zip?dl=0
    Here is a link to my public folder where you will find iWidgets/Lockscreen Widgets/and misc. things I have created
    https://www.dropbox.com/sh/mwr4pbu5i...4gxv1RjBa?dl=0

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

    Marco_Gottuso (2016-03-13), Marty McFly (2016-03-19)

  3. #1522
    Anyone able to test this on 9.1? I don't have any devices on 9.1, so I can't test.

    Check out WW3 for iOS 9/10 - Widget-Weather 3.0

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

    Pois0nDF (2016-03-14)

  5. #1523
    Quote Originally Posted by Pois0nDF View Post
    So hopefully one of you gurus can help me out. I recently modded a LS and I'm trying to change the way the clock is displayed. The Main.js has this:

    The only thing I'm doing is trying to do is separate the hours and minutes into individual containers. I would like to be able to place the hours and minutes separately at different placements on the screen. I had done this:

    But I don't think it's working correctly.One user isn't getting the time to display, I believe it's because his country uses
    24hr format. Any help would be appreciated.

    Here's the widget
    -imageuploadedbymodmyi1457804473.971652.jpg

    https://www.dropbox.com/s/08lg23xv5w...LSWW2.zip?dl=0
    Hey bro. Just took a look at this for you. Easy fix. All you need to do is move the 3 lines in red outside of the if statement. Currently, it is like this....

    Code:
    if (ampm == false) {
    		timeOfDay = "";
    		currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
    		currentTimeString = currentHours + ":" + currentMinutes;
    	} else {
    		currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
    //		currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
    		currentHours = ( currentHours == 0 ) ? 12 : currentHours;
    		currentTimeString = currentHours + ":" + currentMinutes + " " + timeOfDay;
           document.getElementById("hour").innerHTML = currentHours;
           document.getElementById("minute").innerHTML = currentMinutes;
           document.getElementById("ampm").innerHTML = timeOfDay;
    	}
    
         document.getElementById("weekday").innerHTML = days[currentTime.getDay()];
    Change to this...

    Code:
    	if (ampm == false) {
    		timeOfDay = "";
    		currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
    		currentTimeString = currentHours + ":" + currentMinutes;
    	} else {
    		currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
    //		currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
    		currentHours = ( currentHours == 0 ) ? 12 : currentHours;
    		currentTimeString = currentHours + ":" + currentMinutes + " " + timeOfDay;
    	}
    
           document.getElementById("hour").innerHTML = currentHours;
           document.getElementById("minute").innerHTML = currentMinutes;
           document.getElementById("ampm").innerHTML = timeOfDay;
           document.getElementById("weekday").innerHTML = days[currentTime.getDay()];
    Let me know if that does it for you. Cheers bro.

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

    #m37h{ (2016-03-19), King_O_Hill (2016-03-19), kristatos (2016-03-20), Marco_Gottuso (2016-03-19), NewD (2016-03-19)

  7. #1524
    Quote Originally Posted by Marty McFly View Post
    Hey bro. Just took a look at this for you. Easy fix. All you need to do is move the 3 lines in red outside of the if statement. Currently, it is like this....

    Code:
    if (ampm == false) {
    timeOfDay = "";
    currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
    currentTimeString = currentHours + ":" + currentMinutes;
    } else {
    currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
    //currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
    currentHours = ( currentHours == 0 ) ? 12 : currentHours;
    currentTimeString = currentHours + ":" + currentMinutes + " " + timeOfDay;
           document.getElementById("hour").innerHTML = currentHours;
           document.getElementById("minute").innerHTML = currentMinutes;
           document.getElementById("ampm").innerHTML = timeOfDay;
    }
    
         document.getElementById("weekday").innerHTML = days[currentTime.getDay()];
    Change to this...

    Code:
    if (ampm == false) {
    timeOfDay = "";
    currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
    currentTimeString = currentHours + ":" + currentMinutes;
    } else {
    currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
    //currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
    currentHours = ( currentHours == 0 ) ? 12 : currentHours;
    currentTimeString = currentHours + ":" + currentMinutes + " " + timeOfDay;
    }
    
           document.getElementById("hour").innerHTML = currentHours;
           document.getElementById("minute").innerHTML = currentMinutes;
           document.getElementById("ampm").innerHTML = timeOfDay;
           document.getElementById("weekday").innerHTML = days[currentTime.getDay()];
    Let me know if that does it for you. Cheers bro.
    Thank you that works


    Gesendet von iPhone6s+ mit Tapatalk

  8. The Following User Says Thank You to Marco_Gottuso For This Useful Post:

    Marty McFly (2016-03-19)

  9. #1525
    Thanks Marty for looking at that for me. I'll make the adjustments. Thank you for your help.
    Here is a link to my public folder where you will find iWidgets/Lockscreen Widgets/and misc. things I have created
    https://www.dropbox.com/sh/mwr4pbu5i...4gxv1RjBa?dl=0

  10. The Following 3 Users Say Thank You to Pois0nDF For This Useful Post:

    Jesus™ (2016-03-22), Marco_Gottuso (2016-03-25), Marty McFly (2016-03-19)

  11. #1526
    Default Widget Weather 2.0 - New and Extemely Improved
    Ok I've installed widget weather2 have .xml file in docs/have a compatible widget but not displaying my weather?i have tried fixed/gps have my location/writing enabled,have rebooted but nothing?any help would be great.
    Many thanks
    -imageuploadedbymodmyi1458998421.385508.jpg

  12. #1527
    Quote Originally Posted by Bulldog5278 View Post
    Ok I've installed widget weather2 have .xml file in docs/have a compatible widget but not displaying my weather?i have tried fixed/gps have my location/writing enabled,have rebooted but nothing?any help would be great.
    Many thanks
    Make sure that permissions of your documents folder are set to read, write, execute like in this pic-imageuploadedbymodmyi1458999646.445434.jpg You should also reboot your phone if this is your first time using WidgetWeather.

  13. #1528
    Ah ok I'll do that now,thank you

  14. #1529
    Ok done that but still same prob,
    -imageuploadedbymodmyi1459000219.205258.jpg
    -imageuploadedbymodmyi1459000236.912125.jpg

  15. #1530
    Code Dependent NewD's Avatar
    Join Date
    Jan 2012
    Location
    Northeast US
    Posts
    5,709
    Thanks
    8,335
    Thanked 16,464 Times in 7,696 Posts

    Is there an XML file in your documents folder? If so open the XML file and see if there's a value in 'updatetimestring'. Yes or no?

  16. The Following User Says Thank You to NewD For This Useful Post:

    Bulldog5278 (2016-03-26)

  17. #1531
    Default Widget Weather 2.0 - New and Extemely Improved
    Edit
    Last edited by Bulldog5278; 2016-03-26 at 06:02 PM.

  18. #1532
    iPhone? More like MyPhone jiban34's Avatar
    Join Date
    Mar 2014
    Location
    East Java, Indonesia
    Posts
    177
    Thanks
    212
    Thanked 623 Times in 119 Posts

    Quote Originally Posted by Bulldog5278 View Post
    Ok I've installed widget weather2 have .xml file in docs/have a compatible widget but not displaying my weather?i have tried fixed/gps have my location/writing enabled,have rebooted but nothing?any help would be great.
    Many thanks
    -imageuploadedbymodmyi1458998421.385508.jpg
    anyone can fix this?
    same on me

  19. #1533
    Default Widget Weather 2.0 - New and Extemely Improved
    Added yes in updatetime string,
    -imageuploadedbymodmyi1459005329.953502.jpg
    Thank you NewD🏻
    Last edited by Bulldog5278; 2016-03-26 at 05:18 PM.

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

    Mary48336 (2016-03-27), NewD (2016-03-26)

  21. #1534
    When I respring I have to re-add yes each time in to the updatetime string?

  22. #1535
    There's an issue with your feed. We've seen this happen on an extremely limited number of people. I can't remember what we did for a workaround, but when that data is missing, it breaks the entire widget.

    Check out WW3 for iOS 9/10 - Widget-Weather 3.0

  23. The Following User Says Thank You to King_O_Hill For This Useful Post:

    Bulldog5278 (2016-03-26)

  24. #1536
    Ah ok thought it was something I was doing incorrect,thanks for the heads up🏻

  25. #1537
    iPhone? More like MyPhone jiban34's Avatar
    Join Date
    Mar 2014
    Location
    East Java, Indonesia
    Posts
    177
    Thanks
    212
    Thanked 623 Times in 119 Posts

    Quote Originally Posted by Bulldog5278 View Post
    Added yes in updatetime string,
    -imageuploadedbymodmyi1459005329.953502.jpg
    Thank you NewD🏻
    can u show me the script of .xml?

  26. #1538
    It should be in your documents folder like this,-imageuploadedbymodmyi1459008400.118176.jpg

  27. #1539
    iPhone? More like MyPhone jiban34's Avatar
    Join Date
    Mar 2014
    Location
    East Java, Indonesia
    Posts
    177
    Thanks
    212
    Thanked 623 Times in 119 Posts

    Default Widget Weather 2.0 - New and Extemely Improved
    Quote Originally Posted by Bulldog5278 View Post
    It should be in your documents folder like this,-imageuploadedbymodmyi1459008400.118176.jpg
    i know that, i mean, show me word "yes" in updatetime string

  28. #1540
    I added yes here.<updatetimestring>yes</updatetimestring>

Page 77 of 82 FirstFirst ... 27677576777879 ... 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
  •