Originally Posted by
paramvir
[...] have you looked at element MP1?
Then you have the trend fonts[...] it is handled by conkywx use elements FCTPF for pressure trend font and FCTTF for temperature trend font.
Oops! New version, and I forgot to RTFM... LoL!
Yes, the new elements narrow things even further. Good job!
As an aside, it sure is easier to work with Metric weather stats -- no triple-digits to deal with.
Anyway, I've incorporated most of your suggestions, which allowed me to lessen the text buffer size even further:
Code:
####
## 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 2816
I use multiples of "256" [256*11=2816]. It'll run fine in the 2600-ish range, but 2816 gives it some "fudge room".
I'm going to stay with separate SEDs files for now, for aesthetic reasons. It adds a level of control, without being cumbersome, IMO.
Here's where it stands, right now...
"/usr/share/conkywx/examples/wx-wu-vindsl-imperial-weather-template.sh"
Code:
##################################
## VinDSL | rev. 12-10-02 15:51 ##
##################################
## IMPERIAL WEATHER TEMPLATE ##
##################################
${voffset 6}${goto 34}${font Weather:size=44}${color6}y${font}${voffset -35}${font Arrows:size=28}${goto 160}${color6}[FCTTF]${font}
${voffset -43}${font RadioSpace:size=33}${color6}${alignc 13}[PT]${font}
${voffset 2}${font DroidSansFallback:bold:size=7.4}${alignc 6}${color5}Feels${offset 3}like${offset 1}:${offset 2}${color6}[FL]${offset 2}${color5}/${offset 3}${color6}[FCTT]${font}
${voffset -40}${goto 203}${font DroidSansFallback:bold:size=8.75}${color6}[D1T]${font}
${voffset 0}${goto 203}${font DroidSansFallback:bold:size=7.3}${color5}CoR${offset 3}${color6}[D1P]${font}
${voffset -45}${goto 188}${font KRARound:size=41.5}${color6}I${font}
${voffset 6}${font Ubuntu:size=22.75}${color5}${alignc}[CT]${font}
${voffset 7}${alignc 5}${font}${font DroidSansFallback:bold:size=8}${color5}Sunrise${offset 1}:${offset 1}${color6}[SR]${offset 6}${color5}Sunset${offset 1}:${offset 1}${color6}[SS]${font}
${voffset 8}${goto 85}${font DroidSansFallback:bold:size=7.55}${color5}Humidity${offset 1}:${offset 2}${color6}[HM]${font}${voffset 11}${goto 84}${font DroidSansFallback:bold:size=7.55}${color5}Barometer${offset 1}:${offset 2}${color6}[BR]${font}${voffset 11}${goto 84}${font DroidSansFallback:bold:size=7.55}${color5}Bar${offset 3}Trend${offset 1}:${offset 2}${color6}[FCTP]${font}${voffset 11}${goto 84}${font DroidSansFallback:bold:size=7.55}${color5}Moonrise${offset 1}:${color6}[MR]${font}${voffset 11}${goto 85}${font DroidSansFallback:bold:size=7.55}${color5}Moonset${offset 1}:${color6}[MS]${font}
${voffset -61}${goto 16}${font ConkyWindNESW:size=41.6}${color6}[BF]${font}${voffset -36}${goto 196}${font MoonPhases:size=35}${color6}[MIF]${font}${voffset -36}${goto 198}${font MoonPhases:size=35}${color6}8${font}
${voffset -1}${goto 22}${font DroidSansFallback:bold:size=8.45}${color3}[WS] mph${voffset -1}${goto 203}[MP]${font}
${voffset 8}${goto 25}${font DroidSans:bold:size=8.5}${color5}[D2D]${goto 85}[D3D]${goto 144}[D4D]${goto 201}[D5D]${font}
${voffset 2}${goto 23}${font ConkyWeather:size=32}${color6}[D2F]${goto 83}[D3F]${goto 142}[D4F]${goto 200}[D5F]${font}
${voffset 1}${goto 25}${font DroidSans:bold:size=8.5}${color3}[D2T]${goto 85}[D3T]${goto 144}[D4T]${goto 201}[D5T]${font}
${voffset -1}${goto 24}${font DroidSans:bold:size=8.45}${color5}CoR${offset 3}${color3}[D2P]${goto 84}${color5}CoR${offset 3}${color3}[D3P]${goto 144}${color5}CoR${offset 3}${color3}[D4P]${goto 201}${color5}CoR${offset 3}${color3}[D5P]${font}
"/usr/share/conkywx/examples/wx-wu-vindsl-imperial-weather-seds.sh"
Code:
##################################
## VinDSL | rev. 12-10-02 14:34 ##
##################################
## IMPERIAL WEATHER SEDs ##
##################################
sed -e 's/Calm mph'/'\$\{offset 8\}Calm/g' |
sed -e 's/New Moon'/'\$\{offset -13\}New Moon/g' |
sed -e 's/Waxing Crescent'/'\$\{offset -3\}Waxing/g' |
sed -e 's/First Quarter'/'\$\{offset -5\}First Qtr/g' |
sed -e 's/Waxing Gibbous'/'\$\{offset -3\}Waxing/g' |
sed -e 's/Full'/'\$\{offset 6\}Full/g' |
sed -e 's/Waning Gibbous'/'\$\{offset -4\}Waning/g' |
sed -e 's/Last Quarter'/'\$\{offset -5\}Last Qtr/g' |
sed -e 's/Waning Crescent'/'\$\{offset -3\}Waning/g' |
sed -e 's/N\/A'/'/g'
"/usr/share/conkywx/examples/wx-wu-vindsl-metric-weather-template.sh"
Code:
##################################
## VinDSL | rev. 12-10-02 14:50 ##
##################################
## CONKYWX WEATHER TEMPLATE ##
##################################
${voffset 6}${goto 34}${font Weather:size=44}${color6}y${font}${voffset -35}${font Arrows:size=28}${goto 155}${color6}[FCTTF]${font}
${voffset -43}${font RadioSpace:size=33}${color6}${alignc 14}[PT]${font}
${voffset 2}${font DroidSansFallback:bold:size=7.4}${alignc 6}${color5}Feels${offset 3}like${offset 1}:${offset 2}${color6}[FL]${offset 2}${color5}/${offset 3}${color6}[FCTT]${font}
${voffset -40}${goto 203}${font DroidSansFallback:bold:size=8.75}${color6}[D1T]${font}
${voffset 0}${goto 203}${font DroidSansFallback:bold:size=7.3}${color5}CoR${offset 3}${color6}[D1P]${font}
${voffset -45}${goto 188}${font KRARound:size=41.5}${color6}I${font}
${voffset 6}${font Ubuntu:size=22.75}${color5}${alignc}[CT]${font}
${voffset 7}${alignc 5}${font}${font DroidSansFallback:bold:size=8}${color5}Sunrise${offset 1}:${offset 1}${color6}[SR]${offset 6}${color5}Sunset${offset 1}:${offset 1}${color6}[SS]${font}
${voffset 8}${goto 85}${font DroidSansFallback:bold:size=7.55}${color5}Humidity${offset 1}:${offset 2}${color6}[HM]${font}${voffset 11}${goto 84}${font DroidSansFallback:bold:size=7.55}${color5}Barometer${offset 1}:${offset 2}${color6}[BR]${font}${voffset 11}${goto 84}${font DroidSansFallback:bold:size=7.55}${color5}Bar${offset 3}Trend${offset 1}:${offset 2}${color6}[FCTP]${font}${voffset 11}${goto 84}${font DroidSansFallback:bold:size=7.55}${color5}Moonrise${offset 1}:${color6}[MR]${font}${voffset 11}${goto 85}${font DroidSansFallback:bold:size=7.55}${color5}Moonset${offset 1}:${color6}[MS]${font}
${voffset -61}${goto 16}${font ConkyWindNESW:size=41.6}${color6}[BF]${font}${voffset -36}${goto 196}${font MoonPhases:size=35}${color6}[MIF]${font}${voffset -36}${goto 198}${font MoonPhases:size=35}${color6}8${font}
${voffset -1}${goto 21}${font DroidSansFallback:bold:size=8.45}${color3}[WS] km/h${voffset -1}${goto 203}[MP]${font}
${voffset 8}${goto 25}${font DroidSans:bold:size=8.5}${color5}[D2D]${goto 85}[D3D]${goto 144}[D4D]${goto 201}[D5D]${font}
${voffset 2}${goto 23}${font ConkyWeather:size=32}${color6}[D2F]${goto 83}[D3F]${goto 142}[D4F]${goto 200}[D5F]${font}
${voffset 1}${goto 25}${font DroidSans:bold:size=8.5}${color3}[D2T]${goto 85}[D3T]${goto 144}[D4T]${goto 201}[D5T]${font}
${voffset -1}${goto 24}${font DroidSans:bold:size=8.45}${color5}CoR${offset 3}${color3}[D2P]${goto 84}${color5}CoR${offset 3}${color3}[D3P]${goto 144}${color5}CoR${offset 3}${color3}[D4P]${goto 201}${color5}CoR${offset 3}${color3}[D5P]${font}
"/usr/share/conkywx/examples/wx-wu-vindsl-metric-weather-seds.sh"
Code:
##################################
## VinDSL | rev. 12-10-02 14:33 ##
##################################
## METRIC WEATHER SEDs ##
##################################
sed -e 's/Calm km\/h'/'\$\{offset 8\}Calm/g' |
sed -e 's/New Moon'/'\$\{offset -13\}New Moon/g' |
sed -e 's/Waxing Crescent'/'\$\{offset -3\}Waxing/g' |
sed -e 's/First Quarter'/'\$\{offset -5\}First Qtr/g' |
sed -e 's/Waxing Gibbous'/'\$\{offset -3\}Waxing/g' |
sed -e 's/Full'/'\$\{offset 6\}Full/g' |
sed -e 's/Waning Gibbous'/'\$\{offset -4\}Waning/g' |
sed -e 's/Last Quarter'/'\$\{offset -5\}Last Qtr/g' |
sed -e 's/Waning Crescent'/'\$\{offset -3\}Waning/g' |
sed -e 's/N\/A'/'/g'
Oh, BTW...
Originally Posted by
paramvir
I have not noticed wunderground using first or last quarter in their moon phase for a while - though I recall it being used once which was when I put it into my code for handling moon phase [...]
I'm new to using WU as a data feed, but I've been goofing around with it for almost a full lunar cycle.
Maybe it depends on your locale, language, et cetera, but the weather reports I've been receiving (from my area) have included "First Quarter" and "Last Quarter".
Then again, maybe Conkywx is generating that text. I haven't specifically looked at how it's being parsed.
[MP1] is probably the way to go, as you suggested, but I haven't crossed that bridge yet...
Anyway, thanks again, Paramvir! I appreciate all the hard work you're doing!
Bookmarks