HOME | DD

xenatt β€” MINIMAL: WEATHER GEEKLETS by-nc-nd

Published: 2013-05-09 12:29:35 +0000 UTC; Views: 6930; Favourites: 19; Downloads: 0
Redirect to original
Description icons base weather geeklets

Download - [link]

icons form [link]
Related content
Comments: 18

migotu21 [2015-10-08 02:09:28 +0000 UTC]

Is there somewhere I can find step by step instructions on how to set this up? I'm new to this

πŸ‘: 0 ⏩: 1

xenatt In reply to migotu21 [2015-10-09 00:39:41 +0000 UTC]

So sorry,I dont use it long time ago.

πŸ‘: 0 ⏩: 0

photoartiste [2013-12-07 12:16:10 +0000 UTC]

Works fine for me! Thanks a lot!Β 

πŸ‘: 0 ⏩: 0

Subwoover [2013-07-27 14:55:26 +0000 UTC]

have been looking for this for ages Looks really cool. Hope you can help me to get it to work

πŸ‘: 0 ⏩: 1

xenatt In reply to Subwoover [2013-07-27 15:29:07 +0000 UTC]

extract zip file and copy to [home folder]/Documents

Aka ~/Documents/MINIMAL

go to weather.yahoo.com and get city code.
put city code in geeklets

πŸ‘: 0 ⏩: 1

Subwoover In reply to xenatt [2013-07-27 15:52:27 +0000 UTC]

Thx for your fast reply! I really appreciate it.


Ok i replaced all the city codes with mine, I copied the entire MINIMAL file to the documents folder but still i get no image.Β 



This is the code now:


wtheme=`echo White`;url=`echo "xml.weather.yahoo.com/forecast… "`;tx=`curl --silent "$url" | grep Β '/us/we/52/' | tail -n1 | awk '{print $2}'`;i=`echo ${#tx}`;let y=$i-10;let z=$y-36;n=`echo ${tx:36:$z}`;ln -sf ~/Documents/MINIMAL/Weather/$wtheme/$n.png /tmp/weather_icons.png;



strx=`curl --silent "xml.weather.yahoo.com/forecast… " | grep -E '(Current ConditionsC//' -e 's///' -e 's/<\/b>//' -e 's/
//' -e 's///' -e 's/<\/description>//' -e 's/,//' | tail -n1 | tr '[:lower:]' '[:upper:]'`;i=`echo ${#strx}`;let y=$i-4;echo ${strx:0:$y};

πŸ‘: 0 ⏩: 2

xenatt In reply to Subwoover [2013-07-27 16:11:19 +0000 UTC]

i set icon geeklet refresh every 900 millisec.
Click on icons geeklets and set time to 100
icon Will Show.

Thank for you report too.

πŸ‘: 0 ⏩: 0

xenatt In reply to Subwoover [2013-07-27 15:58:27 +0000 UTC]

I uploaded new version in same link please download and try again.

Easy config

Edit CONFIG file

WEATHER_CODE THXX0024
WEATHER_FORMATT c
WEATHER_ICON_COLOR White



key[tab]value

πŸ‘: 0 ⏩: 1

Subwoover In reply to xenatt [2013-07-27 16:21:01 +0000 UTC]

Thx for all your effort. I guess i am still doing something wrong. Now none of the geeklets show anything. The weather text geeklet shows a red dot as well... I edited the config file to my location wich is NLXX0013

πŸ‘: 0 ⏩: 1

xenatt In reply to Subwoover [2013-07-27 16:26:26 +0000 UTC]

WEATHER_CODE NLXX0013
WEATHER_FORMATT c
WEATHER_ICON_COLOR White



WEATHER_FORMATT c / f
c = celsius
f = fahrenheit

WEATHER_ICON_COLOR White / Black

Black or white or what ever you create this in folder Weather

πŸ‘: 0 ⏩: 1

Subwoover In reply to xenatt [2013-07-27 16:30:59 +0000 UTC]

ok and i just change all the weather codes etc accordingly?

πŸ‘: 0 ⏩: 0

Subwoover [2013-07-27 14:48:13 +0000 UTC]

I can't get the custum weather icon to work. Do you need the applescript from the other link?

πŸ‘: 0 ⏩: 1

xenatt In reply to Subwoover [2013-07-27 15:29:51 +0000 UTC]

This Geeklets no use Applescript

πŸ‘: 0 ⏩: 0

soresvan [2013-05-18 13:22:50 +0000 UTC]

Weather icons does not show, tried fixing it my self but with my no knowledge on scripting I've failed. Could you fix it please? I really like this.

πŸ‘: 0 ⏩: 2

xenatt In reply to soresvan [2013-05-18 14:48:09 +0000 UTC]

Re Download Again For sure you got last version

πŸ‘: 0 ⏩: 1

soresvan In reply to xenatt [2013-05-18 23:07:06 +0000 UTC]

Thank you so much! it's working now. Had to change the folder path.

πŸ‘: 0 ⏩: 1

xenatt In reply to soresvan [2013-05-19 03:45:04 +0000 UTC]

You are Welcome

πŸ‘: 0 ⏩: 0

xenatt In reply to soresvan [2013-05-18 14:46:17 +0000 UTC]

Are you put *MINIMAL* Folder in [HOME DIRECTORY]/Documents/

if you Put in it.
it's path be ~/Documents/MINIMAL/Weather.
in folder MINIMAL you must found.
MINIMAL_WEATHER_DEGREE.glet
MINIMAL_WEATHER_ICONS.glet
MINIMAL_WEATHER_NUMBER.glet
MINIMAL_WEATHER_TEXT.glet

MINIMAL_WEATHER_TEXT.glet work to refresh icons

you must edit URL in script



wtheme=`echo White`;url=`echo "[link] "`;tx=`curl --silent "$url" | grep '/us/we/52/' | tail -n1 | awk '{print $2}'`;i=`echo ${#tx}`;let y=$i-10;let z=$y-36;n=`echo ${tx:36:$z}`;ln -sf ~/Documents/MINIMAL/Weather/$wtheme/$n.png /tmp/weather_icons.png;



strx=`curl --silent "[link] " | grep -E '(Current ConditionsC//' -e 's///' -e 's/<\/b>//' -e 's/
//' -e 's///' -e 's/<\/description>//' -e 's/,//' | tail -n1 | tr '[:lower:]' '[:upper:]'`;i=`echo ${#strx}`;let y=$i-4;echo ${strx:0:$y};

AKA

url=`echo "[link] CODE]&u=[c for Celsius , f for fahrenheit]"`


EDIT MINIMAL_WEATHER_DEGREE.glet


temp=`curl --silent "[link] " | grep -E '(Current ConditionsC//' -e 's///' -e 's/<\/b>//' -e 's/
//' -e 's///' -e 's/<\/description>//' -e 's/,//' | tail -n1 | perl -wane 'print $F[-2]'`;
if [ "$temp" != "" ]
then
awk 'BEGIN { print "\xc2\xb0\C"; }'
fi


AKA

temp=`curl --silent "[link] CODE]&u=[c for Celsius , f for fahrenheit]"`

AKA

'BEGIN { print "\xc2\xb0\C"; }' , C for c for Celsius
'BEGIN { print "\xc2\xb0\F"; }' , F for fahrenheit

#important

put MINIMAL (FOLDER) in Documents's Folder only

if your glet work if will see weather_icons.png in /tmp folder

set refresh time in geektool if glet slow to refresh

πŸ‘: 0 ⏩: 0