
SMHI weather plasmoid
Source (link to git-repo or to original if based on someone elses unmodified work):
Description:
Plasmoid showing 5-days forecast with data from SMHI, the Swedish Meteorological and Hydrological Institute. Is of course most suited for swedish users…
The icons are picked from Wojciech Grzankas superkaramba icon theme.
Features
- 5-days forecast with temperature, wind and weather
- Current weather observation (only works for Sweden)
- Interactive configuration Last changelog:
The icons are picked from Wojciech Grzankas superkaramba icon theme.
Features
- 5-days forecast with temperature, wind and weather
- Current weather observation (only works for Sweden)
- Interactive configuration
0.2.2
Fixed faulty weather icon sizes in KDE 4.2.2
0.2.1
Fixed segfault error on KDE 4.2
0.2.0
Fixed restore size on reboot issue
Compiles on KDE 4.2 (or at least on 4.2 RC1)
Cosmetic changes
0.1
Initial version
Ratings & Comments
34 Comments
Hi, cant't see any weather conditions under my city name. There is only city name, the place under is blank but in table everything is ok. Installed as root in KDE 4.4.2
Cannot install output from terminal: henric@zepto-laptop:~/Downloads/plasma-applet-smhi-0.2.2$ sudo ./install.sh -- The C compiler identification is GNU -- The CXX compiler identification is unknown -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name. CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name. CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:84 (MESSAGE): ERROR: cmake/modules/FindKDE4Internal.cmake not found in /home/henric/.kde/share/apps;/usr/share/kubuntu-default-settings/kde4-profile/default/share/apps;/usr/share/kde4/apps Call Stack (most recent call first): src/CMakeLists.txt:3 (find_package) CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 2.6) should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it. -- Configuring incomplete, errors occurred! make: *** Ingen regel för att skapa målet "clean". Stannar. make: *** Inga mål angavs och ingen makefil hittades. Stannar. make: *** Ingen regel för att skapa målet "install". Stannar. henric@zepto-laptop:~/Downloads/plasma-applet-smhi-0.2.2$ How to fix this??
Got it working was missing some packages.. The output from the terminal shows this: henric@zepto-laptop:~/Downloads/plasma-applet-smhi-0.2.2$ sudo ./install.sh[sudo] password for henric: -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - found -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found. -- Looking for Q_WS_QWS -- Looking for Q_WS_QWS - not found. -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - not found. -- Found Qt-Version 4.5.0 (using /usr/bin/qmake) -- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so -- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Looking for IceConnectionNumber in ICE -- Looking for IceConnectionNumber in ICE - found -- Found X11: /usr/lib/libX11.so -- Looking for include files CMAKE_HAVE_PTHREAD_H -- Looking for include files CMAKE_HAVE_PTHREAD_H - found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Found Automoc4: /usr/bin/automoc4 -- Found Perl: /usr/bin/perl -- Performing Test _OFFT_IS_64BIT -- Performing Test _OFFT_IS_64BIT - Failed -- Performing Test HAVE_FPIE_SUPPORT -- Performing Test HAVE_FPIE_SUPPORT - Success -- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL -- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success -- Performing Test __KDE_HAVE_GCC_VISIBILITY -- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success -- Phonon Version: 4.3.0 -- Found Phonon: /usr/lib/libphonon.so -- Found Phonon Includes: /usr/include/KDE;/usr/include -- Found KDE 4.2 include dir: /usr/include -- Found KDE 4.2 library dir: /usr/lib -- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler -- Found automoc4: /usr/bin/automoc4 CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 2.6) should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it. -- Configuring done -- Generating done -- Build files have been written to: /home/henric/Downloads/plasma-applet-smhi-0.2.2/build Scanning dependencies of target plasma_applet_smhi_automoc Generating smhi.moc Generating moc_SMHIWrapper.cpp [ 0%] Built target plasma_applet_smhi_automoc [ 25%] Generating ui_smhiConfig.h Scanning dependencies of target plasma_applet_smhi [ 50%] Building CXX object src/CMakeFiles/plasma_applet_smhi.dir/plasma_applet_smhi_automoc.o [ 75%] Building CXX object src/CMakeFiles/plasma_applet_smhi.dir/SMHIWrapper.o [100%] Building CXX object src/CMakeFiles/plasma_applet_smhi.dir/smhi.o Linking CXX shared module ../lib/plasma_applet_smhi.so [100%] Built target plasma_applet_smhi [ 0%] Built target plasma_applet_smhi_automoc [100%] Built target plasma_applet_smhi Install the project... -- Install configuration: "" -- Up-to-date: /usr/share/kde4/services/plasma-applet-smhi.desktop -- Up-to-date: /usr/share/kde4/apps/desktoptheme/default/widgets/smhi_weather_symbols.svg -- Up-to-date: /usr/share/kde4/apps/desktoptheme/default/widgets/smhi_wind_arrow.svg And I can find the smhi applet in add/remove plasma applets but when added to the desktop i get the message that it cant find requested component smhi... How to solve this?
Fixed it myself.. the plasma-applet-smhi was not in usr/lib/kde4 as it should so i manually copied it there and now it works..
I rated it down because there's only one option and that's for the 64bit. I know, i know. Most people are still using 32 bit even when 64bit has been around along time.
Nope, there are two options: Ubuntu amd64 package, or compile from source ;) People with the skills to make packages for their own distribution and architecture are most welcome to submit their builds! A god tutorial to get you started with Ubuntu packages: https://wiki.ubuntu.com/PackagingGuide/Basic?action=show&redirect=HowToBuildDebianPackagesFromScratch
Could someone pls help me to make an 32bit deb-file? I was looking at your link but I do not have the time to learn/try that :(
I still have crazy big icons even after the upgrade to 0.2.2
Did you restart plasma? Did you compile from source, or did you use the Ubuntu package?
I compiled it from source and have restarted plasma several times since then. Still biggy icons.
It seems like the lib-file isn't always installed by make install. Try to manually copy build/lib/plasma_applet_smhi.so to the install location (/usr/lib/kde4/ ?)
I've managed to install it on a fedora 10 machine with kde 4.2. It appears under "Add widgets..." but when i add it to my desktop i get the smhi box, although all it says is: "This object could not be created for the following reason: Could not find requested component: smhi" Can someone please help me?
I can confirm this on Kubuntu 8.10 (KDE 4.2.00).
'make install' doesn't seem to actually copy the library (plasma_applet_smhi.so) from build/lib to the kde lib dir (/usr/lib/kde4 in my case) Manually copying the file fixed it for me.
Oh, on Kubuntu 8.10, that is. KDE 4.2.
I'm extremely new to linux...this is the first thing I've tried installing from source. I followed the "how to install" instructions and after the cmake command, it tells me the source does not contain CMakeLists.txt. What is my next step?
I notice that the plasmoid doesn't work when using http-proxy. Is it possible to add that function in a later version? Other plasmoids work fine with proxy.
Finally a plasmoid with which i can see the forecast for my town! Previously I had to use the city next to me to get a somewhat close forecast. The sad thing is that the weather differs alot between two cities 30 kilometres apart. Especially when there's a huge lake, like the biggest one in Sweden, and a wide-but-not-so-high mountain involved so that forecast for the city next to mine is pretty useless.
Very nice plasmoid. Just two things: 1. It seems the widget doesn't remember its size. Is it because I use KDE from trunk or can anyone else reproduce this? (Resize, restart Plasma). 2. It looks a little bit "messy" at the moment. Clearer rows/columns would be nice.
Remember of size fixed, and clearer rows and cols :) I'm far from a GUI expert, so suggestions making the layout cleaner is much appreciated!
I haven't tried the new version, but judging from the screenshot I can only say one thing: Awesome. This plasmoid is going to be very useful when I update to KDE4 (currently only playing around in trunk), thanks for making it!
Please, port this plasmoid to KDE 4.2 API (Plasma::Icon -> Plasma::IconWidget)
Sorry, it seems that "#include <plasma/widgets/icon.h>" unnecessary at all.
Really nice ! Working fine with the Kubuntu 8.10 Intrepid Ibex (KDE 4.1.3) Again - WoW !
I get this error: make[2]: *** No rule to make target `/build/buildd/kde4libs-4.1.2/obj-x86_64-linux-gnu/lib/libkdecore.so', needed by `lib/plasma_applet_smhi.so'. Stop. make[1]: *** [CMakeFiles/plasma_applet_smhi.dir/all] Error 2 make: *** [all] Error 2 make[2]: *** No rule to make target `/build/buildd/kde4libs-4.1.2/obj-x86_64-linux-gnu/lib/libkdecore.so', needed by `lib/plasma_applet_smhi.so'. Stop. make[1]: *** [CMakeFiles/plasma_applet_smhi.dir/all] Error 2 make: *** [all] Error 2 What do I need to install to get libkdecore.so?