LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 08-04-2013, 04:34 AM   #1
Doc CPU
Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 999

Rep: Reputation: 294Reputation: 294Reputation: 294
Wanted: Details on weather applet for Gnome/MATE panels


Hi there,

I'm using Linux Mint with the MATE desktop on my PCs, and on all machines I have the clock/calendar applet set to display current weather data from a station nearby (actually, it's the Stuttgart Airport weather station). Usually, this is just a weather icon and the current temperature at the selected place, and when I hover the mouse on this display, I get a more verbose information including the perceived temperature ("feels like ...") when it's cold, wind speed and direction, and sunrise/sunset times.
I am dimly aware that in Ubuntu 10.10 with "real" Gnome, this applet was separate from the clock and displayed even more data - like air pressure, and optionally a weather map (which never worked for me).

Does anybody know where these panel applets get their information from, and how I can log this data in a file? In the end, I'd like to have a small program running on my server (with no GUI) that continuously logs that weather data 24/7 so that I can look at last night's temperature curve, see the day's minimum and maximum temperatures and more things like that.

Can anybody point me to something useful?

[X] Doc CPU
 
Old 08-04-2013, 11:08 AM   #2
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,318
Blog Entries: 5

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
I've used conkyForecast.py for a few years now.

http://ubuntuforums.org/showthread.php?t=869328
But you'll need a working XOAP_LICENCE_KEY key file to use conkyForecast for GMXX0128
Rumor and post at above link suggest XOAP_LICENCE_KEYs may be disabled. Mine works and always has.
Found my key using google for "XOAP_LICENCE_KEY=" and tried many keys until it worked.

This output from conkyForecast.py has [b/]many, many [/B]options for grabbing weather data.
Code:
Weather for Stuttgart,Germany
Last Updated 2013-08-04 5:45 PM

Forecast High Temp 31
High for today is 31
Low  for today is 19
Current Humidity: 58%
Fair

Sunrise is at  6:01 AM
Sunset is at  8:57 PM
Length of Daylight is 14:56m
Pollen: 7.2 of 12
UV Index = 2
wrt:
Quote:
Originally Posted by Doc CPU View Post
In the end, I'd like to have a small program running on my server (with no GUI) that continuously logs that weather data 24/7 so that I can look at last night's temperature curve, see the day's minimum and maximum temperatures and more things like that.
It will not "do" yesterday's weather, but you could run it daily and process the output saved in a file.
It works here using
Code:
stuttgart.sh >> x
The conkyForecast.py code has few deps.
It does NOT require conky.

http://conky.pitstop.free.fr/wiki/in..._help_%28en%29

Subscribed with interest...

Last edited by Habitual; 08-04-2013 at 11:12 AM.
 
Old 08-04-2013, 11:58 AM   #3
Doc CPU
Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 999

Original Poster
Rep: Reputation: 294Reputation: 294Reputation: 294
Hi there,

thank you for your reply and your information.

Quote:
Originally Posted by Habitual View Post
I've used conkyForecast.py for a few years now.

http://ubuntuforums.org/showthread.php?t=869328
But you'll need a working XOAP_LICENCE_KEY key file to use conkyForecast for GMXX0128
Okay, so this is definitely not the source where the panel applet gets its data, and fiddling around with illegal or at least gray-zone keys isn't actually my style.

Code:
Weather for Stuttgart,Germany
Last Updated 2013-08-04 5:45 PM

Forecast High Temp 31
High for today is 31
Low  for today is 19
Current Humidity: 58%
Fair

Sunrise is at  6:01 AM
Sunset is at  8:57 PM
Length of Daylight is 14:56m
Pollen: 7.2 of 12
UV Index = 2
That's in fact a lot of information - what I can't find in that excerpt is the current temperature.

Quote:
Originally Posted by Habitual View Post
wrt:
What??

Quote:
Originally Posted by Habitual View Post
It will not "do" yesterday's weather, but you could run it daily and process the output saved in a file.
That's roughly what I wanted to do: Access the data source that the Gnome/MATE applet queries every few minutes anyway, and log that to a file. Note: I do NOT want a forecast, or some edited data, but only rough, current measurements. Current temperature, optionally humidity and air pressure, plus ideally wind and rain data. As for yesterday's data, of course I thought of reading that from the log file.

[X] Doc CPU
 
Old 08-04-2013, 12:51 PM   #4
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,318
Blog Entries: 5

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Quote:
Originally Posted by Doc CPU View Post
fiddling around with illegal or at least gray-zone keys isn't actually my style.
I can respect that.
There's a reference for a new source of weather at http://ubuntuforums.org/showthread.php?t=869328


