You are not logged in.

#1 2015-10-04 19:12:30

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 725

Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

ABSTRACT

Some scripts for displaying a weather forecast or the moon phases on your conky.
They use Accuweather, Weather Underground, National Weather Service (USA) and MoonGiant.com.
They all rely on the same principle: download a bunch of pages, parse them and isolate the necessary info for conky to find.
There is something for everyone: from the minimalistic, to the humongous, larger than life, "I'm a meteorologist" aspect.


POINTS TO NOTICE

  • If you get unwanted log files from wget (ie, wget-log, wget-log1, etc.), add the following parameter to its call

    -o /dev/null

    It will redirect logging to /dev/null

  • If you're still using conky 1.9, keep in mind that the new lua syntax of the conky configuration files (introduced with conky 1.10) will not work. Just post in the thread if you have any problem

  • If you hate my scripts, throw me some hate mail



ANNOUNCEMENTS

2018-10-1: Accuweather decided to give wget and curl a hard time when they try to download its source pages. Using a user agent half works (it fails when there's a VPN present), therefore I decided to ditch wget after all these years and use lynx instead.
This means that from now on lynx is a dependency for the 1_Accuweather script, which has been rebundled.

2018-6-24: Update for the 2_Wunderground script. WU have apparently stopped providing api keys. The script has been changed to use what appears to be a master api key. Time will tell if it's gonna be valid forever or not. Other than this and the addition of the -o /dev/null switch to the wget command (no unnecessary log files will be created) the script remains unchanged. Thanks to garpu and unklar for helping me test the script.

11-11-17: Update for the hourly forecast of the 1_Accuweather script. The hourly forecast now includes visibility values and has become a bit more flexible regarding the final conky output: the users can now choose whether they'd like a 8 hours or a 16 hours forecast. They are also provided with the option to omit most of the output info by using some additional switches I've added to the script (times, images, forecast and temperatures have been kept as a bare minimum). See the 1_README file for more information on the switches and how to use them.
Also, I've added the -o /dev/null switch to all wget calls so that no unnecessary log files are created.
Otherwise, a couple of bug corrections here and there.

28-9-17: The New Moon Icon has changed in the 2_Wunderground API script. The old one was confusing as it was an empty icon, the new one is the full moon significantly darkened.
I've also remove the dreaded

killall wget

command in this script, as well as in the 1_RSS and 3 scripts.
All changed scripts rebundled.

25-9-17: The latest update on the 1_Accuweather script left some unwanted code in the script, code that I meant to remove in the case of an update. Well, I didn't... but I did now!
Script rebundled.
(For the lazy: remove lines 365-376 and you'll be fine.)



THE SCRIPTS

1)Accuweather - 1_2018-10-1

Cf1P8c3t.jpg
Conky companion here and here by Sector11.
A conkyrc for the UVI from Sector11 here.


1) Accuweather RSS - 1_RSS_28-9-17
Kj0tP.jpg

Check out Sector11's alternative suggestion here.


2) WUnderground API - All users - 2_2018-6-24
Companion to the script: 2_Companion

0TTzeYht.jpg

If .conkyrc4 does not work on your system, change the max_specials value from 512 to 1000.
A full proposal by S11 combining this script and 4 (Moon phases), as well as a weather clock-chronograph.
Check it out.
Another minimalistic approach (by S11 again) here. This one's text only - love it.
A maximalistic approach, again by S11, combining scripts 2 and 4 here.
chepioq modified the script so that it can be used by other languages as well and created a conkyrc for it. Click here.


3) NWS XML - USA users - 3_28-9-17

vCuUpzdt.jpg            Feid3qHt.jpg            t0rxoc2t.jpg


4) Moon phases' script - 4_24-5-17

Ms6HJ6kt.jpg
b6MnSOqt.jpg

It uses http://www.moongiant.com/.
Both conkyrc files included in the tarball are the creation of S11.
Alternative layout by fvirgola80 and a variation by S11.
Vertical layout by fvirgola80 ("Luke") again.
A maximalistic approach, again by S11, combining scripts 2b and 4 here.



A script and conkyrc to show the monthly moon phases:
Clickety
It uses this address to fetch the monthly phases.
Thanks to S11 for the conkyrcs.

Last edited by TeoBigusGeekus (2018-10-01 19:30:37)


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#2 2015-10-04 21:53:51

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,153

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Teo, my good man - so good to see you here!  We start anew!  wink


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

#3 2015-10-05 06:22:05

Anaconda
crypto-anarchist
From: Quesnel BC Canada
Registered: 2015-09-29
Posts: 186

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Keyboard tip.

I just discovered that super+d kills conky. Doing it again restarts it. I have not seen that mentioned anywhere. I discovered this by accident when doing some sloppy keyboarding. smile


“The university is well structured, well tooled, to turn out people with all the sharp edges worn off...." Mario Savio
"Protections for anonymous speech are vital to democratic discourse". Help enforce our right to free and anonymous speech by running a Tor relay.

Offline

#4 2015-10-05 06:50:51

pvsage
Internal Affairs
Registered: 2015-09-29
Posts: 1,433

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

^ It doesn't kill Conky, it just hides it because the default Hydrogen ~/.conkyrc has "own_window_type normal".  Try changing that to "own_window_type desktop".


Be excellent to each other, and...party on, dudes!
BunsenLabs Forum Rules
Tending and defending the Flame since 2009

Offline

#5 2015-10-05 06:58:26

Anaconda
crypto-anarchist
From: Quesnel BC Canada
Registered: 2015-09-29
Posts: 186

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Ah, I see.

I should let the coffee kick in before going "hey look at that"!


“The university is well structured, well tooled, to turn out people with all the sharp edges worn off...." Mario Savio
"Protections for anonymous speech are vital to democratic discourse". Help enforce our right to free and anonymous speech by running a Tor relay.

Offline

#6 2015-10-05 08:26:49

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 725

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Sector11 wrote:

Teo, my good man - so good to see you here!  We start anew!  wink

It's good to be here S11, I wish you the best for this new beginning.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#7 2015-10-05 12:08:26

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,153

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Teo's Accuweather script updated - 29 Oct 2015 therefore this conky is
OLD & OUTDATED update coming.
»»»»» This is for conky v1.90 «««««

Here's one of Teo's scripts, shown with draw-bg.lua and various wallpapers.

1a_accuweather_conky_INT/accuweather_conky
adgjsWzg.jpg
Note: The change from Today to Tonight on the extreme right.  I waited for that to happen.

Using:

minimum_size 140 735  ## width, height
maximum_width 140   ## width

was important to set the size because of all the negative ${voffset} commands to being text up in line.

I have made some changes to the "accuw_script" so that it uses lowercase as well.

The Conky

# killall conky && conky -c /media/5/Conky/accuweather_conky/conkyrc_acc_int &
###  Begin Window Settings  ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
#own_window_colour gray
own_window_class Conky
own_window_title Chronograph Full 2

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type normal
# own_window_argb_visual yes

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
# own_window_argb_value 0

minimum_size 140 735  ## width, height
maximum_width 140   ## width

gap_x 10  ### left &right
gap_y 10  ### up & down

alignment tl #ml
####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
#xftfont CorporateMonoExtraBold:size=9
xftfont monofur:bold:size=12
# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
draw_shades no
default_shade_color black

draw_outline no # amplifies text if yes
default_outline_color black

default_color DCDCDC #220 220 220	Gainsboro
color0 8FBC8F #143 188 143	DarkSeaGreen
color1 C2CCFF #119 136 153	LightSlateGray
color2 FF8C00 #255 140   0	DarkOrange
color3 7FFF00 #127 255   0	Chartreuse
color4 FFA07A #255 160 122	LightSalmon
color5 FFDEAD #255 222 173	NavajoWhite
color6 00BFFF #  0 191 255	DeepSkyBlue
color7 00FFFF #  0 255 255	Cyan
color8 FFFF00 #255 255   0	Yellow
color9 B22222 #178  34  34	FireBrick
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders yes #no
#default_graph_size 15 40
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background yes

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 256

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

# If enabled, values which are in bytes will be printed in human readable
# format (i.e., KiB, MiB, etc). If disabled, bytes is printed instead
format_human_readable yes

# Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off.
short_units yes

#   Maximum size of user text buffer, i.e. layout below TEXT line in config file
#  (default is 16384 bytes)
# max_user_text 16384

# Desired output unit of all objects displaying a temperature. Parameters are
# either "fahrenheit" or "celsius". The default unit is degree Celsius.
# temperature_unit Fahrenheit

##############################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
### draw-bg.lua - Above and After TEXT - requires a composite manager ########
# ----------------------------------------------------------------------------
lua_load /media/5/Conky/LUA/draw-bg.lua
#TEXT
# ${lua conky_draw_bg 125 0 0 0 0 0x000000 0.3}
# ============================================================================
## OR Both above TEXT - No composite manager required.
# ----------------------------------------------------------------------------
#lua_load /media/5/Conky/LUA/draw-bg.lua
#lua_draw_hook_pre draw_bg 12 0 0 0 0 0x000000 0.5
# TEXT
#######################################################  End LUA Settings  ###

update_interval 1

TEXT
${lua conky_draw_bg 12 0 0 0 0 0x000000 0.3}\
Looking Out ${hr 2}$color${execi 600 bash /media/5/Conky/accuweather_conky/accuw_script}
Now\
${goto 90}${font conkyweather:size=40}${execi 600  sed -n '2p' /media/5/Conky/accuweather_conky/curr_cond}${font}
${voffset -40}   ${execpi 600 sed -n '4p' /media/5/Conky/accuweather_conky/curr_cond}°


${execpi 600 sed -n '1p' /media/5/Conky/accuweather_conky/tod_ton}\
${goto 90}${font conkyweather:size=40}${execi 600  sed -n '2p' /media/5/Conky/accuweather_conky/tod_ton}${font}
${voffset -40}    ↑ ${execpi 600 sed -n '4p' /media/5/Conky/accuweather_conky/tod_ton}°
    ↓ ${execpi 600 sed -n '5p' /media/5/Conky/accuweather_conky/tod_ton}°
${stippled_hr 5 1}
${execpi 600 sed -n '6p' /media/5/Conky/accuweather_conky/tod_ton}\
${goto 90}${font conkyweather:size=40}${execi 600  sed -n '7p' /media/5/Conky/accuweather_conky/tod_ton}${font}
${voffset -40}    ↑ ${execpi 600 sed -n '9p' /media/5/Conky/accuweather_conky/tod_ton}°
    ↓ ${execpi 600 sed -n '10p' /media/5/Conky/accuweather_conky/tod_ton}°
          ${stippled_hr 5 1}
${execpi 600 sed -n '11p' /media/5/Conky/accuweather_conky/tod_ton}\
${goto 90}${font conkyweather:size=40}${execi 600  sed -n '12p' /media/5/Conky/accuweather_conky/tod_ton}${font}
${voffset -40}    ↑ ${execpi 600 sed -n '14p' /media/5/Conky/accuweather_conky/tod_ton}°
    ↓ ${execpi 600 sed -n '15p' /media/5/Conky/accuweather_conky/tod_ton}°
          ${stippled_hr 5 1}
${execpi 600 sed -n '16p' /media/5/Conky/accuweather_conky/tod_ton}\
${goto 90}${font conkyweather:size=40}${execi 600  sed -n '17p' /media/5/Conky/accuweather_conky/tod_ton}${font}
${voffset -40}    ↑ ${execpi 600 sed -n '19p' /media/5/Conky/accuweather_conky/tod_ton}°
    ↓ ${execpi 600 sed -n '20p' /media/5/Conky/accuweather_conky/tod_ton}°
          ${stippled_hr 5 1}
${execpi 600 sed -n '21p' /media/5/Conky/accuweather_conky/tod_ton}\
${goto 90}${font conkyweather:size=40}${execi 600  sed -n '22p' /media/5/Conky/accuweather_conky/tod_ton}${font}
${voffset -40}    ↑ ${execpi 600 sed -n '24p' /media/5/Conky/accuweather_conky/tod_ton}°
    ↓ ${execpi 600 sed -n '25p' /media/5/Conky/accuweather_conky/tod_ton}°
          ${stippled_hr 5 1}
${execpi 600 sed -n '1p' /media/5/Conky/accuweather_conky/last_days}\
${goto 90}${font conkyweather:size=40}${execi 600  sed -n '2p' /media/5/Conky/accuweather_conky/last_days}${font}
${voffset -40}    ↑ ${execpi 600 sed -n '4p' /media/5/Conky/accuweather_conky/last_days}°
    ↓ ${execpi 600 sed -n '5p' /media/5/Conky/accuweather_conky/last_days}°
          ${stippled_hr 5 1}
${execpi 600 sed -n '6p' /media/5/Conky/accuweather_conky/last_days}\
${goto 90}${font conkyweather:size=40}${execi 600  sed -n '7p' /media/5/Conky/accuweather_conky/last_days}${font}
${voffset -40}    ↑ ${execpi 600 sed -n '9p' /media/5/Conky/accuweather_conky/last_days}°
    ↓ ${execpi 600 sed -n '10p' /media/5/Conky/accuweather_conky/last_days}°
          ${stippled_hr 5 1}
${execpi 600 sed -n '11p' /media/5/Conky/accuweather_conky/last_days}\
${goto 90}${font conkyweather:size=40}${execi 600  sed -n '12p' /media/5/Conky/accuweather_conky/last_days}${font}
${voffset -40}    ↑ ${execpi 600 sed -n '14p' /media/5/Conky/accuweather_conky/last_days}°
    ↓ ${execpi 600 sed -n '15p' /media/5/Conky/accuweather_conky/last_days}°
          ${stippled_hr 5 1}
${execpi 600 sed -n '16p' /media/5/Conky/accuweather_conky/last_days}\
${goto 90}${font conkyweather:size=40}${execi 600  sed -n '17p' /media/5/Conky/accuweather_conky/last_days}${font}
${voffset -40}    ↑ ${execpi 600 sed -n '19p' /media/5/Conky/accuweather_conky/last_days}°
    ↓ ${execpi 600 sed -n '20p' /media/5/Conky/accuweather_conky/last_days}°
          ${stippled_hr 5 1}
${execpi 600 sed -n '21p' /media/5/Conky/accuweather_conky/last_days}\
${goto 90}${font conkyweather:size=40}${execi 600  sed -n '22p' /media/5/Conky/accuweather_conky/last_days}${font}
${voffset -40}    ↑ ${execpi 600 sed -n '24p' /media/5/Conky/accuweather_conky/last_days}°
    ↓ ${execpi 600 sed -n '25p' /media/5/Conky/accuweather_conky/last_days}°

and the accuw_script

#!/bin/bash

#function: test_image_day
test_image_day () {
    case $1 in
         su)
           echo a
         ;;
         msu)
           echo b
         ;;
         psu)
           echo c
         ;;
         ic)
           echo c
         ;;
         h)
           echo c
         ;;
         mc)
           echo d
         ;;
         c)
           echo e
         ;;
         d)
           echo e
         ;;
         f)
           echo 0
         ;;
         s)
           echo h
         ;;
         mcs)
           echo g
         ;;
         psus)
           echo g
         ;;
         t)
           echo l
         ;;
         mct)
           echo k
         ;;
         psut)
           echo k
         ;;
         r)
           echo i
         ;;
         fl)
           echo p
         ;;
         mcfl)
           echo o
         ;;
         psfl)
           echo o
         ;;
         sn)
           echo r
         ;;
         mcsn)
           echo o
         ;;
         i)
           echo E
         ;;
         sl)
           echo u
         ;;
         fr)
           echo i
         ;;
         rsn)
           echo v
         ;;
         w)
           echo 6
         ;;
         ho)
           echo 5
         ;;
         co)
           echo E
         ;;
         cl)
           echo A
         ;;
         mcl)
           echo B
         ;;
         pc)
           echo C
         ;;
         pcs)
           echo G
         ;;
         pct)
           echo K
         ;;
        esac
}

#function: test_image_night
test_image_night () {
    case $1 in
		 su)
           echo a
         ;;
         msu)
           echo b
         ;;
         psu)
           echo c
         ;;
         c)
           echo f
         ;;
         d)
           echo f
         ;;
         f)
           echo f
         ;;
         s)
           echo h
         ;;
         psus)
           echo g
         ;;
         t)
           echo l
         ;;
         psut)
           echo k
         ;;
         r)
           echo i
         ;;
         fl)
           echo p
         ;;
         psfl)
           echo o
         ;;
         sn)
           echo r
         ;;
         i)
           echo E
         ;;
         sl)
           echo u
         ;;
         fr)
           echo i
         ;;
         rsn)
           echo v
         ;;
         ho)
           echo 5
         ;;
         co)
           echo E
         ;;
         cl)
           echo A
         ;;
         w)
           echo 6
         ;;
         mcl)
           echo B
         ;;
         pc)
           echo C
         ;;
         ic)
           echo B
         ;;
         h)
           echo B
         ;;
         mc)
           echo C
         ;;
         pcs)
           echo G
         ;;
         mcs)
           echo G
         ;;
         pct)
           echo K
         ;;
         mct)
           echo K
         ;;
         mcfl)
           echo O
         ;;
         mcsn)
           echo O
         ;;
        esac
}

kill -STOP $(pidof conky)
killall wget

#put your Accuweather address here
address="http://www.accuweather.com/en/ar/general-urquiza/1228994/weather-forecast/1228994"

loc_id=$(echo $address|sed 's/\/weather-forecast.*$//'|sed 's/^.*\///')
last_number=$(echo $address|sed 's/^.*\///')

curr_addr="$(echo $address|sed 's/weather-forecast.*$//')"current-weather/"$last_number"
wget -O /media/5/Conky/accuweather_conky/curr_cond_raw "$curr_addr"

addr1="$(echo $address|sed 's/weather-forecast.*$//')"daily-weather-forecast/"$last_number"
wget -O /media/5/Conky/accuweather_conky/tod_ton_raw "$addr1"

addr2="$addr1"?day=6
wget -O /media/5/Conky/accuweather_conky/last_days_raw "$addr2"

#current conditions
if [[ -s /media/5/Conky/accuweather_conky/curr_cond_raw ]]; then

    sed -i '/detail-now/,/#details/!d' /media/5/Conky/accuweather_conky/curr_cond_raw
    egrep -i '"cond"|icon i-|detail-tab-panel' /media/5/Conky/accuweather_conky/curr_cond_raw > /media/5/Conky/accuweather_conky/curr_cond
    sed -i -e 's/^.*detail-tab-panel //g' -e 's/^.*icon i-//g' -e 's/"><\/div>.*$//g' /media/5/Conky/accuweather_conky/curr_cond
    sed -i -e 's/^.*"cond">//g' -e 's/&deg/\n/g' -e 's/<\/span>.*"temp">/\n/g' -e 's/<.*>//g' /media/5/Conky/accuweather_conky/curr_cond
    sed -i -e 's/">//g' -e 's/-->//g' -e 's/\r$//g' -e 's/ i-alarm.*$//g' /media/5/Conky/accuweather_conky/curr_cond
	time=$(sed -n 1p /media/5/Conky/accuweather_conky/curr_cond)
    image=$(sed -n 2p /media/5/Conky/accuweather_conky/curr_cond)
	if [[ $time == day ]]; then
	    sed -i 2s/$image/$(test_image_day $image)/ /media/5/Conky/accuweather_conky/curr_cond
	elif [[ $time == night ]]; then
	    sed -i 2s/$image/$(test_image_night $image)/ /media/5/Conky/accuweather_conky/curr_cond
	fi

fi

#First 5 days
if [[ -s /media/5/Conky/accuweather_conky/tod_ton_raw ]]; then

    sed -i '/feed-tabs/,/\.feed-tabs/!d' /media/5/Conky/accuweather_conky/tod_ton_raw
    egrep -i 'Early AM|Today|Tonight|Overnight|icon i-|cond|temp|Mon|Tue|Wed|Thu|Fri|Sat|Sun' /media/5/Conky/accuweather_conky/tod_ton_raw > /media/5/Conky/accuweather_conky/tod_ton
    sed -i -e 's/^.*#">//g' -e 's/^.*icon i-//g' -e 's/^.*cond">//g' -e 's/^.*temp">//g' /media/5/Conky/accuweather_conky/tod_ton
    sed -i -e 's/Lo<\/span> /\n/g' -e 's/<\/a>.*$//g' -e 's/ "><.*$//g' -e 's/&#.*$//g' -e 's/teo//g' /media/5/Conky/accuweather_conky/tod_ton
    sed -i -e 's/<span>.*$//g' -e 's/<\/span>//g' -e 's/\r$//g' -e 's/ i-alarm.*$//g' /media/5/Conky/accuweather_conky/tod_ton
 	sed -i -e 's/Early AM/Early AM/' -e 's/Today/Today/' -e 's/Tonight/Tonight/' -e 's/Overnight/Overnight/' -e 's/Mon$/Monday/' -e 's/Tue$/Tuesday/' -e 's/Wed$/Wednesday/' -e 's/Thu$/Thursday/' -e 's/Fri$/Friday/' -e 's/Sat$/Saturday/' -e 's/Sun$/Sunday/' /media/5/Conky/accuweather_conky/tod_ton
    time=$(sed -n 1p /media/5/Conky/accuweather_conky/tod_ton)
    image=$(sed -n 2p /media/5/Conky/accuweather_conky/tod_ton)
	if [[ $time == Today ]]; then
	    sed -i 2s/$image/$(test_image_day $image)/ /media/5/Conky/accuweather_conky/tod_ton
	elif [[ $time == Tonight || $time == Overnight || $time == "Early AM" ]]; then
	    sed -i 2s/$image/$(test_image_night $image)/ /media/5/Conky/accuweather_conky/tod_ton
        sed -i 3a- /media/5/Conky/accuweather_conky/tod_ton
	fi
    for (( i=7; i<=22; i+=5 ))
	  do
          image=$(sed -n "${i}"p /media/5/Conky/accuweather_conky/tod_ton)
	      sed -i ${i}s/$image/$(test_image_day $image)/ /media/5/Conky/accuweather_conky/tod_ton
	  done

fi

