Shop Mobile More Submit  Join Login
×




Details

Submitted on
May 9, 2013
Image Size
435 KB
Resolution
333×332
Submitted with
Sta.sh
Link
Thumb
Embed

Stats

Views
4,490 (1 today)
Favourites
18 (who?)
Comments
16

License

Creative Commons License
Some rights reserved. This work is licensed under a
Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 License.
×
MINIMAL: WEATHER GEEKLETS by xenatt MINIMAL: WEATHER GEEKLETS by xenatt
icons base weather geeklets

Download - [link]

icons form [link]
Add a Comment:
 
:iconphotoartiste:
photoartiste Featured By Owner Dec 7, 2013
Works fine for me! Thanks a lot! 
Reply
:iconsubwoover:
Subwoover Featured By Owner Jul 27, 2013
have been looking for this for ages :) Looks really cool. Hope you can help me to get it to work
Reply
:iconxenatt:
xenatt Featured By Owner Jul 27, 2013  Hobbyist Digital Artist
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
Reply
:iconsubwoover:
Subwoover Featured By Owner Jul 27, 2013
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 Conditions:|C<BR)' | sed -e 's/Current Conditions://' -e 's/<br wytiwyg="1" \="">//' -e 's///' -e 's/<\/b>//' -e 's/<br wytiwyg="1" \="">//' -e 's/<description>//' -e 's/<\/description>//' -e 's/,//' | tail -n1 | tr '[:lower:]' '[:upper:]'`;i=`echo ${#strx}`;let y=$i-4;echo ${strx:0:$y};
Reply
:iconxenatt:
xenatt Featured By Owner Jul 27, 2013  Hobbyist Digital Artist
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. :)
Reply
:iconxenatt:
xenatt Featured By Owner Jul 27, 2013  Hobbyist Digital Artist
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
Reply
:iconsubwoover:
Subwoover Featured By Owner Jul 27, 2013
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
Reply
:iconxenatt:
xenatt Featured By Owner Jul 27, 2013  Hobbyist Digital Artist
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
Reply
:iconsubwoover:
Subwoover Featured By Owner Jul 27, 2013
ok and i just change all the weather codes etc accordingly?
Reply
:iconsubwoover:
Subwoover Featured By Owner Jul 27, 2013
I can't get the custum weather icon to work. Do you need the applescript from the other link?
Reply
:iconxenatt:
xenatt Featured By Owner Jul 27, 2013  Hobbyist Digital Artist
This Geeklets no use Applescript
Reply
:iconsoresvan:
soresvan Featured By Owner May 18, 2013
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. :)
Reply
:iconxenatt:
xenatt Featured By Owner May 18, 2013  Hobbyist Digital Artist
Re Download Again For sure you got last version
Reply
:iconsoresvan:
soresvan Featured By Owner May 18, 2013
Thank you so much! it's working now. :D Had to change the folder path. :blush:
Reply
:iconxenatt:
xenatt Featured By Owner May 18, 2013  Hobbyist Digital Artist
You are Welcome
Reply
:iconxenatt:
xenatt Featured By Owner May 18, 2013  Hobbyist Digital Artist
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 Conditions:|C<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's///' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -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 Conditions:|C<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's///' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -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
Reply
Add a Comment: