o. b1d2d8e7a1 cleanup | 6 months ago | |
---|---|---|
files | 6 months ago | |
.gitignore | 6 months ago | |
LICENSE | 8 years ago | |
README.md | 6 months ago | |
Resources.md | 6 months ago | |
conkyrc.lua | 6 months ago | |
get_location_id | 6 months ago | |
get_weather | 6 months ago | |
get_weather_opendata | 6 months ago | |
location-select | 6 months ago | |
wfs_describeStoredQueries | 1 year ago |
Provides forecasts from all over the world in English, Swedish and Finnish language. The forecasts are most precise for Finland and surrounding countries.
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 get_weather
:
jshon
, curl
, sed
(for conky formatted output)bash
the coreutils
package
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.
Some helper scripts have their own dependencies, but they will tell you if something's missing.
yad
for location-select
(available in most distro repositories)
Recommended: the "Roboto Condensed" font, available through most ditributions' package management.
$ cd /path/to/conky-fmi-weather/
$ ./location-select
Allows you to choose your location & immediately display the forecast window.
If one location is enough, you can start the conky immediately after choosing a location for the first time.
The location and additional stuff can be configured in files/get_weather.d/conf
. Please see the output of
$ ./get_weather -h
This script gets weather data from widget.weatherproof.fi/android/androidwidget.php, downloads icons from cdn.fmi.fi/symbol-images/smartsymbol/v31/p, and wind gust data from opendata.fmi.fi.
Most data and files are cached in files/get_weather.d
and only re-downloaded when necessary.
get_location_id
bash script will get your location's id from geonames.org (location-select
uses it).get_weather_opendata
bash script is an alternative implementation that uses only data from opendata.fmi.fi.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.
If you don't know conky, check this out first.
chmod +x ./get_*
(this normally shouldn't be an issue).lua
templates in files
(used by ./get_weather
to create conky-readable output).*.my.lua
first, and remember to refer to them as such when calling the script, e.g.: ./get_weather -f my.lua
files/get_weather.d
; all files therein can be deleted if they're corrupt.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 IMHO a locally retrieved weather forecast is always superior to one from a large international website somewhere halfway around the globe, and because the Finnish Metereological Institute is not trying to sell me anything.
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!