#Next 5 days
if [[ -s /media/5/Conky/accuweather_conky/last_days_raw ]]; then

    sed -i '/feed-tabs/,/\.feed-tabs/!d' /media/5/Conky/accuweather_conky/last_days_raw
    egrep -i 'icon i-|cond|temp|Mon|Tue|Wed|Thu|Fri|Sat|Sun' /media/5/Conky/accuweather_conky/last_days_raw > /media/5/Conky/accuweather_conky/last_days
    sed -i -e 's/^.*#">//g' -e 's/^.*icon i-//g' -e 's/^.*cond">//g' -e 's/^.*temp">//g' /media/5/Conky/accuweather_conky/last_days
    sed -i -e 's/Lo<\/span> /\n/g' -e 's/<\/a>.*$//g' -e 's/ "><.*$//g' -e 's/&#.*$//g' -e 's/teo//g' /media/5/Conky/accuweather_conky/last_days
    sed -i -e 's/<span>.*$//g' -e 's/<\/span>//g' -e 's/\r$//g' -e 's/ i-alarm.*$//g' /media/5/Conky/accuweather_conky/last_days
	sed -i -e 's/Mon$/Monday/' -e 's/Tue$/Tuesday/' -e 's/Wed$/Wednesday/' -e 's/Thu$/Thursday/' -e 's/Fri$/Friday/' -e 's/Sat$/Saturday/' -e 's/Sun$/Sunday/' /media/5/Conky/accuweather_conky/last_days
    for (( i=2; i<=22; i+=5 ))
	  do
          image=$(sed -n "${i}"p /media/5/Conky/accuweather_conky/last_days)
	      sed -i ${i}s/$image/$(test_image_day $image)/ /media/5/Conky/accuweather_conky/last_days
	  done

fi

kill -CONT $(pidof conky)

Last edited by Sector11 (2015-10-30 10:59:34)


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

#8 2015-10-05 12:44:12

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,153

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Teo's Accuweather script updated - 29 Oct 2015 therefore this conky is
OLD & OUTDATED update coming.
»»»»» This is for conky v1.90 «««««

A few tweaks to the conky and the accuw_script and it's a little narrower:

1a_accuweather_conky_INT/accuweather_conky Version 2
acn3F9VW.jpg

The edited conky:

# killall conky && conky -c /media/5/Conky/accuweather_conky/conkyrc_acc_int &
###  Begin Window Settings  ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
#own_window_colour gray
own_window_class Conky
own_window_title Chronograph Full 2

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type normal
# own_window_argb_visual yes

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
# own_window_argb_value 0

minimum_size 100 735  ## width, height
maximum_width 100   ## width

gap_x 10  ### left &right
gap_y 10  ### up & down

alignment tl #ml
####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
#xftfont CorporateMonoExtraBold:size=9
xftfont monofur:bold:size=12
# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
draw_shades no
default_shade_color black

draw_outline no # amplifies text if yes
default_outline_color black

default_color DCDCDC #220 220 220	Gainsboro
color0 8FBC8F #143 188 143	DarkSeaGreen
color1 C2CCFF #119 136 153	LightSlateGray
color2 FF8C00 #255 140   0	DarkOrange
color3 7FFF00 #127 255   0	Chartreuse
color4 FFA07A #255 160 122	LightSalmon
color5 FFDEAD #255 222 173	NavajoWhite
color6 00BFFF #  0 191 255	DeepSkyBlue
color7 00FFFF #  0 255 255	Cyan
color8 FFFF00 #255 255   0	Yellow
color9 B22222 #178  34  34	FireBrick
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders yes #no
#default_graph_size 15 40
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background yes

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 256

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

# If enabled, values which are in bytes will be printed in human readable
# format (i.e., KiB, MiB, etc). If disabled, bytes is printed instead
format_human_readable yes

# Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off.
short_units yes

#   Maximum size of user text buffer, i.e. layout below TEXT line in config file
#  (default is 16384 bytes)
# max_user_text 16384

# Desired output unit of all objects displaying a temperature. Parameters are
# either "fahrenheit" or "celsius". The default unit is degree Celsius.
# temperature_unit Fahrenheit

##############################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
### draw-bg.lua - Above and After TEXT - requires a composite manager ########
# ----------------------------------------------------------------------------
lua_load /media/5/Conky/LUA/draw-bg.lua
#TEXT
# ${lua conky_draw_bg 125 0 0 0 0 0x000000 0.3}
# ============================================================================
## OR Both above TEXT - No composite manager required.
# ----------------------------------------------------------------------------
#lua_load /media/5/Conky/LUA/draw-bg.lua
#lua_draw_hook_pre draw_bg 12 0 0 0 0 0x000000 0.5
# TEXT
#######################################################  End LUA Settings  ###

update_interval 1

TEXT
${lua conky_draw_bg 12 0 0 0 0 0x000000 0.3}\
Looking Out${execi 600 bash /media/5/Conky/accuweather_conky/accuw_script}
Now\
${goto 50}${font conkyweather:size=40}${execi 600  sed -n '2p' /media/5/Conky/accuweather_conky/curr_cond}${font}
${voffset -40} ${execi 600 sed -n '4p' /media/5/Conky/accuweather_conky/curr_cond}°


${execi 600 sed -n '1p' /media/5/Conky/accuweather_conky/tod_ton}\
${goto 50}${font conkyweather:size=40}${execi 600  sed -n '2p' /media/5/Conky/accuweather_conky/tod_ton}${font}
${voffset -40}↑ ${execi 600 sed -n '4p' /media/5/Conky/accuweather_conky/tod_ton}°
↓ ${execi 600 sed -n '5p' /media/5/Conky/accuweather_conky/tod_ton}°
${stippled_hr 5 1}
${execi 600 sed -n '6p' /media/5/Conky/accuweather_conky/tod_ton}\
${goto 50}${font conkyweather:size=40}${execi 600  sed -n '7p' /media/5/Conky/accuweather_conky/tod_ton}${font}
${voffset -40}↑ ${execi 600 sed -n '9p' /media/5/Conky/accuweather_conky/tod_ton}°
↓ ${execi 600 sed -n '10p' /media/5/Conky/accuweather_conky/tod_ton}°
      ${stippled_hr 5 1}
${execi 600 sed -n '11p' /media/5/Conky/accuweather_conky/tod_ton}\
${goto 50}${font conkyweather:size=40}${execi 600  sed -n '12p' /media/5/Conky/accuweather_conky/tod_ton}${font}
${voffset -40}↑ ${execi 600 sed -n '14p' /media/5/Conky/accuweather_conky/tod_ton}°
↓ ${execi 600 sed -n '15p' /media/5/Conky/accuweather_conky/tod_ton}°
      ${stippled_hr 5 1}
${execi 600 sed -n '16p' /media/5/Conky/accuweather_conky/tod_ton}\
${goto 50}${font conkyweather:size=40}${execi 600  sed -n '17p' /media/5/Conky/accuweather_conky/tod_ton}${font}
${voffset -40}↑ ${execi 600 sed -n '19p' /media/5/Conky/accuweather_conky/tod_ton}°
↓ ${execi 600 sed -n '20p' /media/5/Conky/accuweather_conky/tod_ton}°
      ${stippled_hr 5 1}
${execi 600 sed -n '21p' /media/5/Conky/accuweather_conky/tod_ton}\
${goto 50}${font conkyweather:size=40}${execi 600  sed -n '22p' /media/5/Conky/accuweather_conky/tod_ton}${font}
${voffset -40}↑ ${execi 600 sed -n '24p' /media/5/Conky/accuweather_conky/tod_ton}°
↓ ${execi 600 sed -n '25p' /media/5/Conky/accuweather_conky/tod_ton}°
      ${stippled_hr 5 1}
${execi 600 sed -n '1p' /media/5/Conky/accuweather_conky/last_days}\
${goto 50}${font conkyweather:size=40}${execi 600  sed -n '2p' /media/5/Conky/accuweather_conky/last_days}${font}
${voffset -40}↑ ${execi 600 sed -n '4p' /media/5/Conky/accuweather_conky/last_days}°
↓ ${execi 600 sed -n '5p' /media/5/Conky/accuweather_conky/last_days}°
      ${stippled_hr 5 1}
${execi 600 sed -n '6p' /media/5/Conky/accuweather_conky/last_days}\
${goto 50}${font conkyweather:size=40}${execi 600  sed -n '7p' /media/5/Conky/accuweather_conky/last_days}${font}
${voffset -40}↑ ${execi 600 sed -n '9p' /media/5/Conky/accuweather_conky/last_days}°
↓ ${execi 600 sed -n '10p' /media/5/Conky/accuweather_conky/last_days}°
      ${stippled_hr 5 1}
${execi 600 sed -n '11p' /media/5/Conky/accuweather_conky/last_days}\
${goto 50}${font conkyweather:size=40}${execi 600  sed -n '12p' /media/5/Conky/accuweather_conky/last_days}${font}
${voffset -40}↑ ${execi 600 sed -n '14p' /media/5/Conky/accuweather_conky/last_days}°
↓ ${execi 600 sed -n '15p' /media/5/Conky/accuweather_conky/last_days}°
      ${stippled_hr 5 1}
${execi 600 sed -n '16p' /media/5/Conky/accuweather_conky/last_days}\
${goto 50}${font conkyweather:size=40}${execi 600  sed -n '17p' /media/5/Conky/accuweather_conky/last_days}${font}
${voffset -40}↑ ${execi 600 sed -n '19p' /media/5/Conky/accuweather_conky/last_days}°
↓ ${execi 600 sed -n '20p' /media/5/Conky/accuweather_conky/last_days}°
      ${stippled_hr 5 1}
${execi 600 sed -n '21p' /media/5/Conky/accuweather_conky/last_days}\
${goto 50}${font conkyweather:size=40}${execi 600  sed -n '22p' /media/5/Conky/accuweather_conky/last_days}${font}
${voffset -40}↑ ${execi 600 sed -n '24p' /media/5/Conky/accuweather_conky/last_days}°
↓ ${execi 600 sed -n '25p' /media/5/Conky/accuweather_conky/last_days}°

The re-edited accuw_script

#!/bin/bash

#function: test_image_day
test_image_day () {
    case $1 in
         su)
           echo a
         ;;
         msu)
           echo b
         ;;
         psu)
           echo c
         ;;
         ic)
           echo c
         ;;
         h)
           echo c
         ;;
         mc)
           echo d
         ;;
         c)
           echo e
         ;;
         d)
           echo e
         ;;
         f)
           echo 0
         ;;
         s)
           echo h
         ;;
         mcs)
           echo g
         ;;
         psus)
           echo g
         ;;
         t)
           echo l
         ;;
         mct)
           echo k
         ;;
         psut)
           echo k
         ;;
         r)
           echo i
         ;;
         fl)
           echo p
         ;;
         mcfl)
           echo o
         ;;
         psfl)
           echo o
         ;;
         sn)
           echo r
         ;;
         mcsn)
           echo o
         ;;
         i)
           echo E
         ;;
         sl)
           echo u
         ;;
         fr)
           echo i
         ;;
         rsn)
           echo v
         ;;
         w)
           echo 6
         ;;
         ho)
           echo 5
         ;;
         co)
           echo E
         ;;
         cl)
           echo A
         ;;
         mcl)
           echo B
         ;;
         pc)
           echo C
         ;;
         pcs)
           echo G
         ;;
         pct)
           echo K
         ;;
        esac
}

#function: test_image_night
test_image_night () {
    case $1 in
		 su)
           echo a
         ;;
         msu)
           echo b
         ;;
         psu)
           echo c
         ;;
         c)
           echo f
         ;;
         d)
           echo f
         ;;
         f)
           echo f
         ;;
         s)
           echo h
         ;;
         psus)
           echo g
         ;;
         t)
           echo l
         ;;
         psut)
           echo k
         ;;
         r)
           echo i
         ;;
         fl)
           echo p
         ;;
         psfl)
           echo o
         ;;
         sn)
           echo r
         ;;
         i)
           echo E
         ;;
         sl)
           echo u
         ;;
         fr)
           echo i
         ;;
         rsn)
           echo v
         ;;
         ho)
           echo 5
         ;;
         co)
           echo E
         ;;
         cl)
           echo A
         ;;
         w)
           echo 6
         ;;
         mcl)
           echo B
         ;;
         pc)
           echo C
         ;;
         ic)
           echo B
         ;;
         h)
           echo B
         ;;
         mc)
           echo C
         ;;
         pcs)
           echo G
         ;;
         mcs)
           echo G
         ;;
         pct)
           echo K
         ;;
         mct)
           echo K
         ;;
         mcfl)
           echo O
         ;;
         mcsn)
           echo O
         ;;
        esac
}

kill -STOP $(pidof conky)
killall wget

#put your Accuweather address here
## address="http://www.accuweather.com/en/gr/chania/182654/weather-forecast/182654"
## address="http://www.accuweather.com/en/gr/kastoria/178682/weather-forecast/178682"
## address="http://www.accuweather.com/en/ar/buenos-aires/7894/weather-forecast/7894"
address="http://www.accuweather.com/en/ar/general-urquiza/1228994/weather-forecast/1228994"

loc_id=$(echo $address|sed 's/\/weather-forecast.*$//'|sed 's/^.*\///')
last_number=$(echo $address|sed 's/^.*\///')

curr_addr="$(echo $address|sed 's/weather-forecast.*$//')"current-weather/"$last_number"
wget -O /media/5/Conky/accuweather_conky/curr_cond_raw "$curr_addr"

addr1="$(echo $address|sed 's/weather-forecast.*$//')"daily-weather-forecast/"$last_number"
wget -O /media/5/Conky/accuweather_conky/tod_ton_raw "$addr1"

addr2="$addr1"?day=6
wget -O /media/5/Conky/accuweather_conky/last_days_raw "$addr2"

#current conditions
if [[ -s /media/5/Conky/accuweather_conky/curr_cond_raw ]]; then

    sed -i '/detail-now/,/#details/!d' /media/5/Conky/accuweather_conky/curr_cond_raw
    egrep -i '"cond"|icon i-|detail-tab-panel' /media/5/Conky/accuweather_conky/curr_cond_raw > /media/5/Conky/accuweather_conky/curr_cond
    sed -i -e 's/^.*detail-tab-panel //g' -e 's/^.*icon i-//g' -e 's/"><\/div>.*$//g' /media/5/Conky/accuweather_conky/curr_cond
    sed -i -e 's/^.*"cond">//g' -e 's/&deg/\n/g' -e 's/<\/span>.*"temp">/\n/g' -e 's/<.*>//g' /media/5/Conky/accuweather_conky/curr_cond
    sed -i -e 's/">//g' -e 's/-->//g' -e 's/\r$//g' -e 's/ i-alarm.*$//g' /media/5/Conky/accuweather_conky/curr_cond
	time=$(sed -n 1p /media/5/Conky/accuweather_conky/curr_cond)
    image=$(sed -n 2p /media/5/Conky/accuweather_conky/curr_cond)
	if [[ $time == day ]]; then
	    sed -i 2s/$image/$(test_image_day $image)/ /media/5/Conky/accuweather_conky/curr_cond
	elif [[ $time == night ]]; then
	    sed -i 2s/$image/$(test_image_night $image)/ /media/5/Conky/accuweather_conky/curr_cond
	fi

fi

#First 5 days
if [[ -s /media/5/Conky/accuweather_conky/tod_ton_raw ]]; then

    sed -i '/feed-tabs/,/\.feed-tabs/!d' /media/5/Conky/accuweather_conky/tod_ton_raw
    egrep -i 'Early AM|Today|Tonight|Overnight|icon i-|cond|temp|Mon|Tue|Wed|Thu|Fri|Sat|Sun' /media/5/Conky/accuweather_conky/tod_ton_raw > /media/5/Conky/accuweather_conky/tod_ton
    sed -i -e 's/^.*#">//g' -e 's/^.*icon i-//g' -e 's/^.*cond">//g' -e 's/^.*temp">//g' /media/5/Conky/accuweather_conky/tod_ton
    sed -i -e 's/Lo<\/span> /\n/g' -e 's/<\/a>.*$//g' -e 's/ "><.*$//g' -e 's/&#.*$//g' -e 's/teo//g' /media/5/Conky/accuweather_conky/tod_ton
    sed -i -e 's/<span>.*$//g' -e 's/<\/span>//g' -e 's/\r$//g' -e 's/ i-alarm.*$//g' /media/5/Conky/accuweather_conky/tod_ton
 	sed -i -e 's/Early AM/E-AM/' -e 's/Today/Day/' -e 's/Tonight/Nite/' -e 's/Overnight/O-nite/' -e 's/Mon$/Mon/' -e 's/Tue$/Tue/' -e 's/Wed$/Wed/' -e 's/Thu$/Thu/' -e 's/Fri$/Fri/' -e 's/Sat$/Sat/' -e 's/Sun$/Sun/' /media/5/Conky/accuweather_conky/tod_ton
    time=$(sed -n 1p /media/5/Conky/accuweather_conky/tod_ton)
    image=$(sed -n 2p /media/5/Conky/accuweather_conky/tod_ton)
	if [[ $time == Day ]]; then
	    sed -i 2s/$image/$(test_image_day $image)/ /media/5/Conky/accuweather_conky/tod_ton
	elif [[ $time == Nite || $time == O-nite || $time == "E-AM" ]]; then
	    sed -i 2s/$image/$(test_image_night $image)/ /media/5/Conky/accuweather_conky/tod_ton
        sed -i 3a- /media/5/Conky/accuweather_conky/tod_ton
	fi
    for (( i=7; i<=22; i+=5 ))
	  do
          image=$(sed -n "${i}"p /media/5/Conky/accuweather_conky/tod_ton)
	      sed -i ${i}s/$image/$(test_image_day $image)/ /media/5/Conky/accuweather_conky/tod_ton
	  done

fi

#Next 5 days
if [[ -s /media/5/Conky/accuweather_conky/last_days_raw ]]; then

    sed -i '/feed-tabs/,/\.feed-tabs/!d' /media/5/Conky/accuweather_conky/last_days_raw
    egrep -i 'icon i-|cond|temp|Mon|Tue|Wed|Thu|Fri|Sat|Sun' /media/5/Conky/accuweather_conky/last_days_raw > /media/5/Conky/accuweather_conky/last_days
    sed -i -e 's/^.*#">//g' -e 's/^.*icon i-//g' -e 's/^.*cond">//g' -e 's/^.*temp">//g' /media/5/Conky/accuweather_conky/last_days
    sed -i -e 's/Lo<\/span> /\n/g' -e 's/<\/a>.*$//g' -e 's/ "><.*$//g' -e 's/&#.*$//g' -e 's/teo//g' /media/5/Conky/accuweather_conky/last_days
    sed -i -e 's/<span>.*$//g' -e 's/<\/span>//g' -e 's/\r$//g' -e 's/ i-alarm.*$//g' /media/5/Conky/accuweather_conky/last_days
	sed -i -e 's/Mon$/Mon/' -e 's/Tue$/Tue/' -e 's/Wed$/Wed/' -e 's/Thu$/Thu/' -e 's/Fri$/Fri/' -e 's/Sat$/Sat/' -e 's/Sun$/Sun/' /media/5/Conky/accuweather_conky/last_days
    for (( i=2; i<=22; i+=5 ))
	  do
          image=$(sed -n "${i}"p /media/5/Conky/accuweather_conky/last_days)
	      sed -i ${i}s/$image/$(test_image_day $image)/ /media/5/Conky/accuweather_conky/last_days
	  done

fi

kill -CONT $(pidof conky)

Last edited by Sector11 (2015-10-30 11:00:34)


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

#9 2015-10-05 12:52:20

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,153

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

EDIT

An updated version of this conky can be found here along with the 1a_companion.conky.
»»»»» This is for conky v1.90 «««««
= = = = =

Talking about Teo/s scripts I revisited 1a_accuweather_conkyweather_font and made it smaller. And not a single ${voffset} in sight.  big_smile
2015_04_28_20_00_01_1920x1080_Sector11.jpg --> And this morning 2015_04_29_09_50_45_1920x1080_Sector11.jpg
Made it a bit darker for the background.
WARNING: uses ARGB - composite manager required OR change:

own_window_transparent no #yes

to

own_window_transparent yes

and comment out:

#  own_window_argb_visual yes  ## Options: yes or no
#  own_window_argb_value 50

And it uses Teo's font too:

Fantasque Sans Mono:bold:size=10

conkyrc_1a_int_s11

pkill -xf "conky -c /home/sector11/1a_accuweather_conkyweather_font/conkyrc_1a_int_s11" &
# works perfect - Mon 24 Nov 2014 18:18:09
# works perfect - Sat 24 Jan 2015 22:55:26
# works perfect - Tue 28 Apr 2015 19:57:45

###  Begin Window Settings  ########################################
own_window yes
own_window_type normal
own_window_transparent no #yes
own_window_hints undecorated,below,skip_taskbar,skip_pager ##,sticky
own_window_colour 000000
own_window_class Conky
own_window_title conkyrc 1a Int s11

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
  own_window_argb_visual yes # Options: yes or no

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
  own_window_argb_value 50

minimum_size 180 0	##	w|h
maximum_width 180

gap_x 10	# l|r
gap_y 10	# u|d

alignment tl
##########################################  End Window Settings  ###
###  Font Settings  ################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes

#xftfont monofur:bold:size=12
xftfont Fantasque Sans Mono:bold:size=10

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1.0

# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
############################################  End Font Settings  ###
###  Color Settings  ###############################################
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color DCDCDC #220 220 220	Gainsboro
color0 C0C0C0 # Silver
color1 778899 #LightSlateGray
color2 F5F5DC #Beige
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 CD5C5C #IndianRed
###########################################  End Color Settings  ###
###  Borders Section  ##############################################
draw_borders no
# Stippled borders?
stippled_borders 5
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 2
# graph borders
draw_graph_borders yes #no
#default_graph_size 15 40
###########################################  End Borders Secton  ###
###  Miscellaneous Section  ########################################
# Boolean value, if true, Conky will be forked to background when started.
background yes

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 256

# Subtract (file slystem) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

# Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
# $image lots. Set to 0 to disable th0e image cache.
imlib_cache_size 0

#default_bar_size 0 10

# Use the Xdbe extension? (eliminates flicker)
# It is highly reco${color}mmended to use own window with this one
# so double buffer won't be so big.
double_buffer yes
#####################################  End Miscellaneous Section  ###

update_interval 1

TEXT
${goto 20}      ${time %T}
${goto 20}SU MO ${time %b %Y} FR SA
${goto 20}${color1}${execpi 1800 LAR=`date +%-d`; ncal -bh | sed '2d' | sed -e '1d' -e 's/\<'$LAR'\>/${color}&${color1}/' | sed ':a;N;$!ba;s/\n/\n${goto 20}/g'}${color}${font}

