Skip to content

WhoWhatFolchBlasco/AEMET-JavaFX-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AEMET-JavaFX-App

AEMET JavaFX App, MY LOVELY "Waether app (I am aware it's weather, just a joke name)".

This is my second app since I have started learning java, it gives the choice to select a town or city from Spain, with its province and community, to later show the weather of that town from the day you are in to 7 days forward. To achieve this, I use the AEMET page via XML, reading the files, etc.

Plus, it uses a panel from FXML one time and duplicates it to save elements.

"Step by step" of how the filter works in order to obtain the region/town/city code.

First of all, you will need to introduce a autonomous communitie.

filtro1

filtro2

Afterwards, choose a province of the autonomous communitie you have picked, at this point they will had been filtered.

filtro3

The next two images are kinda the same thing, they show the cities and towns of the province you have picked, the difference is that one is a choice box, and the other box is a autocomplete box, this means that if you write "al", all the cities or towns that contain "al" will be showed, and the ones who don't contain it, won't appear.

filtro4

filtro5

Now, after introducing all the data needed, a code will be formed, and the data will be extracted from the XML of the selected city or town, to later on show the 7 future days of the week, with some data of them and an image, for example the percentatge of rain, sun power, thermal sensitivity, etc..

aplicacion1

Note

In case you try to search a city or town that doesn't exist, an exception will jump, which will notify you.

imageException

This is a closer look of how each panel looks.

pane1

This is the aspext of the XML from where the information is taken. In order to get it, you have to make the code of the town/City.

data1

Releases

No releases published

Packages

No packages published