FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
|
#1
|
||||
|
||||
Datos Meteorológicos
En la secion de trucos hay uno con este mismo titulo, me gustaria saber si alguien ha comprobado si funciona, en el mismo truco solicito a GLuGlu si puede poner el código completo, o una palicación de emplo, ruego a los foristas si aluno puede ayudar.
Gracias de antemano y un saludo desde Canarias. |
#2
|
||||
|
||||
Mil disculpas por no haberme fijado que había comentarios en la sección de trucos.
El código está completo. Lo que pasa es que en mi caso particular lo ejecuto en un TThread. Por eso no quise liar más la cosa. A mi me funciona sin ningún problema. Vuelvo a poner el código completo aquí en mi versión con el TThread :
... y aparte la unidad MainMetar completa. En diseño, el form contiene un TPanel y un TLabel que será el que muestre la cadena de caracteres interpretada con los valores de datos meteorológicos.
Si tienes cualquier duda, estaré encantando de poder aclararla. Un saludo.
__________________
Piensa siempre en positivo ! Última edición por gluglu fecha: 22-06-2007 a las 00:23:48. |
#3
|
||||
|
||||
Glu Glu gracias por tu rapida contestación, y perdona por tardar en contestar, he intentado varias veces pero no logro que funcione, con que veción de delphi programas, La mia es Delphi 6, por si viene por ahi el fallo, espero tu respuesta.
Gracias y un saludo desde Canarias |
#4
|
||||
|
||||
Utilizo BDS 2006 Vcl.NET
Pero no creo que deba de haber ningún problema con Delphi 6. Lo único que a lo mejor varía algo son los componentes de Indy que se utilizan en la versión BDS 2006. Tendrías que detallarme algo más, indicando donde te falla, para que te pueda ayudar. En mi ejemplo de código, el fichero que se obtiene del FTP se graba en C:\METAR.Txt Ese fichero lo obtienes y se graba correctamente ? No mencioné en el anterior post que existe una tabla en mi base de datos que se abre en un DataModule adicional y que contiene los siguientes campos : FTP : Nombre del FTP del que se obtiene la información meteorológica USERNAME : Nombre de usuario para acceder a ese FTP MAIN_OACI_LOC : Código OACI del aeropuerto del que se quiere consultar la información meteorológica INTERVAL : Intervalo de tiempo en minutos para nueva consulta de datos meteorológicos del FTP Los valores 'generales' de esa tabla son : FTP = tgftp.nws.noaa.gov USERNAME = anonymous MAIN_OACI_LOC = LEMG (en mi caso, correspondiente al aeropuerto de Málaga) INTERVAL = 20 (yo consulto cada 20 minutos, aunque la información se actualiza normalmente cada 30 minutos o cada hora) Espero ayudarte en lo posible. Un saludo
__________________
Piensa siempre en positivo ! |
#5
|
||||
|
||||
Gluglu Como siempre voy atrasado en mis mensajes,laultima vez que lo intentem, no habia conseguido nada, que error me da no lo recuerdo, pero intalando unos componentes mi delphi ha dejado de funcionar y estoy esperando a mi nuevo PC para seguir trabajando, de todos modos si no te es mucho trabajo, podiras poner una pequeña demo muy basica, para hacerla correr en Delphi.
Gracias y un saludod desde Canarias. |
#6
|
||||
|
||||
Aquí te subo un programa hecho con BDS 2006 para Win32.
Sí que es cierto que he tenido que cambiar una cosa con respecto al StringList. En VCL.Net me lo grababa en un sólo String del StringList, y en Win32 me lo graba en 2 String's diferentes del StringList, por lo que ha bastado unir esos dos strings por separado en uno solo. Espero que te sirva. Un saludo
__________________
Piensa siempre en positivo ! |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Datos Meteorológicos | gluglu | Varios | 2 | 07-05-2007 10:01:56 |
Herramienta case para diccionario de datos de base de datos firebird | mcalmanovici | Firebird e Interbase | 1 | 11-02-2007 15:17:37 |
Como pasar datos de una hoja de Excel a Bases de Datos de Paradox | Goyo | OOP | 1 | 06-02-2007 01:57:20 |
Guardar en 1 base de datos SQL, datos procedentes de 2 tablas distintas | adaypr | C++ Builder | 1 | 05-09-2006 11:56:33 |
Reto Para Expertos En Base De Datos Y Tipos De Datos.... (blob) | frankmch | Conexión con bases de datos | 2 | 08-09-2003 19:44:52 |
|