${goto 50}${membar 0}${execi 600 bash $HOME/1a_accuweather_conkyweather_font/1a}\
${goto 5}${font conkyweather:size=20}${execi 600  sed -n '2p' ~/1a_accuweather_conkyweather_font/curr_cond}${font}\
${goto 50}${execpi 600 sed -n '4p' $HOME/1a_accuweather_conkyweather_font/curr_cond}° at ${time %H:%M}
${execpi 600 sed -n '3p' $HOME/1a_accuweather_conkyweather_font/curr_cond|fold -sw25}
${goto 50}${membar 0}\
${goto 5}${font conkyweather:size=20}${execi 600  sed -n '2p' ~/1a_accuweather_conkyweather_font/tod_ton}${font}\
${goto 50}${execi 9600 echo `date --date="0 day" | awk '{print $1" "$3" "$2}'`} \
${color9}${execpi 600 sed -n '4p' $HOME/1a_accuweather_conkyweather_font/tod_ton}° \
${color7}${execpi 600 sed -n '5p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°${color}
${execpi 600 sed -n '3p' $HOME/1a_accuweather_conkyweather_font/tod_ton|fold -sw25}
${goto 50}${membar 0}\
${goto 5}${font conkyweather:size=20}${execi 600  sed -n '7p' ~/1a_accuweather_conkyweather_font/tod_ton}${font}\
${goto 50}${execi 9600 echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`} \
${color9}${execpi 600 sed -n '9p' $HOME/1a_accuweather_conkyweather_font/tod_ton}° \
${color7}${execpi 600 sed -n '10p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°${color}
${execpi 600 sed -n '8p' $HOME/1a_accuweather_conkyweather_font/tod_ton|fold -sw25}
${goto 50}${membar 0}\
${goto 5}${font conkyweather:size=20}${execi 600  sed -n '12p' ~/1a_accuweather_conkyweather_font/tod_ton}${font}\
${goto 50}${execi 9600 echo `date --date="2 day" | awk '{print $1" "$3" "$2}'`} \
${color9}${execpi 600 sed -n '14p' $HOME/1a_accuweather_conkyweather_font/tod_ton}° \
${color7}${execpi 600 sed -n '15p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°${color}
${execpi 600 sed -n '13p' $HOME/1a_accuweather_conkyweather_font/tod_ton|fold -sw25}
${goto 50}${membar 0}\
${goto 5}${font conkyweather:size=20}${execi 600  sed -n '17p' ~/1a_accuweather_conkyweather_font/tod_ton}${font}\
${goto 50}${execi 9600 echo `date --date="3 day" | awk '{print $1" "$3" "$2}'`} \
${color9}${execpi 600 sed -n '19p' $HOME/1a_accuweather_conkyweather_font/tod_ton}° \
${color7}${execpi 600 sed -n '20p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°${color}
${execpi 600 sed -n '18p' $HOME/1a_accuweather_conkyweather_font/tod_ton|fold -sw25}
${goto 50}${membar 0}\
${goto 5}${font conkyweather:size=20}${execi 600  sed -n '22p' ~/1a_accuweather_conkyweather_font/tod_ton}${font}\
${goto 50}${execi 9600 echo `date --date="4 day" | awk '{print $1" "$3" "$2}'`} \
${color9}${execpi 600 sed -n '24p' $HOME/1a_accuweather_conkyweather_font/tod_ton}° \
${color7}${execpi 600 sed -n '25p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°${color}
${execpi 600 sed -n '23p' $HOME/1a_accuweather_conkyweather_font/tod_ton|fold -sw25}
${goto 50}${membar 0}\
${goto 5}${font conkyweather:size=20}${execi 600  sed -n '2p' ~/1a_accuweather_conkyweather_font/last_days}${font}\
${goto 50}${execi 9600 echo `date --date="5 day" | awk '{print $1" "$3" "$2}'`} \
${color9}${execpi 600 sed -n '4p' $HOME/1a_accuweather_conkyweather_font/last_days}° \
${color7}${execpi 600 sed -n '5p' $HOME/1a_accuweather_conkyweather_font/last_days}°${color}
${execpi 600 sed -n '3p' $HOME/1a_accuweather_conkyweather_font/last_days|fold -sw25}
${goto 50}${membar 0}\
${goto 5}${font conkyweather:size=20}${execi 600  sed -n '7p' ~/1a_accuweather_conkyweather_font/last_days}${font}\
${goto 50}${execi 9600 echo `date --date="6 day" | awk '{print $1" "$3" "$2}'`} \
${color9}${execpi 600 sed -n '9p' $HOME/1a_accuweather_conkyweather_font/last_days}° \
${color7}${execpi 600 sed -n '10p' $HOME/1a_accuweather_conkyweather_font/last_days}°${color}
${execpi 600 sed -n '8p' $HOME/1a_accuweather_conkyweather_font/last_days|fold -sw25}
${goto 50}${membar 0}\
${goto 5}${font conkyweather:size=20}${execi 600  sed -n '12p' ~/1a_accuweather_conkyweather_font/last_days}${font}\
${goto 50}${execi 9600 echo `date --date="7 day" | awk '{print $1" "$3" "$2}'`} \
${color9}${execpi 600 sed -n '14p' $HOME/1a_accuweather_conkyweather_font/last_days}° \
${color7}${execpi 600 sed -n '15p' $HOME/1a_accuweather_conkyweather_font/last_days}°${color}
${execpi 600 sed -n '13p' $HOME/1a_accuweather_conkyweather_font/last_days|fold -sw25}
${goto 50}${membar 0}\
${goto 5}${font conkyweather:size=20}${execi 600  sed -n '17p' ~/1a_accuweather_conkyweather_font/last_days}${font}\
${goto 50}${execi 9600 echo `date --date="8 day" | awk '{print $1" "$3" "$2}'`} \
${color9}${execpi 600 sed -n '19p' $HOME/1a_accuweather_conkyweather_font/last_days}° \
${color7}${execpi 600 sed -n '20p' $HOME/1a_accuweather_conkyweather_font/last_days}°${color}
${execpi 600 sed -n '18p' $HOME/1a_accuweather_conkyweather_font/last_days|fold -sw25}
${goto 50}${membar 0}\
${goto 5}${font conkyweather:size=20}${execi 600  sed -n '22p' ~/1a_accuweather_conkyweather_font/last_days}${font}\
${goto 50}${execi 9600 echo `date --date="9 day" | awk '{print $1" "$3" "$2}'`} \
${color9}${execpi 600 sed -n '24p' $HOME/1a_accuweather_conkyweather_font/last_days}° \
${color7}${execpi 600 sed -n '25p' $HOME/1a_accuweather_conkyweather_font/last_days}°${color}
${execpi 600 sed -n '23p' $HOME/1a_accuweather_conkyweather_font/last_days|fold -sw25}
blank line - remove text
blank line - remove text
blank line - remove text
blank line - remove text

blank line - remove text - but keep the blank lines.  Think it's for the "| fold" commands.

Last edited by Sector11 (2015-11-11 18:12:47)


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

#10 2015-10-05 12:55:47

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,153

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

»»»»» This is for conky v1.90 «««««

I'mmmmmmmmmm Baaaaaaaaack!

re-write of: ~/1a_accuweather_conkyweather_font/conkyrc_1a_usa
- a more compact layout
- conditions text wraps at the space before the 22nd character
- "font icons" moved to the right to allow 'fold' to work properly
- configured for: Fantasque Sans Mono font
- uses 'date' command  for future dates.
- - image has an error, I use Thu 7 May.  In the USA it's: Thu May 7
- - image stays - code fixed for USA use.

2015_05_06_16_30_33_1920x1080_Sector11.jpg

# pkill -xf "conky -q -c /home/sector11/1a_accuweather_conkyweather_font/conkyrc_1a_usa" &
# works perfect - 3 Jan 2014
# works perfect - Sat 24 Jan 2015
# works perfect - Wed 06 May 2015

###  Begin Window Settings  ########################################
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
own_window_colour 000000
own_window_class Conky
own_window_title conkyrc 1a USA

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
#  own_window_argb_visual yes # Options: yes or no

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
#  own_window_argb_value 75

minimum_size 200 0	##	w|h
maximum_width 200

gap_x 10	# l|r
gap_y 10	# u|d

alignment tl
##########################################  End Window Settings  ###
###  Font Settings  ################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes

#xftfont Monofur:bold:size=10
xftfont Fantasque Sans Mono:bold:size=9

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1.0

# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
############################################  End Font Settings  ###
###  Color Settings  ###############################################
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color DCDCDC #220 220 220	Gainsboro
color0 C0C0C0 # Silver
color1 778899 #LightSlateGray
color2 F5F5DC #Beige
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 CD5C5C #IndianRed
###########################################  End Color Settings  ###
###  Borders Section  ##############################################
draw_borders no
# Stippled borders?
stippled_borders 5
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 2
# graph borders
draw_graph_borders yes #no
#default_graph_size 15 40
###########################################  End Borders Secton  ###
###  Miscellaneous Section  ########################################
# Boolean value, if true, Conky will be forked to background when started.
background yes

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 256

# Subtract (file slystem) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

# Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
# $image lots. Set to 0 to disable th0e image cache.
imlib_cache_size 0

#default_bar_size 0 10

# Use the Xdbe extension? (eliminates flicker)
# It is highly reco${color}mmended to use own window with this one
# so double buffer won't be so big.
double_buffer yes
#####################################  End Miscellaneous Section  ###
update_interval 1

TEXT
${color7}Corpus Cristi TX ${hr}${color}${execi 3600 bash $HOME/1a_accuweather_conkyweather_font/1a}

Currently: ${execpi 3600 sed -n '4p' $HOME/1a_accuweather_conkyweather_font/curr_cond}°F\
${goto 165}${font conkyweather:size=30}${execi 600  sed -n '2p' ~/1a_accuweather_conkyweather_font/curr_cond}${font}
${voffset -25}${execpi 3600 sed -n '3p' $HOME/1a_accuweather_conkyweather_font/curr_cond|fold -w22 -s}


${execi 3600 echo `date --date="0 day" | awk '{print $1" "$2" "$3}'`} \
${execpi 3600 sed -n '4p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°F / \
${execpi 3600 sed -n '5p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°F\
${goto 165}${font conkyweather:size=30}${execi 600  sed -n '2p' ~/1a_accuweather_conkyweather_font/tod_ton}${font}
${voffset -25}${execpi 3600 sed -n '3p' $HOME/1a_accuweather_conkyweather_font/tod_ton|fold -w22 -s}


${execi 3600 echo `date --date="1 day" | awk '{print $1" "$2" "$3}'`} \
${execpi 3600 sed -n '9p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°F / \
${execpi 3600 sed -n '10p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°F\
${goto 165}${font conkyweather:size=30}${execi 600  sed -n '7p' ~/1a_accuweather_conkyweather_font/tod_ton}${font}
${voffset -25}${execpi 3600 sed -n '8p' $HOME/1a_accuweather_conkyweather_font/tod_ton|fold -w22 -s}


${execi 3600 echo `date --date="2 day" | awk '{print $1" "$2" "$3}'`} \
${execpi 3600 sed -n '14p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°F / \
${execpi 3600 sed -n '15p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°F\
${goto 165}${font conkyweather:size=30}${execi 600  sed -n '12p' ~/1a_accuweather_conkyweather_font/tod_ton}${font}
${voffset -25}${execpi 3600 sed -n '13p' $HOME/1a_accuweather_conkyweather_font/tod_ton|fold -w22 -s}


${execi 3600 echo `date --date="3 day" | awk '{print $1" "$2" "$3}'`} \
${execpi 3600 sed -n '19p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°F / \
${execpi 3600 sed -n '20p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°F\
${goto 165}${font conkyweather:size=30}${execi 600  sed -n '17p' ~/1a_accuweather_conkyweather_font/tod_ton}${font}
${voffset -25}${execpi 3600 sed -n '18p' $HOME/1a_accuweather_conkyweather_font/tod_ton|fold -w22 -s}


${execi 3600 echo `date --date="4 day" | awk '{print $1" "$2" "$3}'`} \
${execpi 3600 sed -n '24p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°F / \
${execpi 3600 sed -n '25p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°F\
${goto 165}${font conkyweather:size=30}${execi 600  sed -n '22p' ~/1a_accuweather_conkyweather_font/tod_ton}${font}
${voffset -25}${execpi 3600 sed -n '23p' $HOME/1a_accuweather_conkyweather_font/tod_ton|fold -w22 -s}


${execi 3600 echo `date --date="5 day" | awk '{print $1" "$2" "$3}'`} \
${execpi 3600 sed -n '4p' $HOME/1a_accuweather_conkyweather_font/last_days}°F / \
${execpi 3600 sed -n '5p' $HOME/1a_accuweather_conkyweather_font/last_days}°F\
${goto 165}${font conkyweather:size=30}${execi 600  sed -n '2p' ~/1a_accuweather_conkyweather_font/last_days}${font}
${voffset -25}${execpi 3600 sed -n '3p' $HOME/1a_accuweather_conkyweather_font/last_days|fold -w22 -s}


${execi 3600 echo `date --date="6 day" | awk '{print $1" "$2" "$3}'`} \
${execpi 3600 sed -n '9p' $HOME/1a_accuweather_conkyweather_font/last_days}°F / \
${execpi 3600 sed -n '10p' $HOME/1a_accuweather_conkyweather_font/last_days}°F\
${goto 165}${font conkyweather:size=30}${execi 600  sed -n '7p' ~/1a_accuweather_conkyweather_font/last_days}${font}
${voffset -25}${execpi 3600 sed -n '8p' $HOME/1a_accuweather_conkyweather_font/last_days|fold -w22 -s}


${execi 3600 echo `date --date="7 day" | awk '{print $1" "$2" "$3}'`} \
${execpi 3600 sed -n '14p' $HOME/1a_accuweather_conkyweather_font/last_days}°F / \
${execpi 3600 sed -n '15p' $HOME/1a_accuweather_conkyweather_font/last_days}°F\
${goto 165}${font conkyweather:size=30}${execi 600  sed -n '12p' ~/1a_accuweather_conkyweather_font/last_days}${font}
${voffset -25}${execpi 3600 sed -n '13p' $HOME/1a_accuweather_conkyweather_font/last_days|fold -w22 -s}


${execi 3600 echo `date --date="8 day" | awk '{print $1" "$2" "$3}'`} \
${execpi 3600 sed -n '19p' $HOME/1a_accuweather_conkyweather_font/last_days}°F / \
${execpi 3600 sed -n '20p' $HOME/1a_accuweather_conkyweather_font/last_days}°F\
${goto 165}${font conkyweather:size=30}${execi 600  sed -n '17p' ~/1a_accuweather_conkyweather_font/last_days}${font}
${voffset -25}${execpi 3600 sed -n '18p' $HOME/1a_accuweather_conkyweather_font/last_days|fold -w22 -s}


${execi 3600 echo `date --date="9 day" | awk '{print $1" "$2" "$3}'`} \
${execpi 3600 sed -n '24p' $HOME/1a_accuweather_conkyweather_font/last_days}°F / \
${execpi 3600 sed -n '25p' $HOME/1a_accuweather_conkyweather_font/last_days}°F\
${goto 165}${font conkyweather:size=30}${execi 600  sed -n '22p' ~/1a_accuweather_conkyweather_font/last_days}${font}
${voffset -25}${execpi 3600 sed -n '23p' $HOME/1a_accuweather_conkyweather_font/last_days|fold -w22 -s}${voffset 25}

Last edited by Sector11 (2015-10-30 11:01:27)


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

#11 2015-10-05 13:08:10

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,153

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Teo's Accuweather script updated - 29 Oct 2015 therefore this conky is
OLD & OUTDATED update coming.
»»»»» This is for conky v1.90 «««««

Slowly bringing my Teo weather scripts here from CrunchBang.  Interesting to note is my posts 3 and 4 of 5 for 1a)Accuweather_ConkyWeather_Font reflect BunsenLabs and none of them is the weather script I'm using today.

The fifth 1a)Accuweather_ConkyWeather_Font

I have been using 1a)Accuweather_ConkyWeather_Font plus Teo's 4) Moon phases' script for a while along with a joke "Teo's Ultimate Weather Script" that simply reflects the "seasons" by months.  big_smile
2015_10_05_10_04_30_Scrot11.jpg

[== Undefined ==]
# pkill -xf "conky -q -c /media/5/Conky/1b2_accuweather_conkyweather_font/conkyrc_1b2_int_s11_thin" &
# works perfect - Mon 24 Nov 2014 23:32
# works perfect - Sun 04 Jan 2015 14:31
# works perfect - Fri 01 May 2015 18:37

###  Begin Window Settings  ########################################
own_window yes
own_window_type normal
own_window_transparent no #yes
#own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_colour 000000
own_window_class Conky
own_window_title 1a)Accuweather_ConkyWeather_Font
### ARGB can be used for real transparency
own_window_argb_visual yes
own_window_argb_value 125 # 0 - clear | 255 - solid

minimum_size 75 0	##	w|h
maximum_width 75

gap_x 10	# l|r
gap_y 10	# u|d

alignment tl
##########################################  End Window Settings  ###
###  Font Settings  ################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes

xftfont monofur:bold:size=10
#xftfont Fantasque Sans Mono:bold:size=10
#xftfont Anonymous Pro:size=9


# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1.0

# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
############################################  End Font Settings  ###
###  Color Settings  ###############################################
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color DCDCDC #Gainsboro
color0 C0C0C0 #Silver
color1 778899 #LightSlateGray
color2 FAEBD7 #AntiqueWhite
color3 87CEFA #LightSkyBlue
color4 FFA07A #LightSalmon   48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 CD5C5C #IndianRed
###########################################  End Color Settings  ###
###  Borders Section  ##############################################
draw_borders no
# Stippled borders?
stippled_borders 5
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 2
# graph borders
draw_graph_borders yes #no
#default_graph_size 15 40
###########################################  End Borders Secton  ###
###  Miscellaneous Section  ########################################
# Boolean value, if true, Conky will be forked to background when started.
background yes

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 256

# Subtract (file slystem) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

# Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
# $image lots. Set to 0 to disable th0e image cache.
imlib_cache_size 0

#default_bar_size 0 10

# Use the Xdbe extension? (eliminates flicker)
# It is highly reco${color}mmended to use own window with this one
# so double buffer won't be so big.
double_buffer yes
#####################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
## Above and After TEXT - requires a composite manager or blinks.
## OR Both above TEXT (No composite manager required - no blinking!)
#--------------------------------
#${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
#--------------------------------
#lua_load /media/5/Conky/LUA/draw-bg.lua
#lua_draw_hook_pre draw_bg 0 0 0 0 0 0x000000 0.25
#lua_draw_hook_post draw_bg 0 0 0 0 0 0x000000 0.25
#
# TEXT
#${lua conky_draw_bg 0 0 0 0 0 0x000000 0.45}\
#
### V9000 ####################################################################
update_interval 1

#TEXT
#${execi 1800 /media/5/Conky/4_Moon/moon}\
#${execi 1800 /media/5/Conky/1b2_accuweather_conkyweather_font/1b2}\

TEXT
${execi 1800 /media/5/Conky/4_Moon/moon}\
${execi 1800 /media/5/Conky/1b2_accuweather_conkyweather_font/1b2}\
${alignc}${color5}${execi 3600 echo `date --date="0 day" | awk '{print $1" "$3" "$2}'`}${color}
${alignc}${if_match ${time %m}==01}Summer${else}\
${if_match ${time %m}==02}Summer${else}\
${if_match ${time %m}==03}Autumn${else}\
${if_match ${time %m}==04}Autumn${else}\
${if_match ${time %m}==05}Autumn${else}\
${if_match ${time %m}==06}Winter${else}\
${if_match ${time %m}==07}Winter${else}\
${if_match ${time %m}==08}Winter${else}\
${if_match ${time %m}==09}Spring${else}\
${if_match ${time %m}==10}Spring${else}\
${if_match ${time %m}==11}Spring${else}\
Summer${endif}${endif}${endif}${endif}\
${endif}${endif}${endif}${endif}\
${endif}${endif}${endif}
${execpi 600 sed -n '29p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}°\
${goto 25}${color2}${font conkyweather:size=24}${execi 600  sed -n '27p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}${font}\
${alignr}${color5}±${execpi 600 sed -n '30p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}°${color}
${execpi 600 sed -n '34p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
${color7}Hum${color}  ${execpi 600 sed -n '33p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
${color7}UVI${color}  ${execpi 600 sed -n '36p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
${color7}Wind${color} ${execpi 600 sed -n '31p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
${color7}@${color}  ${execpi 600 sed -n '32p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
${color7}Vis${color} ${execpi 600 sed -n '38p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
${color7}CC${color}  ${execpi 600 sed -n '35p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
${color7}DP${color}  ${execpi 600 sed -n '37p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}°
${color8}S${color} ${execpi 600 sed -n '39p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
${color8}${font Fantasque Sans Mono:bold:size=10}↓${font}${color} ${execpi 600 sed -n '40p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
${membar 0}
${alignc}${execpi 600 sed -n '7p' /media/5/Conky/4_Moon/raw | awk '{print $1}'}
${alignc}${execpi 600 sed -n '7p' /media/5/Conky/4_Moon/raw | awk '{print $2}'}\
${image /media/5/Conky/4_Moon/0.png -p 0,250 -s 30x30}

${goto 50}${execpi 600 sed -n '1p' /media/5/Conky/4_Moon/raw}

${color1}M${color} ${execpi 600 sed -n '41p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
${color1}${font Fantasque Sans Mono:bold:size=10}↓${font}${color} ${execpi 600 sed -n '42p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
Age ${execpi 600 sed -n '5p' /media/5/Conky/4_Moon/raw}
Ang ${execpi 600 sed -n '6p' /media/5/Conky/4_Moon/raw}°
D ${execpi 600 sed -n '4p' /media/5/Conky/4_Moon/raw | cut -c1-3} K/km
${membar 0}
${alignc}${color7}Today${color}
${color4}${execpi 600 sed -n '27p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}°${color}\
${goto 25}${color2}${font conkyweather:size=24}${execi 600  sed -n '25p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}${font}\
${alignr}${color3}${execpi 600 sed -n '26p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}°${color}
${color7}CoP${alignr}${color}${execpi 600 sed -n '28p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}
${alignc}${color7}Tonight${color}
${color4}${execpi 600 sed -n '31p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}°${color}\
${goto 25}${color2}${font conkyweather:size=24}${execi 600  sed -n '30p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}${font}\
${alignr}${color3}${execpi 600 sed -n '32p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}°${color}
${color7}CoP${alignr}${color}${execpi 600 sed -n '33p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}
${membar 0}
${alignc}${color7}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`}${color}
${color4}${execpi 600 sed -n '8p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}°${color}\
${goto 25}${color2}${font conkyweather:size=24}${execi 600  sed -n '6p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}${font}\
${alignr}${color3}${execpi 600 sed -n '9p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}°${color}
${alignc}${color7}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$3" "$2}'`}${color}
${color4}${execpi 600 sed -n '13p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}°${color}\
${goto 25}${color2}${font conkyweather:size=24}${execi 600  sed -n '11p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}${font}\
${alignr}${color3}${execpi 600 sed -n '14p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}°${color}
${alignc}${color7}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$3" "$2}'`}${color}
${color4}${execpi 600 sed -n '18p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}°${color}\
${goto 25}${color2}${font conkyweather:size=24}${execi 600  sed -n '16p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}${font}\
${alignr}${color3}${execpi 600 sed -n '19p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}°${color}
${alignc}${color7}${execi 3600 echo `date --date="4 day" | awk '{print $1" "$3" "$2}'`}${color}
${color4}${execpi 600 sed -n '23p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}°${color}\
${goto 25}${color2}${font conkyweather:size=24}${execi 600  sed -n '21p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}${font}\
${alignr}${color3}${execpi 600 sed -n '24p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}°${color}
${alignc}${color7}${execi 3600 echo `date --date="5 day" | awk '{print $1" "$3" "$2}'`}${color}
${color4}${execpi 600 sed -n '4p' /media/5/Conky/1b2_accuweather_conkyweather_font/last_days}°${color}\
${goto 25}${color2}${font conkyweather:size=24}${execi 600  sed -n '2p' /media/5/Conky/1b2_accuweather_conkyweather_font/last_days}${font}\
${alignr}${color3}${execpi 600 sed -n '5p' /media/5/Conky/1b2_accuweather_conkyweather_font/last_days}°${color}
${alignc}${color7}${execi 3600 echo `date --date="6 day" | awk '{print $1" "$3" "$2}'`}${color}
${color4}${execpi 600 sed -n '9p' /media/5/Conky/1b2_accuweather_conkyweather_font/last_days}°${color}\
${goto 25}${color2}${font conkyweather:size=24}${execi 600  sed -n '7p' /media/5/Conky/1b2_accuweather_conkyweather_font/last_days}${font}\
${alignr}${color3}${execpi 600 sed -n '10p' /media/5/Conky/1b2_accuweather_conkyweather_font/last_days}°${color}
${alignc}${color7}${execi 3600 echo `date --date="7 day" | awk '{print $1" "$3" "$2}'`}${color}
${color4}${execpi 600 sed -n '14p' /media/5/Conky/1b2_accuweather_conkyweather_font/last_days}°${color}\
${goto 25}${color2}${font conkyweather:size=24}${execi 600  sed -n '12p' /media/5/Conky/1b2_accuweather_conkyweather_font/last_days}${font}\
${alignr}${color3}${execpi 600 sed -n '15p' /media/5/Conky/1b2_accuweather_conkyweather_font/last_days}°${color}
${alignc}${color7}${execi 3600 echo `date --date="8 day" | awk '{print $1" "$3" "$2}'`}${color}
${color4}${execpi 600 sed -n '19p' /media/5/Conky/1b2_accuweather_conkyweather_font/last_days}°${color}\
${goto 25}${color2}${font conkyweather:size=24}${execi 600  sed -n '17p' /media/5/Conky/1b2_accuweather_conkyweather_font/last_days}${font}\
${alignr}${color3}${execpi 600 sed -n '20p' /media/5/Conky/1b2_accuweather_conkyweather_font/last_days}°${color}
${alignc}${color7}${execi 3600 echo `date --date="9 day" | awk '{print $1" "$3" "$2}'`}${color}
${color4}${execpi 600 sed -n '24p' /media/5/Conky/1b2_accuweather_conkyweather_font/last_days}°${color}\
${goto 25}${color2}${font conkyweather:size=24}${execi 600  sed -n '22p' /media/5/Conky/1b2_accuweather_conkyweather_font/last_days}${font}\
${alignr}${color3}${execpi 600 sed -n '25p' /media/5/Conky/1b2_accuweather_conkyweather_font/last_days}°${color}${font}


.

The extra lines on the end are required.

Last edited by Sector11 (2015-10-30 11:02:22)


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

#12 2015-10-08 12:56:00

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,153

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

»»»»» This is for conky v1.90 «««««
Teo's Accuweather script updated - 29 Oct 2015 therefore this conky is
OLD & OUTDATED update coming.
This one is lost - update will be slower.

~/1b1_accuweather_images

OK here I am again with another tribute to TeoBigusGeekus's weather scripts.  This is another 2 for 1 using Accuweather 1.b.1 I made for a friend with ties to both cities.

Buenos Aires & Miami
2013_06_30_19_51_01_1920x1080_Sector11.jpg

Everything is packaged up in AccuW.tar.gz except the 1x1 pixel light slate gray image used for the vertical line between cities that's available in 1_pizel_images.tar.gz along with some others I use in conkys.  You will have to change the path for that.

And of course there's Teo's Portrait if anyone is interested.

Last edited by Sector11 (2015-10-30 11:03:23)


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

#13 2015-10-08 12:59:24

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,153

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

»»»»» This is for conky v1.90 «««««

~/1b1_accuweather_images

Teo's Accuweather scripts updated - 29 Oct 2015
This Conky Updated on 29 Oct 2015

OK ... new kid on the block ... well not the script has been tweaked after an accuweather change and the conky tweaked as well:
2015_10_29_20_13_03_Scrot11.jpg
The conky:

# pkill -xf "conky -c /home/sector11/1b1_accuweather_images/1b1_int.conky" &
# Works perfect: Thu 29 Oct 2015

###  Begin Window Settings  ##################################################
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_colour 000000
own_window_class Conky
own_window_title Teo's Accuweather
### ARGB can be used for real transparency - requires composite manager
### Plays hell on conky with images.
#  own_window_argb_visual yes # Options: yes or no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
#  own_window_argb_value 100

minimum_size 75 00	# w|h
maximum_width 75

gap_x 5 	# l|r
gap_y 10	# u|d

alignment tl
####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
use_xft yes
xftfont monofur:bold:size=10
xftalpha 1.0
override_utf8_locale yes
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color DCDCDC #Gainsboro
color0 A9A9A9 #DarkGray
color1 778899 #LightSlateGray
color2 F5F5DC #Beige
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 FFA07A #LightSalmon
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
# border margins
border_inner_margin 5
border_outer_margin 0
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################
background yes
use_spacer none
no_buffers yes
imlib_cache_size 0
double_buffer yes
##############################################  End Miscellaneous Section  ###

#${image /media/5/Conky/images/red+x.png
#${texeci 1500 bash $HOME/1b1_accuweather_images/1b1}\
update_interval 3
TEXT
${texeci 1500 bash $HOME/1b1_accuweather_images/1b1}\
 ${color5}Currently${color}
${color9}${execi 90 sed -n '29p' $HOME/1b1_accuweather_images/curr_cond}°${color}
${image $HOME/1b1_accuweather_images/cc.png -p 2,21 -s 70x42}

    ${color8}± ${execi 90 sed -n '30p' $HOME/1b1_accuweather_images/curr_cond}°${color}
${execi 90 sed -n '33p' $HOME/1b1_accuweather_images/curr_cond}
UVI ${execi 90 sed -n '34p' $HOME/1b1_accuweather_images/curr_cond}
HUM ${execi 90 sed -n '32p' $HOME/1b1_accuweather_images/curr_cond}
DP  ${execi 90 sed -n '35p' $HOME/1b1_accuweather_images/curr_cond}°
Wnd ${execi 90 sed -n '31p' $HOME/1b1_accuweather_images/curr_cond}
@ ${execi 90 sed -n '38p' $HOME/1b1_accuweather_images/curr_cond}
Vis ${execi 90 sed -n '37p' $HOME/1b1_accuweather_images/curr_cond}
Cld ${execi 90 sed -n '36p' $HOME/1b1_accuweather_images/curr_cond}
${color8}S ${execi 90 sed -n '39p' $HOME/1b1_accuweather_images/curr_cond}
↓ ${execi 90 sed -n '40p' $HOME/1b1_accuweather_images/curr_cond}${color}
M ${execi 90 sed -n '41p' $HOME/1b1_accuweather_images/curr_cond}
↓ ${execi 90 sed -n '42p' $HOME/1b1_accuweather_images/curr_cond}
${color5}${time %a %e %b}${color}
${color9}${execi 90 sed -n '26p' $HOME/1b1_accuweather_images/first_days}°${color}
${image $HOME/1b1_accuweather_images/tod.png -p 25,251 -s 50x30}\
${color8}± ${execi 90 sed -n '27p' $HOME/1b1_accuweather_images/first_days}${color}
CoP  ${execi 90 sed -n '28p' $HOME/1b1_accuweather_images/first_days}
 ${color5}TONIGHT${color}
${color9}${execi 90 sed -n '31p' $HOME/1b1_accuweather_images/first_days}°${color}
${image $HOME/1b1_accuweather_images/ton.png -p 25,308 -s 50x30}\
${color8}± ${execi 90 sed -n '32p' $HOME/1b1_accuweather_images/first_days}${color}
CoP  ${color}${execi 90 sed -n '33p' $HOME/1b1_accuweather_images/first_days}
${membar 0}
${color5}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`}${color}
${color9}${execi 90 sed -n '4p' $HOME/1b1_accuweather_images/last_days}°${color}
${image $HOME/1b1_accuweather_images/6.png -p 25,377 -s 50x30}\
${color7}${execi 90 sed -n '5p' $HOME/1b1_accuweather_images/last_days}°${color}
${membar 0}
${color5}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$3" "$2}'`}${color}
${color9}${execi 90 sed -n '8p' $HOME/1b1_accuweather_images/first_days}°${color}
${image $HOME/1b1_accuweather_images/11.png -p 25,433 -s 50x30}\
${color7}${execi 90 sed -n '9p' $HOME/1b1_accuweather_images/last_days}°${color}
${membar 0}
${color5}${color5}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$3" "$2}'`}${color}
${color9}${execi 90 sed -n '13p' $HOME/1b1_accuweather_images/first_days}°${color}
${image $HOME/1b1_accuweather_images/16.png -p 25,489 -s 50x30}\
${color7}${execi 90 sed -n '14p' $HOME/1b1_accuweather_images/first_days}°${color}
${membar 0}
${color5}${execi 3600 echo `date --date="4 day" | awk '{print $1" "$3" "$2}'`}${color}
${color9}${execi 90 sed -n '9p' $HOME/1b1_accuweather_images/first_days}°${color}
${image $HOME/1b1_accuweather_images/21.png -p 25,545 -s 50x30}\
${color7}${execi 90 sed -n '10p' $HOME/1b1_accuweather_images/last_days}°${color}
${membar 0}
${color5}${execi 3600 echo `date --date="5 day" | awk '{print $1" "$3" "$2}'`}${color}
${color9}${execi 90 sed -n '18p' $HOME/1b1_accuweather_images/first_days}°${color}
${image $HOME/1b1_accuweather_images/last_2.png -p 25,603 -s 50x30}\
${color7}${execi 90 sed -n '19p' $HOME/1b1_accuweather_images/first_days}°${color}
${membar 0}
${color5}${execi 3600 echo `date --date="6 day" | awk '{print $1" "$3" "$2}'`}${color}
${color9}${execi 90 sed -n '23p' $HOME/1b1_accuweather_images/first_days}°${color}
${image $HOME/1b1_accuweather_images/last_7.png -p 25,657 -s 50x30}\
${color7}${execi 90 sed -n '24p' $HOME/1b1_accuweather_images/first_days}°${color}
${membar 0}
${color5}${execi 3600 echo `date --date="7 day" | awk '{print $1" "$3" "$2}'`}${color}
${color9}${execi 90 sed -n '14p' $HOME/1b1_accuweather_images/last_days}°${color}
${image $HOME/1b1_accuweather_images/last_12.png -p 25,713 -s 50x30}\
${color7}${execi 90 sed -n '15p' $HOME/1b1_accuweather_images/last_days}°${color}
${membar 0}
${color5}${execi 3600 echo `date --date="8 day" | awk '{print $1" "$3" "$2}'`}${color}
${color9}${execi 90 sed -n '19p' $HOME/1b1_accuweather_images/last_days}°${color}
${image $HOME/1b1_accuweather_images/last_17.png -p 25,769 -s 50x30}\
${color7}${execi 90 sed -n '20p' $HOME/1b1_accuweather_images/last_days}°${color}
${membar 0}
${color5}${execi 3600 echo `date --date="9 day" | awk '{print $1" "$3" "$2}'`}${color}
${color9}${execi 90 sed -n '24p' $HOME/1b1_accuweather_images/last_days}°${color}
${image $HOME/1b1_accuweather_images/last_22.png -p 25,826 -s 50x30}\
${color7}${execi 90 sed -n '25p' $HOME/1b1_accuweather_images/last_days}°${color}
${membar 0}

To the right of the conky a simple test conky to check the "curr_cond" file. Here's the complete 1b1_companion.conky

Last edited by Sector11 (2015-10-30 11:13:45)


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

#14 2015-10-08 17:29:59

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,153

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

»»»»» This is for conky v1.90 «««««

1b2)Accuweather - ConkyWeather font

