+ Reply
Page 1 of 2 12 LastLast
Results 1 to 20 of 31

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


Thread: HTC Animated Weather Widget issues

is a discussion within the

iPod Service, Warranties, and Repairs

forums, a part of the

General iPod

section;
Hello, I have a problem with HTC Animated Weather Widget for PPHTML + GPS + Calendar. I don't know why this Widget failed. Here I have a picture of my
...
  1. #1
    What's Jailbreak?
    Join Date
    May 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default HTC Animated Weather Widget issues
    Hello,
    I have a problem with HTC Animated Weather Widget for PPHTML + GPS + Calendar.
    I don't know why this Widget failed.
    Here I have a picture of my problem with this widget:


    ( HTC Animated Weather Widget issues-img_0920.png )

    Here you can see no pictures, no weather information and no time.
    Can you help me?

    Thanks.

    Ultrafield

  2. #2
    What's Jailbreak?
    Join Date
    May 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Quote Originally Posted by Ultrafield View Post
    Hello,

    Here you can see no pictures, no weather information and no time.
    Can you help me?

    Thanks.

    Ultrafield
    Hi Ultrafield,

    as I know, the problem is not the weather widget. The problem ist on the yahoo weather page. The widget doesn't get any
    weather information, because yahoo stopped the service to leach it.

    My weather page looks since 2 weeks as yours. I'll try to find more information to get an other weather service, but it is difficult, because i am not a profi in programming. So it still may take a while.

    Greets
    Blue

  3. #3
    What's Jailbreak?
    Join Date
    Apr 2012
    Posts
    2
    Thanks
    3
    Thanked 0 Times in 0 Posts

    im in just to report that mine failed yesterday as well. is there anyway we can edit the .js files
    to pull the same info from another site, such as accuweather.com ?

  4. #4
    What's Jailbreak?
    Join Date
    Feb 2009
    Posts
    4
    Thanks
    0
    Thanked 2 Times in 1 Post
    is there a fix or workaround? not working since .. 2 or 3 days now (not exactly sure).
    thx in advance for any help

  5. #5
    What's Jailbreak?
    Join Date
    Nov 2007
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    This is happening to me too!

  6. #6
    Green Apple Julieebean74's Avatar
    Join Date
    Feb 2010
    Posts
    30
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Im here with you guys, glad to hear Im not the only one, Ive been racking my brain trying to think of something then of course uninstalling and reinstalling, ugh this is making me crazy!!!!!!

  7. #7
    What's Jailbreak?
    Join Date
    Apr 2012
    Posts
    5
    Thanks
    1
    Thanked 2 Times in 1 Post
    man this was driving me nuts thought it was just me that had this issue

  8. #8
    Green Apple Julieebean74's Avatar
    Join Date
    Feb 2010
    Posts
    30
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Can anyone open the weather app?
    Has any one tried this with a 4s Evasion jailbreak and had it work?
    How to manually fix the Weather app issue after jailbreaking with evasi0n

  9. #9
    King Kong ain't got nothing on me! King_O_Hill's Avatar
    Join Date
    Apr 2011
    Location
    USA
    Posts
    8,798
    Thanks
    38,941
    Thanked 16,295 Times in 5,961 Posts

    I can't believe there is a thread for this!

    Yahoo has changed the feed for weather data!

    What does this mean?

    It means that any widget that has code to get anything more than a 1 day forecast from yahoo,
    WILL NOT WORK.

    You can go in to your widget and disable the forecast call from the appropriate JavaScript file!
    Widget-Weather App Now Available! Also with MyLocation Support!
    Check out the thread here - Widget-Weather
    To install the Widget-Weather app, just go to Cydia and install. This will also remove MyLocation, as it is built in!
    Want to protect your JailBreak! Add this repo http://cydia.myrepospace.com/iLEXiNFO/ & Install "iLEX R.A.T."
    It will allow you to bring your phone back to a fresh jailbroken state!

  10. #10
    What's Jailbreak?
    Join Date
    May 2013
    Posts
    2
    Thanks
    1
    Thanked 3 Times in 1 Post
    Hi everyone, I found this on the forums after looking everywhere for the answer. This is for the HTC weather animated 1.1 by davidrom6. Dont forget to disable forecast in the configureme before respring.

    Try the following steps to get the widget back working, showing today's weather and 1 day forecast:

    1. Go to /var/mobile/Library/PerPageHTML/HTCAniPPH/Widget.html

    2. Find this line:
    obj.Day2 = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("day");

    3. Put /* at the start of the line so it looks like this:
    /*obj.Day2 = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("day");

    4. Find this line:
    obj.Day4Code = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("code");

    5. Put */ at the end of the line so it looks like this:
    obj.Day4Code = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("code");*/

    6. Find this line:
    document.getElementById("Day2").innerHTML=Forecast DayNames(obj.Day2);

    7. Put /* at the start of the line so it looks like this:
    /*document.getElementById("Day2").innerHTML=Forecast DayNames(obj.Day2);

    8. Find this line:
    document.getElementById("Day4HiLo").innerHTML=obj. Day4Hi+ " / <font color=#a8a8a8>"+obj.Day4Lo+ "</font>";

    9. Put */ at the end of the line so it looks like this:
    document.getElementById("Day4HiLo").innerHTML=obj. Day4Hi+ " / <font color=#a8a8a8>"+obj.Day4Lo+ "</font>";*/

    10. Save the file and Respring.

  11. The Following 3 Users Say Thank You to GrandeInAVentiCup For This Useful Post:

    AYK (05-27-2013), jtibedo (05-26-2013), punit12 (05-25-2013)

  12. #11
    What's Jailbreak?
    Join Date
    Nov 2007
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Quote Originally Posted by GrandeInAVentiCup View Post
    Hi everyone, I found this on the forums after looking everywhere for the answer. This is for the HTC weather animated 1.1 by davidrom6. Dont forget to disable forecast in the configureme before respring.

    Try the following steps to get the widget back working, showing today's weather and 1 day forecast:

    1. Go to /var/mobile/Library/PerPageHTML/HTCAniPPH/Widget.html

    2. Find this line:
    obj.Day2 = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("day");

    3. Put /* at the start of the line so it looks like this:
    /*obj.Day2 = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("day");

    4. Find this line:
    obj.Day4Code = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("code");

    5. Put */ at the end of the line so it looks like this:
    obj.Day4Code = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("code");*/

    6. Find this line:
    document.getElementById("Day2").innerHTML=Forecast DayNames(obj.Day2);

    7. Put /* at the start of the line so it looks like this:
    /*document.getElementById("Day2").innerHTML=Forecast DayNames(obj.Day2);

    8. Find this line:
    document.getElementById("Day4HiLo").innerHTML=obj. Day4Hi+ " / <font color=#a8a8a8>"+obj.Day4Lo+ "</font>";

    9. Put */ at the end of the line so it looks like this:
    document.getElementById("Day4HiLo").innerHTML=obj. Day4Hi+ " / <font color=#a8a8a8>"+obj.Day4Lo+ "</font>";*/

    10. Save the file and Respring.
    That worked! Thanks a lot!

  13. #12
    What's Jailbreak?
    Join Date
    May 2013
    Posts
    27
    Thanks
    3
    Thanked 0 Times in 0 Posts

    I just stumbled on this page. I've got the same problem. I will try suggestion above and report back.

    Thank you sent! Of course I screwed it up the first try but the second try and it works like a charm. I had already added Dashboard X's weather forecast to replace the HTC Weather Animated forecast so it pretty much looks like it did before.HTC Animated Weather Widget issues-iphone-weather.png
    Last edited by jtibedo; 05-26-2013 at 05:43 AM.

  14. #13
    AYK
    AYK is offline
    What's Jailbreak?
    Join Date
    May 2013
    Posts
    0
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default thinks
    Quote Originally Posted by GrandeInAVentiCup View Post
    Hi everyone, I found this on the forums after looking everywhere for the answer. This is for the HTC weather animated 1.1 by davidrom6. Dont forget to disable forecast in the configureme before respring.

    Try the following steps to get the widget back working, showing today's weather and 1 day forecast:

    1. Go to /var/mobile/Library/PerPageHTML/HTCAniPPH/Widget.html

    2. Find this line:
    obj.Day2 = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("day");

    3. Put /* at the start of the line so it looks like this:
    /*obj.Day2 = request.responseXML.getElementsByTagName("forecast ")[2].getAttribute("day");

    4. Find this line:
    obj.Day4Code = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("code");

    5. Put */ at the end of the line so it looks like this:
    obj.Day4Code = request.responseXML.getElementsByTagName("forecast ")[4].getAttribute("code");*/

    6. Find this line:
    document.getElementById("Day2").innerHTML=Forecast DayNames(obj.Day2);

    7. Put /* at the start of the line so it looks like this:
    /*document.getElementById("Day2").innerHTML=Forecast DayNames(obj.Day2);

    8. Find this line:
    document.getElementById("Day4HiLo").innerHTML=obj. Day4Hi+ " / <font color=#a8a8a8>"+obj.Day4Lo+ "</font>";

    9. Put */ at the end of the line so it looks like this:
    document.getElementById("Day4HiLo").innerHTML=obj. Day4Hi+ " / <font color=#a8a8a8>"+obj.Day4Lo+ "</font>";*/

    10. Save the file and Respring.
    i have only 2 days

  15. #14
    What's Jailbreak? pikos2000's Avatar
    Join Date
    May 2013
    Posts
    5
    Thanks
    0
    Thanked 3 Times in 2 Posts

    Instead of removing the forecast (which is a pretty cool feature to have) - I would rather change the web service to something else that Yahoo. The closest one I found was weather.service.msn.com.

    So what I did on my end was the following:

    1) Use iFunBox or iFile to edit /var/mobile/Library/PerPageHTML/HTCAniPPH/Widget.html
    2) Replace both JavaScript functions 'fetchWeatherData' and 'xml_loaded' with the following:

    function fetchWeatherData(callback, zip) {
    varUnit = isCelsius ? 'c' : 'f';

    url = 'http://weather.service.msn.com/data.aspx?wealocations=wc%3a' + zip + '&culture=en-US&weadegreetype=' + varUnit.toUpperCase() + '&src=outlook';

    var xml_request = new XMLHttpRequest();
    xml_request.onload = function(e) {
    xml_loaded(e, xml_request, callback);
    }

    xml_request.open("GET", url);
    xml_request.setRequestHeader("Cache-Control", "no-cache");
    xml_request.send(null);

    return xml_request;
    }

    function xml_loaded(event, request, callback) {

    if (request.responseXML) {
    var xml = request.responseXML;
    var obj = {
    error : false,
    errorString : null
    };

    obj.city = xml.getElementsByTagName("weather")[0].getAttribute("weatherlocationname");

    var current = xml.getElementsByTagName("current")[0];
    obj.realFeel = current.getAttribute("feelslike");
    obj.temp = current.getAttribute("temperature");
    obj.icon = current.getAttribute("skycode");
    obj.description = current.getAttribute("skytext");

    // we don't have sunset information
    obj.sunset = "00:00";
    obj.sunsethr = "00";
    obj.sunsetmin = "00";

    var forecasts = xml.getElementsByTagName("forecast");

    obj.Today = forecasts[0].getAttribute("shortday");
    obj.TodayHi = forecasts[0].getAttribute("high");
    obj.TodayLo = forecasts[0].getAttribute("low");
    obj.TodayCode = forecasts[0].getAttribute("skycodeday");

    obj.Day1 = forecasts[1].getAttribute("shortday");
    obj.Day1Hi = forecasts[1].getAttribute("high");
    obj.Day1Lo = forecasts[1].getAttribute("low");
    obj.Day1Code = forecasts[1].getAttribute("skycodeday");

    obj.Day2 = forecasts[2].getAttribute("shortday");
    obj.Day2Hi = forecasts[2].getAttribute("high");
    obj.Day2Lo = forecasts[2].getAttribute("low");
    obj.Day2Code = forecasts[2].getAttribute("skycodeday");

    obj.Day3 = forecasts[3].getAttribute("shortday");
    obj.Day3Hi = forecasts[3].getAttribute("high");
    obj.Day3Lo = forecasts[3].getAttribute("low");
    obj.Day3Code = forecasts[3].getAttribute("skycodeday");

    obj.Day4 = forecasts[4].getAttribute("shortday");
    obj.Day4Hi = forecasts[4].getAttribute("high");
    obj.Day4Lo = forecasts[4].getAttribute("low");
    obj.Day4Code = forecasts[4].getAttribute("skycodeday");

    forecastTag = "";

    callback(obj);

    } else {

    callback({
    error : true,
    errorString : "XML request failed. no responseXML"
    });

    }

    }


    3) Enjoy

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

    49wyztoscore (05-28-2013), drjailbreak (05-28-2013)

  17. #15
    What's Jailbreak? drjailbreak's Avatar
    Join Date
    Jun 2010
    Posts
    22
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Default Upload file?
    Is there anyway you can upload your edited file? Also will this work for HTC iWidgets




    Quote Originally Posted by pikos2000 View Post
    Instead of removing the forecast (which is a pretty cool feature to have) - I would rather change the web service to something else that Yahoo. The closest one I found was weather.service.msn.com.

    So what I did on my end was the following:

    1) Use iFunBox or iFile to edit /var/mobile/Library/PerPageHTML/HTCAniPPH/Widget.html
    2) Replace both JavaScript functions 'fetchWeatherData' and 'xml_loaded' with the following:

    function fetchWeatherData(callback, zip) {
    varUnit = isCelsius ? 'c' : 'f';

    url = 'http://weather.service.msn.com/data.aspx?wealocations=wc%3a' + zip + '&culture=en-US&weadegreetype=' + varUnit.toUpperCase() + '&src=outlook';

    var xml_request = new XMLHttpRequest();
    xml_request.onload = function(e) {
    xml_loaded(e, xml_request, callback);
    }

    xml_request.open("GET", url);
    xml_request.setRequestHeader("Cache-Control", "no-cache");
    xml_request.send(null);

    return xml_request;
    }

    function xml_loaded(event, request, callback) {

    if (request.responseXML) {
    var xml = request.responseXML;
    var obj = {
    error : false,
    errorString : null
    };

    obj.city = xml.getElementsByTagName("weather")[0].getAttribute("weatherlocationname");

    var current = xml.getElementsByTagName("current")[0];
    obj.realFeel = current.getAttribute("feelslike");
    obj.temp = current.getAttribute("temperature");
    obj.icon = current.getAttribute("skycode");
    obj.description = current.getAttribute("skytext");

    // we don't have sunset information
    obj.sunset = "00:00";
    obj.sunsethr = "00";
    obj.sunsetmin = "00";

    var forecasts = xml.getElementsByTagName("forecast");

    obj.Today = forecasts[0].getAttribute("shortday");
    obj.TodayHi = forecasts[0].getAttribute("high");
    obj.TodayLo = forecasts[0].getAttribute("low");
    obj.TodayCode = forecasts[0].getAttribute("skycodeday");

    obj.Day1 = forecasts[1].getAttribute("shortday");
    obj.Day1Hi = forecasts[1].getAttribute("high");
    obj.Day1Lo = forecasts[1].getAttribute("low");
    obj.Day1Code = forecasts[1].getAttribute("skycodeday");

    obj.Day2 = forecasts[2].getAttribute("shortday");
    obj.Day2Hi = forecasts[2].getAttribute("high");
    obj.Day2Lo = forecasts[2].getAttribute("low");
    obj.Day2Code = forecasts[2].getAttribute("skycodeday");

    obj.Day3 = forecasts[3].getAttribute("shortday");
    obj.Day3Hi = forecasts[3].getAttribute("high");
    obj.Day3Lo = forecasts[3].getAttribute("low");
    obj.Day3Code = forecasts[3].getAttribute("skycodeday");

    obj.Day4 = forecasts[4].getAttribute("shortday");
    obj.Day4Hi = forecasts[4].getAttribute("high");
    obj.Day4Lo = forecasts[4].getAttribute("low");
    obj.Day4Code = forecasts[4].getAttribute("skycodeday");

    forecastTag = "";

    callback(obj);

    } else {

    callback({
    error : true,
    errorString : "XML request failed. no responseXML"
    });

    }

    }


    3) Enjoy

  18. #16
    What's Jailbreak? pikos2000's Avatar
    Join Date
    May 2013
    Posts
    5
    Thanks
    0
    Thanked 3 Times in 2 Posts

    You aren't lazy to change the files - are you?

    Attaching LockBackground.html.txt (HTC Weather Widget for lock screen) and Widget.html.txt (HTCAniPPH). Make sure to rename both to back to *.html before uploading to either /Library/Themes/HTC Weather Widget 1.7.theme or /var/mobile/Library/PerPageHTML/HTCAniPPH.

    htc_widget_updated_files.zip

    I don't have HTC iWidgets installed - but assume a similar fix would work there too.
    Last edited by pikos2000; 05-28-2013 at 06:46 PM.

  19. The Following User Says Thank You to pikos2000 For This Useful Post:

    drjailbreak (05-28-2013)

  20. #17
    What's Jailbreak? drjailbreak's Avatar
    Join Date
    Jun 2010
    Posts
    22
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Thank you very much. Worked like a charm and I have my forecast back. Thank you so much again
    Last edited by drjailbreak; 05-28-2013 at 07:13 PM.

  21. #18
    What's Jailbreak?
    Join Date
    May 2013
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How come I only have two day forecast. Thanks

    Everything works fine bar the forecast. I only have 2 days. How do I change it back to normal 5 day forecast? Thanks

  22. #19
    What's Jailbreak? pikos2000's Avatar
    Join Date
    May 2013
    Posts
    5
    Thanks
    0
    Thanked 3 Times in 2 Posts

    You probably followed the recommendation from GrandeInAVentiCup (reply #13) and commented out the forecast days. Just undo what ever you did (take the comments out) and it should come up as expected.

  23. #20
    King Kong ain't got nothing on me! King_O_Hill's Avatar
    Join Date
    Apr 2011
    Location
    USA
    Posts
    8,798
    Thanks
    38,941
    Thanked 16,295 Times in 5,961 Posts

    You can use Yahoo's forecast. It now gives up to a 10 day forecast just need a small change to the XML call in the main js file.

    var url="http://xml.weather.yahoo.com/forecastrss/" + zip + "_" + tempUnit + ".xml";

    ...to this...

    var url="http://xml.weather.yahoo.com/forecastrss/"+zip+"&u="+tempUnit+"&d=5.xml";

    For d=5 is the number of days of forecast that you want. Change from 2-10!

    Enjoy!
    Last edited by King_O_Hill; 05-30-2013 at 09:48 PM.
    Widget-Weather App Now Available! Also with MyLocation Support!
    Check out the thread here - Widget-Weather
    To install the Widget-Weather app, just go to Cydia and install. This will also remove MyLocation, as it is built in!
    Want to protect your JailBreak! Add this repo http://cydia.myrepospace.com/iLEXiNFO/ & Install "iLEX R.A.T."
    It will allow you to bring your phone back to a fresh jailbroken state!

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