Saltar al contenido
  • 0
Conéctate para seguir esto  
javarito

a vueltas con la configuracion el tiempo

    Pregunta

    Hola, no muy bien donde cambiar los datos para poner el tiempo de mi ciudad

    adjunto pantallazos de los dos ficheros en los que creo que se debe modificar

    mi ciudad es Alicante

    me podeis indicar donde debo de ponerlo, conozco dos codigos para Alicante ( spxx0008 y el 752101 ), pero no se done ponerlos

    aqui os dejos los ficheros

    gracias por todo

    este es el configureme

    // WeatherWidget.theme

    // Produced by Adam Watkins (http://www.stupidpupil.co.uk)

    // The location field should be a relatively machine-legible string

    // if using the default, Apple/AccuWeather parser (originally from Leopard's Weather.wdgt)

    var locale = "Toronto, Canada" //e.g. 'Defiance, Ohio'|'Moscow, Russia'|'Ledyard, AT'|'London, UK'

    // Set to 'false' if you'd prefer Farenheit

    var isCelsius = true //true|false

    // Use 'Real Feel' temperatures where possible, taking into account Wind Chill, Humidity etc.

    var useRealFeel = false //true|false

    /*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/

    //Enable Wallpaper and/or Lock Screen

    var enableWallpaper = true; //true|false

    var enableLockScreen = true; //true|false [Currently, it is suggested that the lockScreen is disabled.]

    // Supplied styles are 'originalBubble', 'myopia', 'iconOnly' and 'split'.

    // (Add your own to the CSS folder!)

    var stylesheetWall =

    'myopia' //'originalBubble'|'myopia'|'iconOnly'|'split'|'oneLine'|'taskbar'|'taskbar_city'

    var stylesheetLock = 'katra' //See above.

    // The only supplied icon set is 'klear'

    // Images must follow the same naming schema as the 'klear' set (borrowed from KWeather)

    var iconSetWall = 'illumine' //'klear'|'tango'|'nova'|'bronze'|'katra'

    var iconExtWall = ".png" //'.png'|.'gif' etc.

    var iconSetLock = 'lock' //See above.

    var iconExtLock = '.png' //See above.

    /*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/

    // The other available source is 'yahooWeather' which for the 'locale'

    // requires a US zip or location code (e.g. UKXX0085 or CHXX0008) from Yahoo! Weather - Weather Forecasts | Maps | News

    var source = 'appleAccuweatherStolen' //'appleAccuweatherStolen'|'yahooWeather'

    // Please endeavour to set this to a sensible value if you really must change it...

    var updateInterval = 30 //Minutes

    y este es el wallpaper

    <?xml version="1.0" encoding="UTF-16"?>

    <html><head>

    <base href="Private/"/>

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

    <style>

    body {

    background-color: Wallpaper.png;

    margin: 0;

    padding: 20px 0 0 0;

    height: 480px;

    width: 320px;

    }

    </style>

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

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

    </head>

    <body 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>

    </html>

    <head><title>newclock</title></head>

    <style>

    SPAN#clock

    {

    font-family: TrebuchetMS;

    color: lightgrey;

    font-size: 30px;

    text-shadow: #000000 1px 2px 1px;

    font-weight: bold;

    }

    SPAN#ampm

    {

    font-family: TrebuchetMS;

    color: lightgrey;

    font-size: 20px;

    text-shadow: #000000 1px 2px 1px;

    font-weight: bold;

    }

    SPAN#calendar

    {

    font-family: Helvetica;

    font-weight: bold;

    text-align: center;

    color: #ecd6b0;

    text-shadow: #000000 2px 2px 2px;

    }

    </style>

    <script type="text/javascript">

    function init ( )

    {

    timeDisplay = document.createTextNode ( "" );

    document.getElementById("clock").appendChild ( timeDisplay );

    }

    function updateClock ( )

    {

    var currentTime = new Date ( );

    var currentHours = currentTime.getHours ( );

    var currentMinutes = currentTime.getMinutes ( );

    var currentSeconds = currentTime.getSeconds ( );

    // Pad the minutes and seconds with leading zeros, if required

    currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;

    currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;

    // Choose either "AM" or "PM" as appropriate

    timeOfDay = ( currentHours < 12 ) ? " am" : " pm";

    // Convert the hours component to 24-hour format if needed

    currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;

    // Convert an hours component of "0" to "24"

    currentHours = ( currentHours == 12 ) ? 12 : currentHours;

    // Compose the string for display

    var currentTimeString = currentHours + ":" + currentMinutes;

    // Update the time display

    document.getElementById("clock").firstChild.nodeValue = currentTimeString;

    }

    function init2 ( )

    {

    timeDisplay = document.createTextNode ( "" );

    document.getElementById("ampm").appendChild ( timeDisplay );

    }

    function amPm ( )

    {

    var currentTime = new Date ( );

    var currentHours = currentTime.getHours ( );

    // Choose either "AM" or "PM" as appropriate

    timeOfDay = ( currentHours < 12 ) ? " am" : " pm";

    // Convert the hours component to 24-hour format if needed

    currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;

    // Convert an hours component of "0" to "24"

    currentHours = ( currentHours == 12 ) ? 12 : currentHours;

    // Compose the string for display

    var currentTimeString = timeOfDay;

    // Update the time display

    document.getElementById("ampm").firstChild.nodeValue = currentTimeString;

    }

    function init3 ( )

    {

    timeDisplay = document.createTextNode ( "" );

    document.getElementById("calendar").appendChild ( timeDisplay );

    }

    function calendarDate ( )

    {

    var this_weekday_name_array = new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado")

    var this_month_name_array = new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre") //predefine month names

    var this_date_timestamp = new Date()

    var this_weekday = this_date_timestamp.getDay()

    var this_date = this_date_timestamp.getDate()

    var this_month = this_date_timestamp.getMonth()

    var this_year = this_date_timestamp.getYear()

    if (this_year < 1000)

    this_year+= 1900;

    if (this_year==101)

    this_year=2001;

    document.getElementById("calendar").firstChild.nodeValue = this_weekday_name_array[this_weekday] + ", " + this_month_name_array[this_month] + " " + this_date + ", " + this_year //concat long date string

    }

    </script>

    </head>

    <table style="position: absolute; top: 30px; left: 10px; width: 320px; height: 461px;" cellspacing="0" cellpadding="0" align="left">

    <tr align="left" valign="top" border="0" cellpadding="0">

    <td height="10" valign="top">

    <span id="clock">

    <script language="JavaScript">updateClock(); setInterval('updateClock()', 1000 )</script></span><span id="ampm">

    <script language="JavaScript">amPm(); setInterval('amPm()', 1000 )</script>

    </span>

    </td>

    </tr>

    <tr>

    <td align="left" valign="top">

    <span id="calendar">

    <script language="JavaScript">calendarDate(); setInterval('calendarDate()', 1000 )</script>

    </span>

    </td>

    </tr>

    </table>

    </body>

    </html>

    </html>

    Compartir este mensaje


    Enlace a mensaje
    Compartir con otras webs

    0 respuestas a esta pregunta

    Recommended Posts

    No han habido respuestas a esta pregunta

    Invitado
    Este tema está cerrado a más respuestas.
    Conéctate para seguir esto  

    ×