meteo-qt is an application to display weather information in desktop panels, desktop notifications and its own window.
Weather data is taken from OpenWeatherMap. The application is based on Python 3 and Qt 5. It is licensed under the GNU General Public License version 3 (GPLv3).
After satisfying some runtime dependencies meteo-qt can be run right from the source tree. Installing
is possible as well and relying on on a file
setup.py as commonly used in Python. This enables
every regular user to run the application and updates the translations comprised in the code. Also,
some binary packages are available.
The following sections will describe all three approaches stating some major Linux distributions as example.
# pacman -S python-pyqt5 python-sip python-lxml
# apt-get install python3-pyqt5 python3-sip python3-lxml
# dnf install python3-qt5 python3-sip python3-lxml
# zypper install python3-qt5 python3-sip python3-lxml
(SIP packages stated for the sake of completeness only. In fact they all are a dependency of the respective PyQt packages.)
Running from the sources
Once the runtime dependencies stated above are met the application can be run from its sources by invoking
$ python3 /path/to/meteo-qt/meteo_qt/meteo_qt.py
Installation from the sources
In addition to the runtime dependencies stated above binaries
pylupdate5 of PyQt and
Qt Linguist are needed.
lrelease still comes as Qt 5 and 4 version in all major distributions so it must be ensured
the former is used.
This document describes how to achieve this by tweaking the system-wide settings of qtchooser which is available on Arch Linux, Debian and Fedora while a manual approach has to be taken on openSUSE. The corresponding changes may or may not be reverted after installing meteo-qt depending on the needs of the respective system.
To test whether
lrelease is configured properly run
$ lrelease -version which should output the
desired Qt version like
# pacman -S qt5-tools
This will pull in package
qtchooser which has the usual link
/etc/xdg/qtchooser/default.conf point to
/etc/xdg/qtchooser/5.conf making Qt 5 the default.
# apt-get install pyqt5-dev-tools qttools5-dev-tools
To make Qt 5 the default version either install package
qt5-default in addition or create a symbolic
# ln -s /usr/share/qtchooser/qt5-x86_64-linux-gnu.conf /usr/lib/x86_64-linux-gnu/qtchooser/default.conf
where the architecture, here
x86_64-linux-gnu, may have to get adjusted to the current system.
# dnf install python3-qt5-devel qt5-linguist qtchooser
To make Qt 5 default run
# update-alternatives --config qtchooser-default
follow the instructions and log out and in again.
(Fedora is handling qtchooser by the Debian Alternatives System, see
$ ls -l /etc/alternatives/qtchooser-* /etc/xdg/qtchooser/. The binaries handled by qtchooser are
placed at a location that's usually outside
$PATH and added to the latter by files in
hence the need to log out and in again.)
# zypper install python3-qt5-devel libqt5-linguist
Make sure package
libqt4-linguist which is the only package providing binary
$PATH isn't installed
/usr/bin/lrlease to another location and run
# ln -s /usr/bin/lrelease-qt5 /usr/bin/lrelease
To install run
# python3 setup.py install
in the source tree. Adding switch
--help displays additional options.
After installing that way a binary
meteo-qt will be placed in
desktop entry file
$XDG_DATA_DIRS/applications making the application available in the usual panel main menus.
Package meteo-qt is providing stable releases.
GetDeb is providing a package meteo-qt for stable releases.
As of June 2016 users need to use a personal key to access OpenWeatherMap data. OpenWeatherMap is restricting access to the data by keys in order to avoid abuse, unfortunately the single key that was issued for meteo-qt as a whole had to be revoked as it was apparently hijacked.
To register a personal key visit openweathermap.org, once acquired the key has to be filed in the settings of meteo-qt.
Not much to say. The window providing verbose information as depicted above will display upon left clicking the panel icon, a context menu coming up on right-click is providing several configuration options all of which should be pretty self-explanatory.