o. baad85733a git-check-20241021-2221 | před 1 měsícem | |
---|---|---|
examples | před 1 měsícem | |
lib | před 1 měsícem | |
templates | před 1 měsícem | |
.gitignore | před 1 měsícem | |
LICENSE | před 8 roky | |
README.md | před 1 měsícem | |
conkyrc.lua | před 7 měsíci | |
fmi-weather | před 1 měsícem | |
get_location_id | před 7 měsíci | |
yad-location-select | před 1 měsícem | |
yad-weather | před 1 měsícem |
Provides forecasts from all over the world in English, Swedish and Finnish language. The forecasts are most precise for Finland and surrounding countries.
The main script gets weather data from https://widget.weatherproof.fi/android/androidwidget.php, downloads icons from https://cdn.fmi.fi/symbol-images/smartsymbol/v31/p, and optionally wind gust data from https://opendata.fmi.fi.
The scripts in this repository will
Clone the repository or download the zip to a folder of your choice. Keep in mind that all files need to stay together.
From framagit.org | Download zip file
From notabug.org | Download zip file
For the main script fmi-weather
:
jshon
, curl
, sed
(for formatted output)bash
coreutils
packageyad-*
scriptsyad
(available in most distro repositories)lua
- a conky version with lua support - on Arch Linux this most likely means conky-lua-nv
or conky-cairo
.
On other distros, if you're unsure, look out for a package named conky-all
. The script itself doesn't require conky; its plain text output can be used elsewhere.html
- yad
, which is able to display HTML
Some helper scripts have their own dependencies, but they will tell you if something's missing.
cd /path/to/fmi-weather/
./yad-location-select
It will store your location in a config file that is sourced by fmi-weather
.
./fmi-weather
The location and additional stuff can be configured in $XDG_CONFIG_HOME/fmi-weather/conf
. A full example config file can be found in examples
.
Most data and files are cached and only re-downloaded when necessary.
get_location_id
bash script will get your location's id from geonames.org (yad-location-select
uses it).lib/get_weather_opendata
bash script is an alternative implementation that uses only data from opendata.fmi.fi.lib/wfs_describeStoredQueries
bash script allows you to get more information about what sort of data you can
get from opendata.fmi.fi.All scripts have -h
switches for help.
lua
or html
templates in templates
.*.my.lua
first, and remember to refer to them as such when calling the script, e.g.: ./fmi-weather -f my.lua
./fmi-weather -r
or ./fmi-weather -R
If you found a bug please open an issue in one of the git repos.
But it's more precise than most "weather widgets".
The reason I use this is because I want to parse a lot of weather information before I leave the house, because a national forecast is is bound to be better than one from an international website halfway around the globe, and because the Finnish Metereological Institute is not trying to sell me better weather.
I am trying as far as possible to mirror the website's way of displaying information (except for making it vertical). It might look unwieldy, but it has more granularity and objectivity than most weather widgets out there.
Happy customizing and don't forget to look out the window sometimes!