Teo's Accuweather scripts updated - 29 Oct 2015
This Conky Updated on 29 Oct 2015

Note: Original was: 2015-05-02 over on the #! forums

A new smaller - more colourful version ...
2015_10_29_21_11_30_Scrot11.jpg<-- Thu 29 Oct 2015 | Original --> 2015_05_02_12_29_42_314x484_Sector11.jpg
~/1b2_accuweather_conkyweather_font/conkyrc_1b2_int_s11

# pkill -xf "conky -q -c /home/sector11/1b2_accuweather_conkyweather_font/conkyrc_1b2_int_s11" &
# works perfect - Mon 24 Nov 2014
# works perfect - Sun 04 Jan 2015
# works perfect - Fri 01 May 2015
# works perfect - Thu 29 Oct 2015 - with new 1b2 script

###  Begin Window Settings  ########################################
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager ##,sticky
own_window_colour 000000
own_window_class Conky
own_window_title conkyrc 1a Int s11

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
# own_window_argb_visual yes # Options: yes or no

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
# own_window_argb_value 75

minimum_size 300 0	##	w|h
maximum_width 300

#gap_x 20	# l|r
#gap_y 20	# u|d

alignment tl
##########################################  End Window Settings  ###
###  Font Settings  ################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes

#xftfont monofur:bold:size=12
xftfont Fantasque Sans Mono:bold:size=10

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1.0

# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
############################################  End Font Settings  ###
###  Color Settings  ###############################################
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color DCDCDC #220 220 220	Gainsboro
color0 C0C0C0 # Silver
color1 778899 #LightSlateGray
color2 FAEBD7 #AntiqueWhite
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 CD5C5C #IndianRed
###########################################  End Color Settings  ###
###  Borders Section  ##############################################
draw_borders no
# Stippled borders?
stippled_borders 5
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 2
# graph borders
draw_graph_borders yes #no
#default_graph_size 15 40
###########################################  End Borders Secton  ###
###  Miscellaneous Section  ########################################
# Boolean value, if true, Conky will be forked to background when started.
background yes

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 256

# Subtract (file slystem) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

# Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
# $image lots. Set to 0 to disable th0e image cache.
imlib_cache_size 0

#default_bar_size 0 10

# Use the Xdbe extension? (eliminates flicker)
# It is highly reco${color}mmended to use own window with this one
# so double buffer won't be so big.
double_buffer yes
#####################################  End Miscellaneous Section  ###

update_interval 1

### ${texeci 500 bash $HOME/1b2_accuweather_conkyweather_font/1b2}