Source code for Xfce's Weather Update is at http://git.xfce.org/panel-plugins/xfce4-weather-plugin/
Your desktop is different, so YMMV.

google conkyForecastWU and you'll find something that may work.

I don't know how MATE does it, I haven't used Mint since 10.0, sorry.
 
Old 08-04-2013, 04:04 PM   #5
Doc CPU
Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 999

Original Poster
Rep: Reputation: 294Reputation: 294Reputation: 294
Hi there,

thanks again ...

Quote:
Originally Posted by Habitual View Post
Source code for Xfce's Weather Update is at http://git.xfce.org/panel-plugins/xfce4-weather-plugin/
Your desktop is different, so YMMV.
That doesn't matter; at best, I can study the source code, look up where they get their information and how it is structured, and then write my own code, possibly reusing some of the existing. I downloaded the sources, and it looks like this is going to take me somewhere.

Quote:
Originally Posted by Habitual View Post
google conkyForecastWU and you'll find something that may work.
Up to now, I didn't even know what conky is; now I looked it up and found that it might be an interesting piece of software to look into.

Quote:
Originally Posted by Habitual View Post
I don't know how MATE does it, I haven't used Mint since 10.0, sorry.
I only got aware of it since Mint 12 (Maya), when Ubuntu turned my down by discontinuing Gnome2 and instead offering the choice of pest or cholera (Gnome3 or Unity), neither of which I liked.

[X] Doc CPU
 
Old 08-04-2013, 06:44 PM   #6
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,318
Blog Entries: 5

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Conky is pretty awesome, I dived into it like a full blown Drug Addiction for about 6 months.

It's kind of "unuseful" on a host without a DE however.
I'm so "over" conky now, I only use conkyForecast now and a date|time widget on the desktop. That's it.
I have recovered.

Good Luck!
 
Old 08-04-2013, 09:00 PM   #7
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,715

Rep: Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458
GKrellM has a nice weather plugin. You enter the location code and it gives you current conditions in great detail.

Here's a nice article on GKrellM.

Here's a screenshot.
Attached Images
File Type: jpeg gkrellm_weather.jpeg (84.4 KB, 3 views)

Last edited by frankbell; 08-04-2013 at 09:07 PM.
 
Old 08-04-2013, 09:51 PM   #8
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,318
Blog Entries: 5

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Man, what a thread, huh?
Code:
#!/usr/bin/perl -w
#
# Ben Hammersley ben@benhammersley.com
# Looks up the real-world location of visiting IPs
# and then finds out the weather at those places
#

use strict;
use CAIDA::NetGeoClient;
use Weather::Underground;
use Geography::Countries;
if you're into perl...
It's for Visitor weather but a good coder could make use of it...

http://spideringhacks.org.ua/0596005...4-sect-33.html
 
Old 08-05-2013, 11:21 AM   #9
Doc CPU
Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 999

Original Poster
Rep: Reputation: 294Reputation: 294Reputation: 294
Hi there,

Quote:
Originally Posted by frankbell View Post
GKrellM has a nice weather plugin. You enter the location code and it gives you current conditions in great detail.
hey, GKrellM is cool!
However, it also lacks the option of logging all data continuously, which was my main concern.

Or maybe there's another plugin for that I haven't seen yet?

[X] Doc CPU
 
Old 08-06-2013, 11:28 AM   #10
Doc CPU
Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 999

Original Poster
Rep: Reputation: 294Reputation: 294Reputation: 294
Hi there,

Quote:
Originally Posted by Doc CPU View Post
hey, GKrellM is cool!
However, it also lacks the option of logging all data continuously, which was my main concern.
and some of the data is useless. For instance, in the system temperature plug-in, I would've expected it can display mainboard, CPU and HDD temperature. However, it offers only one sensor value labeled "k10temp-hwmon0/temp1", and that temperature usually sways somewhere between 28 and 33°C, so maybe this is the mainboard sensor.
But that's all there is - no CPU temperature (though I can have a look at it in BIOS setup and it's usually 45..50°C), no HDD temperature (though a modern SMART enabled HDD has it available), no fan speed, no voltages.

My enthusiasm for GKrellM has dropped back to almost zero. :-(

[X] Doc CPU
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gnome weather applet not updating temperature! dEnDrOn Linux - Newbie 13 02-09-2012 02:17 AM
LXer: Ready for Gnome 3.2? Welcome back the weather applet! LXer Syndicated Linux News 0 05-31-2011 01:00 AM
gnome launcher panel weather applet radiodee1 Debian 1 02-28-2007 04:37 PM
weather applet for gnome walden Linux - Software 1 07-26-2005 08:22 PM


All times are GMT -5. The time now is 04:42 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration