WUN Weather Icons (en)
From Conky PitStop
Line 115: | Line 115: | ||
That should be it. Any questions, ask in the Crunchbang thread: [http://crunchbang.org/forums/viewtopic.php?id=31306 Wun Weather Script for Conky (Lua)] | That should be it. Any questions, ask in the Crunchbang thread: [http://crunchbang.org/forums/viewtopic.php?id=31306 Wun Weather Script for Conky (Lua)] | ||
+ | ==Go To:== | ||
+ | *[[WUN Weather (en)|WUN Weather]] main page. | ||
+ | *[[WUN Weather Templates (en)|WUN Weather Templates]] and Mini HowTo. |
Revision as of 20:27, 14 February 2014
WUN Weather Icons
Language | English Français |
Information taken from: Crunchbang Forums post dated: 2014-02-06
It is quite easy to incorporate additional icon sets into the WUN lua script. If you have an icon set you want to use here is how to adapt it!
- This file will create /icons_yours (icons_yours.tar.gz) extract it anywhere.
- the folder is named "/icons_yours" but could be called anything you like
- Suggestion
- Rename icons_yours before continuing to something unique: ie: /icons_s11 then continue
- in the folder "/icons_yours" there are 3 things
- a folder called /icon - this is where the icons you want to use will be.
- it is important that this folder is not renamed
- a shell script called: 001_icon_symlink_basic.sh, and
- another shell script: 001_icon_symlink_extended.sh
- These scripts generate the symlinks from the icons in "/icons_yours/icon"
- They should be executable
- a folder called /icon - this is where the icons you want to use will be.
- the folder is named "/icons_yours" but could be called anything you like
Looking in 001_icon_symlink_basic.sh there are many lines that are all similar:
ln -s -f ./icon/000 chanceflurries ln -s -f ./icon/000 nt_chanceflurries
^ these are the commands that create the symlinks
ln -s -f
^ calls the program that creates the symlink
./icon/000
^ is the name of the icon being used, this is the part that needs to be edited
chanceflurries
^ this is the name of the symlink that will be created
- it is important that none of the symlink names are altered
- in the examples above, night time icons are indicated by a preceding nt_
Go through the script line by line, look at the description of the weather type in the symlink then pick the icon you want to be displayed and edit the line to point to that icon.
The only thing that should need to be changed is the 000 part of the icon name
For example:
ln -s -f ./icon/000.png chanceflurries
to
ln -s -f ./icon/10.png chanceflurries
- NOTES
- - you need to specify the icon name and extension.
- this method will work for any image file type; .png, .jpg, .gif, etc.
- - you could in fact have your original icons anywhere
- just edit the shell script to point to them
If you have an extensive icon set you could also edit 001_icon_symlink_extended.sh in a similar way:
ln -s -f ./icon/000 01_l_drizzle ln -s -f ./icon/000 01_l_drizzle_nt ln -s -f ./icon/000 02_drizzle ln -s -f ./icon/000 02_drizzle_nt ln -s -f ./icon/000 03_h_drizzle ln -s -f ./icon/000 03_h_drizzle_nt
in these examples the _l_ stands for light, the _h_ stands for heavy a following _nt signifies the night time icon
When you have finished editing the shell scripts, run them to generate the symlinks open a terminal in the icons_yours folder, the location where the shell scripts are, and type
001_icon_symlink_basic.sh
or just double click and run
Take a look through the symlinks to see if there were any mistakes if there are edit the files again and re-run them, they will overwrite the existing links.
OK at this point everything looks good and the icons are all correct
NOW: cut and paste /icons_yours to the wun/additional_files/weathericons/ directory.
As per the example above I'd see: wun/additional_files/weathericons/icons_s11
Edit the wun_config.lua file to point to the icons or use default_weather_icons variable in a template
Icon | File Name is the directory name | Link to author's site |
---|---|---|
icons_falldown.tar.gz | falldown | |
Icons_merlinthered_colorful.tar.gz | merlinthered | |
Icons_merlinthered_dark.tar.gz | ||
Icons_merlinthered_flat_black.tar.gz | ||
Icons_merlinthered_flat_colorful.tar.gz | ||
Icons_merlinthered_light.tar.gz | ||
Icons_merlinthered_white.tar.gz | ||
Icons_tick.tar.gz | tick | |
Included in Archive old conkyForecast icons | /icons_wun |
That should be it. Any questions, ask in the Crunchbang thread: Wun Weather Script for Conky (Lua)
Go To:
- WUN Weather main page.
- WUN Weather Templates and Mini HowTo.