TEXT
${membar 0}${texeci 500 bash $HOME/1b2_accuweather_conkyweather_font/1b2}
${alignc}${time %a %d %b %Y} @ ${time %H:%M}
${membar 0}
Now${goto 140}Today${alignr 10}Tonight
${execpi 600 sed -n '29p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}° \
${color8}±${execpi 600 sed -n '30p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}°${color}\
${goto 140}${color9}${execpi 600 sed -n '26p' $HOME/1b2_accuweather_conkyweather_font/first_days}° \
${color6}${execpi 600 sed -n '27p' $HOME/1b2_accuweather_conkyweather_font/first_days}°${color}\
${alignr 10}${color9}${execpi 600 sed -n '31p' $HOME/1b2_accuweather_conkyweather_font/first_days}° \
${color6}${execpi 600 sed -n '32p' $HOME/1b2_accuweather_conkyweather_font/first_days}°${color}
${font Fantasque Sans Mono:bold:size=9}${alignc}${execpi 600 sed -n '2p' $HOME/1b2_accuweather_conkyweather_font/messages}${font}
${color2}${font conkyweather:bold:size=22}${execi 600  sed -n '27p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}\
${goto 140}${execi 600  sed -n '25p' $HOME/1b2_accuweather_conkyweather_font/first_days}\
${goto 265}${execi 600  sed -n '30p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${color}
${font Fantasque Sans Mono:bold:size=9}${execpi 600 sed -n '1p' $HOME/1b2_accuweather_conkyweather_font/messages}\
${alignr}${execpi 600 sed -n '3p' $HOME/1b2_accuweather_conkyweather_font/messages}
${color7}CoP: ${execpi 600 sed -n '28p' $HOME/1b2_accuweather_conkyweather_font/first_days}\
${alignr 10}CoP: ${execpi 600 sed -n '33p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${color}
${membar 0}
                Wind   ${color2}${execpi 600 sed -n '31p' $HOME/1b2_accuweather_conkyweather_font/curr_cond} \
@ ${execpi 600 sed -n '38p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}${color}
            Humidity   ${color2}${execpi 600 sed -n '32p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}${color}
           Dew Point   ${color2}${execpi 600 sed -n '35p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}°${color}
            Pressure   ${color2}${execpi 600 sed -n '33p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}${color}
          Visibility   ${color2}${execpi 600 sed -n '37p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}${color}
         Cloud Cover   ${color2}${execpi 600 sed -n '36p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}${color}
            UV Index   ${color2}${execpi 600 sed -n '34p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}${color}

 ${color2}Sunrise ${execpi 600 sed -n '39p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}\
${alignr}Moonrise ${execpi 600 sed -n '41p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}${color}
${color0} Sunset  ${execpi 600 sed -n '40p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}\
${alignr}Moonset  ${execpi 600 sed -n '42p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}${color}
${membar 0}
${execi 600 echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`}\
${goto 119}${execi 600 echo `date --date="2 day" | awk '{print $1" "$3" "$2}'`}\
${alignr}${execi 600 echo `date --date="3 day" | awk '{print $1" "$3" "$2}'`}
${color2}${goto 5}${font conkyweather:bold:size=22}${execi 600  sed -n '6p' $HOME/1b2_accuweather_conkyweather_font/first_days}\
${goto 115}${execi 600  sed -n '11p' $HOME/1b2_accuweather_conkyweather_font/first_days}\
${goto 235}${execi 600  sed -n '16p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${color}
${voffset -30}${color9}${goto 50}${execpi 600 sed -n '8p' $HOME/1b2_accuweather_conkyweather_font/first_days}°\
${goto 160}${execpi 600 sed -n '13p' $HOME/1b2_accuweather_conkyweather_font/first_days}°\
${goto 280}${execpi 600 sed -n '18p' $HOME/1b2_accuweather_conkyweather_font/first_days}°${color}
${color6}${goto 50}${execpi 600 sed -n '9p' $HOME/1b2_accuweather_conkyweather_font/first_days}°\
${goto 160}${execpi 600 sed -n '14p' $HOME/1b2_accuweather_conkyweather_font/first_days}°\
${goto 280}${execpi 600 sed -n '19p' $HOME/1b2_accuweather_conkyweather_font/first_days}°${color}

${execi 600 echo `date --date="4 day" | awk '{print $1" "$3" "$2}'`}\
${goto 119}${execi 600 echo `date --date="5 day" | awk '{print $1" "$3" "$2}'`}\
${alignr}${execi 600 echo `date --date="6 day" | awk '{print $1" "$3" "$2}'`}
${color2}${goto 5}${font conkyweather:bold:size=22}${execi 600  sed -n '21p' $HOME/1b2_accuweather_conkyweather_font/first_days}\
${goto 115}${execi 600  sed -n '2p' $HOME/1b2_accuweather_conkyweather_font/last_days}\
${goto 235}${execi 600  sed -n '7p' $HOME/1b2_accuweather_conkyweather_font/last_days}${font}${color}
${voffset -30}${color9}${goto 50}${execpi 600 sed -n '23p' $HOME/1b2_accuweather_conkyweather_font/first_days}°\
${goto 160}${execpi 600 sed -n '4p' $HOME/1b2_accuweather_conkyweather_font/last_days}°\
${goto 280}${execpi 600 sed -n '9p' $HOME/1b2_accuweather_conkyweather_font/last_days}°${color}
${color6}${goto 50}${execpi 600 sed -n '24p' $HOME/1b2_accuweather_conkyweather_font/first_days}°\
${goto 160}${execpi 600 sed -n '5p' $HOME/1b2_accuweather_conkyweather_font/last_days}°\
${goto 280}${execpi 600 sed -n '10p' $HOME/1b2_accuweather_conkyweather_font/last_days}°${color}

${execi 600 echo `date --date="7 day" | awk '{print $1" "$3" "$2}'`}\
${goto 119}${execi 600 echo `date --date="8 day" | awk '{print $1" "$3" "$2}'`}\
${alignr}${execi 600 echo `date --date="9 day" | awk '{print $1" "$3" "$2}'`}
${color2}${goto 5}${font conkyweather:bold:size=22}${execi 600  sed -n '12p' $HOME/1b2_accuweather_conkyweather_font/last_days}\
${goto 115}${execi 600  sed -n '17p' $HOME/1b2_accuweather_conkyweather_font/last_days}\
${goto 235}${execi 600  sed -n '22p' $HOME/1b2_accuweather_conkyweather_font/last_days}${font}${color}
${voffset -30}${color9}${goto 50}${execpi 600 sed -n '14p' $HOME/1b2_accuweather_conkyweather_font/last_days}°\
${goto 160}${execpi 600 sed -n '19p' $HOME/1b2_accuweather_conkyweather_font/last_days}°\
${goto 280}${execpi 600 sed -n '24p' $HOME/1b2_accuweather_conkyweather_font/last_days}°${color}
${color6}${goto 50}${execpi 600 sed -n '15p' $HOME/1b2_accuweather_conkyweather_font/last_days}°\
${goto 160}${execpi 600 sed -n '20p' $HOME/1b2_accuweather_conkyweather_font/last_days}°\
${goto 280}${execpi 600 sed -n '25p' $HOME/1b2_accuweather_conkyweather_font/last_days}°${font}${color}
${membar 0}

Last edited by Sector11 (2015-10-30 11:13:02)


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

#15 2015-10-08 17:50:25

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,153

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

»»»»» This is for conky v1.90 «««««

1b2)Accuweather - ConkyWeather font

This is the work of TeoBigusGeekus - from #! Thread

Teo's Accuweather scripts updated - 29 Oct 2015
This Conky Updated on 30 Oct 2015 by S11
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Nice one S11!
I already have a variation of your new version:
Dropped Dew Point and squeezed things a bit (length wise)

# pkill -xf "conky -q -c /home/sector11/1b2_accuweather_conkyweather_font/conkyrc_1b2_int_s11_2" &
# works perfect - Mon 24 Nov 2014
# works perfect - Sun 04 Jan 2015
# works perfect - Fri 01 May 2015
# works perfect - Thu 29 Oct 2015 - with new 1b2 script

###  Begin Window Settings  ########################################
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager ##,sticky
own_window_colour 000000
own_window_class Conky
own_window_title conkyrc_1b2_int_s11_2

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
# own_window_argb_visual yes # Options: yes or no

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
# own_window_argb_value 75

minimum_size 300 0	##	w|h
maximum_width 300

gap_x 20	# l|r
gap_y 20	# u|d

alignment tr
##########################################  End Window Settings  ###
###  Font Settings  ################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes

#xftfont monofur:bold:size=12
xftfont Fantasque Sans Mono:bold:size=10

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1.0

# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
############################################  End Font Settings  ###
###  Color Settings  ###############################################
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color DCDCDC #220 220 220	Gainsboro
color0 C0C0C0 # Silver
color1 778899 #LightSlateGray
color2 FAEBD7 #AntiqueWhite
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 CD5C5C #IndianRed
###########################################  End Color Settings  ###
###  Borders Section  ##############################################
draw_borders no
# Stippled borders?
stippled_borders 5
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 2
# graph borders
draw_graph_borders yes #no
#default_graph_size 15 40
###########################################  End Borders Secton  ###
###  Miscellaneous Section  ########################################
# Boolean value, if true, Conky will be forked to background when started.
background yes

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 256

# Subtract (file slystem) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

# Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
# $image lots. Set to 0 to disable th0e image cache.
imlib_cache_size 0

#default_bar_size 0 10

# Use the Xdbe extension? (eliminates flicker)
# It is highly reco${color}mmended to use own window with this one
# so double buffer won't be so big.
double_buffer yes
#####################################  End Miscellaneous Section  ###

update_interval 1

### ${texeci 500 bash $HOME/1b2_accuweather_conkyweather_font/1b2}

TEXT
${membar 0}${texeci 500 bash $HOME/1b2_accuweather_conkyweather_font/1b2}
${alignc}${time %a %d %b %Y} @ ${time %H:%M}
${membar 0}
Now${goto 140}Today${alignr 10}Tonight
${execpi 600 sed -n '29p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}° \
${color8}±${execpi 600 sed -n '30p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}°${color}\
${goto 140}${color9}${execpi 600 sed -n '26p' $HOME/1b2_accuweather_conkyweather_font/first_days}° \
${color6}${execpi 600 sed -n '27p' $HOME/1b2_accuweather_conkyweather_font/first_days}°${color}\
${alignr 10}${color9}${execpi 600 sed -n '31p' $HOME/1b2_accuweather_conkyweather_font/first_days}° \
${color6}${execpi 600 sed -n '32p' $HOME/1b2_accuweather_conkyweather_font/first_days}°${color}
${font Fantasque Sans Mono:bold:size=9}${alignc}${execpi 600 sed -n '2p' $HOME/1b2_accuweather_conkyweather_font/messages}${font}
${color2}${font conkyweather:bold:size=22}${execi 600  sed -n '27p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}\
${goto 140}${execi 600  sed -n '25p' $HOME/1b2_accuweather_conkyweather_font/first_days}\
${goto 265}${execi 600  sed -n '30p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${color}
${font Fantasque Sans Mono:bold:size=9}${execpi 600 sed -n '1p' $HOME/1b2_accuweather_conkyweather_font/messages}\
${alignr}${execpi 600 sed -n '3p' $HOME/1b2_accuweather_conkyweather_font/messages}
${color7}CoP: ${execpi 600 sed -n '28p' $HOME/1b2_accuweather_conkyweather_font/first_days}\
${alignr 10}CoP: ${execpi 600 sed -n '33p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${color}
${membar 0}
Wind   ${color2}${execpi 600 sed -n '31p' $HOME/1b2_accuweather_conkyweather_font/curr_cond} ${execpi 600 sed -n '38p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}${color}${goto 180}Visibility   ${color2}${execpi 600 sed -n '37p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}${color}
Humidity   ${color2}${execpi 600 sed -n '32p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}${color}${goto 180}Cloud Cover   ${color2}${execpi 600 sed -n '36p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}${color}
Pressure   ${color2}${execpi 600 sed -n '33p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}${color}${goto 180}UV Index   ${color2}${execpi 600 sed -n '34p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}${color}

 ${color2}Sunrise ${execpi 600 sed -n '39p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}\
${alignr}Moonrise ${execpi 600 sed -n '41p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}${color}
${color0} Sunset  ${execpi 600 sed -n '40p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}\
${alignr}Moonset  ${execpi 600 sed -n '42p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}${color}
${membar 0}
${execi 600 echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`}\
${goto 119}${execi 600 echo `date --date="2 day" | awk '{print $1" "$3" "$2}'`}\
${alignr}${execi 600 echo `date --date="3 day" | awk '{print $1" "$3" "$2}'`}
${color2}${goto 5}${font conkyweather:bold:size=22}${execi 600  sed -n '6p' $HOME/1b2_accuweather_conkyweather_font/first_days}\
${goto 115}${execi 600  sed -n '11p' $HOME/1b2_accuweather_conkyweather_font/first_days}\
${goto 235}${execi 600  sed -n '16p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${color}
${voffset -30}${color9}${goto 50}${execpi 600 sed -n '8p' $HOME/1b2_accuweather_conkyweather_font/first_days}°\
${goto 160}${execpi 600 sed -n '13p' $HOME/1b2_accuweather_conkyweather_font/first_days}°\
${goto 280}${execpi 600 sed -n '18p' $HOME/1b2_accuweather_conkyweather_font/first_days}°${color}
${color6}${goto 50}${execpi 600 sed -n '9p' $HOME/1b2_accuweather_conkyweather_font/first_days}°\
${goto 160}${execpi 600 sed -n '14p' $HOME/1b2_accuweather_conkyweather_font/first_days}°\
${goto 280}${execpi 600 sed -n '19p' $HOME/1b2_accuweather_conkyweather_font/first_days}°${color}

${execi 600 echo `date --date="4 day" | awk '{print $1" "$3" "$2}'`}\
${goto 119}${execi 600 echo `date --date="5 day" | awk '{print $1" "$3" "$2}'`}\
${alignr}${execi 600 echo `date --date="6 day" | awk '{print $1" "$3" "$2}'`}
${color2}${goto 5}${font conkyweather:bold:size=22}${execi 600  sed -n '21p' $HOME/1b2_accuweather_conkyweather_font/first_days}\
${goto 115}${execi 600  sed -n '2p' $HOME/1b2_accuweather_conkyweather_font/last_days}\
${goto 235}${execi 600  sed -n '7p' $HOME/1b2_accuweather_conkyweather_font/last_days}${font}${color}
${voffset -30}${color9}${goto 50}${execpi 600 sed -n '23p' $HOME/1b2_accuweather_conkyweather_font/first_days}°\
${goto 160}${execpi 600 sed -n '4p' $HOME/1b2_accuweather_conkyweather_font/last_days}°\
${goto 280}${execpi 600 sed -n '9p' $HOME/1b2_accuweather_conkyweather_font/last_days}°${color}
${color6}${goto 50}${execpi 600 sed -n '24p' $HOME/1b2_accuweather_conkyweather_font/first_days}°\
${goto 160}${execpi 600 sed -n '5p' $HOME/1b2_accuweather_conkyweather_font/last_days}°\
${goto 280}${execpi 600 sed -n '10p' $HOME/1b2_accuweather_conkyweather_font/last_days}°${color}

${execi 600 echo `date --date="7 day" | awk '{print $1" "$3" "$2}'`}\
${goto 119}${execi 600 echo `date --date="8 day" | awk '{print $1" "$3" "$2}'`}\
${alignr}${execi 600 echo `date --date="9 day" | awk '{print $1" "$3" "$2}'`}
${color2}${goto 5}${font conkyweather:bold:size=22}${execi 600  sed -n '12p' $HOME/1b2_accuweather_conkyweather_font/last_days}\
${goto 115}${execi 600  sed -n '17p' $HOME/1b2_accuweather_conkyweather_font/last_days}\
${goto 235}${execi 600  sed -n '22p' $HOME/1b2_accuweather_conkyweather_font/last_days}${font}${color}
${voffset -30}${color9}${goto 50}${execpi 600 sed -n '14p' $HOME/1b2_accuweather_conkyweather_font/last_days}°\
${goto 160}${execpi 600 sed -n '19p' $HOME/1b2_accuweather_conkyweather_font/last_days}°\
${goto 280}${execpi 600 sed -n '24p' $HOME/1b2_accuweather_conkyweather_font/last_days}°${color}
${color6}${goto 50}${execpi 600 sed -n '15p' $HOME/1b2_accuweather_conkyweather_font/last_days}°\
${goto 160}${execpi 600 sed -n '20p' $HOME/1b2_accuweather_conkyweather_font/last_days}°\
${goto 280}${execpi 600 sed -n '25p' $HOME/1b2_accuweather_conkyweather_font/last_days}°${font}${color}
${membar 0}

2015_10_30_08_48_09_Scrot11.jpg


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

#16 2015-10-08 17:55:40

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,153

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

»»»»» This is for conky v1.90 «««««

1b2_accuweather_conkyweather_font

... and then I changed from the images to the font: 1b2_accuweather_conkyweather_font
2015_05_06_22_40_45_1920x1080_Sector11.jpg
And the code: conkyrc_1b2_int_s11_thin

# pkill -xf "conky -q -c /home/sector11/1b2_accuweather_conkyweather_font/conkyrc_1b2_int_s11_thin" &
# works perfect - Mon 24 Nov 2014 23:32
# works perfect - Sun 04 Jan 2015 14:31
# works perfect - Fri 01 May 2015 18:37
# works perfect - Wed 06 May 2015 too

###  Begin Window Settings  ########################################
own_window yes
own_window_type normal
own_window_transparent no ##yes
own_window_hints undecorated,below,skip_taskbar,skip_pager ##,sticky
own_window_colour 000000
own_window_class Conky
own_window_title conkyrc 1b2 Int s11 thin

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
 own_window_argb_visual yes # Options: yes or no

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
 own_window_argb_value 75

minimum_size 110 0	##	w|h
maximum_width 75

gap_x 10	# l|r
gap_y 10	# u|d

alignment tl
##########################################  End Window Settings  ###
###  Font Settings  ################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes

#xftfont monofur:bold:size=12
xftfont Fantasque Sans Mono:bold:size=10

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1.0

# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
############################################  End Font Settings  ###
###  Color Settings  ###############################################
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color DCDCDC #220 220 220	Gainsboro
color0 C0C0C0 # Silver
color1 778899 #LightSlateGray
color2 FAEBD7 #AntiqueWhite
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 CD5C5C #IndianRed
###########################################  End Color Settings  ###
###  Borders Section  ##############################################
draw_borders no
# Stippled borders?
stippled_borders 5
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 2
# graph borders
draw_graph_borders yes #no
#default_graph_size 15 40
###########################################  End Borders Secton  ###
###  Miscellaneous Section  ########################################
# Boolean value, if true, Conky will be forked to background when started.
background yes

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 256

# Subtract (file slystem) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

# Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
# $image lots. Set to 0 to disable th0e image cache.
imlib_cache_size 0

#default_bar_size 0 10

# Use the Xdbe extension? (eliminates flicker)
# It is highly reco${color}mmended to use own window with this one
# so double buffer won't be so big.
double_buffer yes
#####################################  End Miscellaneous Section  ###

update_interval 1

### ${texeci 500 bash $HOME/1b2_accuweather_conkyweather_font/1b2}

TEXT
Now${texeci 500 bash $HOME/1b2_accuweather_conkyweather_font/1b2}
${execpi 600 sed -n '29p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}°
±${execpi 600 sed -n '30p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}°
${voffset -28}${goto 50}${color2}${font conkyweather:size=24}${execi 600  sed -n '27p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}${font}${color}
${execpi 600 sed -n '34p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
UVI  ${execpi 600 sed -n '36p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
Wind ${execpi 600 sed -n '31p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
@  ${execpi 600 sed -n '32p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
Vis ${execpi 600 sed -n '38p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
CC  ${execpi 600 sed -n '35p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
Hum ${execpi 600 sed -n '33p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
DP  ${execpi 600 sed -n '37p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}°
S ${execpi 600 sed -n '39p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
↓ ${execpi 600 sed -n '40p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
M ${execpi 600 sed -n '41p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
↓ ${execpi 600 sed -n '42p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
${execi 3600 echo `date --date="0 day" | awk '{print $1" "$3" "$2}'`}
${execpi 600 sed -n '26p' $HOME/1b2_accuweather_conkyweather_font/first_days}°
${execpi 600 sed -n '27p' $HOME/1b2_accuweather_conkyweather_font/first_days}°
${voffset -28}${goto 50}${color2}${font conkyweather:size=24}${execi 600  sed -n '25p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${color}
CoP ${execpi 600 sed -n '28p' $HOME/1b2_accuweather_conkyweather_font/first_days}
Tonight
${execpi 600 sed -n '31p' $HOME/1b2_accuweather_conkyweather_font/first_days}°
${execpi 600 sed -n '32p' $HOME/1b2_accuweather_conkyweather_font/first_days}°
${voffset -28}${goto 50}${color2}${font conkyweather:size=24}${execi 600  sed -n '30p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${color}
CoP ${execpi 600 sed -n '33p' $HOME/1b2_accuweather_conkyweather_font/first_days}
${execi 3600 echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`}
${execpi 600 sed -n '8p' $HOME/1b2_accuweather_conkyweather_font/first_days}°
${execpi 600 sed -n '9p' $HOME/1b2_accuweather_conkyweather_font/first_days}°
${voffset -28}${goto 50}${color2}${font conkyweather:size=24}${execi 600  sed -n '6p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${color}
${execi 3600 echo `date --date="2 day" | awk '{print $1" "$3" "$2}'`}
${execpi 600 sed -n '13p' $HOME/1b2_accuweather_conkyweather_font/first_days}°
${execpi 600 sed -n '14p' $HOME/1b2_accuweather_conkyweather_font/first_days}°
${voffset -28}${goto 50}${color2}${font conkyweather:size=24}${execi 600  sed -n '11p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${color}
${execi 3600 echo `date --date="3 day" | awk '{print $1" "$3" "$2}'`}
${execpi 600 sed -n '18p' $HOME/1b2_accuweather_conkyweather_font/first_days}°
${execpi 600 sed -n '19p' $HOME/1b2_accuweather_conkyweather_font/first_days}°
${voffset -28}${goto 50}${color2}${font conkyweather:size=24}${execi 600  sed -n '16p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${color}
${execi 3600 echo `date --date="4 day" | awk '{print $1" "$3" "$2}'`}
${execpi 600 sed -n '23p' $HOME/1b2_accuweather_conkyweather_font/first_days}°
${execpi 600 sed -n '24p' $HOME/1b2_accuweather_conkyweather_font/first_days}°
${voffset -28}${goto 50}${color2}${font conkyweather:size=24}${execi 600  sed -n '21p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${color}
${execi 3600 echo `date --date="5 day" | awk '{print $1" "$3" "$2}'`}
${execpi 600 sed -n '4p' $HOME/1b2_accuweather_conkyweather_font/last_days}°
${execpi 600 sed -n '5p' $HOME/1b2_accuweather_conkyweather_font/last_days}°
${voffset -28}${goto 50}${color2}${font conkyweather:size=24}${execi 600  sed -n '2p' $HOME/1b2_accuweather_conkyweather_font/last_days}${font}${color}
${execi 3600 echo `date --date="6 day" | awk '{print $1" "$3" "$2}'`}
${execpi 600 sed -n '9p' $HOME/1b2_accuweather_conkyweather_font/last_days}°
${execpi 600 sed -n '10p' $HOME/1b2_accuweather_conkyweather_font/last_days}°
${voffset -28}${goto 50}${color2}${font conkyweather:size=24}${execi 600  sed -n '7p' $HOME/1b2_accuweather_conkyweather_font/last_days}${font}${color}
${execi 3600 echo `date --date="7 day" | awk '{print $1" "$3" "$2}'`}
${execpi 600 sed -n '14p' $HOME/1b2_accuweather_conkyweather_font/last_days}°
${execpi 600 sed -n '15p' $HOME/1b2_accuweather_conkyweather_font/last_days}°
${voffset -28}${goto 50}${color2}${font conkyweather:size=24}${execi 600  sed -n '12p' $HOME/1b2_accuweather_conkyweather_font/last_days}${font}${color}
${execi 3600 echo `date --date="8 day" | awk '{print $1" "$3" "$2}'`}
${execpi 600 sed -n '19p' $HOME/1b2_accuweather_conkyweather_font/last_days}°
${execpi 600 sed -n '20p' $HOME/1b2_accuweather_conkyweather_font/last_days}°
${voffset -28}${goto 50}${color2}${font conkyweather:size=24}${execi 600  sed -n '17p' $HOME/1b2_accuweather_conkyweather_font/last_days}${font}${color}
${execi 3600 echo `date --date="9 day" | awk '{print $1" "$3" "$2}'`}
${execpi 600 sed -n '24p' $HOME/1b2_accuweather_conkyweather_font/last_days}°
${execpi 600 sed -n '25p' $HOME/1b2_accuweather_conkyweather_font/last_days}°
${voffset -28}${goto 50}${color2}${font conkyweather:size=24}${execi 600  sed -n '22p' $HOME/1b2_accuweather_conkyweather_font/last_days}${font}${color}
${membar 0}${voffset -300}

I think this will be my default for a while, I like it.


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

#17 2015-10-09 07:04:10

KrunchTime
Member
Registered: 2015-09-29
Posts: 857

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Sector11 wrote:

Teo, my good man - so good to see you here!

+1

Offline

#18 2015-10-09 18:51:47

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,153

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

»»»»» This is for conky v1.90 «««««

1d) Accuweather RSS

--- with a new (for me) twist to the "| cut" command - also uses "fold -s -w26" for the conditions.

Could not find the old one that was linked to so I created a new one.  I'm including the Test Lines in the image to show that no matter how long the conditions text is it will wrap below the weather icon (font).  Note the last day there in the test area, with 111 F and -10 C - that was to get a maximum length for that line and set the fold function to 26
Texas ... Buenos Aires ... and ... Kastoria
2015_10_09_15_31_57_Scrot11.png 2015_10_09_15_36_45_Scrot11.png 2015_10_09_15_39_48_Scrot11.png

The working conky: Kastoria Greece 2015_10_09_15_41_22_Scrot11.png note the folded conditions for Saturday.

The conky:

# pkill -xf "conky -c $HOME/1d_accuweather_rss/conkyrc_1d" &
# works perfect - Mon 24 Nov 2014 23:42:07
# works perfect - Sat 24 Jan 2015 23:04:11
# works perfect - Fri 10 Apr 2015 10:17:05
# works perfect - Fri 09 Oct 2015 15:41:56

###  Begin Window Settings  ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,skip_taskbar,skip_pager,below,sticky
own_window_colour 000000
own_window_class Conky
own_window_title 1d_accuweather_rss
### ARGB can be used for real transparency
#  own_window_argb_visual yes # Options: yes or no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
#  own_window_argb_value 100

minimum_size 250 0
maximum_width 250

gap_x 20	# l|r
gap_y 20	# u|d

alignment tr
####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
#xftfont monofur:bold:size=10
xftfont Fantasque Sans Mono:bold:size=10
#xftfont Liberation Mono:bold:size=9
#xftfont Monospace:bold:size=9

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1.0

# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color DCDCDC #220 220 220	Gainsboro
color0 778899 #119 136 153 LightSlateGray
color1 B0E0E6 #176 224 230 PowderBlue
color2 D8BFD8 #216 191 216 Thistle
color3 9ACD32 #154 205  50 YellowGreen
color4 FFA07A #255 160 122 LightSalmon
color5 FFDEAD #255 222 173 NavajoWhite
color6 00BFFF #  0 191 255 DeepSkyBlue
color7 5F9EA0 # 95 158 160 CadetBlue
color8 C0C0C0 #192 192 192 Silver
color9 CD5C5C #205  92  92 IndianRed
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 5
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 2
# graph borders
draw_graph_borders yes #no
#default_graph_size 15 40
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background yes

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
## text_buffer_size 6144

# Subtract (file slystem) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

# Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
# $image lots. Set to 0 to disable th0e image cache.
imlib_cache_size 0

# Use the Xdbe extension? (eliminates flicker)
# It is highly reco${color}mmended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

update_interval 1

 ##${execi 600 bash $HOME/1d_accuweather_rss/1d}
TEXT
${execi 600 bash $HOME/1d_accuweather_rss/1d}\
${font conkyweather:size=30}${color8}${execpi 600  sed -n '2p' $HOME/1d_accuweather_rss/weather}${color}${font}
${voffset -40}${goto 75}${color1}Kastoria Greece${color}
${goto 75}Currently:
${goto 75}${execpi 600 sed -n '1p' $HOME/1d_accuweather_rss/weather|cut -d ' ' -f2-|fold -s -w26}

${GOTO 75}${color1}FORECAST${color}

${font conkyweather:size=30}${color8}${execpi 600  sed -n '5p' $HOME/1d_accuweather_rss/weather}${color}${font}
${voffset -40}${goto 75}${color1}${execi 3600 echo `date --date="0 day" | awk '{print $1" "$3" "$2" "$6}'`}${color}
${goto 75}${execpi 600 sed -n '4p' $HOME/1d_accuweather_rss/weather|cut -d ' ' -f-6}
${goto 75}${execpi 600 sed -n '4p' $HOME/1d_accuweather_rss/weather|cut -d ' ' -f7-|fold -s -w26}

${font conkyweather:size=30}${color8}${execpi 600  sed -n '8p' $HOME/1d_accuweather_rss/weather}${color}${font}
${voffset -40}${goto 75}${color1}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$3" "$2" "$6}'`}${color}
${goto 75}${execpi 600 sed -n '7p' $HOME/1d_accuweather_rss/weather|cut -d ' ' -f-6}
${goto 75}${execpi 600 sed -n '7p' $HOME/1d_accuweather_rss/weather|cut -d ' ' -f7-|fold -s -w26}

${membar 0}

BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

#19 2015-10-09 19:14:52

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 725

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Nice one S11.
A different approach from the tarballed conkyrc.
I'll link it from the first post.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#20 2015-10-11 01:19:20

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,153

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

»»»»» This is for conky v1.90 «««««

The Teo Conky Wunderground Weather Station
  • 2b)WUnderground API - All users - 2b_15-2-14

  • 5) Moon phases' script - 5_12-2-14

2014_02_24_14_26_04_1920x1080_Sector11.jpg«- mono|colour -» 2014_02_24_15_03_47_1920x1080_Sector11.jpg

Required for this layout:
conky font: monofur
Teo_Weather_Clock.lua
Teo_Weather_Clock.lua fonts: monofur, Liquid Crystal

Nice to have:
draw.-bg.lua

WARNING:  Check the "paths" these are in:

  • /media/5/Conky/Teo_wun/

  • /media/5/Conky/Teo_wun//5_moon

Teo_Weather_Clock.lua
lang="Greek", -- English French Greek Spanish
hour=24, -- 12 | 24 - there is an oops! for Feb -57 days? in 12 hour mode - I need to check it.
- - - that will take a while .. I know very little about LUA
2014_02_24_14_45_01_1920x1080_Sector11.jpg

T-wunClock.conky

# pkill -xf "conky -c /media/5/Conky/Teo_wun/T-wunClock.conky" &
# conky -c /media/5/Conky/Teo_wun/T-wunClock.conky &
# Thank you:
# TeoBigusGeekus - for his wonderful weather scripts
# - - This one is: 2b_Wunderground_API - dated 24 Feb 2014
# Chronograph LUA - Sector11 - tweaked with the help of mrpeachy
##### - See LUA for more (originally 4 clocks by  mrpeachy)
# mounted.lua - londonali1010, mrpeachy, dk75

###  Begin Window Settings  ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
#own_window_colour gray
own_window_class Conky
own_window_title Teo Wun Clock

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type normal
# own_window_argb_visual yes

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
# own_window_argb_value 0

#minimum_size 420 420  ## width, height
#maximum_width 420     ## width

### For use with The-Clock.lua
minimum_size 300 0  ## width, height
maximum_width 300     ## width

gap_x 10 #15        ### left &right
gap_y 10        ### up & down

### alignment values or top_left, bottom_right, etc
# tl, tm, tr
# ml, mm, mr
# bl, bm, br
alignment tr

####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
#xftfont CorporateMonoExtraBold:size=9
xftfont monofur:bold:size=11
# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
###  Color Settings  #########################################################
draw_shades no  ## <<<--- yes --- To see it easier on light screens.
default_shade_color 000000
draw_outline no #### <<<--- yes --- Amplifies text if yes OJO with changing fonts
default_outline_color 000000

default_color DCDCDC #220 220 220	Gainsboro
#default_color C0C0C0 #192 192 192 Silver
#default_color B0E0E6 #176 224 230 PowderBlue
#default_color D8BFD8 #216 191 216 Thistle
color0 8FBC8F #DarkSeaGreen
#color1 C0C0C0 # Silver
#color1 D3D3D3 #LightGrey
color1 778899 #LightSlateGray
color2 F5F5DC #Beige
color3 87CEFA #LightSkyBlue
#color3 87CEFA #E0FFFF #LightCyan
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
#color7 5F9EA0 #CadetBlue
#color8 FFFFE0 #LightYellow
color8 FFD700 #Gold
#color8 F0E68C #Khaki
color9 FFA07A #LightSalmon
#color9 CD5C5C #IndianRed
#color9 FF0000 #Red
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders yes #no
#default_graph_size 15 40
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background yes

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 256

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

# If enabled, values which are in bytes will be printed in human readable
# format (i.e., KiB, MiB, etc). If disabled, bytes is printed instead
format_human_readable yes

# Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off.
short_units yes


imlib_cache_size 0

#   Maximum size of user text buffer, i.e. layout below TEXT line in config file
#  (default is 16384 bytes)
# max_user_text 16384

# Desired output unit of all objects displaying a temperature. Parameters are
# either "fahrenheit" or "celsius". The default unit is degree Celsius.
# temperature_unit Fahrenheit

## default bar size
default_bar_size 200 20

##############################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
## draw-bg.lua - Above and After TEXT - requires a composite manager.
##
lua_load /media/5/Conky/Teo_wun/LUA/draw-bg.lua
#TEXT
# ${lua conky_draw_bg 125 0 0 0 0 0x000000 0.2}
#
# ----------------------------------------------------------------------------
## OR Both above TEXT - No composite manager required.
#
#lua_load /media/5/Conky/TeoWeatherClock/LUA/draw-bg.lua
#lua_draw_hook_pre draw_bg 20 0 0 0 0 0x000000 0.2
#
# TEXT
### Teo Weather Clock ########################################################
lua_load /media/5/Conky/Teo_wun/LUA/Teo_Weather_Clock.lua
lua_draw_hook_post main
##############################  End LUA Settings  ###

update_interval 1
## USE THIS TEST Image:
##		${image /media/5/Conky/images/red+x.png -p
##TEXT
##${lua conky_draw_bg 10 0 0 0 0 0x000000 0.6}\
##${texeci 600 bash /media/5/Conky/Teo_wun/wunder}\
##${texeci 600 bash /media/5/Conky/Teo_wun/5_Moon/moon}\

TEXT
${lua conky_draw_bg 10 0 0 0 0 0x000000 0.6}\
${texeci 600 bash /media/5/Conky/Teo_wun/wunder}\
${texeci 600 bash /media/5/Conky/Teo_wun/5_Moon/moon}\
${color5}↑: ${color9}${execi 600 sed -n '39p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color}${alignr 5}\
${color5}T: ${color7}${execi 600 sed -n '67p' /media/5/Conky/Teo_wun/Conditions}°
${color5}↓: ${color7}${execi 600 sed -n '44p' /media/5/Conky/Teo_wun/Simple_Forecast}°${alignr 5}\
${color5}±: ${execi 600 sed -n '113p' /media/5/Conky/Teo_wun/Conditions}°






${image /media/5/Conky/Teo_wun/5_Moon/current.png -p 60,60 -s 175x175}\
${image /media/5/Conky/Teo_wun/Now.png -p 93,113 -s 108x65}







${color5}Hum${alignr 5}D.P.${color}
${color7}${execi 600 sed -n '69p' /media/5/Conky/Teo_wun/Conditions}${alignr 5}${execi 600 sed -n '95p' /media/5/Conky/Teo_wun/Conditions}°${color}
${color5}Pressure${alignr 5}UV Index${color}
${color7}${execi 600 sed -n '85p' /media/5/Conky/Teo_wun/Conditions} | ${execi 600 sed -n '89p' /media/5/Conky/Teo_wun/Conditions}${alignr 15}${execi 600 sed -n '121p' /media/5/Conky/Teo_wun/Conditions}${color}
${font monofur:bold:size=14}${alignc}${execi 600 sed -n '63p' /media/5/Conky/Teo_wun/Conditions}${font}
${color5}Wind ${color7}${execi 600 sed -n '81p' /media/5/Conky/Teo_wun/Conditions} kph${goto 130}${color5}Gusts ${color7}${execi 600 sed -n '83p' /media/5/Conky/Teo_wun/Conditions} kph${alignr 5}${color5}←→ ${color7}${execi 600 sed -n '73p' /media/5/Conky/Teo_wun/Conditions}${color}
${alignc}${color1}The current moon phase is from
${alignc}${execpi 600 sed -n '5p' /media/5/Conky/Teo_wun/5_Moon/today} ${execpi 600 sed -n '6p' /media/5/Conky/Teo_wun/5_Moon/today}${execpi 600 sed -n '7p' /media/5/Conky/Teo_wun/5_Moon/today} ${execpi 600 sed -n '8p' /media/5/Conky/Teo_wun/5_Moon/today}${color}
${font monofur:bold:size=10}${goto 12}${membar 0,15} ${execi 600 echo `date --date="0 day" | awk '{print $1" "$3" "$2}'`} ${membar 0,15}${color}\
		${goto 135}${color7}→  ${execpi 600 sed -n '10p' /media/5/Conky/Teo_wun/5_Moon/today | sed 's/^.*sign //'}
${image /media/5/Conky/Teo_wun/d1.png -p 0,379 -s 60x36}\
${image /media/5/Conky/Teo_wun/n1.png -p 60,379 -s 60x36}\
${image /media/5/Conky/Teo_wun/5_Moon/current.png -p 125,375 -s 40x40}\
${color9}${execi 600 sed -n '39p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color}\
	${goto 52}${execi 600 sed -n '102p' /media/5/Conky/Teo_wun/Simple_Forecast}%\
		${goto 180}${color7}${execpi 600 sed -n '3p' /media/5/Conky/Teo_wun/5_Moon/today}${color}
	${goto 52}${color3}↓↓↓↓${color}\
		${goto 180}${color7}Growing ${execpi 600 sed -n '/The moon is growing/p' /media/5/Conky/Teo_wun/5_Moon/today | sed 's/^.*growing //' | sed 's/ .*$//'}${color}
	${goto 52}${execi 600 sed -n '57p' /media/5/Conky/Teo_wun/Simple_Forecast}\
		${goto 98}${color7}${execi 600 sed -n '44p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color}\
		${goto 180}${color7}${execpi 600 sed -n '/The moon is growing/p' /media/5/Conky/Teo_wun/5_Moon/today | sed 's/^.*growing //' | sed 's/^.*(//g' | sed 's/ .*$//'} moon${color}
${goto 12}${membar 0,15} ${color4}${execi 600 echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`}${color} ${membar 0,15}\
		${goto 135}${color7}→  ${execpi 600 sed -n '6p' /media/5/Conky/Teo_wun/5_Moon/week}
${image /media/5/Conky/Teo_wun/d2.png -p 0,435 -s 60x36}\
${image /media/5/Conky/Teo_wun/n2.png -p 60,435 -s 60x36}\
${image /media/5/Conky/Teo_wun/5_Moon/3.png -p 125,431 -s 40x40}\
${color9}${execi 600 sed -n '145p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color}\
	${goto 52}${execi 600 sed -n '208p' /media/5/Conky/Teo_wun/Simple_Forecast}%\
		${goto 180}${color7}${execpi 600 sed -n '4p' /media/5/Conky/Teo_wun/5_Moon/week}${color}
	${goto 52}${color3}↓↓↓↓${color}\
		${goto 180}${color7}${execpi 600 sed -n '5p' /media/5/Conky/Teo_wun/5_Moon/week}${color}
	${goto 52}${execi 600 sed -n '163p' /media/5/Conky/Teo_wun/Simple_Forecast}\
		${goto 98}${color7}${execi 600 sed -n '150p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color}
${goto 12}${membar 0,15} ${color4}${execi 600 echo `date --date="2 day" | awk '{print $1" "$3" "$2}'`}${color} ${membar 0,15}\
		${goto 135}${color7}→  ${execpi 600 sed -n '12p' /media/5/Conky/Teo_wun/5_Moon/week}
${image /media/5/Conky/Teo_wun/d3.png -p 0,491 -s 60x36}\
${image /media/5/Conky/Teo_wun/n3.png -p 60,491 -s 60x36}\
${image /media/5/Conky/Teo_wun/5_Moon/9.png -p 125,487 -s 40x40}\
${color9}${execi 600 sed -n '251p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color}\
	${goto 52}${execi 600 sed -n '314p' /media/5/Conky/Teo_wun/Simple_Forecast}%\
		${goto 180}${color7}${execpi 600 sed -n '10p' /media/5/Conky/Teo_wun/5_Moon/week}${color}
	${goto 52}${color3}↓↓↓↓${color}\
		${goto 180}${color7}${execpi 600 sed -n '11p' /media/5/Conky/Teo_wun/5_Moon/week}${color}
	${goto 52}${execi 600 sed -n '269p' /media/5/Conky/Teo_wun/Simple_Forecast}\
		${goto 98}${color7}${execi 600 sed -n '256p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color}
${goto 12}${membar 0,15} ${color4}${execi 600 echo `date --date="3 day" | awk '{print $1" "$3" "$2}'`}${color} ${membar 0,15}\
		${goto 135}${color7}→  ${execpi 600 sed -n '18p' /media/5/Conky/Teo_wun/5_Moon/week}
${image /media/5/Conky/Teo_wun/d4.png -p 0,547 -s 60x36}\
${image /media/5/Conky/Teo_wun/n4.png -p 60,547 -s 60x36}\
${image /media/5/Conky/Teo_wun/5_Moon/15.png -p 125,543 -s 40x40}\
${color9}${execi 600 sed -n '357p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color}\
	${goto 52}${execi 600 sed -n '420p' /media/5/Conky/Teo_wun/Simple_Forecast}%\
		${goto 180}${color7}${execpi 600 sed -n '16p' /media/5/Conky/Teo_wun/5_Moon/week}${color}
	${goto 52}${color3}↓↓↓↓${color}\
		${goto 180}${color7}${execpi 600 sed -n '17p' /media/5/Conky/Teo_wun/5_Moon/week}${color}
	${goto 52}${execi 600 sed -n '375p' /media/5/Conky/Teo_wun/Simple_Forecast}\
		${goto 98}${color7}${execi 600 sed -n '362p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color}
${goto 12}${membar 0,15} ${color4}${execi 600 echo `date --date="4 day" | awk '{print $1" "$3" "$2}'`}${color} ${membar 0,15}\
		${goto 135}${color7}→  ${execpi 600 sed -n '24p' /media/5/Conky/Teo_wun/5_Moon/week}
${image /media/5/Conky/Teo_wun/d5.png -p 0,603 -s 60x36}\
${image /media/5/Conky/Teo_wun/n5.png -p 60,603 -s 60x36}\
${image /media/5/Conky/Teo_wun/5_Moon/21.png -p 125,599 -s 40x40}\
${color9}${execi 600 sed -n '463p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color}\
	${goto 52}${execi 600 sed -n '526p' /media/5/Conky/Teo_wun/Simple_Forecast}%\
		${goto 180}${color7}${execpi 600 sed -n '22p' /media/5/Conky/Teo_wun/5_Moon/week}${color}
	${goto 52}${color3}↓↓↓↓${color}\
		${goto 180}${color7}${execpi 600 sed -n '23p' /media/5/Conky/Teo_wun/5_Moon/week}${color}
	${goto 52}${execi 600 sed -n '481p' /media/5/Conky/Teo_wun/Simple_Forecast}\
		${goto 98}${color7}${execi 600 sed -n '468p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color}
${goto 12}${membar 0,15} ${color4}${execi 600 echo `date --date="5 day" | awk '{print $1" "$3" "$2}'`}${color} ${membar 0,15}\
		${goto 135}${color7}→  ${execpi 600 sed -n '30p' /media/5/Conky/Teo_wun/5_Moon/week}
${image /media/5/Conky/Teo_wun/d6.png -p 0,659 -s 60x36}\
${image /media/5/Conky/Teo_wun/n6.png -p 60,659 -s 60x36}\
${image /media/5/Conky/Teo_wun/5_Moon/27.png -p 125,655 -s 40x40}\
${color9}${execi 600 sed -n '569p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color}\
	${goto 52}${execi 600 sed -n '632p' /media/5/Conky/Teo_wun/Simple_Forecast}%\
		${goto 180}${color7}${execpi 600 sed -n '28p' /media/5/Conky/Teo_wun/5_Moon/week}${color}
	${goto 52}${color3}↓↓↓↓${color}\
		${goto 180}${color7}${execpi 600 sed -n '29p' /media/5/Conky/Teo_wun/5_Moon/week}${color}
	${goto 52}${execi 600 sed -n '587p' /media/5/Conky/Teo_wun/Simple_Forecast}\
		${goto 98}${color7}${execi 600 sed -n '574p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color}
${goto 12}${membar 0,15} ${color4}${execi 600 echo `date --date="6 day" | awk '{print $1" "$3" "$2}'`}${color} ${membar 0,15}\
		${goto 135}${color7}→  ${execpi 600 sed -n '36p' /media/5/Conky/Teo_wun/5_Moon/week}
${image /media/5/Conky/Teo_wun/d7.png -p 0,715 -s 60x36}\
${image /media/5/Conky/Teo_wun/n7.png -p 60,715 -s 60x36}\
${image /media/5/Conky/Teo_wun/5_Moon/33.png -p 125,711 -s 40x40}\
${color9}${execi 600 sed -n '675p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color}\
	${goto 52}${execi 600 sed -n '738p' /media/5/Conky/Teo_wun/Simple_Forecast}%\
		${goto 180}${color7}${execpi 600 sed -n '34p' /media/5/Conky/Teo_wun/5_Moon/week}${color}
	${goto 52}${color3}↓↓↓↓${color}\
		${goto 180}${color7}${execpi 600 sed -n '35p' /media/5/Conky/Teo_wun/5_Moon/week}${color}
	${goto 52}${execi 600 sed -n '693p' /media/5/Conky/Teo_wun/Simple_Forecast}\
		${goto 98}${color7}${execi 600 sed -n '680p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color}
${goto 12}${membar 0,15} ${color4}${execi 600 echo `date --date="7 day" | awk '{print $1" "$3" "$2}'`}${color} ${membar 0,15}\
		${goto 135}${color7}→  ${execpi 600 sed -n '42p' /media/5/Conky/Teo_wun/5_Moon/week}
${image /media/5/Conky/Teo_wun/d8.png -p 0,771 -s 60x36}\
${image /media/5/Conky/Teo_wun/n8.png -p 60,771 -s 60x36}\
${image /media/5/Conky/Teo_wun/5_Moon/39.png -p 125,767 -s 40x40}\
${color9}${execi 600 sed -n '781p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color}\
	${goto 52}${execi 600 sed -n '844p' /media/5/Conky/Teo_wun/Simple_Forecast}%\
		${goto 180}${color7}${execpi 600 sed -n '40p' /media/5/Conky/Teo_wun/5_Moon/week}${color}
	${goto 52}${color3}↓↓↓↓${color}\
		${goto 180}${color7}${execpi 600 sed -n '41p' /media/5/Conky/Teo_wun/5_Moon/week}${color}
	${goto 52}${execi 600 sed -n '799p' /media/5/Conky/Teo_wun/Simple_Forecast}\
		${goto 98}${color7}${execi 600 sed -n '786p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color}
${goto 12}${membar 0,15} ${color4}${execi 600 echo `date --date="8 day" | awk '{print $1" "$3" "$2}'`}${color} ${membar 0,15}\
		${goto 130}${color}↓ Current Moon Cycle ↓
${image /media/5/Conky/Teo_wun/d9.png -p 0,827 -s 60x36}\
${image /media/5/Conky/Teo_wun/n9.png -p 60,827 -s 60x36}\
${color9}${execi 600 sed -n '887p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color}\
	${goto 52}${execi 600 sed -n '950p' /media/5/Conky/Teo_wun/Simple_Forecast}%\
		${goto 130}${color}New ${color7}→ ${execi 600 sed -n '18p' /media/5/Conky/Teo_wun/5_Moon/today} \
${execi 600 sed -n '19p' /media/5/Conky/Teo_wun/5_Moon/today}${color}
	${goto 52}${color3}↓↓↓↓${color}\
		${goto 130}${color7}~ ${execi 600 sed -n '20p' /media/5/Conky/Teo_wun/5_Moon/today}${color}
	${goto 52}${execi 600 sed -n '905p' /media/5/Conky/Teo_wun/Simple_Forecast}\
		${goto 98}${color7}${execi 600 sed -n '892p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color}\
		${goto 130}${color}1st ${color7}→ ${execi 600 sed -n '24p' /media/5/Conky/Teo_wun/5_Moon/today} \
${execi 600 sed -n '25p' /media/5/Conky/Teo_wun/5_Moon/today}${color}
${goto 12}${membar 0,15} ${color4}${execi 600 echo `date --date="9 day" | awk '{print $1" "$3" "$2}'`}${color} ${membar 0,15}\
		${goto 130}${color7}~ ${execi 600 sed -n '26p' /media/5/Conky/Teo_wun/5_Moon/today}${color}
${image /media/5/Conky/Teo_wun/d10.png -p 0,883 -s 60x36}\
${image /media/5/Conky/Teo_wun/n10.png -p 60,883 -s 60x36}\
${color9}${execi 600 sed -n '993p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color}\
		${goto 130}${color}Full ${color7}→ ${execi 600 sed -n '30p' /media/5/Conky/Teo_wun/5_Moon/today} \
${execi 600 sed -n '31p' /media/5/Conky/Teo_wun/5_Moon/today}${color}
	${goto 52}${execi 600 sed -n '1056p' /media/5/Conky/Teo_wun/Simple_Forecast}%\
		${goto 130}${color7}~ ${execi 600 sed -n '32p' /media/5/Conky/Teo_wun/5_Moon/today}${color}
	${goto 52}${color3}↓↓↓↓${color}\
		${goto 130}${color}Last ${color7}→ ${execi 600 sed -n '36p' /media/5/Conky/Teo_wun/5_Moon/today} \
${execi 600 sed -n '37p' /media/5/Conky/Teo_wun/5_Moon/today}${color}
	${goto 52}${execi 600 sed -n '1011p' /media/5/Conky/Teo_wun/Simple_Forecast}\
		${goto 98}${color7}${execi 600 sed -n '998p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color}\
		${goto 130}${color7}~ ${execi 600 sed -n '38p' /media/5/Conky/Teo_wun/5_Moon/today}${color}
${goto 12}${membar 0,110}		${goto 130}${color}NEW ${color7}→ ${execi 600 sed -n '42p' /media/5/Conky/Teo_wun/5_Moon/today} \
${execi 600 sed -n '43p' /media/5/Conky/Teo_wun/5_Moon/today}${color}
${goto 40}${membar 0,55}\
		${goto 130}${color7}~ ${execi 600 sed -n '44p' /media/5/Conky/Teo_wun/5_Moon/today}${color}
Angular diameter${goto 170}Distance from us
   ${color8} sun  ${execi 600 sed -n '51p' /media/5/Conky/Teo_wun/5_Moon/today}\
${goto 170}${execi 600 sed -n '55p' /media/5/Conky/Teo_wun/5_Moon/today}
   ${color1}moon  ${execi 600 sed -n '49p' /media/5/Conky/Teo_wun/5_Moon/today}\
${goto 170}${execi 600 sed -n '53p' /media/5/Conky/Teo_wun/5_Moon/today}
${color}${hr}

Teo_Weather_Clock.lua

--[[ multiple analogue clocks by mrpeachy - 18 Jun 2012
 21 Jun 2012 - Chronograph modifications by Sector11
 22 Jun 2012 - again with mrpeachy's help day names, numbers and month names
 12 Nov 2012 - memory leak plugged - mrpeachy
 26 Nov 2012 - The Clock - Sector11 (small version)

use in conkyrc

lua_load /path/Chronograph.lua
lua_draw_hook_pre main
TEXT

 -- INDEX use search|find with: -- ### sonething ###

 -- ### CLOCK POSITION - AND DEFAULTS ###
 -- ### SET BORDER OPTIONS FOR "CLOCKS" ### -- I don't know how to remove this - NOT NEEDED
 --     See lines 39 to 41 for overall size changes
 -- ### START DIAL B ### Day Names Dial ###
 --     See Lines 77 - 79 and 145 for changes
 -- ### START DIAL C ### Month Names Dial ###
 --     See Lines 143 -145 and 192 for changes
 -- ### START DIAL D ### Day Numbers Dial ###
 --     See Lines 226 & 257 for  changes
 -- ### START CLOCK A ###
 --     See Lines  &  and 456 & 483 changes
 -- MARKS AROUND CLOCK A -- Large Main 24 HR Clock
 -- CLOCK A HOUR HAND
 -- CLOCK A MINUTE HAND SETUP
 -- CLOCK A SECOND HAND SETUP
 -- PART SECOND HAND Lines: 503 519, 531

NOTE:  Putting ### CLOCK A ### last insures that it's functions are written
       over the other dials.
]]

require 'cairo'
 -- ### CLOCK POSITION - AND DEFAULTS ##########################################
local init={
center_x=153, --from 135 = +40
center_y=153, --from 135
radius=140,
lang="Greek", -- English French Greek Spanish
hour=24, -- 12 | 24
second=true, --true | false - Seconds: dots and numbers IF 12HR
line=true, -- true | false - Part Second Hand
handday=false, -- DAY NAME hand - true or false
--handdaynum=false, -- DAY NUMBER hand - true or false
handmonth=false, -- MONTH NAME hand - true or false
color=0xFF0000, --color for day, day number and month IF NO SECOND HAND
alpha=1 --alpha for day, day number and month IF NO SECOND HAND
}

 -- ONLY NEED ONE COPY OF THIS FUNCTION
function rgb_to_r_g_b(col,alp)
  return ((col / 0x10000) % 0x100) / 255, ((col / 0x100) % 0x100) / 255, (col % 0x100) / 255, alp
end
local colr, colg, colb, cola=rgb_to_r_g_b(init.color,init.alpha)

function conky_main()
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
cr = cairo_create(cs)
local extents=cairo_text_extents_t:create()
tolua.takeownership(extents)

 -- ### CLOCK 12|24 HR SELECTOR ############################
local clock_type_A=init.hour
 -- ############################ CLOCK 12|24 HR SELECTOR ###

 -- ### SET BORDER OPTIONS FOR "CLOCKS" ####################
--local clock_border_width=0
 -- set color and alpha for clock border
--local cbr,cbg,cbb,cba=1,1,1,1 -- full opaque white
 -- gap from clock border to minute marks
local b_to_m=0
 -- #################### SET BORDER OPTIONS FOR "CLOCKS" ###

 -- ### START DIAL B ### Day Names Dial ####################
 -- DIAL POSITION
local center_x=init.center_x
local center_y=init.center_y
local radius=42
 -- FONT
cairo_select_font_face (cr, "monofur", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, 14)
 -- TABLE OF TEXT -- in order
if init.lang == "English" then text_days={"Sun","Mon","Tue","Wed","Thr","Fri","Sat",} end
if init.lang == "French" then text_days={"dim","lun","mar","mer","jeu","ven","sam",} end
if init.lang == "Greek" then text_days={"ΔΕΥ","ΤΡΙ","ΤΕΤ","ΠΕΜ","ΠΑΡ","ΣΑΒ","ΚΥΡ",} end
if init.lang == "Spanish" then text_days={"dom","lun","mar","mie","jue","vie","sab",} end

local day_number=tonumber(os.date("%w"))
if init.handday == true then
  for i=1,7 do
 -- work out points
    local point=(math.pi/180)*((360/7)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
 -- CALCULATE CENTRE OF TEXT
    local text=text_days[i]--gets text from table
    cairo_text_extents(cr,text,extents)
    local width=extents.width
    local height=extents.height
    cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
    cairo_show_text (cr, text)
    cairo_stroke (cr)
  end
else
  for i=1,7 do -- working out points
    if day_number == i-1 then
      cairo_set_source_rgba (cr,0,1,1,1) -- active colour
    else
      cairo_set_source_rgba (cr,1,1,1,0.07) -- non-active day names
    end
    local point=(math.pi/180)*((360/7)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
 -- CALCULATE CENTRE OF TEXT
    local text=text_days[i]--gets text from table
    cairo_text_extents(cr,text,extents)
    local width=extents.width
    local height=extents.height
    cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
    cairo_show_text (cr, text)
    cairo_stroke (cr)
  end
 -- INNER POINTS POSITION, radius smaller than text circle
  local radius=27
  for i=1,7 do
    if day_number == i-1 then
      cairo_set_source_rgba (cr,0,1,1,1) -- active colour
    else
      cairo_set_source_rgba (cr,1,1,1,0.07) -- non-active
    end
    local point=(math.pi/180)*((360/7)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
    cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
    cairo_stroke (cr)
  end
end
 -- ######################################### END DIAL B ###

 -- ### START DIAL C ### Month Names Dial ##################
 -- DIAL POSITION
local center_x=init.center_x --(+85)
local center_y=init.center_y
local radius=73
 -- FONT
cairo_select_font_face (cr, "monofur", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, 14)
 -- TABLE OF TEXT -- in order
if init.lang == "English" then text_days={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",} end
if init.lang == "French" then text_days={"jan","fév","mar","avr","mai","jui","jul","aôu","sep","oct","nov","déc",} end
if init.lang == "Greek" then text_days={"ΙΑΝ","ΦΕΒ","ΜΑΡ","ΑΠΡ","ΜΑΙ","ΙΟΥ","ΙΟΥ","ΑΥΓ","ΣΕΠ","ΟΚΤ","ΝΟΕ","ΔΕΚ",} end
if init.lang == "Spanish" then text_days={"ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",} end

local this_month=tonumber(os.date("%m"))
if init.handmonth == true then
  for i=1,12 do
 -- OUTER POINTS POSTION FOR -- ### START DIAL C ## TEXT
    local point=(math.pi/180)*((360/12)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
 -- CALCULATE CENTRE OF TEXT
    local text=text_days[i]--gets text from table
    cairo_text_extents(cr,text,extents)
    local width=extents.width
    local height=extents.height
    cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
    cairo_show_text (cr, text)
    cairo_stroke (cr)
  end
else
  for i=1,12 do
    if this_month == i then
      cairo_set_source_rgba (cr,0,1,1,1) -- active month colour
    else
      cairo_set_source_rgba (cr,1,1,1,0.07) -- non-active month names
    end
 -- OUTTER POINTS POSTION FOR TEXT
    local point=(math.pi/180)*((360/12)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
 -- CALCULATE CENTRE OF TEXT
    local text=text_days[i]--gets text from table
    cairo_text_extents(cr,text,extents)
    local width=extents.width
    local height=extents.height
    cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
    cairo_show_text (cr, text)
    cairo_stroke (cr)
  end
 -- INNER POINTS POSITION, radius smaller than text circle
  local radius=58
  for i=1,12 do
    if this_month == i then
      cairo_set_source_rgba (cr,0,1,1,1) -- active colour
	 else
      cairo_set_source_rgba (cr,1,1,1,0.07) -- non-active month names
    end
    local point=(math.pi/180)*((360/12)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
    cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
    cairo_stroke (cr)
  end
end
 -- ######################################### END DIAL C ###

 -- ### START DIAL D ### Day Numbers Dial ##################
 -- GET NUMBER OF DAYS IN CURRENT MONTH
 -- calculate Feb, then set up table
year4num=os.date("%Y")
t1=os.time({year=year4num,month=03,day=01,hour=00,min=0,sec=0});
t2=os.time({year=year4num,month=02,day=01,hour=00,min=0,sec=0});
if init.hour == 12 then
  febdaynum=tonumber((os.difftime(t1,t2))/(12*60*60))
else
  febdaynum=tonumber((os.difftime(t1,t2))/(24*60*60))
end
 -- MONTH TABLE to get number of days
monthdays={31,febdaynum,31,30,31,30,31,31,30,31,30,31}
this_month=tonumber(os.date("%m"))
number_days=monthdays[this_month]
 -- TEXT positioning DAY #'s
local center_x=init.center_x
local center_y=init.center_y
local radius=105
cairo_select_font_face (cr, "Liquid Crystal", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
cairo_set_font_size (cr, 20)
local this_day=tonumber(os.date("%d"))
  for i=1,number_days do
 -- OUTTER POINTS POSTION FOR TEXT
    local point=(math.pi/180)*((360/number_days)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
 -- CALCULATE CENTRE OF TEXT
    --only print even numbers
    if math.mod(i, 2) == 0 and math.mod(this_day, 2)==0 then
    text=string.format("%02d",i) --formats numbers to double digits
    elseif math.mod(i, 2) ~= 0 and math.mod(this_day, 2)~=0 then
    text=string.format("%02d",i) --formats numbers to double digits
    else
    text=""
    end --odd even matching
    cairo_text_extents(cr,text,extents)
    local width=extents.width
    local height=extents.height
	if i==this_day then
     cairo_set_source_rgba (cr,0,1,1,1) -- active colour
	else
	cairo_set_source_rgba (cr,1,1,1,0.35) -- dim inactive numbers
	end
     cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
     cairo_show_text (cr, text)
     cairo_stroke (cr)
  end
 -- INNER POINTS POSITION, radius smaller than text circle
  local radius=90
  for i=1,number_days do
    local point=(math.pi/180)*((360/number_days)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
	if i==this_day then
     cairo_set_source_rgba (cr,0,1,1,1) -- active colour
	else
	cairo_set_source_rgba (cr,1,1,1,0.35) -- dim the points
	end
    cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
    cairo_stroke (cr)
  end
 -- ######################################### END DIAL D ###

 -- ### START CLOCK A ######################################
 -- SET MARKS ###
 -- MARKS AROUND CLOCK A -- Large Main 24 HR Clock
local number_marks_A=init.hour
 -- set mark length
local m_length_A=0 -- doesn't work but can't delete
 -- set mark width
local m_width_A=0 -- doesn't work but can't delete
 -- set mark line cap type
local m_cap=CAIRO_LINE_CAP_ROUND
 -- set mark color and alpha,red blue green alpha
local mr,mg,mb,ma=1,1,1,0 -- opaque white -- doesn't work but can't delete

 -- SETUP HOUR HANDS ###
 -- CLOCK A HOUR HAND
hh_length_A=90
 -- set hour hand width
hh_width_A=4
 -- set hour hand line cap
hh_cap=CAIRO_LINE_CAP_ROUND
 -- set hour hand color
 -- hhr,hhg,hhb,hha=1,0,1,0 -- fully opaque white --doesn't work

 -- SETUP MINUTE HANDS ###
 -- CLOCK A MINUTE HAND SETUP
 -- set length of minute hand
mh_length_A=123
 -- set minute hand width
mh_width_A=2
 -- set minute hand line cap
mh_cap=CAIRO_LINE_CAP_ROUND
 -- set minute hand color
--mhr,mhg,mhb,mha=1,1,1,0.5 -- fully opaque white --doesn't work

 -- SETUP SECOND HAND ###
 -- CLOCK A SECOND HAND SETUP -- DOESN'T WORK - Why ???????????????????????????
 -- set length of seconds hand -- yes I know it is commented out!
--sh_length_A=150
 -- set hour hand width
--sh_width_A=2
 -- set hour hand line cap
--sh_cap=CAIRO_LINE_CAP_ROUND
 -- set seconds hand color
--shr,shg,shb,sha=1,0,0,1 -- fully opaque red

 -- PART SECOND HAND
--position
--get seconds value
local seconds=tonumber(os.date("%S"))
--calculate rotation of second hand in degrees
if init.line == true then
  local arc=(math.pi/180)*((360/60)*seconds)
  --calculate point 1
  local radius1=120
  local x1=0+radius1*math.sin(arc)
  local y1=0-radius1*math.cos(arc)
  --calculate point 2
  local radius2=130
  local x2=0+radius2*math.sin(arc)
  local y2=0-radius2*math.cos(arc)
  --draw line connecting points
  cairo_move_to (cr, center_x+x1,center_y+y1)
  cairo_line_to (cr, center_x+x2, center_y+y2)
  cairo_set_source_rgba (cr,255/255,0/255,0/255,1) -- PART SECOND HAND
  cairo_stroke (cr)
end

 -- CLOCK A ### 12 HR TIME ###
 -- CLOCK SETTINGS
clock_radius=0 --does not work
clock_centerx=init.center_x -- centre of Clock hands
clock_centery=init.center_y -- centre of Clock hands
 -- DRAWING CODE
 -- DRAW MARKS
 -- stuff that can be moved outside of the loop, needs only be set once
 -- calculate end and start radius for marks
m_end_rad=clock_radius-b_to_m
m_start_rad=m_end_rad-m_length_A -- WHAT IS THIS??
 -- set line cap type
cairo_set_line_cap  (cr, m_cap)
 -- set line width
cairo_set_line_width (cr,m_width_A)
 -- set color and alpha for marks
cairo_set_source_rgba (cr,mr,mg,mb,ma)
 -- START LOOP FOR HOUR MARKS
for i=1,number_marks_A do
 -- drawing code using the value of i to calculate degrees
 -- calculate start point for 12/24 hour mark
radius=m_start_rad
point=(math.pi/180)*((i-1)*(360/number_marks_A))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
 -- set start point for line
cairo_move_to (cr,clock_centerx+x,clock_centery+y)
 -- calculate end point for 12/24 hour mark
radius=m_end_rad
point=(math.pi/180)*((i-1)*(360/number_marks_A))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
 -- set path for line
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
 -- draw the line
cairo_stroke (cr)
end -- of for loop
 -- HOUR MARKS -- ???????????????????????????????????????????????????????????????
 -- TIME CALCULATIONS CLOCK A
if clock_type_A==12 then
hours=tonumber(os.date("%I"))
 -- convert hours to seconds
h_to_s=hours*60*60
elseif clock_type_A==24 then
hours=tonumber(os.date("%H"))
 -- convert hours to seconds
h_to_s=hours*60*60
end
minutes=tonumber(os.date("%M"))
 -- convert minutes to seconds
m_to_s=minutes*60
 -- get current seconds
seconds=tonumber(os.date("%S"))
 -- DRAW HOUR HAND ###
 -- get hours minutes seconds as just seconds
hsecs=h_to_s+m_to_s+seconds
 -- calculate degrees for each second
hsec_degs=hsecs*(360/(60*60*clock_type_A)) -- use equation ~ eliminate decimals
 -- set radius to calculate hand points
radius=hh_length_A
 -- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
 -- calculate coordinates for end of hour hand
point=(math.pi/180)*hsec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
 -- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
 -- set up line attributes and draw line
cairo_set_line_width (cr,hh_width_A)
cairo_set_source_rgba (cr,0.4,0.6,0.6,1.0) -- active colour Hour Hand ================
cairo_set_line_cap  (cr, hh_cap)
cairo_stroke (cr)
 -- DRAW MINUTE HAND
 -- get minutes and seconds just as seconds
msecs=m_to_s+seconds
 -- calculate degrees for each second
msec_degs=msecs*0.1
 -- set radius to calculate hand points
radius=mh_length_A
 -- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
 -- calculate coordinates for end of minute hand
point=(math.pi/180)*msec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
 -- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
 -- set up line attributes and draw line
cairo_set_line_width (cr,mh_width_A)
cairo_set_source_rgba (cr,0.4,0.6,0.6,1.0) -- active colour Minute Hand ==============
cairo_set_line_cap  (cr, mh_cap)
cairo_stroke (cr)
 -- ### CLOCK A ###
local center_x=init.center_x -- Centre of the HR / Min Numbers
local center_y=init.center_y -- Centre of the HR / Min Numbers
local radius=init.radius -- 12/24 HR CLOCK Hours/Minutes radius -- seeline 42
cairo_select_font_face (cr, "DS-Digital", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
cairo_set_font_size (cr, 22)
cairo_set_source_rgba (cr,1,1,1,1.0) -- HR Clock numbers
 -- TABLE OF TEXT -- in order
if init.hour == 12 then
  text_days={"12","01","02","03","04","05","06","07","08","09","10","11",}
  for i=1,12 do
 -- OUTTER POINTS POSTION FOR TEXT
    local point=(math.pi/180)*((360/12)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
 -- CALCULATE CENTRE OF TEXT
    local text=text_days[i]--gets text from table
    cairo_text_extents(cr,text,extents)
    local width=extents.width
    local height=extents.height
    cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
    cairo_show_text (cr, text)
    cairo_set_source_rgba (cr,1,1,1,1.0) -- colour of HR Numbers
    cairo_stroke (cr)
  end
 -- INNER POINTS POSITION, radius smaller than text circle
  local radius=124 -- 12 HR Clock
  for i=1,12 do
    local point=(math.pi/180)*((360/12)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
    cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
    cairo_set_source_rgba (cr,1,1,1,0.50)
    cairo_stroke (cr)
  end
end
if init.hour == 24 then
  text_days={"00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23",}
  for i=1,24 do
 -- OUTTER POINTS POSTION FOR TEXT
    local point=(math.pi/180)*((360/24)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
 -- CALCULATE CENTRE OF TEXT
    local text=text_days[i]--gets text from table
    cairo_text_extents(cr,text,extents)
    local width=extents.width
    local height=extents.height
    cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
    cairo_show_text (cr, text)
    cairo_stroke (cr)
  end
 -- INNER POINTS POSITION, radius smaller than text circle
  local radius=124 -- 24 HR Clock
  for i=1,24 do
    local point=(math.pi/180)*((360/24)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
    cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
    cairo_set_source_rgba (cr,1,1,1,0.4)
    cairo_stroke (cr)
  end
end

 -- ############################################################################
 -- POSITION FOR TEXT HOUR NUMBERS
  if init.hour == 12 and init.second == true then
    text_days={"","01","02","03","04","","06","07","08","09","","11","12","13","14","","16","17","18","19","","21","22","23","24","","26","27","28","29","","31","32","33","34","","36","37","38","39","","41","42","43","44","","46","47","48","49","","51","52","53","54","","56","57","58","59","",}
 -- INNER POINTS POSITION, radius smaller than text circle
    cairo_set_source_rgba (cr,1,1,1,0.07) -- does not work -- settings moved
    cairo_select_font_face (cr, "monofur", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
    for i=1,60 do
      local radius=124 -- dots for seconds Clock A (12 dial)
      local point=(math.pi/180)*((360/60)*(i-1))
      local x=0+radius*(math.sin(point))
      local y=0-radius*(math.cos(point))
      if seconds == i-1 then
        cairo_set_source_rgba (cr,255/255,0/255,0/255,0.07) -- does not work - settings moved
      else
        if i-1 == 0 or i-1 == 5 or i-1 == 10 or i-1 == 15 or i-1 == 25 or i-1 == 30 or i-1 == 35 or i-1 == 40 or i-1 == 45 or i-1 == 50 or i-1 == 55 then
          cairo_set_source_rgba (cr,0.4,0.6,0.6,1.0) -- active colour
        else
          cairo_set_source_rgba (cr,0,1,1,0.0) -- dots for seconds A Clock
        end
      end
      cairo_arc (cr,center_x+x,center_y+y,1/2,0,2*math.pi)
      cairo_stroke (cr)
    end
    radius=radius-3
    cairo_set_font_size (cr, 10)
    for i=1,60 do
 -- OUTTER POINTS POSTION FOR TEXT
      local point=(math.pi/180)*((360/60)*(i-1))
      local x=0+radius*(math.sin(point))
      local y=0-radius*(math.cos(point))
 -- CALCULATE CENTRE OF TEXT
      local text=text_days[i]--gets text from table
      if seconds == tonumber(text) then
      cairo_set_source_rgba (cr,0.4,0.6,0.6,1.0) -- active colour
      else
        cairo_set_source_rgba (cr,1,1,1,0.15) -- seconds numbers
      end
      cairo_text_extents(cr,text,extents)
      local width=extents.width
      local height=extents.height
      cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
      cairo_show_text (cr, text)
      cairo_stroke (cr)
    end
  end
 -- ############################################################################
cairo_stroke (cr)
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end -- end main function
--[[ mrpeachy wrote:

    the numbers are drawn using a for loop somewhere, like this

    for i=1,12 do
    calculate position of number
    move_to(x,y)
    show_text(i)
    end

    change it to something like this

    for i=1,12 do
    calculate position of number
      if i==month_number then
      move_to(x,y)
      show_text(month_number)
      else
      move_to(x,y)
      show_text(i)
      end
    end ]]

draw-bg.lua

--[[Background originally by londonali1010 (2009)
    ability to set any size for background mrpeachy 2011
    ability to set variables for bg in conkyrc dk75

  the change is that if you set width and/or height to 0
  then it assumes the width and/or height of the conky window

so:

Above and After TEXT  (requires a composite manager or it blinks!)

 lua_load ~/wea_conky/draw_bg.lua
 TEXT
 ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}

OR Both above TEXT (no composite manager required - no blinking!)

 lua_load ~/wea_conky/draw_bg.lua
 lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.2
 TEXT

Note
${lua conky_draw_bg 20 0 0 0 0 0x000000 0.2}
  See below:        1  2 3 4 5 6        7

${lua conky_draw_bg corner_radius x_position y_position width height color alpha}

covers the whole window and will change if you change the minimum_size setting

1 = 20             corner_radius
2 = 0             x_position l|r
3 = 0             y_position u|d
4 = 0             width
5 = 0             height
6 = 0x000000      color
7 = 0.4           alpha

######### calendar function ##################################################

then to use it, you activate the calendar function BELOW TEXT like this

${lua luacal {settings}}

#${lua luacal {x=,y=,tf="",tfs=,tc=,ta=,bf="",bfs=,bc=,ba=,hf="",hfs=,hc=,ha=,sp="",gh=,gt=,gv=,sd=}}
#    x=x position top left
#    y=y position top left
#    tf=title font, eg "mono" must be in quotes
#    tfs=title font size
#    tc=title color
#    ta=title alpha
#    bf=body font, eg "mono" must be in quotes
#    bfs=body font size
#    bc=body color
#    ba=body alpha
#    hf=highlight font, eg "mono" must be in quotes
#    hfs=highlight font size
#    hc=highlight color
#    ha=highlight alpha
#    sp=spacer, eg " " or sp="0"... 0,1 or 2 spaces can help with positioning of non-monospaced fonts

##### GAPS #####
#    gt=gap from title to body
#    gh=gap horizontal between columns
#    gv=gap vertical between rows
#    sd=start day, 0=Sun, 1=Mon

#    hstyle = heading style, 0=just days, 1=date insert
#    tdf=title date font, eg "mono" must be in quotes
#    tdfs=title date font size
#    tdc=title date color
#    tda=title date alpha

# test line
-- ${lua luacal {x=20,y=100,tf="Monofur",tfs=24,tc=0xFFDEAD,ta=1,bf="Monofur",bfs=24,bc=0xFFDEAD,ba=1,hf="Monofur",hfs=24,hc=0x00BFFF,ha=1,sp="0",gh=60,gt=26,gv=20,sd=0,hstyle=1,tdf="Monofur",tdfs=24,tdc=0x00BFFF,tda=1}}


]]

require 'cairo'
local    cs, cr = nil
function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
function conky_draw_bg(r,x,y,w,h,color,alpha)
if conky_window == nil then return end
if cs == nil then cairo_surface_destroy(cs) end
if cr == nil then cairo_destroy(cr) end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
local cr = cairo_create(cs)
w=w
h=h
if w=="0" then w=tonumber(conky_window.width) end
if h=="0" then h=tonumber(conky_window.height) end
cairo_set_source_rgba (cr,rgb_to_r_g_b(color,alpha))
--top left mid circle
local xtl=x+r
local ytl=y+r
--top right mid circle
local xtr=(x+r)+((w)-(2*r))
local ytr=y+r
--bottom right mid circle
local xbr=(x+r)+((w)-(2*r))
local ybr=(y+r)+((h)-(2*r))
--bottom right mid circle
local xbl=(x+r)
local ybl=(y+r)+((h)-(2*r))
-----------------------------
cairo_move_to (cr,xtl,ytl-r)
cairo_line_to (cr,xtr,ytr-r)
cairo_arc(cr,xtr,ytr,r,((2*math.pi/4)*3),((2*math.pi/4)*4))
cairo_line_to (cr,xbr+r,ybr)
cairo_arc(cr,xbr,ybr,r,((2*math.pi/4)*4),((2*math.pi/4)*1))
cairo_line_to (cr,xbl,ybl+r)
cairo_arc(cr,xbl,ybl,r,((2*math.pi/4)*1),((2*math.pi/4)*2))
cairo_line_to (cr,xtl-r,ytl)
cairo_arc(cr,xtl,ytl,r,((2*math.pi/4)*2),((2*math.pi/4)*3))
cairo_close_path(cr)
cairo_fill (cr)
------------------------------------------------------------
cairo_surface_destroy(cs)
cairo_destroy(cr)
return ""
end
-- ###### calendar function ##################################################
function conky_luacal(caltab) -- {x=,y=,tf="",tfs=,tc=,ta=,bf="",bfs=,bc=,ba=,hf="",hfs=,hc=,ha=,sp="",gt=,gh=,gv=,sd=,hstyle=,tdf=,tdfs=,tdc=,tda=}
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
local cr = cairo_create(cs)
--############################################################################
if caltab.x==nil then
caltab=loadstring("return" .. caltab)()
end
local cal_x=caltab.x
local cal_y=caltab.y
local tfont=caltab.tf		or "mono"
local tfontsize=caltab.tfs	or 12
local tc=caltab.tc			or 0xffffff
local ta=caltab.ta			or 1
local bfont=caltab.bf		or "mono"
local bfontsize=caltab.bfs	or 12
local bc=caltab.bc			or 0xffffff
local ba=caltab.ba			or 1
local hfont=caltab.hf		or "mono"
local hfontsize=caltab.hfs	or 12
local hc=caltab.hc			or 0xff0000
local ha=caltab.ha			or 1
local spacer=caltab.sp		or " "
local gaph=caltab.gh		or 20
local gapt=caltab.gt		or 15
local gapl=caltab.gv		or 15
local sday=caltab.sd		or 0
local hstyle=caltab.hstyle	or 0
--convert colors
--local font=string.gsub(font,"_"," ")
local tred,tgreen,tblue,talpha=rgb_to_r_g_b(tc,ta)
--main body text color
local bred,bgreen,bblue,balpha=rgb_to_r_g_b(bc,ba)
--highlight text color
local hred,hgreen,hblue,halpha=rgb_to_r_g_b(hc,ha)
--############################################################################
--calendar calcs
local year=os.date("%G")
local today=tonumber(os.date("%d"))
local t1 = os.time( {    year=year,month=03,day=01,hour=00,min=0,sec=0} );
local t2 = os.time( {    year=year,month=02,day=01,hour=00,min=0,sec=0} );
local feb=(os.difftime(t1,t2))/(24*60*60)
local monthdays={ 31, feb, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
local day=tonumber(os.date("%w"))+1-sday
local day_num = today
local remainder=day_num % 7
local start_day=day-(day_num % 7)
if start_day<0 then start_day=7+start_day end
local month=os.date("%m")
local mdays=monthdays[tonumber(month)]
local x=mdays+start_day
local dnum={}
local dnumh={}
if mdays+start_day<36 then
dlen=35
plen=29
else
dlen=42
plen=36
end
for i=1,dlen do
    if i<=start_day then
    dnum[i]="  "
    else
    dn=i-start_day
        if dn=="nil" then dn=0 end
        if dn<=9 then dn=(spacer .. dn) end
        if i>x then dn="" end
        dnum[i]=dn
        dnumh[i]=dn
        if dn==(spacer .. today) or dn==today then
        dnum[i]=""
        end
        if dn==(spacer .. today) or dn==today then
        dnumh[i]=dn
        place=i
        else dnumh[i]="  "
        end
    end
end--for
cairo_select_font_face (cr, tfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, tfontsize);
cairo_set_source_rgba (cr,tred,tgreen,tblue,talpha)
local extents=cairo_text_extents_t:create()
tolua.takeownership(extents)
if hstyle==0 then
    if tonumber(sday)==0 then
    dys={"SU","MO","TU","WE","TH","FR","SA"}
    else
    dys={"MO","TU","WE","TH","FR","SA","SU"}
    end
    --draw calendar titles
elseif hstyle==1 then
    if tonumber(sday)==0 then
    dys={"SU","MO"," ","  ","  ","FR","SA"}
    cairo_text_extents(cr,"MO",extents)
    local s=extents.x_advance+gaph
    local f=gaph*5
    local tdfont=caltab.tdf        or "mono"
    local tdfontsize=caltab.tdfs    or 12
    local tdc=caltab.tdc        or 0xffffff
    local tda=caltab.tda        or 1
    cairo_select_font_face (cr, tdfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, tdfontsize);
    local tdred,tdgreen,tdblue,tdalpha=rgb_to_r_g_b(tdc,tda)
    cairo_set_source_rgba (cr,tdred,tdgreen,tdblue,tdalpha)
    local insert=os.date("%b %y")
    cairo_text_extents(cr,insert,extents)
    local w=extents.x_advance
    cairo_move_to (cr, cal_x+((s+f)/2)-(w/2), cal_y)
    cairo_show_text (cr,insert)
    cairo_stroke (cr)
    else
    dys={"MO","TU"," ","  ","  ","SA","SU"}
    cairo_text_extents(cr,"TU",extents)
    local s=extents.x_advance+gaph
    local f=gaph*5
    local tdfont=caltab.tdf        or "mono"
    local tdfontsize=caltab.tdfs    or 12
    local tdc=caltab.tdc        or 0xffffff
    local tda=caltab.tda        or 1
    cairo_select_font_face (cr, tdfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, tdfontsize);
    local tdred,tdgreen,tdblue,tdalpha=rgb_to_r_g_b(tdc,tda)
    cairo_set_source_rgba (cr,tdred,tdgreen,tdblue,tdalpha)
    local insert=os.date("%b %y")
    cairo_text_extents(cr,insert,extents)
    local w=extents.x_advance
    cairo_move_to (cr, cal_x+((s+f)/2)-(w/2), cal_y)
    cairo_show_text (cr,insert)
    cairo_stroke (cr)
    end
end
--draw calendar titles
for i=1,7 do
cairo_select_font_face (cr, tfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, tfontsize);
cairo_set_source_rgba (cr,tred,tgreen,tblue,talpha)
cairo_move_to (cr, cal_x+(gaph*(i-1)), cal_y)
cairo_show_text (cr, dys[i])
cairo_stroke (cr)
end
--draw calendar body
cairo_select_font_face (cr, bfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, bfontsize);
cairo_set_source_rgba (cr,bred,bgreen,bblue,balpha)
for i=1,plen,7 do
local fn=i
    for i=fn,fn+6 do
    cairo_move_to (cr, cal_x+(gaph*(i-fn)),cal_y+gapt+(gapl*((fn-1)/7)))
    cairo_show_text (cr, dnum[i])
    cairo_stroke (cr)
    end
end
--highlight
cairo_select_font_face (cr, hfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, hfontsize);
cairo_set_source_rgba (cr,hred,hgreen,hblue,halpha)
for i=1,plen,7 do
local fn=i
    for i=fn,fn+6 do
    cairo_move_to (cr, cal_x+(gaph*(i-fn)),cal_y+gapt+(gapl*((fn-1)/7)))
    cairo_show_text (cr, dnumh[i])
    cairo_stroke (cr)
    end
end
--############################################################################
caltab=nil
dlen=nil
plen=nil
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
return ""
end
-- end main function #########################################################

BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

#21 2015-10-11 01:23:57

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,153

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

»»»»» This is for conky v1.90 «««««
2b)WUnderground API - All users - but literally could be one of them.

After seeing seth7's conky and his idea I had to dig out my old "all text" conky and add a pure text weather section.
I had tried seth7's conky it didn't line up right - my guess is it was a font thing.

I copied #/media/5/Conky/S11_all-text.conky" to "/media/5/Conky/Teo_wun/S11_all-text_wun.conky" and tweaked it using Teo's 2b)WUnderground API - All users script

Since there are no images I turned on argb true transparency and shaded it to 150 and added the Weather section to the bottom:
2014_03_01_12_17_10_1920x1080_Sector11.jpg
KUDOS to seth7 for the idea

S11_all-text_wun.conky

# pkill -xf "conky -c /media/5/Conky/Teo_wun/S11_all-text_wun.conky" &
# conky -c /media/5/Conky/Teo_wun/S11_all-text_wun.conky &


# killall conky && conky -c /media/5/Conky/S11_all-text.conky &
# /media/5/Conky/SSC/ssc-all-text.conky
###  Begin Window Settings  ##################################################
own_window yes
own_window_type normal
# own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_colour 000000
own_window_class Conky
own_window_title S11 All Text
### ARGB can be used for real transparency
 own_window_argb_visual yes
 own_window_argb_value 150

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

minimum_size 210 0     ## width, height
maximum_width 210      ## width

gap_x 10 # left-right
gap_y 10 # up-down

alignment tl
###################################################  End Window Settings  ###
###  Font Settings  #########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Monofur:bold:size=9
#xftfont WW Digital:size=10
#xftfont Anonymous Pro:size=9

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
draw_shades yes #no # amplifies text if yes
default_shade_color 000000

draw_outline no # amplifies text if yes
default_outline_color 000000

default_color DCDCDC #220 220 220	Gainsboro
#default_color C0C0C0 #192 192 192 Silver
#default_color B0E0E6 #176 224 230 PowderBlue
#default_color D8BFD8 #216 191 216 Thistle
color0 8FBC8F #DarkSeaGreen
color1 C0C0C0 # Silver
#color1 D3D3D3 #LightGrey
#color1 778899 #LightSlateGray
color2 F5F5DC #Beige
color3 87CEFA #LightSkyBlue
#color3 87CEFA #E0FFFF #LightCyan
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
#color7 5F9EA0 #CadetBlue
#color8 FFFFE0 #LightYellow
color8 FFD700 #Gold
#color8 F0E68C #Khaki
color9 FFA07A #LightSalmon
#color9 CD5C5C #IndianRed
#color9 FF0000 #Red
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders yes
#default_graph_size 15 40
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background no

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
#text_buffer_size 256

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

#   Maximum size of user text buffer, i.e. layout below TEXT line in config file
#  (default is 16384 bytes)
# max_user_text 16384

# Width for $top name value (default 15 characters)
top_name_width 6

# Desired output unit of all objects displaying a temperature. Parameters are
# either "fahrenheit" or "celsius". The default unit is degree Celsius.
# temperature_unit Fahrenheit

##############################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
## Above and After TEXT - requires a composite manager or blinks.
##
# lua_load /media/5/Conky/LUA/draw-bg.lua
#TEXT
#${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}
#
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
## OR Both above TEXT (No composite manager required - no blinking!)
#
#lua_load /media/5/Conky/LUA/draw-bg.lua
#lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.3
#lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.2
# lua_draw_hook_post draw-bg 125 0 0 0 0 0x000000 0.01
#
# TEXT
#
#######################################################  End LUA Settings  ###

## │ ─ ┌ ┬ ┐ └ ┴ ┘ ├ ┼ ┤
## ║ ═ ╔ ╦ ╗ ╚ ╩ ╝ ╠ ╬ ╣

## ↑ ↓ → ← ↔ ► ◄ ▲ ▼ « »
## ░  ▒  ▓ ☺ ☻ ♥ ♦ ♣ ♠
## • ◘ ○ ◙ ♂ ♀ ♪ ♫ ☼
## ¼ ½ ¾ ® ©

update_interval 1

TEXT
${execi 600 bash /media/5/Conky/Teo_wun/wunder}\
${goto 12}┌─ Time / Date Calcs
${goto 12}│${goto 30}├─ Time${goto 125}${time %T}
${goto 12}│${goto 30}├─ Date${goto 125}${time %a, %d %b %y}
${goto 12}│${goto 30}└─ Uptime${goto 125}${uptime}
${goto 12}├─ System
${goto 12}│${goto 30}├─ System${goto 125}${sysname}
${goto 12}│${goto 30}├─ OS${goto 125}${execi 86400 lsb_release -is} ${execi 86400 lsb_release -rs}
${goto 12}│${goto 30}├─ Kernel ${goto 125}${kernel}
${goto 12}│${goto 30}├─ Machine${goto 125}${machine}
${goto 12}│${goto 30}├─ ${exec xset q | grep Cap |awk '{print "Cap Lock     "$4}'}
${goto 12}│${goto 30}└─ ${exec xset q | grep Num |awk '{print "Num Lock     "$8}'}
${goto 12}├─ Sensors
${goto 12}│${goto 30}├─ CPU${goto 125}${platform f71882fg.2560 temp 1}°
${goto 12}│${goto 30}├─ CPU FAN${goto 125}${platform f71882fg.2560 fan 1}
${goto 12}│${goto 30}├─ MOBO${goto 125}${platform f71882fg.2560 temp 2}°
${goto 12}│${goto 30}├─ HDD${goto 125}${hddtemp /dev/sda}°
${goto 12}│${goto 30}└─ GPU${goto 125}${nvidia temp}°
${goto 12}├─ Memory${goto 125}${memmax}
${goto 12}│${goto 30}├─ In Use${goto 125}${mem} (${memperc}%)
${goto 12}│${goto 30}├─ Free${goto 125}${memfree}
${goto 12}│${goto 30}└─ Load Avg
${goto 12}│${goto 48}├─ 1 min${goto 125}${loadavg 1}
${goto 12}│${goto 48}├─ 5 min${goto 125}${loadavg 2}
${goto 12}│${goto 48}└─ 15 min${goto 125}${loadavg 3}
${goto 12}├─ ${pre_exec cat /proc/cpuinfo | grep -m 1 'model name' | cut -c14-37}
${goto 12}│${goto 30}├─ GHz${goto 125}${freq_g}
${goto 12}│${goto 30}├─ MHz${goto 125}${freq}
${goto 12}│${goto 30}└─ CPU Avg${goto 125}${cpu cpu0}%
${goto 12}│${goto 48}├─ CPU1${goto 125}${cpu cpu1}%
${goto 12}│${goto 48}├─ CPU2${goto 125}${cpu cpu2}%
${goto 12}│${goto 48}└─ CPU3${goto 125}${cpu cpu3}%
${goto 12}├─ Nvidia GPU
${goto 12}│${goto 30}├─ GPU MHz${goto 125}${nvidia gpufreq}
${goto 12}│${goto 30}├─ Mem MHz${goto 125}${nvidia memfreq}
${goto 12}│${goto 30}└─ Threshhold${goto 125}${nvidia threshold}°
${goto 12}├─ Storage
${goto 12}│${goto 30}├─ /R  ${fs_size /}${goto 125}Free: ${fs_free /}
${goto 12}│${goto 30}│${goto 52}└─ ${fs_used_perc /}% Used
${goto 12}│${goto 30}├─ /H  ${fs_size /home}${goto 125}Free: ${fs_free /home}
${goto 12}│${goto 30}│${goto 52}└─ ${fs_used_perc /home}% Used
${goto 12}│${goto 30}├─ /M5 ${fs_size /media/5}${goto 125}Free: ${fs_free /media/5}
${goto 12}│${goto 30}│${goto 52}└─ ${fs_used_perc /media/5}% Used
${goto 12}│${goto 30}└─ Diskio ${goto 125}${diskio}
${goto 12}│${goto 48}├─ Read${goto 125}${diskio_read}
${goto 12}│${goto 48}└─ Write${goto 125}${diskio_write}
${goto 12}├─ Processes ─ Running ${running_processes}
${goto 12}│${goto 30}├─ Total${goto 125}${processes}
${goto 12}│${goto 30}├─ CPU
${goto 12}│${goto 30}│${goto 48}├─ ${top name 1}${goto 113}${top cpu 1}${top mem 1}
${goto 12}│${goto 30}│${goto 48}├─ ${top name 2}${goto 113}${top cpu 2}${top mem 2}
${goto 12}│${goto 30}│${goto 48}└─ ${top name 3}${goto 113}${top cpu 3}${top mem 3}
${goto 12}│${goto 30}└─ MEM
${goto 12}│${goto 48}├─ ${top_mem name 1}${goto 113}${top_mem cpu 1}${top_mem mem 1}
${goto 12}│${goto 48}├─ ${top_mem name 2}${goto 113}${top_mem cpu 2}${top_mem mem 2}
${goto 12}│${goto 48}└─ ${top_mem name 3}${goto 113}${top_mem cpu 3}${top_mem mem 3}
${goto 12}├─ Net
${goto 12}│${goto 30}├─ open port(s)${goto 125}${tcp_portmon 1 65535 count}
${goto 12}│${goto 30}├─ Up
${goto 12}│${goto 30}│${goto 48}├─ Speed KB${goto 125}${upspeedf eth0}
${goto 12}│${goto 30}│${goto 48}└─ Total${goto 125}${totalup eth0}
${goto 12}│${goto 30}└─ Down
${goto 12}│${goto 48}├─ Speed KB${goto 125}${downspeedf eth0}
${goto 12}│${goto 48}└─ Total${goto 125}${totaldown eth0}
${goto 12}└─ Weather
${goto 30}├─ ${execi 600  sed -n '63p' /media/5/Conky/Teo_wun/Conditions}
${goto 30}├─ ± ${execi 600  sed -n '113p' /media/5/Conky/Teo_wun/Conditions}° | ${execi 600  sed -n '67p' /media/5/Conky/Teo_wun/Conditions}° | ${color9}${execi 600  sed -n '39p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color} | ${color6}${execi 600  sed -n '44p' /media/5/Conky/Teo_wun/Simple_Forecast}°${color}
${goto 30}├─ UVI  ${execi 600  sed -n '121p' /media/5/Conky/Teo_wun/Conditions}
${goto 30}├─ Pressure (${execi 600  sed -n '89p' /media/5/Conky/Teo_wun/Conditions}) ${execi 600  sed -n '85p' /media/5/Conky/Teo_wun/Conditions} mb
${goto 30}├─ Hum  ${execi 600  sed -n '69p' /media/5/Conky/Teo_wun/Conditions}
${goto 30}├─ R?   ${execi 600  sed -n '133p' /media/5/Conky/Teo_wun/Conditions}%
${goto 30}├─ ${color8}Sun Rise ${execi 600  sed -n '16p' /media/5/Conky/Teo_wun/Moon_Sun}:${execi 600  sed -n '18p' /media/5/Conky/Teo_wun/Moon_Sun} \
${color1}Set ${execi 600  sed -n '21p' /media/5/Conky/Teo_wun/Moon_Sun}:${execi 600  sed -n '23p' /media/5/Conky/Teo_wun/Moon_Sun}${color}
${goto 30}└─ Moon is ${execi 600  sed -n '6p' /media/5/Conky/Teo_wun/Moon_Sun}

Just so you know, it's the Monofur font that gives the curved look to the ASCII characters.

A little more tweaking and I'll be happy with it.
Also a new idea from it! devil
2014_03_01_15_23_17_1512x142_Sector11.jpg


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

#22 2015-10-11 07:05:21

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 725

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Thanks a lot for your hard work S11, much obliged.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#23 2015-10-11 11:14:54

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,153

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

You're welcome.  Your scripts make it easy Teo.


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

#24 2015-10-12 08:35:19

fvirgola80
Member
From: Italy / Rome
Registered: 2015-10-08
Posts: 230

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Hi guys how are you? I noticed that the site of the phases of the moon has problems on the website of the current phase of the moon in the day ..... let me know ? thank you


Conky a lifetime, thanks masters Obi-Wan (TEO) and Yoda (Sector11) Use Hydrogen bunsenlabs linux 8.9

Offline

#25 2015-10-12 11:57:47

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,153

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

fvirgola80 wrote:

Hi guys how are you? I noticed that the site of the phases of the moon has problems on the website of the current phase of the moon in the day ..... let me know ? thank you

Hi fvirgola80 - welcome to the Bunsenlabs Forums.

Yup, looks like the site is having problems...

2015_10_12_08_52_41_Scrot11.jpg
Bummer, Teo just sets up shop and gets comfortable and WHAM, moon goes down for the count.  I'm sure the site will get fixed.

Xing fingers


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

Board footer

Powered by FluxBB