Clearweather Desktop Screenlet (And other screenlets)

IMPORTANT!, READ THE FOOTNOTE ABOUT EDITING THE SCREENLETS FILE AFTER YOU INSTALL THE SCREENLETS CLEARWEATHER APP!. (EDIT: PLEASE SEE POST NUMBER 11 BEFORE DECIDING WHETHER TO FOLLOW THE TIPS IN THE FOOTNOTE!).

Also, another alternative for Screenlets Clearweather is My Weather Indicator:

Firstly, install the screenlets collection via the following terminal (Ctrl + Alt + t) command (NOT AVAILABLE IN UBUNTU 16.04):

sudo apt-get install screenlets-pack-all

Or download the all.deb package (if you can otherwise look for 32 or 64 bit packages!) directly from the following site (you may have to download other dependencies from the same site!):

https://pkgs.org/ubuntu-15.10/ubuntu-universe-i386/screenlets-pack-all_0.1.6-0ubuntu1_all.deb.html

If you intend to use the "Clearweather" screenlet, you will need to go here: http://www.weather.com/ and type in your location and apply that to the Clearweather "Weather widget settings" per the pic, you need to copy and paste the code shown in the address bar:

Once installed, you will find "Screenlets" under > Applications > Accessories > Screenlets. Select a screenlet (Clearweather) and tick the box "Start/Stop & Auto start on login".

Drag the screenlet to its desired position and then right click the Clearweather desktop screenlet and change its size to one that suits you, then right click again > Properties > Options > Weather > Zip > Paste or type the WOEID code (Where on Earth ID) > Apply:

and you should end up with something like this:

Hover over the screenlet and it will also give you wind speed and other details:

Other settings can be made here:

FOOTNOTE:

This was posted by forum member @SurfaceUnits, thanks for the info . :smiley:

      weather.com recently changed its API

To get the applet to work again, an edit to two lines in the ClearWeatherScreenlet.py file must be made.

Change the 6 occurrences of xoap in each line to xml and the applet will work again.

The file is located in:

Alt + F2 > gksudo caja > /usr/share/screenlets/screenlets-pack-all/ClearWeather

AND CHANGE IT SO IT LOOKS LIKE THE LINES BELOW!:

