1. Ultrafield's Avatar
    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
    2013-05-06 08:54 PM
  2. bluebyte.kn's Avatar
    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
    2013-05-21 03:11 PM
  3. oloung1's Avatar
    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 ?
    2013-05-21 04:04 PM
  4. itsmee's Avatar
    is there a fix or workaround? not working since .. 2 or 3 days now (not exactly sure).
    thx in advance for any help
    2013-05-21 06:25 PM
  5. punit12's Avatar
    This is happening to me too!
    2013-05-22 01:49 PM
  6. Julieebean74's Avatar
    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!!!!!!
    2013-05-22 04:25 PM
  7. redsymphony's Avatar
    man this was driving me nuts thought it was just me that had this issue
    2013-05-23 11:54 PM
  8. Julieebean74's Avatar
    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
    2013-05-24 04:18 AM
  9. King_O_Hill's Avatar
    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!

    Check out WW3 for iOS 9/10 - Widget-Weather 3.0
    2013-05-24 05:23 AM
  10. GrandeInAVentiCup's Avatar
    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.
    2013-05-25 07:28 AM
  11. punit12's Avatar
    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!
    2013-05-26 12:21 AM
  12. jtibedo's Avatar
    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; 2013-05-26 at 01:43 PM.
    2013-05-26 01:15 PM
  13. AYK's Avatar
    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
    2013-05-27 01:08 PM
  14. pikos2000's Avatar
    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
    2013-05-28 03:31 AM
  15. drjailbreak's Avatar
    Is there anyway you can upload your edited file? Also will this work for HTC iWidgets




    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
    2013-05-29 01:35 AM
  16. pikos2000's Avatar
    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; 2013-05-29 at 02:46 AM.
    2013-05-29 02:44 AM
  17. drjailbreak's Avatar
    Thank you very much. Worked like a charm and I have my forecast back. Thank you so much again
    Last edited by drjailbreak; 2013-05-29 at 03:13 AM.
    2013-05-29 03:06 AM
  18. Maddogfelony's Avatar
    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
    2013-05-31 01:08 AM
  19. pikos2000's Avatar
    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.
    2013-05-31 04:13 AM
  20. King_O_Hill's Avatar
    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; 2013-05-31 at 05:48 AM.

    Check out WW3 for iOS 9/10 - Widget-Weather 3.0
    2013-05-31 05:38 AM
31 12
LINK TO POST COPIED TO CLIPBOARD