

Within it we can found two types of folders, ended with ' diezminutales' or ' estaciones'. The kind of data we are looking for is stored in the ' /datos_observacion/observaciones_diezminutales' folder of the FTP sever. Update: This service was stopped in 2012 by Spanish government 😔 The data A map of Spain with some dots representing weather stations and a graph with showing data from the selected station.

Talking with a colleague we decide to create (on our very few free time) a simple web page that allows people to see the current values of the weather stations. The way they do is simple and effective: public the contents on a FTP server and update on regular intervals of time. Some time ago the AEMET, the Spanish government meteorological agency, release many of its data publicly: weather radar, weather stations, lightnings. Status: Directory listing successfulIt looks quite same to my code trace log. Response: 200 Transfer mode set to BINARY Response: 257 "/users/wpmnpbatch" is current directory Response: 200 PRIVATE data channel protection level set Response: MLST size* type* perm* create* modify*

Status: TLS/SSL connection established, waiting for welcome message. Status: Connection established, initializing TLS. Does anyone kind to help me to solve this? Thanks in advance for any help or suggestion.Īnd here's the FileZilla trace log while connect to that FTPS site. But if I use other FTP tool like FileZilla and the same user and password to login this FTP site, it always succeed. (tmp.length) Each time I run this code, it works fine in LOGIN and CD and even can retrieve the currenct working directory name successfully, but all the time when I execute the listNames() and listFiles(), it always report 426 error - 426 Transfer failed. ("Remote system is " + ftp.getSystemName()) ("FTP server refused connection.") įtp.changeWorkingDirectory("/SunShine Life/SU001SH/Interface/KZ IN/Response") If(!FTPReply.isPositiveCompletion(reply)) After connection attempt, you should check the reply code to verify My code like belows:įtp.addProtocolCommandListener(new PrintCommandListener(new PrintWriter(System.out)))
