You are not logged in.
It's happening again and this time the reason makes no sense.
I have a good install of Xubuntu 24.04 LTS running XFCE4 4.18. Checked for updates to makes sure the system is current.
I have two users.
- When I login as user1 the weather-plugin works just fine. Even when I change locations.
- When I login as user2 it doesn't work. I get the "Currently no data available" message for any location I try to configure.
Multiple reboots, changing the date/time app, etc. Nothing works for user2 to get the weather.
It seems all this started after the recent daylight savings time change.
Last edited by lintek (2025-03-16 19:39:55)
Offline
Offline
Thx. This leads to me to ask, how do I update to the current version? When I run apt update, then apt list, I still see xfce4-weather-plugin/noble 0.11.2 [installed].
[update]
I ran apt list upgradable. Still does not show 0.11.3. So, I guess I have to wait for Ubuntu to update their repos.
Last edited by lintek (2025-03-13 16:34:58)
Offline
./configure fails on Linuxmint. Complains "checking for libxfce4util-1.0 >= 4.12.0... not found", but I have 4.18 installed
Offline
you can try only rebuild actual package with api url change only in "ubuntu system way"
# install required build-packages
sudo apt build-dep xfce4-weather-plugin
# download source of package (you must have enabled source repository)
apt source xfce4-weather-plugin
cd xfce4-weather-plugin-0.11.2
# change api url from api.met.no to aa062reffgwvo1efa.api.met.no (as in 0.11.3)
sed 's#https://api.met.no#https://aa062reffgwvo1efa.api.met.no#' -i panel-plugin/weather.c
EDITOR=true dpkg-source --commit . backport_changed_api_url.patch
# build package
dpkg-buildpackage -us -uc -ui
and install created deb package...
this keep package version number/name same as actual, if you want change it, use "dch -i;dch -r" for add new section to debian/changelog before build
Added later 21 h 13 min 46 s:
in my howto above i miss, keeping same version (what i not do in my own rebuild) is problem as apt upgrade try updating from same(self) to same(repository) version, then is sure need before step "build package":
# this open default editor with debian/changelog loaded and added on top new section, where is predefined version "0.11.2-1ubuntu1"
# (so "apt upgrade" not try upgrade it to actual/bad repository version 0.11.2-1build2
# you can add on line start with * (after this *) own comment as: backport new url api
# and save&exit editor
dch -i# this is similar as above, but is auto changed UNRELEASES tag to noble
# only save&exit editor
dch -r
Offline
The MX Linux team have built a .deb package for 0.11.3 which is available to download **at your own risk** at https://mxrepo.com/MX23packages.html (scroll down to xfce4-weather-plugin).
Offline
@burgess_m
Wonderful! It works. I hope the weather provider doesn't make any more changes.
Offline
Thx. This leads to me to ask, how do I update to the current version? When I run apt update, then apt list, I still see xfce4-weather-plugin/noble 0.11.2 [installed].
[update]
I ran apt list upgradable. Still does not show 0.11.3. So, I guess I have to wait for Ubuntu to update their repos.
I downloaded the source code from https://archive.al-us.xfce.org/src/pane … .3.tar.bz2, compiled it, and used "checkinstall" to build a deb package. The package installed and works fine.
$ dpkg -l|grep xfce4-weather
ii xfce4-weather-plugin 0.11.3-1 amd64 xfce4 weather
Offline
An update to the weather plugin came down through Sid this morning. I'm sure it will continue down to testing at the very least and maybe stable.
dan@hp8470p:~$ apt policy xfce4-weather-plugin
xfce4-weather-plugin:
Installed: 0.11.3-1
Candidate: 0.11.3-1
Version table:
*** 0.11.3-1 500
500 https://deb.debian.org/debian sid/main amd64 Packages
100 /var/lib/dpkg/status
I AM CANADIAN!
Siduction
Debian Sid
Xfce 4.20 with Wayland/Labwc
Offline
I downloaded the source code from https://archive.al-us.xfce.org/src/pane … .3.tar.bz2, compiled it, and used "checkinstall" to build a deb package. The package installed and works fine.
$ dpkg -l|grep xfce4-weather
ii xfce4-weather-plugin 0.11.3-1 amd64 xfce4 weather
Did you got this banner just after the title bar, with the icon followed by the window title text (text in this image is "Weather Report" in portuguese)?
IMAGE: https://imgur.com/a/JxaHOXG
Offline
No, I do not get that extra banner.
I AM CANADIAN!
Siduction
Debian Sid
Xfce 4.20 with Wayland/Labwc
Offline
The xubunto source looks exactly the same source I've downloaded from this xfce.org site, in the weather plugin page. The size of the tar.bz2 file is exctly the same. I've compiled it with xubuntu 20.04.3 live cd.
sudo apt update
sudo apt install intltool libdbus-glib-1-dev libsoup2.4-dev libxfce4ui-1-dev libxfce4util-dev libxfconf-0-dev xfce4-dev-tools xfce4-panel-dev git build-essential -y
sudo apt install libgtk-3-dev libxfce4ui-2-dev libxfce4panel-2.0-dev libjson-c-dev -y
cd xfce4-weather-plugin
./configure --prefix=/usr
make
Offline
@GabrielCoutinho what source version ?
Offline
@GabrielCoutinho what source version ?
I've downloaded these 3 versions and they all have the same size according to thunar (3619984 bytes):
https://mirror.netcologne.de/xfce/src/p … .3.tar.bz2
https://launchpadlibrarian.net/78253061 … ig.tar.bz2
https://archive.al-us.xfce.org/src/pane … .3.tar.bz2
One from xubuntu PPA and another, posted by @johndthompson.
I've replicated @johndthompson's procedure with the xubuntu 20.04.3 live iso and the banner is still there.
Also, with both "sudo make install" and "sudo checkinstall" the generated plugin files (libweather.la and libweather.so) go to /usr/lib/xfce4/panel/plugins
but in xubuntu, the panel plugins are located at /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins.
Even changing the lib path in the configuration files (like Makefile.am) to the correct one, the deb* didn't work but, replacing the plugin files over the installed 0.10.2, works with but the damn banner...
It's better than nothing but annoying with a 12" laptop.
* The deb installs ok but the plugin can't be found in the panel preferencies "add item".
I've manually rebuild the deb with md5sum and so on and the plugin could be found after reboot.
Here's the deb: https://mega.nz/file/Nc9GiaLS#OPYp2VmoQ … tw58gcywx4
Last edited by GabrielCoutinho (2025-03-20 03:11:57)
Offline
# install required build-packages sudo apt build-dep xfce4-weather-plugin # download source of package (you must have enabled source repository) apt source xfce4-weather-plugin cd xfce4-weather-plugin-0.11.2 # change api url from api.met.no to aa062reffgwvo1efa.api.met.no (as in 0.11.3) sed 's#https://api.met.no#https://aa062reffgwvo1efa.api.met.no#' -i panel-plugin/weather.c EDITOR=true dpkg-source --commit . backport_changed_api_url.patch # build package dpkg-buildpackage -us -uc -ui
I usually update my Linux every 4 years but I'm in the middle of a job and it doesn't seem like it's going to be convenient, at the moment and in the next few months, to do that. That's why I'm still on version 20.04. But I use the plugin's weather information a lot because it's the most accurate and reliable for my region.
I managed to build a version 0.10.3 through your procedure and it works even better than 11 (apart from the banner, the scroll box also doesn't work with 0.11.3 in xubuntu 20.04):
OldAPI='https://api.met.no'
NewAPI='https://aa062reffgwvo1efa.api.met.no'
Source_version="$(cat configure | grep -Fq "PACKAGE_VERSION='" | cut -d "'" -f 2)"
# Replace 0.10.3 with your new version:
NewVersion="0.10.3"
# Change to new version with this...
sed -i "s/$Source_version/$NewVersion/g" configure
# And this, so that in the plugin "About" you can get the correct version.:
NewMicroVersion="$(echo $NewVersion | cut -d "." -f 3)"
sed -i "/m4_define(\[weather_version_micro\]/c\m4_define([weather_version_micro], [${NewMicroVersion}])" configure.ac
# your sed command to change the API:
sed -i "s#$OldAPI#$NewAPI#" panel-plugin/weather.c
The Debian version and changelog are changed as you mentioned (with dch -i and dch -r), before building the package.
NOTE: To build the package, the bz2 source file must be in the same root directory of the folder you are working on and if you changed the version, the version in the bz2 file must be also changed to the updated one because dpkg will search for it during the building process.
When you create the new package, it’s also created a new Debian source – in case you want the keep this for a new API change this debian should replace the debian folder for the upcoming version, and so on, replacing the debian folder inside of the source directory.
Offline
[ Generated in 0.012 seconds, 7 queries executed - Memory usage: 621.8 KiB (Peak: 654.64 KiB) ]