Page 18 of 21 FirstFirst ... 81617181920 ... LastLast
Results 341 to 360 of 410

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


Thread: How to add weather widget to homescreen

  1. #341
    Quote Originally Posted by CyberGreg View Post
    Works fine on both my iPod and iPhone...
    As I tried to have just the weather icon put up to my home screen with WbApp and it does not work!? I will ask u what´s wrong? When I fill in location and push Done at the keyboard nothing happen. The keyboard just stay there and I can´t apply anything under it!? So therefor I can´t use it right?? I am on 2.1 too.
    //Hack´z

    8GB 1:st gen. FW 3.1.2 Pwnage v3.1.4, 16GB 1:st gen. FW 3.1.2 Pwnage v3.1.4, 16GB 3Gs FW 3.1.3 Factory Unlock'd & Jailbroken Pwnage v3.1.4, 32GB 3Gs FW 4.0.1 Factory Unlock'd & Jailbroken jbme.com
    16GB 4G FW 4..2.1 Factory Unlock'd & Jailbroken GP
    16GB iPad WiFi FW 4.2.1 Jailbroken GP, 32GB iPad WiFi+3G FW 4.2.1 Jailbroken GP, ATV2 fw 4.2.1 Jailbroken GP
    MacBookPro OS X 10.6.6 1TB HD

  2. #342
    Livin the iPhone Life nickh's Avatar
    Join Date
    Sep 2007
    Location
    Melbourne, Australia
    Posts
    1,216
    Thanks
    66
    Thanked 148 Times in 118 Posts

    You can use it, after you type ur settings in, Hit Hide Kybd/Selector button, this will drop keyboard down. Hit, Save: Widget button, then respring, you should be good then.

  3. #343
    Quote Originally Posted by nickh View Post
    You can use it, after you type ur settings in, Hit Hide Kybd/Selector button, this will drop keyboard down. Hit, Save: Widget button, then respring, you should be good then.
    Of coz...stupid me!
    My english must had been gone when read....or my eyes...
    Thx anyway mate.
    //Hack´z

    8GB 1:st gen. FW 3.1.2 Pwnage v3.1.4, 16GB 1:st gen. FW 3.1.2 Pwnage v3.1.4, 16GB 3Gs FW 3.1.3 Factory Unlock'd & Jailbroken Pwnage v3.1.4, 32GB 3Gs FW 4.0.1 Factory Unlock'd & Jailbroken jbme.com
    16GB 4G FW 4..2.1 Factory Unlock'd & Jailbroken GP
    16GB iPad WiFi FW 4.2.1 Jailbroken GP, 32GB iPad WiFi+3G FW 4.2.1 Jailbroken GP, ATV2 fw 4.2.1 Jailbroken GP
    MacBookPro OS X 10.6.6 1TB HD

  4. #344
    Livin the iPhone Life nickh's Avatar
    Join Date
    Sep 2007
    Location
    Melbourne, Australia
    Posts
    1,216
    Thanks
    66
    Thanked 148 Times in 118 Posts

    Pleasure!

  5. #345
    I am on 21. did everything I think I was supposed to. I get the city and temp on the left but blue box with question mark for icons. How do I fix that?

  6. #346
    I used the tidbits houdini7 provided, modified it some and added the glass orb icon set.
    Last edited by Nefarious; 09-27-2008 at 11:37 AM.

  7. #347
    works fine so far thank you! *it's cold in montreal*

  8. #348
    What's Jailbreak? broooke's Avatar
    Join Date
    Sep 2008
    Location
    Memphis, TN
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Last edited by broooke; 09-22-2008 at 12:42 AM.

  9. #349
    Livin the iPhone Life nickh's Avatar
    Join Date
    Sep 2007
    Location
    Melbourne, Australia
    Posts
    1,216
    Thanks
    66
    Thanked 148 Times in 118 Posts

    ^^^ Nice!!

  10. The Following User Says Thank You to nickh For This Useful Post:

    broooke (09-22-2008)

  11. #350
    What's Jailbreak? broooke's Avatar
    Join Date
    Sep 2008
    Location
    Memphis, TN
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Quote Originally Posted by nickh View Post
    ^^^ Nice!!
    Thanks! Been working on that all night lol.

  12. #351
    howd u get all ur icons, on the right like that. blank apps?

  13. #352
    Quote Originally Posted by wgm214 View Post
    howd u get all ur icons, on the right like that. blank apps?
    Add this source to Cydia, and download as many blank apps as you need.

    apt.steffwiz.com
    Last edited by Nefarious; 09-22-2008 at 08:54 AM.

  14. The Following User Says Thank You to Nefarious For This Useful Post:

    drgopoos (12-20-2008)

  15. #353
    I just updated my cydia and swirley mms and now my weather doesn't show anything. Anyone else hving this problem??????

  16. #354

  17. #355
    My iPhone is a Part of Me
    Join Date
    May 2008
    Location
    Scranton
    Posts
    592
    Thanks
    165
    Thanked 202 Times in 157 Posts

    Quote Originally Posted by ProjectGSX View Post
    How to integrate Weather Widget with wallpaper.html file:

    What you are doing is combining the Weather widget theme with the wallpaper theme. For me, I used Time of Day which changes your wallpaper based on what time of day it is.

    First, copy all of the files from your Weather Widgets 'private' folder into the other themes private folder.

    Next, you need to move the relevant data from the Weather Widget wallpaper.html file into the other themes wallpaper.html file. This is the tricky part. The data that you move has to be put into the correct area of the other file. See the attached image which lists the four sections of data that need to be moved.

    Now, the two body tag references already existed in the other themes wallpaper.html file, but they were different. I replaced the first one and then in the second one, just changed the ="" part to onload(). The two script tags have to go inside of the header area of the new file. So look for the header close tag and paste them above that. The final section of div tags has to go inside of the body tags, so find the close body tag and post them above that.

    If you have basic html understanding, combining two themes shouldnt be that hard. Or maybe Time of Day is just really easy to work with, I dont know.

    Finally, make sure you deactivate the Weather Widget in WinterBoard, as your wallpaper theme is now providing that service. You can also remove the old weather widget theme folder.

    This is what worked for me. Cant say its going to work for you, but I dont see why it wouldnt. The key is moving the right Weather Widget data to the right area of your new theme. Good luck!

    Hi
    maybe you can help me i got this to work with the Time of Day Theme ....but im trying to get it to work with the iHour theme....i changed the folder in iHour theme from wallpapers to private and copied the weather widget folder there....no i am trying to edit the wallpaper.html file with no luck...

    i can get the wallpapers to show with no weatherwidget or i get the weather widget to show with no wallpapers

    here is the code for when the wallpapers work
    <html>
    <head>

    <title>Private</title>



    <script>


    var popunder=""


    var once_per_session=0


    function get_cookie(Name) {
    var search = Name + "="
    var returnvalue = "";
    if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
    offset += search.length
    // set index of beginning of value
    end = document.cookie.indexOf(";", offset);
    // set index of end of cookie value
    if (end == -1)
    end = document.cookie.length;


    returnvalue=unescape(document.cookie.substring(off set,

    end))
    }
    }
    return returnvalue;
    }

    function loadornot(){
    if (get_cookie('popunder')==''){
    loadpopunder()
    document.cookie="popunder=yes"
    }
    }

    function loadpopunder(){

    }

    if (once_per_session==0)
    loadpopunder()
    else
    loadornot()

    <style>
    body {
    background-color: black;
    margin: 0;
    padding: 20px 0 0 0;
    height: 442px;
    width: 320px;
    }

    img {
    -webkit-transition-property: opacity;
    -webkit-transition-duration: 2s;
    position: absolute;
    width: 320px;
    height: auto;
    }

    img.fade-out {
    opacity: 0;
    }

    img.fade-in {
    opacity: 1;
    }
    </style>

    </script language="JavaScript">

    </head>
    <body onload="onLoad"()>


    <script language="JavaScript">



    day=new Date() //..get the date

    x=day.getHours() //..get the hour

    if(x>=0 && x<1) {

    document.write('<body background="./Private/1.jpg">')

    } else

    if(x>=1 && x<2) {

    document.write('<body background="./Private/2.jpg">')

    } else

    if (x>=2 && x<3) {

    document.write('<body background="./Private/3.jpg">')

    } else

    if (x>=3 && x<4) {

    document.write('<body background="./Private/4.jpg">')

    } else

    if (x>=4 && x<5) {

    document.write('<body background="./Private/5.jpg">')

    } else

    if (x>=5 && x<6) {

    document.write('<body background="./Private/6.jpg">')

    } else

    if (x>=6 && x<7) {

    document.write('<body background="./Private/7.jpg">')

    } else

    if (x>=7 && x<8) {

    document.write('<body background="./Private/8.jpg">')

    } else

    if (x>=8 && x<9) {

    document.write('<body background="./Private/9.jpg">')

    } else

    if (x>=9 && x<10) {

    document.write('<body background="./Private/10.jpg">')

    } else

    if (x>=10 && x<11) {

    document.write('<body background="./Private/11.jpg">')

    } else

    if (x>=11 && x<12) {

    document.write('<body background="./Private/12.jpg">')

    } else

    if (x>=12 && x<13) {

    document.write('<body background="./Private/13.jpg">')

    } else

    if (x>=13 && x<14) {

    document.write('<body background="./Private/14.jpg">')

    } else

    if (x>=14 && x<15) {

    document.write('<body background="./Private/15.jpg">')

    } else

    if (x>=15 && x<16) {

    document.write('<body background="./Private/16.jpg">')

    } else

    if (x>=16 && x<17) {

    document.write('<body background="./Private/17.jpg">')

    } else

    if (x>=17 && x<18) {

    document.write('<body background="./Private/18.jpg">')

    } else

    if (x>=18 && x<19) {

    document.write('<body background="./Private/19.jpg">')

    } else

    if (x>=19 && x<20) {

    document.write('<body background="./Private/20.jpg">')

    } else

    if (x>=20 && x<21) {

    document.write('<body background="./Private/21.jpg">')

    } else

    if (x>=21 && x<22) {

    document.write('<body background="./Private/22.jpg">')

    } else

    if (x>=22 && x<23) {

    document.write('<body background="./Private/23.jpg">')

    } else

    if (x>=23 && x<24) {

    document.write('<body background="./Private/24.jpg">')
    }


    </script>

    <script type="text/javascript" src="configureMe.js"/>

    <script type="text/javascript" src="Wallpaper.js"/>

    </head>
    <body style="color: black" onload="onLoad()">
    <div id="WeatherContainer">
    <div id="TextContainer">
    <p id="city">Loading</p>
    <p id="temp">-º</p>
    <p id="desc">-</p>
    </div>
    <img id="weatherIcon" src=""/>
    </div>





    </body>
    </html>

    and here is the code when i try and get them both to work and only the weatherwidget works no wallpapers

    <html>
    <head>
    <base href="Private/"/>
    <!--meta name="viewport" content="width=320, minimum-scale=1.0, maximum-scale=1.0"/-->
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>


    <title>Private</title>



    <script>


    var popunder=""


    var once_per_session=0


    function get_cookie(Name) {
    var search = Name + "="
    var returnvalue = "";
    if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
    offset += search.length
    // set index of beginning of value
    end = document.cookie.indexOf(";", offset);
    // set index of end of cookie value
    if (end == -1)
    end = document.cookie.length;
    returnvalue=unescape(document.cookie.substring(off set, end))
    }
    }
    return returnvalue;
    }

    function loadornot(){
    if (get_cookie('popunder')==''){
    loadpopunder()
    document.cookie="popunder=yes"
    }
    }

    function loadpopunder(){

    }

    if (once_per_session==0)
    loadpopunder()
    else
    loadornot()

    <style>
    body {
    background-color: black;
    margin: 0;
    padding: 20px 0 0 0;
    height: 442px;
    width: 320px;
    }

    img {
    -webkit-transition-property: opacity;
    -webkit-transition-duration: 2s;
    position: absolute;
    width: 320px;
    height: auto;
    }

    img.fade-out {
    opacity: 0;
    }

    img.fade-in {
    opacity: 1;
    }
    </style>
    <script language="JavaScript">

    onLoad=window.setTimeout("location.href='Wallpaper .html'",30000)>


    <script language="JavaScript">



    day=new Date() //..get the date

    x=day.getHours() //..get the hour

    if(x>=0 && x<1) {

    document.write('<body background="./Private/1.jpg">')

    } else

    if(x>=1 && x<2) {

    document.write('<body background="./Private/2.jpg">')

    } else

    if (x>=2 && x<3) {

    document.write('<body background="./Private/3.jpg">')

    } else

    if (x>=3 && x<4) {

    document.write('<body background="./Private/4.jpg">')

    } else

    if (x>=4 && x<5) {

    document.write('<body background="./Private/5.jpg">')

    } else

    if (x>=5 && x<6) {

    document.write('<body background="./Private/6.jpg">')

    } else

    if (x>=6 && x<7) {

    document.write('<body background="./Private/7.jpg">')

    } else

    if (x>=7 && x<8) {

    document.write('<body background="./Private/8.jpg">')

    } else

    if (x>=8 && x<9) {

    document.write('<body background="./Private/9.jpg">')

    } else

    if (x>=9 && x<10) {

    document.write('<body background="./Private/10.jpg">')

    } else

    if (x>=10 && x<11) {

    document.write('<body background="./Private/11.jpg">')

    } else

    if (x>=11 && x<12) {

    document.write('<body background="./Private/12.jpg">')

    } else

    if (x>=12 && x<13) {

    document.write('<body background="./Private/13.jpg">')

    } else

    if (x>=13 && x<14) {

    document.write('<body background="./Private/14.jpg">')

    } else

    if (x>=14 && x<15) {

    document.write('<body background="./Private/15.jpg">')

    } else

    if (x>=15 && x<16) {

    document.write('<body background="./Private/16.jpg">')

    } else

    if (x>=16 && x<17) {

    document.write('<body background="./Private/17.jpg">')

    } else

    if (x>=17 && x<18) {

    document.write('<body background="./Private/18.jpg">')

    } else

    if (x>=18 && x<19) {

    document.write('<body background="./Private/19.jpg">')

    } else

    if (x>=19 && x<20) {

    document.write('<body background="./Private/20.jpg">')

    } else

    if (x>=20 && x<21) {

    document.write('<body background="./Private/21.jpg">')

    } else

    if (x>=21 && x<22) {

    document.write('<body background="./Private/22.jpg">')

    } else

    if (x>=22 && x<23) {

    document.write('<body background="./Private/23.jpg">')

    } else

    if (x>=23 && x<24) {

    document.write('<body background="./Private/24.jpg">')
    }


    </script>

    <script type="text/javascript" src="configureMe.js"/>

    <script type="text/javascript" src="Wallpaper.js"/>

    </head>
    <body style="color: black" onload="onLoad()">
    <div id="WeatherContainer">
    <div id="TextContainer">
    <p id="city">Loading</p>
    <p id="temp">-º</p>
    <p id="desc">-</p>
    </div>
    <img id="weatherIcon" src=""/>
    </div>





    </body></html>

    if someone can help me i would appreciate it....thank you
    If I Helped You Hit The Thanks Button

  18. #356
    My iPhone is a Part of Me
    Join Date
    May 2008
    Location
    Scranton
    Posts
    592
    Thanks
    165
    Thanked 202 Times in 157 Posts

    im not sure what happened to my last post but the page will not let me edit it
    Hi
    maybe you can help me i got this to work with the Time of Day Theme ....but im trying to get it to work with the iHour theme....i changed the folder in iHour theme from wallpapers to private and copied the weather widget folder there....no i am trying to edit the wallpaper.html file with no luck...

    i can get the wallpapers to show with no weatherwidget or i get the weather widget to show with no wallpapers

    .......here are the to files maybe someone can help me...thank you
    Attached Files Attached Files
    If I Helped You Hit The Thanks Button

  19. #357
    Guys!
    Is it possible to use Saurik theme (when wallpaper changing every 15 seconds) + Weather app widget???

    Any advise?
    iPhone 4 (4.2.1) Jailbreak

  20. #358
    Retired Moderator one1's Avatar
    Join Date
    Sep 2007
    Location
    In my own little world
    Posts
    10,317
    Thanks
    349
    Thanked 1,180 Times in 730 Posts

    I love the weather widget idea, but attempting to get it to work with "apple backgrounds" is pissing me off.

  21. #359
    I got my html wallaper/locksreen to work with the widget successfully.

    I am no good at explaining things by typing them. But here is my try.

    Take the parts that I circled in orange copy and paste them into the html script for you wallpaper if ya know what I mean.



    Now insert the first part I circled right below the /style> like I did in my pic. Do the same thing with the second circled part like in the pic also.



    Do the exact same thing with the lockbackground also.

    Now take the attached file I added and put the wallapaper.js into the same folder where your pictures are located which in my case it is the folder called Private. This revised Wallpaper.js file pulls all the needed "stuff" from the "/Library/Themes/WbWeatherWidget.theme" folder.

    All you have to do is disable any other weather weather widget that you have running in WB or WBapp and only activate the wallpaper.html theme in WB what ever you called it.

    If you configured the widget in the first place you should have the correct location of the weather and it should show up. If you use WBapp you can configure the weather widget through that and when you respring it then it should update it instantly.

    Yeah I know I'm no good at explaining things but if some one else understands me please post your very own guide to help others.

    The only problem I had with this is when the wallpaper since mine is a slideshow, the text for it saying the city and temp will flash with the wallpaper but the weather icon stays if any one knows how to fix this please do tell.

    If this doesnt help very well let me know I'll try to repost with better instructions.
    Attached Files Attached Files

  22. #360
    Figured out my problem. Take out the /div> part at the end of the second part I circled orange. I also decided to make a video since I suck at explaining things.

Page 18 of 21 FirstFirst ... 81617181920 ... 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
  •