proxies = proxy.Proxy().get_proxy()
try:
data = urlopen('http://wxdata.weather.com/weather/local/'+self.ZIP+'?cc=*&dayf=10&prod=xml&par=1003666583
&key=4128909340a9b2fc&unit='+unit + '&link=xml',proxies=proxies).read()

proxies = proxy.Proxy().get_proxy()
data = urlopen('http://wxdata.weather.com/weather/local/'+self.ZIP+'?cc=*&dayf=10&prod=xml&par=1003666583
&key=4128909340a9b2fc&unit='+unit+'&hbhf=12&link=xml',proxies=proxies).read()

Don't forget to save the file once you have made the changes!.

6 Likes

Oh man! never knew about screenlets, cool, thanx :smile:

Use this if you want a different weather app (it works on Ubuntu 15.10 also):

weather.com recently changed its API

To get the applet to work again, an edit to two lines in the ClearWeatherScreenlet.py file must be made. The file is located in /usr/share/screenlets/screenlets-pack-all/ClearWeather

proxies = proxy.Proxy().get_proxy()
try:
data = urlopen(‘http://xoap.weather.com/weather/local/’+self.ZIP+’?cc=*&dayf=10&prod=xoap&par=1003666583 &key=4128909340a9b2fc&unit=’+unit + ‘&link=xoap’,proxies=proxies).read()

proxies = proxy.Proxy().get_proxy()
data = urlopen(‘http://xoap.weather.com/weather/local/’+self.ZIP+’?cc=*&dayf=10&prod=xoap&par=1003666583 &key=4128909340a9b2fc&unit=’+unit+’&hbhf=12&link=xoap’,proxies=proxies).read()

Change the 3 occurrences of xoap in each line to xml and the applet will work again.

1 Like

Hi @SurfaceUnits,

I haven’t tried your suggestion but will paste it into the guide above, thanks!. :smiley:

(Edit, have pasted your answer above!.)

Weather.com changed their API again

in the same lines as above, change
http://xml.weather.com/weather/local/ to http://wxdata.weather.com/weather/local/

2 Likes

Hi @SurfaceUnits,

please double check my corrections just to make sure it is okay!. :thumbsup:

Thanks very much for the info!. :smiley:

Rather I like cumulus, the great and small app that just displays the weather. Its simple cool and modern : https://github.com/kd8bny/cumulus

1 Like

no more in defaut repo !
maybe de .deb will do the trick !

Thanks !!

Hi @Tristan_VILLERS,

I had already included a link for the .deb package above and added info about it not being available for Ubuntu 16.04; thanks!. :thumbsup:

1 Like

Hi all,

for those of you that want to use Screenlets, it is now back in business!:

https://launchpad.net/screenlets/+announcement/14462

1 Like

Too funny - '3 years later' !!
Been quite a while since anybody wanted this info here, I'm guessing...

It'd be great if this could work with 18.04 ??
(The latest release at its page is still from 2017...)
Searched for more info & found this:


Which looks pretty much like a mess to deal with.

Tried My-Weather-Indicator, but it will not allow any entry for its location field and the automatic choice is for someplace else entirely.

The lack of some sort of widget-like thing to display time & temp could sure use a fix !!

OK, since it seems that nobody cares anymore here for screenlets - what are folks using for desktop weather & clock aside of this or maybe Conky ??
Thanks.

I use a rather simple conky file for my time needs. See a screenshot which includes a clock in the notification area and the conky beneath it:

conky_clock

Use this conkyrc_clock as an example computerguy:

conky.config = {

--####
--## Use XFT? Required to Force UTF8 (see below)
--#
use_xft = true,
font = 'xftfont 123:size=8.00',
xftalpha = 0.1,

--####
--## Force UTF8? Requires XFT (see above)
--## Displays degree symbol, instead of °, etc.
--#
override_utf8_locale = true,

--####
--## This buffer is used for single lines, text, output from $exec, and other variables.
--## Increasing the 'text_buffer_size' (too high) will drastically reduce Conky's performance.
--## Decreasing the buffer size (too low) will truncate content and cause strange display output.
--## Standard text buffer size is 256 bytes (cannot be less). Adjust YOUR buffer wisely!
--## Tips n' Tricks from dk75:"You don't need to create a 12KiB buffer for every Conky config line."
--#
text_buffer_size = 500,

--####
--## Daemonize Conky, aka 'fork to background'.
--#
background = true,

--####
--## Update interval in seconds.
--#
update_interval = 1.0,

--####
--## The number of times Conky will update before quitting.
--## Zero makes Conky run forever.
--#
total_run_times = 0,

--####
--## Create 'own_window' type. Makes Conky behave like other panels.
--#
own_window = true,
own_window_transparent = true,
own_window_type = 'normal',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
--####
--## Some distros require the following lines for TRUE transparency.
--## BOTH of these lines need to be Commented/Uncommented in tandem.
--## (Currently not working in Conky 1.10.x - Disabled)
--#
own_window_argb_visual = true,
own_window_argb_value = 0,
--####
--## Don't want TRUE transparency? (icons look janky on certain walls)
--## Comment BOTH of the lines above and Uncomment the line below.
--## (Currently not working in Conky 1.10.x - Disabled)
--#
--# own_window_argb_visual = false,

--####
--## Force images to redraw when they change.
--#
imlib_cache_size = 1,

--####
--## Use double buffering? Reduces flicker.
--#
double_buffer = true,

--####
--## Draw shades?
--#
draw_shades = false,
default_shade_color = '333300',
--# default_shade_color = '3c3c3c',
--# default_shade_color = '494949',
--# default_shade_color = '565656',
--# default_shade_color = '626262',

--####
--## Draw outlines?
--#
draw_outline = false,

--####
--## Draw borders around text?
--#
draw_borders = false,

--####
--## Print text to stdout?
--## Print text in console?
--#
out_to_ncurses = false,
out_to_console = false,

--####
--## Text alignment.
--#
alignment = 'top_right',

--####
--## Minimum size of the text area.
--#
minimum_width = 180,
minimum_height = 60,

--####
--## Maximum width of the text area.
--#
maximum_width = 230,

--####
--## Gap between text and screen borders.
--#
gap_x = 10, --# Left/Right
gap_y = 20, --# Top/Bottom

--####
--## Pad % symbol spacing after numbers.
--#
pad_percents = 0,

--####
--## Pad spacing between text and borders.
--#
border_inner_margin = 4,

--####
--## Subtract file system -/+buffers/cache from used memory?
--## Set to true, to produce meaningful physical memory stats.
--#
no_buffers = true,

--####
--## Set to true, if you want all text to be in UPPERCASE.
--#
uppercase = false,

--####
--## Add spaces to keep things from moving around?
--## Only affects certain objects.
--#
use_spacer = 'right',

--####
--## My colors (suit yourself)
--#
color0 = 'white', --#FFFFFF
color1 = 'ivory', --#FFFFF0
color2 = 'ivory2', --#EEEEE0
color3 = 'ivory3', --#CDCDC1
color4 = 'ffcc66', --#FFCC66
color5 = 'ivory3', --#CDCDC1
color6 = 'gray', --#BEBEBE
color7 = 'antiquewhite4', --#8B8378
color8 = 'dimgray', --#696969
color9 = 'tomato', --#FF6347

} --end conky.config
conky.text = [[
${voffset 0}${font Radio Space Bold:size=30}${color grey88}$alignr${time %l:%M %p}${font}
${voffset 8}${color turquoise3}${font Radio Space Bold:size=20}$alignr MATE${color turquoise1}${font Radio Space Bold:size=30}${voffset -12}$alignr 20.04${font} ${voffset -12}${font size=10}β${font}
]] --end conky.text

Good luck.

Thanks Very Much for your helpful reply Mdooley !!

As it happens, a day or 2 ago I realized that what I need is to see the clock displayed at the lower left as I'd had previously with Chameleon Clock, so I simply moved the panel clock there & now when my eyes seek the time , they find it easily.

The weather part is apparently more complicated than my non-coder brain can handle.
It may just be that I'll do up a used Android device as a desk accessory with the 'Weather Now' app, which is quite satisfactory.
I was truly hoping to have something like that displayed on my desktop PC & it looks like there is no way at present to have that, sadly.