Nice looking weather fetcher written in Java
Download latest release from here.
Then unzip it.
Move the application files somewhere and run weatherly.exe
file.
You can also run java -jar weatherly.jar
on X-nix machines.
- Make sure you have
jdk
andmaven
installed. - Then do
mvn clean compile
to compile sources. - Then
mvn exec:java
to execute compiled sources. - Execute
mvn package
to generate release files available intarget/release
folder.
Meters layout is defined in meters.xml
file.
You can edit it to create custom layout of temperature/wind direction/wind speed etc. controls. 👍 🎉
The exampel file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<meters>
<weatherly.meters.GeneralMeter type="weather"></weatherly.meters.GeneralMeter>
<weatherly.meters.GeneralMeter type="temperature"></weatherly.meters.GeneralMeter>
<weatherly.meters.GeneralMeter type="wind"></weatherly.meters.GeneralMeter>
<weatherly.meters.GeneralMeter type="humidity"></weatherly.meters.GeneralMeter>
<weatherly.meters.GeneralMeter type="pressure"></weatherly.meters.GeneralMeter>
<weatherly.meters.GeneralMeter
airQualityProperties="PM10,PM2.5" type="airQuality"></weatherly.meters.GeneralMeter>
<weatherly.meters.GeneralMeter type="sunrise"></weatherly.meters.GeneralMeter>
<weatherly.meters.GeneralMeter type="sunset"></weatherly.meters.GeneralMeter>
</meters>
Or displaying only sunrise, sunset and weather:
<?xml version="1.0" encoding="UTF-8"?>
<meters>
<weatherly.meters.GeneralMeter type="weather"></weatherly.meters.GeneralMeter>
<weatherly.meters.GeneralMeter type="sunrise"></weatherly.meters.GeneralMeter>
<weatherly.meters.GeneralMeter type="sunset"></weatherly.meters.GeneralMeter>
</meters>
Available build-in meter types for GeneralMeter
are:
- weather (displays general weather type)
- temperature (displays temperature)
- wind (displays wind direction)
- humidity (displays air humidity)
- pressure (displays air pressure at ground or sea level)
- sunrise/sunset (displays calendar sunrise/sunset time)
- airQuality (displays gases and substances present in air)
The data sources can be configured editing sources.xml
file.
The example file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<sources interval="360">
<source provider="weatherly.datasource.sources.PowietrzeGiosSource"></source>
<source provider="weatherly.datasource.sources.OpenWeatherMapSource"></source>
<source provider="weatherly.datasource.sources.MeteoWawSource"></source>
</sources>