iPhone 4 iPhone 4 Theme bearbeiten?

Dieses Thema im Forum "iPhone 4/4S Forum" wurde erstellt von Stefan_Duisburg, 8. Juni 2011.

  1. Stefan_Duisburg

    Stefan_Duisburg VIP Mitglied

    Registriert seit:
    21. Mai 2009
    Beiträge:
    1.283
    Zustimmungen:
    0
    Moin Community.
    Hab mir vorhin mal ein schönes Design für mein iPhone zugelegt. Bin zufrieden damit, sogar eine Wetteranzeige ist integriert :D
    Und genau da liegt der Hund begraben: Gibt es eine Möglichkeit, dieses Design zu bearbeiten? Momentan nützt mir die Wetteranzeige recht wenig, da ist nicht mal ansatzweise in West Memphis wohne :fresse

    Vielen Dank im Voraus

    Stefan
     
  2. Protector

    Protector VIP Mitglied

    Registriert seit:
    7. Apr. 2007
    Beiträge:
    14.565
    Zustimmungen:
    41
  3. Stefan_Duisburg

    Stefan_Duisburg VIP Mitglied

    Registriert seit:
    21. Mai 2009
    Beiträge:
    1.283
    Zustimmungen:
    0
    Nun ja, das dachte ich auch das diese sich bearbeiten lässt, aber diese scheint wohl direkt im Theme eingebunden zu sein, finde deswegen nirgends ne Möglichkeit da was zu editieren
    Achja, danke für den Link, schau mir das gleich mal an :P

    --- Edit ---

    Nun hab ich nochmal ne Frage:
    In der Theme werden Daten von Accuweather bzw Yahooweather, jeweils im *.js Format verwendet. Ich nehme an das dort die genutzten Informationen (West Memphis, Fahrenheit etc) stehen, und das sich diese Dateien jeweils automatisch aktualisieren. Meine Frage nun: Woher bekomm ich diese Daten die auf mich personalisiert sind? Sprich Einheit Celsius und Ort Duisburg?
     
  4. DJ_KirBy

    DJ_KirBy Neues Mitglied

    Registriert seit:
    24. Mai 2011
    Beiträge:
    16
    Zustimmungen:
    0
    Also wenn du schon von .js sprichst. In vielen Themes die solche Scripts beinhalten gibt es dann noch eine config.js. Diese einfach mal auf dem Rechner mit dem Editor öffnen und mit Strg + F nach "var locale" suchen. Dahinter steht eine Zahl die du je nach dem mit irgendeine Website abgleichen musst. Also zu deiner Stadt.

    Falls nicht paste doch einfach mal die Texte als Spoiler rein ich Wette wir können dir schon helfen. ; )

    lg KirBy

    Find ich geil. =D
     
  5. Stefan_Duisburg

    Stefan_Duisburg VIP Mitglied

    Registriert seit:
    21. Mai 2009
    Beiträge:
    1.283
    Zustimmungen:
    0
    Das mit der Config kam mir auch in den Sinn, blöderweise ist die nicht dabei :fresse
    Ich häng die beiden Dateien mal an, bzw den Inhalt beider:
    appleAccuweatherStolen.js:
    PHP:
    var Francais =

    [

    "Sunny",
    "Mostly Sunny",
    "Partly Sunny",
    "Intermittent Clouds",
    "Hazy Sunshine",
    "Mostly Cloudy",
    "Cloudy ",
    "Overcast ",
    "retired",
    "retired",
    "Fog",
    "Showers" ,
    "Mostly Cloudy w/Showers",
    "Partly Sunny w/Showers",
    "Thunderstorms ",
    "Mostly Cloudy w/Thunder Showers",
    "Partly Sunnty w/Thunder Showers",
    "Rain ",
    "Flurries ",
    "Mostly Cloudy w/Flurries",
    "Partly Sunny w/Flurries",
    "Snow ",
    "Mostly Cloudy w/Snow",
    "Ice",
    "Sleet",
    "Freezing Rain",
    "retired",
    "retired",
    "Rain and Snow Mixed",
    "Hot",
    "Cold",
    "Windy",
        
    // Night only Icons;
    "Clear",
    "Mostly Clear",
    "Partly Cloudy",
    "Intermittent Clouds",
    "Hazy",
    "Mostly Cloudy",
    "Partly Cloudy w/Showers",
    "Mostly Cloudy w/Showers",
    "Partly Cloudy w/Thunder Showers",
    "Mostly Cloudy w/Thunder Showers",
    "Mostly Cloudy w/Flurries",
    "Mostly Cloudy w/Flurries",

    ]



    // Modified from weatherParser.js from Leopard. Apologies to all offended.

    // I'm hoping that no-one objects since it's Apple hardware and so forth.



    /*

    Copyright _ 2005, Apple Computer, Inc.    All rights reserved.

    NOTE:  Use of this source code is subject to the terms of the Software

    License Agreement for Mac OS X, which accompanies the code.  Your use

    of this source code signifies your agreement to such license terms and

    conditions.  Except as expressly granted in the Software License Agreement

    for Mac OS X, no other copyright, patent, or other intellectual property

    license or right is granted, either expressly or by implication, by Apple.

    */



    var MiniIcons //Fix Up for weatherParser.js but also enables standardisation of sorts

    [

        
    "sunny",                        // 1 Sunny

        
    "cloudy1",                        // 2 Mostly Sunny

        
    "cloudy2",                    // 3 Partly Sunny

        
    "cloudy3",                    // 4 Intermittent Clouds

        
    "cloudy4",                    // 5 Hazy Sunshine

        
    "cloudy5",                    // 6 Mostly Cloudy

        
    "cloudy5",                    // 7 Cloudy (am/pm)

        
    "overcast",                    // 8 Dreary (am/pm)

        
    "dunno",                        // 9 retired

        
    "dunno",                        // 10 retired

        
    "fog",                        // 11 fog (am/pm)

        
    "shower1",                        // 12 showers (am/pm)

        
    "shower3",                    // 13 Mostly Cloudy with Showers

        
    "shower2",                    // 14 Partly Sunny with Showers

        
    "tstorm3",                // 15 Thunderstorms (am/pm)

        
    "tstorm2",                // 16 Mostly Cloudy with Thunder Showers

        
    "tstorm1",                // 17 Partly Sunnty with Thunder Showers

        
    "light_rain",                        // 18 Rain (am/pm)

        
    "cloudy5",                    // 19 Flurries (am/pm)

        
    "cloudy4",                    // 20 Mostly Cloudy with Flurries

        
    "cloudy2",                    // 21 Partly Sunny with Flurries

        
    "snow5",                        // 22 Snow (am/pm)

        
    "snow3",                        // 23 Mostly Cloudy with Snow

        
    "hail",                     // 24 Ice (am/pm)

        
    "sleet",                        // 25 Sleet (am/pm)

        
    "hail",                     // 26 Freezing Rain (am/pm)

        
    "dunno",                        // 27 retired

        
    "dunno",                        // 28 retired

        
    "sleet",                    // 29 Rain and Snow Mixed (am/pm)

        
    "sunny",                        // 30 Hot (am/pm)

        
    "sunny_night",                // 31 Cold (am/pm)

        
    "wind",                     // 32 Windy (am/pm)

        // Night only Icons;

        
    "sunny_night",                        // 33 Clear

        
    "cloudy1_night",                // 34 Mostly Clear

        
    "cloudy2_night",                // 35 Partly Cloudy

        
    "cloudy3_night",                        // 36 Intermittent Clouds

        
    "cloudy4_night",                        // 37 Hazy

        
    "cloudy5_night",                          // 38 Mostly Cloudy

        
    "shower2_night",                        // 39 Partly Cloudy with Showers

        
    "shower3_night",                        // 40 Mostly Cloudy with Showers

        
    "tstorm1_night",                        // 41 Partly Cloudy with Thunder Showers

        
    "tstorm2_night",                        // 42 Mostly Cloudy with Thunder Showers

        
    "cloudy4_night",                        // 43 Mostly Cloudy with Flurries

        
    "cloudy4_night"                         // 44 Mostly Cloudy with Flurries

    ];



    function 
    getURLForSmallIcon (code)

    {

        var 
    src '';

        if (
    code)

        {

            
    src miniIconTable[code];

            

            if (
    src === undefined)

                
    src '';

        }

            

        return 
    src;

    }



    function 
    findChild (elementnodeName)

    {

        var 
    child;

        

        for (
    child element.firstChildchild != nullchild child.nextSibling)

        {

            if (
    child.nodeName == nodeName)

                return 
    child;

        }

        

        return 
    null;

    }





    function 
    trimWhiteSpace (string)

    {

        return 
    string.replace(/^\s*/, '').replace(/\s*$/, '');

    }



    // returns an anonymous object like so

    // object

    //        error:    Boolean false for success

    //        errorString: failure string

    //        hi:        Fahrenheit

    //        lo:        Fahrenheit

    //        temp:    Fahrenheit

    //        realFeel: Farenheit

    //        icon    :    accuweather icon code

    //        description:    accuweather description

    //        city:    City (first caps)

    //        time:    time 24 hours(nn:nn)

    //        sunset: time 24 hours (nn:nn)

    //        sunrise: time 24 hours (nn:nn)

            

    function fetchWeatherData (callbackzip)

    {

        
    //var url = 'http://apple.accuweather.com/adcbin/apple/Apple_Weather_Data.asp?zipcode=';

        
    var url 'http://wu.apple.com/adcbin/apple/Apple_Weather_Data.asp?zipcode=';

        

        if (
    window.timerInterval != 300000)

            
    window.timerInterval 300000// 5 minutes



        
    var xml_request = new XMLHttpRequest();

        
    xml_request.onload = function(e) {xml_loaded(exml_requestcallback);}

        
    xml_request.overrideMimeType("text/xml");

        
    xml_request.open("GET"url+zip);

        
    xml_request.setRequestHeader("Cache-Control""no-cache");

        
    xml_request.setRequestHeader("wx""385");

        
    xml_request.send(null);

        

        return 
    xml_request;

    }



    function 
    constructError (string)

    {

        return {
    error:trueerrorString:string};

    }



    // parses string of the form nn:nn

    function parseTimeString(string)

    {

        var 
    obj null;

        try {

            var array = 
    string.match (/\d{1,2}/g);

            

            
    obj = {hour:parseInt(array[0], 10), minute:parseInt(array[1],10)};

        }

        catch (
    ex)

        {

            
    // ignore

        
    }

        

        return 
    obj;

    }



    function 
    parseDayCode (dayCode)

    {

        return 
    trimWhiteSpace(dayCode).substr (03).toUpperCase();

    }



    function 
    xml_loaded (eventrequestcallback)

    {

        if (
    request.responseXML)

        {

            var 
    obj = {error:falseerrorString:null}; 

            var 
    adc_Database findChild (request.responseXML"adc_Database");

            if (
    adc_Database == null) {callback(constructError("no <adc_Database>")); return;}

            

            var 
    CurrentConditions findChild (adc_Database"CurrentConditions");

            if (
    CurrentConditions == null) {callback(constructError("no <CurrentConditions>")); return;}

            

            var 
    tag findChild (CurrentConditions"Time");

            if (
    tag != null)

                
    obj.time parseTimeString (tag.firstChild.data);

            else

                
    obj.time null;



            
    tag findChild (CurrentConditions"City");

            if (
    tag == null) {callback(constructError("no <City>")); return;}

            
    obj.city =  trimWhiteSpace(tag.firstChild.data.toString()).toLowerCase();



            
    tag findChild (CurrentConditions"Temperature");

            if (
    tag == null) {callback(constructError("no <Temperature>")); return;}

            
    obj.temp parseInt (tag.firstChild.data);

            

            
    tag findChild (CurrentConditions"RealFeel");

            if (
    tag == null) {callback(constructError("no <RealFeel>")); return;}

            
    obj.realFeel parseInt (tag.firstChild.data);

            

            
    tag findChild (CurrentConditions"WeatherText");

            if (
    tag == null)

                
    obj.description null;

            else

                
    obj.description trimWhiteSpace(tag.firstChild.data);

                        

            
    tag findChild (CurrentConditions"WeatherIcon");

            if (
    tag == null) {callback(constructError("no <WeatherIcon>")); return;}

            
    obj.icon parseInt (tag.firstChild.data10);

            
    obj.icon -= 1//Accuweather starts at 1

            

            
    obj.sunset null;

            
    obj.sunrise null;

            var 
    Planets findChild (adc_Database"Planets");

            if (
    Planets != null)

            {

                
    tag findChild (Planets"Sun");

                if (
    tag != null)

                {

                    var 
    rise tag.getAttribute("rise");

                    var 
    set tag.getAttribute("set");

                    

                    if (
    rise != null && set != null)

                    {

                        
    obj.sunset parseTimeString (set);

                        
    obj.sunrise parseTimeString(rise);

                    }

                }

            }



            
    obj.forecast = new Array;

            var 
    Forecast findChild (adc_Database"Forecast");

            if (
    Forecast == null) {callback(constructError("no <Forecast>")); return;}

            

            
    // assume the days are in order, 1st entry is today

            
    var child;

            var 
    j=0;

            var 
    firstTime true;

            

            for (
    child Forecast.firstChildchild != nullchild child.nextSibling)

            {

                if (
    child.nodeName == 'day')

                {

                    if (
    firstTime// today

                    
    {

                        
    obj.hi 0;

                        
    tag findChild(child'High_Temperature');

                        if (
    tag != null)

                            
    obj.hi parseInt (tag.firstChild.data);

                        

                        
    obj.lo 0;

                        
    tag findChild(child'Low_Temperature');

                        if (
    tag != null)

                            
    obj.lo parseInt (tag.firstChild.data);

                        

                        
    firstTime false;

                    }



                    var 
    foreobj = {description:nullhi:0lo:0icon:-1};

                    

                    
    tag findChild(child'DayCode');

                    if (
    tag != null)

                        
    foreobj.daycode trimWhiteSpace(tag.firstChild.data.toString()).substring(0,3);

                    

                    
    tag findChild(child'High_Temperature');

                    if (
    tag != null)

                        
    foreobj.hi parseInt (tag.firstChild.data);

                        

                    
    tag findChild(child'Low_Temperature');

                    if (
    tag != null)

                        
    foreobj.lo parseInt (tag.firstChild.data);                    

                    

                    
    tag findChild(child'WeatherIcon');

                    if (
    tag != null)

                    {

                        
    foreobj.icon parseInt (tag.firstChild.data10);

                        
    foreobj.ouricon MiniIcons[foreobj.icon-1];

                    }



                    
    obj.forecast[j++]=foreobj;

                    if (
    == 7) break; // only look ahead 7 days

                
    }

            }



            
    callback (obj); 

            

        }

        else

        {

            
    callback ({error:trueerrorString:"XML request failed. no responseXML"}); //Could be any number of things..

        
    }

    }



    // returns an anonymous object like so

    // object

    //        error:    Boolean false for success

    //        errorString: failure string

    //        cities: array (alphabetical by name)

    //            object

    //                name: city name

    //                zip: postal code

    //                state: city state

    //        refine: boolean - true if the search is too generic

    function validateWeatherLocation (locationcallback)

    {

        
    //var url = 'http://apple.accuweather.com/adcbin/apple/Apple_find_city.asp?location=';

        
    var url 'http://wu.apple.com/adcbin/apple/Apple_find_city.asp?location=';

        

        var 
    xml_request = new XMLHttpRequest();

        
    xml_request.onload = function(e) {xml_validateloaded(exml_requestcallback);}

        
    xml_request.overrideMimeType("text/xml");

        
    xml_request.open("GET"url+location);

        
    xml_request.setRequestHeader("Cache-Control""no-cache");

        
    xml_request.send(null);

    }



    function 
    xml_validateloaded (eventrequestcallback)

    {

        if (
    request.responseXML)

        {

            var 
    obj = {error:falseerrorString:nullcities:new Array, refine:false};

            var 
    adc_Database findChild (request.responseXML"adc_Database");

            if (
    adc_Database == null) {callback(constructError("no <adc_Database>")); return;}

            

            var 
    CityList findChild (adc_Database"CityList");

            if (
    CityList == null) {callback(constructError("no <CityList>")); return;}

            

            if (
    CityList.getAttribute('extra_cities') == '1')

                
    obj.refine true;



            for (
    child CityList.firstChildchild != nullchild child.nextSibling)

            {

                if (
    child.nodeName == "location")

                {

                    var 
    city child.getAttribute("city");

                    var 
    state child.getAttribute("state");

                    var 
    zip child.getAttribute("postal");

                    

                    if (
    city && state && zip)

                    {

                        
    obj.cities[obj.cities.length] = {name:citystate:statezip:zip};

                    }

                }

            }

            

            
    callback (obj);

        }

        else

        {

            
    callback ({error:trueerrorString:"No Response"});

        }

    }



    function 
    createGoToURL (location)

    {

        return 
    'http://apple.accuweather.com/adcbin/apple/Apple_weather.asp?location=' escape(location);

    }

    Und die yahooWeather.js:
    PHP:
    var MiniIcons =
    [
        
    "thunder",        //0    tornado
        
    "thunder",        //1    tropical storm
        
    "thunder",        //2    hurricane
        
    "thunder",        //3    severe thunderstorms
        
    "thunder",        //4    thunderstorms
        
    "rain-and-snow",       //5       mixed rain and snow
        
    "rain-and-sleet",        //6     mixed rain and sleet
        
    "rain-and-snow",       //7       mixed snow and sleet
        
    "Freezing-rain",       //8       freezing drizzle
        
    "light-rain",             //9     drizzle
        
    "freezing-rain",       //10    freezing rain
        
    "light-rain",          //11    showers
        
    "rain",     //12    showers
        
    "flurries",        //13    snow flurries
        
    "flurries",        //14    light snow showers
        
    "heavy-snow",          //15    blowing snow
        
    "snow 1",      //16      snow
        
    "hail",     //17    hail
        
    "sleet",       //18    sleet
        
    "haze",     //19    dust
        
    "fog",        //20    foggy
        
    "fog",        //21    haze
        
    "fog",        //22    smoky
        
    "strong-wind",            //23    blustery
        
    "wind",          //24    windy
        
    "cold",         //25    cold
        
    "Cloudy",           //26    cloudy
        
    "3",         //27    mostly cloudy (night)
        
    "4",          //28    mostly cloudy (day)
        
    "moon-clouds",        //29    partly cloudy (night)
        
    "cloudy day",           //30    partly cloudy (day)
        
    "moon1",       //31    clear (night)
        
    "sun",        //32    sunny
        
    "clear-moon",         //33     fair (night)
        
    "clear day",         //34     fair (day)
        
    "hail",     //35    mixed rain and hail
        
    "hot",        //36    hot
        
    "thunder",        //37    isolated thunderstorms
        
    "thunder",        //38    scattered thunderstorms
        
    "thunder",        //39    scattered thunderstorms
        
    "thunder",        //40    scattered showers
        
    "snow 1",      //41      heavy snow
        
    "snow",     //42    scattered snow showers
        
    "snow",     //43    heavy snow
        
    "parltey-cloudy",           //44    partly cloudy
        
    "thunder",         //45     thundershowers
        
    "snow2",        //46    snow showers
        
    "thunder",        //47    isolated thundershowers
        
    "nothing",          //3200  not available
    ];



    function 
    getURLForSmallIcon (code)

    {

        var 
    src '';

        if (
    code)

        {

            
    src miniIconTable[code];

            

            if (
    src === undefined)

                
    src '';

        }

            

        return 
    src;

    }



    function 
    findChild (elementnodeName)

    {

        var 
    child;

        

        for (
    child element.firstChildchild != nullchild child.nextSibling)

        {

            if (
    child.nodeName == nodeName)

                return 
    child;

        }

        

        return 
    null;

    }





    function 
    trimWhiteSpace (string)

    {

        return 
    string.replace(/^\s*/, '').replace(/\s*$/, '');

    }






    function 
    constructError (string)
    {
        return {
    error:trueerrorString:string};
    }

    function 
    findChild (elementnodeName)
    {
        var 
    child;
        
        for (
    child element.firstChildchild != nullchild child.nextSibling)
        {
            if (
    child.nodeName == nodeName)
                return 
    child;
        }
        
        return 
    null;
    }


    function 
    fetchWeatherData (callbackzip)
    {
        
    url="http://weather.yahooapis.com/forecastrss?u=f&p=" //u=Farenheit, because accuWeather sucks
        
        
    var xml_request = new XMLHttpRequest();
        
    xml_request.onload = function(e) {xml_loaded(exml_requestcallback);}
        
    xml_request.overrideMimeType("text/xml");
        
    xml_request.open("GET"url+zip);
        
    xml_request.setRequestHeader("Cache-Control""no-cache");
        
    xml_request.send(null); 
        
        return 
    xml_request;
    }

    function 
    xml_loaded (eventrequestcallback)
    {
        if (
    request.responseXML)
        {
            var 
    obj = {error:falseerrorString:null};
            var 
    effectiveRoot findChild(findChild(request.responseXML"rss"), "channel");
            
    obj.city findChild(effectiveRoot"yweather:location").getAttribute("city");
            
    obj.realFeel findChild(effectiveRoot"yweather:wind").getAttribute("chill");//Only accounts for windChill
            
            
    conditionTag findChild(findChild(effectiveRoot"item"), "yweather:condition");
            
    obj.temp conditionTag.getAttribute("temp");
            
    obj.icon conditionTag.getAttribute("code");
            
    obj.description conditionTag.getAttribute("text"); 
            
    callback (obj); 
        }else{
            
    callback ({error:trueerrorString:"XML request failed. no responseXML"});
        }
    }


    function 
    validateWeatherLocation (locationcallback)
    {
        var 
    obj = {error:falseerrorString:nullcities: new Array};
        
    obj.cities[0] = {ziplocation}; //Not very clever, are we?
        
    callback (obj);
    }
    Hoffe du kannst damit was anfangen ;)
     
  6. DJ_KirBy

    DJ_KirBy Neues Mitglied

    Registriert seit:
    24. Mai 2011
    Beiträge:
    16
    Zustimmungen:
    0
    Da hast du ganz unten den "Satz": "obj.cities[0] = {zip: location}; //Not very clever, are we?"
    Und da muss es rein. =)

    -edit-
    We heißt denn das Theme?
     
  7. Stefan_Duisburg

    Stefan_Duisburg VIP Mitglied

    Registriert seit:
    21. Mai 2009
    Beiträge:
    1.283
    Zustimmungen:
    0
    Okay, und ähm...was muss da rein? :fresse

    Das Theme heißt Hybrid HD v2
     
  8. Protector

    Protector VIP Mitglied

    Registriert seit:
    7. Apr. 2007
    Beiträge:
    14.565
    Zustimmungen:
    41
    To change the zone Climate Widget
    Must get to the Hybrid theme folder Weather (Animated), will result in a file called

    Widget.html
    At line 341 is a part that says
    var locale = '133480 '(This code is from Mexico, Central )

    To activate
    Decompress the rar and put the separate folders via ssh to Route

    Library / Themes
    And activities with WinterBoard
    Catch

    Steht zumindest hier: GAME IPHONE IPA-CYDIA: Hybrid HD v2.0 [iPhone4/iPodTouch4] [WinterBoard]

    Für Dresden, also hier in Deutschland, wäre der Code: 12831235

    Du musst also hier: http://weather.yahoo.com/mexico/mexico/méxico-133480/ deine Postleitzahl zb eingeben und dann die Zahl HINTER der Stadt kopieren ;)
     
  9. DJ_KirBy

    DJ_KirBy Neues Mitglied

    Registriert seit:
    24. Mai 2011
    Beiträge:
    16
    Zustimmungen:
    0
    Dein ZipCode. Zu finden bei AccuWeather. Einfach deine Stadt suchen und in der Adressleiste die letzten Ziffern Kopieren und in die *.js pasten. Falls das nicht funzt lad ich mir mal das Theme runter und guck mir das nochmal genauer an. =)
    Aber zuerst bist du dran. ;)

    Lg

    Edit da war wohl jemand schneller. xD
     
  10. Stefan_Duisburg

    Stefan_Duisburg VIP Mitglied

    Registriert seit:
    21. Mai 2009
    Beiträge:
    1.283
    Zustimmungen:
    0
    Erstmal Danke für die Antworten.
    Leider klappt das ganze immer noch nicht. Habe den Code für Duisburg aus Protector's Link in die yahooWeather.js kopiert, keine Veränderung. Was mich ein wenig irritiert, ist folgendes:
    1. in der Widget.html ist keine Line 341 vorhanden, in dieser stehen lediglich 2 Buchstaben (H: und L:, dort wird auf dem Homescreen die Highest (höchste) und lowest (niedrigste) Temperatur angezeigt.
    2.
    Was meinen die mit *.rar? Ich nutze anstatt SSH den iPhone Explorer. Bei mir existiert kein *.rar-Verzeichniss.

    Und 3. Denke ich nicht wirklich, dass die yahooWeather.js (zumindest nicht unter dem genannten Punkt) bearbeitet werden muss, weil dort an der Stelle auch nicht der Code von West Memphis, was mir angezeigt wird, eingetragen ist...
    ***Edit1***
    Ok, man sollte die widget.html auch mit dem Editor bearbeiten :fresse
    Aber irgendwie passt da doch noch was nicht, hab mit dem Code für Duisburg nun die Temperatur aus Washington auf dem Homescreen :confused:
     
    #10 Stefan_Duisburg, 10. Juni 2011
    Zuletzt bearbeitet: 10. Juni 2011
  11. Protector

    Protector VIP Mitglied

    Registriert seit:
    7. Apr. 2007
    Beiträge:
    14.565
    Zustimmungen:
    41
    Also ich weiß ja nicht, welches Theme du hast, aber bei mir sieht das zum Beispiel so aus:

    Bildschirmfoto.png

    Vielleicht hast du ein unvollständiges? :D
     
  12. Protector

    Protector VIP Mitglied

    Registriert seit:
    7. Apr. 2007
    Beiträge:
    14.565
    Zustimmungen:
    41
    Ich habs auch mal angepasst :D Probier mal jetzt :)
     

    Anhänge:

  13. Stefan_Duisburg

    Stefan_Duisburg VIP Mitglied

    Registriert seit:
    21. Mai 2009
    Beiträge:
    1.283
    Zustimmungen:
    0
    Danke, aber der findet die Location nicht. Ich versuch gerade verzweifelt bei accuweather.com den Code für Duisburg herauszufinden, aber der der in der Adressleiste angezeigt wird, ist nicht der richtige. Wo hast du den Code der in der html steht her?

    --- Edit ---

    Also Fakt ist: Der Code muss von AccuWeather kommen, denn der Autor, der erklärt wie man die Location ändert, nutzt als Beispiel den var code 133480. Wenn ich diesen unter http://apple.accuweather.com/adcbin/apple/Apple_Weather_Data.asp?zipcode=133480 zum Überprüfen eingebe, zeigt er mir genau das an, was auch er stehen hat: Hartwick.
    Die Frage ist nur: Wie ist er an den Code rangekommen? Aus der Adressleiste kann nicht sein, da dort kein Code steht. Ich habe mal versucht aus dem Quellcode der Seite schlau zu werden, aber selbst der vermeintliche Code ist nicht richtig...
    ***Edit2***
    Hab dem Autor des Blogs mal ne Mail geschrieben. Mal sehen ob und wenn ja was er antwortet...
    Pro wenn du's schneller fixen kannst bist du mein Held :D
     
    #13 Stefan_Duisburg, 10. Juni 2011
    Zuletzt bearbeitet: 10. Juni 2011
  14. AudiQ7

    AudiQ7 VIP Mitglied

    Registriert seit:
    24. Jan. 2007
    Beiträge:
    2.565
    Zustimmungen:
    9
    So der Code für deine Stadt müsste "170371" sein. ;)

    Ich hab mal versucht die Datei zu ändern. Teste mal obs klappt. :D
     

    Anhänge:

  15. Stefan_Duisburg

    Stefan_Duisburg VIP Mitglied

    Registriert seit:
    21. Mai 2009
    Beiträge:
    1.283
    Zustimmungen:
    0
    Sorry wenns nun besserwisserisch kligt, aber 170371 hab ich schon ausprobiert, bekomm dann irgend ne Stadt in den Staaten...ich hab so langsam das Gefühl das es nur für Städte der USA funktioniert, zumal sich der Autor auch nicht meldet...
    ***Edit***
    Nun, wie ich es mir gedacht habe: Nun hab ich das Wetter von Ickesburg (ich hab keine Ahnung wo das überhaupt liegt :D) auf dem Display...*schulter zuck* So langsam bin ich echt ratlos
     
    #15 Stefan_Duisburg, 13. Juni 2011
    Zuletzt bearbeitet: 13. Juni 2011
  16. rasputin007

    rasputin007 VIP Mitglied

    Registriert seit:
    5. Sep. 2006
    Beiträge:
    1.099
    Zustimmungen:
    19
    Apple accuweather ist vorwiegend für die USA, es gibt einige andere Orte außerhalb. Wenn ich den nächstliegenden Ort den Apple accuweather für meine Gegend hat nehme ist das immer noch über 50 km entfernt. Obwohl Duisburg so ein vorgegebener Ort ist, verstehe ich nicht warum es nicht funzt, aber überraschen tut es mich nicht. Ich würde anstatt Apple accuweather lieber Yahoo weather vorziehen und dafür bekommst Du die Info HIER.
     
  17. Stefan_Duisburg

    Stefan_Duisburg VIP Mitglied

    Registriert seit:
    21. Mai 2009
    Beiträge:
    1.283
    Zustimmungen:
    0
    Erstmal danke für den Beitrag. Bleibt nur noch die Frage wie bzw was umgeschrieben werden muss, damit das Design die Daten von dort anstatt von AccuWeather bezieht...
     
Die Seite wird geladen...