You are not logged in.

#51 2015-10-24 11:02:47

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

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

^ No not that.  It just that I have worked on so many conkys ...


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

#52 2015-10-28 22:35:04

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

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

Looks like Accuweather may have changed something (1b1_accuweather_images); reference the text in the current conditions area:

2015_10_28_1446068288_399x583_scrot.jpg

Offline

#53 2015-10-29 00:45:15

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

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

Hmmmm looks like wind info is no more.

Take a look at 'curr_cond' and 1b1_Output_of_the_script.pdf 40 vs 42 lines - the wind and wind direction lines in curr_cond (lines 31-32 in the PDF) are not there.  sad


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

#54 2015-10-29 07:22:11

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

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

To prevent alignment issues in the future, perhaps change the code to enter n/a or Teo! if the info is missing?  Right now things are pretty hosed up because of that one missing line of data.

I've also verified that it is an issue because I have the same thing on my laptop.  The screenshot above is from my desktop.

Last edited by KrunchTime (2015-10-30 10:15:33)

Offline

#55 2015-10-29 08:52:15

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

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

Hello everyone , I confirm I too have the same problem , what will have changed ? file cur_cond there are more data on the wind I will list :

12
fri
3
Some clouds , then sunshine
20
12
Sat
2
Mostly sunny
20
12
Sun
1
Plenty of sunshine
19
11
mon
1
Plenty of sunshine
19
10
day
17
Thunderstorm
16
15
81 %
1014.00 mb
1
50 %
14 km
13
6:41 AM
5:11 PM
7:03 PM
9:46 AM

as you can see there are the details on the wind and Sector11 right actually post the values 31 and 32 are no longer detected .... depends on what? .... Teoo help Sector11 help ..... after boys

Mod Edit - added code tages

Last edited by Sector11 (2015-10-29 10:57:25)


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

Offline

#56 2015-10-29 12:03:15

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

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

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

Content edited ... See Teo's Update below

Uses the new 1b2 script below

@ KrunchTime - Good idea that N/A but how will a script know if the info is missing or not?
@ fvirgola80 - I added code tags to your post.

This conky also incorporates 4_Moon data, tweaked today:

# 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
# works perfect - Thu 29 Oct 2015 08:53

###  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 conkyrc_1b2_int_s11_thin
### ARGB can be used for real transparency
own_window_argb_visual yes
own_window_argb_value 125 # 0 - clear | 255 - solid

minimum_size 75 925	##	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
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

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

# 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 --- Remove line below TEXT when developing new conky
#${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}${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,35 -s 30x30}

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

${color1}${font Fantasque Sans Mono:bold:size=10}↑${font}${color}${alignr 5}${execpi 600 sed -n '41p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
${color1}${font Fantasque Sans Mono:bold:size=10}↓${font}${color}${alignr 5}${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}°
 Distance
 ${execpi 600 sed -n '4p' /media/5/Conky/4_Moon/raw | cut -c1-3} K/km
${membar 0}
${alignc}${color5}${execi 3600 echo `date --date="0 day" | awk '{print $1" "$3" "$2}'`}${color}
${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 '33p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
${color7}UVI${color}  ${execpi 600 sed -n '34p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
${color7}Hum${color}  ${execpi 600 sed -n '32p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
${color7}CC${color}   ${execpi 600 sed -n '36p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
${color7}Vis${color}  ${execpi 600 sed -n '37p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
${color7}DP${color}   ${execpi 600 sed -n '35p' /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 '38p' /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}${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}

It will work just as well if you delete the top section for the moon info.
2015_10_29_12_03_33_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

#57 2015-10-29 12:26:34

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

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

Great Sector11 , for the moment we'll dispense with the wind direction and speed , expect the good Teo let us know something ..... or change the site for the weather ... what do you say ?

@Teeo look forward to you :-)


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

Offline

#58 2015-10-29 12:57:20

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

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

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

It's just a slight change in the way the site publishes wind information.
Try with these:

1b1:

#!/bin/bash

#put your Accuweather address here
#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/us/new-york-ny/10017/weather-forecast/349727"

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"

addr1="$(echo $address|sed 's/weather-forecast.*$//')"daily-weather-forecast/"$last_number"
addr2="$addr1"?day=6

kill -STOP $(pidof conky)
killall wget

wget --save-cookies $HOME/1b1_accuweather_images/cookie -O $HOME/1b1_accuweather_images/curr_cond_raw $curr_addr
wget --load-cookies $HOME/1b1_accuweather_images/cookie -O $HOME/1b1_accuweather_images/first_days_raw $addr1
wget --load-cookies $HOME/1b1_accuweather_images/cookie -O $HOME/1b1_accuweather_images/last_days_raw $addr2

#Current Conditions - curr_cond file
if [[ -s $HOME/1b1_accuweather_images/curr_cond_raw ]]; then

    egrep -i '"detail-tab-panel |>Today<\/a>|>Tonight<\/a>|>Early AM<\/a>|>Overnight<\/a>|>Mon<\/a>|>Tue<\/a>|>Wed<\/a>|>Thu<\/a>|>Fri<\/a>|>Sat<\/a>|>Sun<\/a>|icon i-|"cond"|"temp"|icons-wind\/.*gif|text-align:center\;\">.*h</div>|Humidity: |Pressure: |Cloud Cover: |UV Index: |Dew Point: |Precipitation(1 hr): |Visibility: |"start">|"finish">' $HOME/1b1_accuweather_images/curr_cond_raw > $HOME/1b1_accuweather_images/curr_cond
    sed -i -e 's/^[ \t]*//g' -e 's/^.*icon i-//g' -e 's/^.*"cond">//g' -e 's/>Lo</\n/g' -e 's/RealFeel/\n/g' $HOME/1b1_accuweather_images/curr_cond
    sed -i -e 's/^.*"#">//g' -e 's/^.*<strong class="temp"//g' -e 's/^>//g' -e 's/<span>&deg.*$//g' $HOME/1b1_accuweather_images/curr_cond
    sed -i -e 's/<\/a>.*$//g' -e 's/\/span> //g' -e 's/"temp">/\n/g' -e 's/^.*icons-wind\///g' -e 's/^.*text-align:center\;\">//g' $HOME/1b1_accuweather_images/curr_cond
    sed -i -e 's/^.*"start">//g' -e 's/^.*"finish">//g' -e 's/<li>//g' -e 's/<strong>//g' -e 's/<<span.*$//g' $HOME/1b1_accuweather_images/curr_cond
    sed -i -e 's/<\/span>//g' -e 's/<\/strong><\/li>//g' -e 's/ "><\/div>//g' -e 's/'\''//g' $HOME/1b1_accuweather_images/curr_cond
    sed -i -e 's/"><\/div>//g' -e 's/^.*; //g' -e 's/&#.*$//g' -e 's/ i-alarm.*$//g' -e 's/;//g' $HOME/1b1_accuweather_images/curr_cond
    sed -i -e 's/Humidity: //g' -e 's/Pressure: //g' -e 's/Cloud Cover: //g' -e 's/UV Index: //g' -e 's/Dew Point: //g' -e 's/Visibility: //g' $HOME/1b1_accuweather_images/curr_cond
    sed -i -e 's/^.*detail-tab-panel //g' -e 's/">//g' -e 's/\r//g' -e 's/ *$//g' -e 's/mb.*$/mb/g' $HOME/1b1_accuweather_images/curr_cond
    sed -i -e 's/-s\|-xl.*$//g' -e 's/in &.*$/in/g' -e 's/\.gif.*$//g' -e 's/<\/div>.*$//g' $HOME/1b1_accuweather_images/curr_cond
    time=$(sed -n 1p $HOME/1b1_accuweather_images/curr_cond)
    if [[ $time == Tonight || $time == Overnight || $time == "Early AM" ]]; then
        sed -i 3a- $HOME/1b1_accuweather_images/curr_cond
	fi
    line35=$(sed -n 35p $HOME/1b1_accuweather_images/curr_cond)
    sed -i '35d' $HOME/1b1_accuweather_images/curr_cond
    sed -i 35a$line35 $HOME/1b1_accuweather_images/curr_cond
	cp $HOME/1b1_accuweather_images/Forecast_Images/$(sed -n 27p $HOME/1b1_accuweather_images/curr_cond).png $HOME/1b1_accuweather_images/cc.png
fi


#First 5days - first_days file 
if [[ -s $HOME/1b1_accuweather_images/first_days_raw ]]; then

    sed -i '/<div class="column-1 clearfix">/,/<div id=\"feature-history\">/!d' $HOME/1b1_accuweather_images/first_days_raw
    egrep -i '>Today<|<p>[a-z]|>Mon<\/a>|>Tue<\/a>|>Wed<\/a>|>Thu<\/a>|>Fri<\/a>|>Sat<\/a>|>Sun<\/a>|icon i-|"cond"|"temp"|realfeel">RealFeel|realfeel">Precipitation' $HOME/1b1_accuweather_images/first_days_raw > $HOME/1b1_accuweather_images/first_days

    sed -i -e 's/^[ \t]*//g' -e 's/^.*icon i-//g' -e 's/^.*"cond">//g' -e 's/>Lo</\n/g' $HOME/1b1_accuweather_images/first_days
    sed -i -e 's/ "><\/div>//g' -e 's/"><\/div>//g' -e 's/^.*"temp">//g' -e 's/<span>&deg.*$//g' $HOME/1b1_accuweather_images/first_days
    sed -i -e 's/<p>//g' -e 's/<\/p>//g' -e 's/^.*"#">//g' -e 's/\/span> //g' -e 's/^.*>Precipitation //g' -e '/realfeel/s/^.*; //g' $HOME/1b1_accuweather_images/first_days
    sed -i -e 's/&#.*$//g' -e 's/<.*$//g' -e 's/ i-alarm.*$//g' -e 's/\r//g' -e 's/ *$//g' $HOME/1b1_accuweather_images/first_days
	sed -i -e 's/Today/TODAY/' -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/' $HOME/1b1_accuweather_images/first_days
    sed -i 's/-s\|-l\|-xl.*$//g' $HOME/1b1_accuweather_images/first_days
    time=$(sed -n 1p $HOME/1b1_accuweather_images/curr_cond)
    if [[ $time == Tonight || $time == Overnight || $time == "Early AM" ]]; then
        sed -i 2a- $HOME/1b1_accuweather_images/first_days
	fi
	L1=$(sed -n 1p $HOME/1b1_accuweather_images/first_days)
    if [[ $L1 == TODAY ]]; then
        sed -i 1d $HOME/1b1_accuweather_images/first_days
	fi
    for (( i=6; i<=21; i+=5 ))
	  do
	      cp $HOME/1b1_accuweather_images/Forecast_Images/$(sed -n ${i}p $HOME/1b1_accuweather_images/first_days).png $HOME/1b1_accuweather_images/$i.png
	  done
	cp $HOME/1b1_accuweather_images/Forecast_Images/$(sed -n 25p $HOME/1b1_accuweather_images/first_days).png $HOME/1b1_accuweather_images/tod.png
	cp $HOME/1b1_accuweather_images/Forecast_Images/$(sed -n 30p $HOME/1b1_accuweather_images/first_days).png $HOME/1b1_accuweather_images/ton.png

fi


#Last 5days - last_days file 
if [[ -s $HOME/1b1_accuweather_images/last_days_raw ]]; then

    sed -i '/<div class="column-1 clearfix">/,/<div id=\"feature-history\">/!d' $HOME/1b1_accuweather_images/last_days_raw
    egrep -i '>Mon<\/a>|>Tue<\/a>|>Wed<\/a>|>Thu<\/a>|>Fri<\/a>|>Sat<\/a>|>Sun<\/a>|icon i-|"cond"|"temp"|realfeel">RealFeel|realfeel">Precipitation' $HOME/1b1_accuweather_images/last_days_raw > $HOME/1b1_accuweather_images/last_days
    sed -i -e 's/^[ \t]*//g' -e 's/^.*icon i-//g' -e 's/^.*"cond">//g' -e 's/>Lo</\n/g' $HOME/1b1_accuweather_images/last_days
    sed -i -e 's/ "><\/div>//g' -e 's/"><\/div>//g' -e 's/^.*"temp">//g' -e 's/<span>&deg.*$//g' $HOME/1b1_accuweather_images/last_days
    sed -i -e 's/^.*"#">//g' -e 's/\/span> //g' -e 's/^.*>Precipitation //g' -e 's/^.*; //g' $HOME/1b1_accuweather_images/last_days
    sed -i -e 's/&#.*$//g' -e 's/<.*$//g' -e 's/ i-alarm.*$//g' -e 's/\r//g' -e 's/ *$//g' $HOME/1b1_accuweather_images/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/' $HOME/1b1_accuweather_images/last_days
    sed -i 's/-s\|-l\|-xl.*$//g' $HOME/1b1_accuweather_images/last_days
    for (( i=2; i<=22; i+=5 ))
	  do
	      cp $HOME/1b1_accuweather_images/Forecast_Images/$(sed -n ${i}p $HOME/1b1_accuweather_images/last_days).png $HOME/1b1_accuweather_images/last_$i.png
	  done

fi

#messages file
sed -n 28p $HOME/1b1_accuweather_images/curr_cond | cut -c -20 > $HOME/1b1_accuweather_images/messages
sed -n 29p $HOME/1b1_accuweather_images/first_days | cut -c -20 >> $HOME/1b1_accuweather_images/messages
sed -n 34p $HOME/1b1_accuweather_images/first_days | cut -c -20 >> $HOME/1b1_accuweather_images/messages
for (( i=7; i<=22; i+=5 ))
  do
      sed -n ${i}p $HOME/1b1_accuweather_images/first_days | cut -c -20 >> $HOME/1b1_accuweather_images/messages
  done
for (( i=3; i<=23; i+=5 ))
  do
      sed -n ${i}p $HOME/1b1_accuweather_images/last_days | cut -c -20 >> $HOME/1b1_accuweather_images/messages
  done

kill -CONT $(pidof conky)

.conkyrc_1b1_int:

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer yes
use_xft yes

# Update interval in seconds
update_interval 3

# Minimum size of text area
minimum_size 355 500
maximum_width 357

override_utf8_locale yes

# Draw shades?
draw_shades yes

# Text stuff
draw_outline yes # amplifies text if yes
draw_borders no
#font freesans -12
xftfont Arial:size=9
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_margin 9

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color cbcbcb

own_window_colour brown
own_window_transparent yes

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 30

imlib_cache_size 0
# stuff after 'TEXT' will be formatted on screen

TEXT
${font Arial:size=12}${color ffe595}WEATHER ${font}${hr 2}$color${texeci 500 bash $HOME/1b1_accuweather_images/1b1}
${image $HOME/1b1_accuweather_images/cc.png -p 0,60 -s 180x108}
${font Arial:size=10}${execpi 600 sed -n '1p' $HOME/1b1_accuweather_images/messages}${font}${goto 200}${color ffe595}TEMP: $color${alignr}${execpi 600 sed -n '29p' $HOME/1b1_accuweather_images/curr_cond}°C (${execpi 600 sed -n '30p' $HOME/1b1_accuweather_images/curr_cond}°C)
${goto 200}${color ffe595}WIND: $color${alignr}${execpi 600 sed -n '31p' $HOME/1b1_accuweather_images/curr_cond} ${execpi 600 sed -n '38p' $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color ffe595}HUM: $color${alignr}${execpi 600 sed -n '32p' $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color ffe595}DEW POINT: $color${alignr}${execpi 600 sed -n '35p' $HOME/1b1_accuweather_images/curr_cond}°C
${goto 200}${color ffe595}PR: $color${alignr}${execpi 600 sed -n '33p' $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color ffe595}VISIB: $color${alignr}${execpi 600 sed -n '37p' $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color ffe595}CLOUD COVER: $color${alignr}${execpi 600 sed -n '36p' $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color ffe595}UV INDEX: $color${alignr}${execpi 600 sed -n '34p' $HOME/1b1_accuweather_images/curr_cond} 
${goto 200}${color ffe595}S/M RISE: $color${alignr}${execpi 600 sed -n '39p' $HOME/1b1_accuweather_images/curr_cond}/${execpi 600 sed -n '41p' $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color ffe595}S/M SET: $color${alignr}${execpi 600 sed -n '40p' $HOME/1b1_accuweather_images/curr_cond}/${execpi 600 sed -n '42p' $HOME/1b1_accuweather_images/curr_cond}
${hr 1}
${goto 50}${font Arial:size=10}${color ffe595}TODAY$color$font${goto 230}${font Arial:size=10}${color ffe595}TONIGHT$color$font${image $HOME/1b1_accuweather_images/tod.png -p 0,205 -s 120x72}${image $HOME/1b1_accuweather_images/ton.png -p 190,205 -s 120x72}

${goto 145}${execpi 600 sed -n '26p' $HOME/1b1_accuweather_images/first_days}°C${goto 340}${execpi 600 sed -n '31p' $HOME/1b1_accuweather_images/first_days}°C
${goto 140}(${execpi 600 sed -n '27p' $HOME/1b1_accuweather_images/first_days}°C)${goto 335}(${execpi 600 sed -n '32p' $HOME/1b1_accuweather_images/first_days}°C)


${font Arial:size=8}${execpi 600 sed -n '2p' $HOME/1b1_accuweather_images/messages}${goto 195}${execpi 600 sed -n '3p' $HOME/1b1_accuweather_images/messages}$font
Chance of Precip: ${execpi 600 sed -n '28p' $HOME/1b1_accuweather_images/first_days}${goto 195}Chance of Precip: $color${execpi 600 sed -n '33p' $HOME/1b1_accuweather_images/first_days}
${hr 1}
${font Arial:size=9}${goto 40}${color ffe595}${execpi 600 sed -n '5p' $HOME/1b1_accuweather_images/first_days}${goto 145}${execpi 600 sed -n '10p' $HOME/1b1_accuweather_images/first_days}${goto 270}${execpi 600 sed -n '15p' $HOME/1b1_accuweather_images/first_days}$color${font}${image $HOME/1b1_accuweather_images/6.png -p 0,330 -s 90x54}

${font Arial:size=8}${goto 100}${execpi 600 sed -n '8p' $HOME/1b1_accuweather_images/first_days}°C${goto 210}${execpi 600 sed -n '13p' $HOME/1b1_accuweather_images/first_days}°C${goto 330}${execpi 600 sed -n '18p' $HOME/1b1_accuweather_images/first_days}°C
${goto 100}${execpi 600 sed -n '9p' $HOME/1b1_accuweather_images/first_days}°C${goto 210}${execpi 600 sed -n '14p' $HOME/1b1_accuweather_images/first_days}°C${goto 330}${execpi 600 sed -n '19p' $HOME/1b1_accuweather_images/first_days}°C${image $HOME/1b1_accuweather_images/11.png -p 110,330 -s 90x54}${image $HOME/1b1_accuweather_images/16.png -p 230,330 -s 90x54}

${execpi 600 sed -n '4p' $HOME/1b1_accuweather_images/messages}${goto 135}${execpi 600 sed -n '5p' $HOME/1b1_accuweather_images/messages}${goto 255}${execpi 600 sed -n '6p' $HOME/1b1_accuweather_images/messages}

${font Arial:size=9}${goto 40}${color ffe595}${execpi 600 sed -n '20p' $HOME/1b1_accuweather_images/first_days}${goto 145}${execpi 600 sed -n '1p' $HOME/1b1_accuweather_images/last_days}${goto 270}${execpi 600 sed -n '6p' $HOME/1b1_accuweather_images/last_days}$color${font}${image $HOME/1b1_accuweather_images/21.png -p 0,420 -s 90x54}

${font Arial:size=8}${goto 100}${execpi 600 sed -n '23p' $HOME/1b1_accuweather_images/first_days}°C${goto 210}${execpi 600 sed -n '4p' $HOME/1b1_accuweather_images/last_days}°C${goto 330}${execpi 600 sed -n '9p' $HOME/1b1_accuweather_images/last_days}°C
${font Arial:size=8}${goto 100}${execpi 600 sed -n '24p' $HOME/1b1_accuweather_images/first_days}°C${goto 210}${execpi 600 sed -n '5p' $HOME/1b1_accuweather_images/last_days}°C${goto 330}${execpi 600 sed -n '10p' $HOME/1b1_accuweather_images/last_days}°C${image $HOME/1b1_accuweather_images/last_2.png -p 110,420 -s 90x54}${image $HOME/1b1_accuweather_images/last_7.png -p 230,420 -s 90x54}

${execpi 600 sed -n '7p' $HOME/1b1_accuweather_images/messages}${goto 135}${execpi 600 sed -n '8p' $HOME/1b1_accuweather_images/messages}${goto 255}${execpi 600 sed -n '9p' $HOME/1b1_accuweather_images/messages}

${font Arial:size=9}${goto 40}${color ffe595}${execpi 600 sed -n '11p' $HOME/1b1_accuweather_images/last_days}${goto 145}${execpi 600 sed -n '16p' $HOME/1b1_accuweather_images/last_days}${goto 270}${execpi 600 sed -n '21p' $HOME/1b1_accuweather_images/last_days}$color${font}${image $HOME/1b1_accuweather_images/last_12.png -p 0,510 -s 90x54}

${font Arial:size=8}${goto 100}${execpi 600 sed -n '14p' $HOME/1b1_accuweather_images/last_days}°C${goto 210}${execpi 600 sed -n '19p' $HOME/1b1_accuweather_images/last_days}°C${goto 330}${execpi 600 sed -n '24p' $HOME/1b1_accuweather_images/last_days}°C
${font Arial:size=8}${goto 100}${execpi 600 sed -n '15p' $HOME/1b1_accuweather_images/last_days}°C${goto 210}${execpi 600 sed -n '20p' $HOME/1b1_accuweather_images/last_days}°C${goto 330}${execpi 600 sed -n '25p' $HOME/1b1_accuweather_images/last_days}°C${image $HOME/1b1_accuweather_images/last_17.png -p 110,510 -s 90x54}${image $HOME/1b1_accuweather_images/last_22.png -p 230,510 -s 90x54}

${execpi 600 sed -n '10p' $HOME/1b1_accuweather_images/messages}${goto 135}${execpi 600 sed -n '11p' $HOME/1b1_accuweather_images/messages}${goto 255}${execpi 600 sed -n '12p' $HOME/1b1_accuweather_images/messages}

.conkyrc_1b1_usa:

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer yes
use_xft yes

# Update interval in seconds
update_interval 3

# Minimum size of text area
minimum_size 355 500
maximum_width 357

override_utf8_locale yes

# Draw shades?
draw_shades yes

# Text stuff
draw_outline yes # amplifies text if yes
draw_borders no
#font freesans -12
xftfont Arial:size=9
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_margin 9

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color cbcbcb

own_window_colour brown
own_window_transparent yes

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 30

imlib_cache_size 0
# stuff after 'TEXT' will be formatted on screen

TEXT
${font Arial:size=12}${color ffe595}WEATHER ${font}${hr 2}$color${texeci 500 bash $HOME/1b1_accuweather_images/1b1}
${image $HOME/1b1_accuweather_images/cc.png -p 0,60 -s 180x108}
${font Arial:size=10}${execpi 600 sed -n '1p' $HOME/1b1_accuweather_images/messages}${font}${goto 200}${color ffe595}TEMP: $color${alignr}${execpi 600 sed -n '29p' $HOME/1b1_accuweather_images/curr_cond}°F (${execpi 600 sed -n '30p' $HOME/1b1_accuweather_images/curr_cond}°F)
${goto 200}${color ffe595}WIND: $color${alignr}${execpi 600 sed -n '31p' $HOME/1b1_accuweather_images/curr_cond} ${execpi 600 sed -n '38p' $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color ffe595}HUM: $color${alignr}${execpi 600 sed -n '32p' $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color ffe595}DEW POINT: $color${alignr}${execpi 600 sed -n '35p' $HOME/1b1_accuweather_images/curr_cond}°F
${goto 200}${color ffe595}PR: $color${alignr}${execpi 600 sed -n '33p' $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color ffe595}VISIB: $color${alignr}${execpi 600 sed -n '37p' $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color ffe595}CLOUD COVER: $color${alignr}${execpi 600 sed -n '36p' $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color ffe595}UV INDEX: $color${alignr}${execpi 600 sed -n '34p' $HOME/1b1_accuweather_images/curr_cond} 
${goto 200}${color ffe595}S/M RISE: $color${alignr}${execpi 600 sed -n '39p' $HOME/1b1_accuweather_images/curr_cond}/${execpi 600 sed -n '41p' $HOME/1b1_accuweather_images/curr_cond}
${goto 200}${color ffe595}S/M SET: $color${alignr}${execpi 600 sed -n '40p' $HOME/1b1_accuweather_images/curr_cond}/${execpi 600 sed -n '42p' $HOME/1b1_accuweather_images/curr_cond}
${hr 1}
${goto 50}${font Arial:size=10}${color ffe595}TODAY$color$font${goto 230}${font Arial:size=10}${color ffe595}TONIGHT$color$font${image $HOME/1b1_accuweather_images/tod.png -p 0,205 -s 120x72}${image $HOME/1b1_accuweather_images/ton.png -p 190,205 -s 120x72}

${goto 145}${execpi 600 sed -n '26p' $HOME/1b1_accuweather_images/first_days}°F${goto 340}${execpi 600 sed -n '31p' $HOME/1b1_accuweather_images/first_days}°F
${goto 140}(${execpi 600 sed -n '27p' $HOME/1b1_accuweather_images/first_days}°F)${goto 335}(${execpi 600 sed -n '32p' $HOME/1b1_accuweather_images/first_days}°F)


${font Arial:size=8}${execpi 600 sed -n '2p' $HOME/1b1_accuweather_images/messages}${goto 195}${execpi 600 sed -n '3p' $HOME/1b1_accuweather_images/messages}$font
Chance of Precip: ${execpi 600 sed -n '28p' $HOME/1b1_accuweather_images/first_days}${goto 195}Chance of Precip: $color${execpi 600 sed -n '33p' $HOME/1b1_accuweather_images/first_days}
${hr 1}
${font Arial:size=9}${goto 40}${color ffe595}${execpi 600 sed -n '5p' $HOME/1b1_accuweather_images/first_days}${goto 145}${execpi 600 sed -n '10p' $HOME/1b1_accuweather_images/first_days}${goto 270}${execpi 600 sed -n '15p' $HOME/1b1_accuweather_images/first_days}$color${font}${image $HOME/1b1_accuweather_images/6.png -p 0,330 -s 90x54}

${font Arial:size=8}${goto 100}${execpi 600 sed -n '8p' $HOME/1b1_accuweather_images/first_days}°F${goto 210}${execpi 600 sed -n '13p' $HOME/1b1_accuweather_images/first_days}°F${goto 330}${execpi 600 sed -n '18p' $HOME/1b1_accuweather_images/first_days}°F
${goto 100}${execpi 600 sed -n '9p' $HOME/1b1_accuweather_images/first_days}°F${goto 210}${execpi 600 sed -n '14p' $HOME/1b1_accuweather_images/first_days}°F${goto 330}${execpi 600 sed -n '19p' $HOME/1b1_accuweather_images/first_days}°F${image $HOME/1b1_accuweather_images/11.png -p 110,330 -s 90x54}${image $HOME/1b1_accuweather_images/16.png -p 230,330 -s 90x54}

${execpi 600 sed -n '4p' $HOME/1b1_accuweather_images/messages}${goto 135}${execpi 600 sed -n '5p' $HOME/1b1_accuweather_images/messages}${goto 255}${execpi 600 sed -n '6p' $HOME/1b1_accuweather_images/messages}

${font Arial:size=9}${goto 40}${color ffe595}${execpi 600 sed -n '20p' $HOME/1b1_accuweather_images/first_days}${goto 145}${execpi 600 sed -n '1p' $HOME/1b1_accuweather_images/last_days}${goto 270}${execpi 600 sed -n '6p' $HOME/1b1_accuweather_images/last_days}$color${font}${image $HOME/1b1_accuweather_images/21.png -p 0,420 -s 90x54}

${font Arial:size=8}${goto 100}${execpi 600 sed -n '23p' $HOME/1b1_accuweather_images/first_days}°F${goto 210}${execpi 600 sed -n '4p' $HOME/1b1_accuweather_images/last_days}°F${goto 330}${execpi 600 sed -n '9p' $HOME/1b1_accuweather_images/last_days}°F
${font Arial:size=8}${goto 100}${execpi 600 sed -n '24p' $HOME/1b1_accuweather_images/first_days}°F${goto 210}${execpi 600 sed -n '5p' $HOME/1b1_accuweather_images/last_days}°F${goto 330}${execpi 600 sed -n '10p' $HOME/1b1_accuweather_images/last_days}°F${image $HOME/1b1_accuweather_images/last_2.png -p 110,420 -s 90x54}${image $HOME/1b1_accuweather_images/last_7.png -p 230,420 -s 90x54}

${execpi 600 sed -n '7p' $HOME/1b1_accuweather_images/messages}${goto 135}${execpi 600 sed -n '8p' $HOME/1b1_accuweather_images/messages}${goto 255}${execpi 600 sed -n '9p' $HOME/1b1_accuweather_images/messages}

${font Arial:size=9}${goto 40}${color ffe595}${execpi 600 sed -n '11p' $HOME/1b1_accuweather_images/last_days}${goto 145}${execpi 600 sed -n '16p' $HOME/1b1_accuweather_images/last_days}${goto 270}${execpi 600 sed -n '21p' $HOME/1b1_accuweather_images/last_days}$color${font}${image $HOME/1b1_accuweather_images/last_12.png -p 0,510 -s 90x54}

${font Arial:size=8}${goto 100}${execpi 600 sed -n '14p' $HOME/1b1_accuweather_images/last_days}°F${goto 210}${execpi 600 sed -n '19p' $HOME/1b1_accuweather_images/last_days}°F${goto 330}${execpi 600 sed -n '24p' $HOME/1b1_accuweather_images/last_days}°F
${font Arial:size=8}${goto 100}${execpi 600 sed -n '15p' $HOME/1b1_accuweather_images/last_days}°F${goto 210}${execpi 600 sed -n '20p' $HOME/1b1_accuweather_images/last_days}°F${goto 330}${execpi 600 sed -n '25p' $HOME/1b1_accuweather_images/last_days}°F${image $HOME/1b1_accuweather_images/last_17.png -p 110,510 -s 90x54}${image $HOME/1b1_accuweather_images/last_22.png -p 230,510 -s 90x54}

${execpi 600 sed -n '10p' $HOME/1b1_accuweather_images/messages}${goto 135}${execpi 600 sed -n '11p' $HOME/1b1_accuweather_images/messages}${goto 255}${execpi 600 sed -n '12p' $HOME/1b1_accuweather_images/messages}

The order of the info presented in the .curr_cond file has changed a little.

I'll examine the effects on 1b2.


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

#59 2015-10-29 13:16:37

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

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

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

Yep, similar changes to 1b2

1b2:

#!/bin/bash

#function: test_image
test_image () {
    case $1 in
         1)
           echo a
         ;;
         2|3)
           echo b 
         ;;
         4|5)
           echo c
         ;;
         6)
           echo d
         ;;
         7)
           echo e
         ;;
         8)
           echo f
         ;;
         11)
           echo 0
         ;;
         12)
           echo h
         ;;
         13|14)
           echo g
         ;;
         15)
           echo m
         ;;
         16|17)
           echo k
         ;;
         18)
           echo i
         ;;
         19)
           echo q
         ;;
         20|21|23)
           echo o
         ;;
         22)
           echo r
         ;;
         24|31)
           echo E
         ;;
         25)
           echo v
         ;;
         26)
           echo x
         ;;
         29)
           echo y
         ;;
         30)
           echo 5
         ;;
         32)
           echo 6
         ;;
         33)
           echo A
         ;;
         34|35)
           echo B
         ;;
         36|37)
           echo C
         ;;
         38)
           echo D
         ;;
         39|40)
           echo G
         ;;
         41|42)
           echo K
         ;;
         43|44)
           echo O
         ;;
         *)
		   echo -
		 ;;   
        esac
} 

#put your Accuweather address here
#address="http://www.accuweather.com/en/gr/kastoria/178682/weather-forecast/178682"
address="http://www.accuweather.com/en/us/north-arlington-nj/07031/weather-forecast/339509"
#address="http://www.accuweather.com/en/de/magdeburg/39104/weather-forecast/171293"

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"

addr1="$(echo $address|sed 's/weather-forecast.*$//')"daily-weather-forecast/"$last_number"
addr2="$addr1"?day=6

kill -STOP $(pidof conky)
killall wget

wget --save-cookies $HOME/1b2_accuweather_conkyweather_font/cookie -O $HOME/1b2_accuweather_conkyweather_font/curr_cond_raw $curr_addr
wget --load-cookies $HOME/1b2_accuweather_conkyweather_font/cookie -O $HOME/1b2_accuweather_conkyweather_font/first_days_raw $addr1
wget --load-cookies $HOME/1b2_accuweather_conkyweather_font/cookie -O $HOME/1b2_accuweather_conkyweather_font/last_days_raw $addr2

#Current Conditions - curr_cond file
if [[ -s $HOME/1b2_accuweather_conkyweather_font/curr_cond_raw ]]; then

	egrep -i '"detail-tab-panel |>Today<\/a>|>Tonight<\/a>|>Early AM<\/a>|>Overnight<\/a>|>Mon<\/a>|>Tue<\/a>|>Wed<\/a>|>Thu<\/a>|>Fri<\/a>|>Sat<\/a>|>Sun<\/a>|icon i-|"cond"|"temp"|icons-wind\/.*gif|text-align:center\;\">.*h</div>|Humidity: |Pressure: |Cloud Cover: |UV Index: |Dew Point: |Precipitation(1 hr): |Visibility: |"start">|"finish">' $HOME/1b2_accuweather_conkyweather_font/curr_cond_raw > $HOME/1b2_accuweather_conkyweather_font/curr_cond
    sed -i -e 's/^[ \t]*//g' -e 's/^.*icon i-//g' -e 's/^.*"cond">//g' -e 's/>Lo</\n/g' -e 's/RealFeel/\n/g' $HOME/1b2_accuweather_conkyweather_font/curr_cond
    sed -i -e 's/^.*"#">//g' -e 's/^.*<strong class="temp"//g' -e 's/^>//g' -e 's/<span>&deg.*$//g' $HOME/1b2_accuweather_conkyweather_font/curr_cond
    sed -i -e 's/<\/a>.*$//g' -e 's/\/span> //g' -e 's/"temp">/\n/g' -e 's/^.*icons-wind\///g' -e 's/^.*text-align:center\;\">//g' $HOME/1b2_accuweather_conkyweather_font/curr_cond
    sed -i -e 's/^.*"start">//g' -e 's/^.*"finish">//g' -e 's/<li>//g' -e 's/<strong>//g' -e 's/<<span.*$//g' $HOME/1b2_accuweather_conkyweather_font/curr_cond
    sed -i -e 's/<\/span>//g' -e 's/<\/strong><\/li>//g' -e 's/ "><\/div>//g' -e 's/'\''//g' $HOME/1b2_accuweather_conkyweather_font/curr_cond
    sed -i -e 's/"><\/div>//g' -e 's/^.*; //g' -e 's/&#.*$//g' -e 's/ i-alarm.*$//g' -e 's/;//g' $HOME/1b2_accuweather_conkyweather_font/curr_cond
    sed -i -e 's/Humidity: //g' -e 's/Pressure: //g' -e 's/Cloud Cover: //g' -e 's/UV Index: //g' -e 's/Dew Point: //g' -e 's/Visibility: //g' $HOME/1b2_accuweather_conkyweather_font/curr_cond
    sed -i -e 's/^.*detail-tab-panel //g' -e 's/">//g' -e 's/\r//g' -e 's/ *$//g' -e 's/mb.*$/mb/g' $HOME/1b2_accuweather_conkyweather_font/curr_cond
    sed -i -e 's/-s\|-xl.*$//g' -e 's/in &.*$/in/g' -e 's/\.gif.*$//g' -e 's/<\/div>.*$//g' $HOME/1b2_accuweather_conkyweather_font/curr_cond
    time=$(sed -n 1p $HOME/1b2_accuweather_conkyweather_font/curr_cond)
    if [[ $time == Tonight || $time == Overnight || $time == "Early AM" ]]; then
        sed -i 3a- $HOME/1b2_accuweather_conkyweather_font/curr_cond
	fi
    line35=$(sed -n 35p $HOME/1b2_accuweather_conkyweather_font/curr_cond)
    sed -i '35d' $HOME/1b2_accuweather_conkyweather_font/curr_cond
    sed -i 35a$line35 $HOME/1b2_accuweather_conkyweather_font/curr_cond
	image=$(sed -n 27p $HOME/1b2_accuweather_conkyweather_font/curr_cond)
	sed -i 27s/$image/$(test_image $image)/ $HOME/1b2_accuweather_conkyweather_font/curr_cond
	
fi

#First 5days - first_days file 
if [[ -s $HOME/1b2_accuweather_conkyweather_font/first_days_raw ]]; then

    sed -i '/<div class="column-1 clearfix">/,/<div id=\"feature-history\">/!d' $HOME/1b2_accuweather_conkyweather_font/first_days_raw
    egrep -i '>Today<|<p>[a-z]|>Mon<\/a>|>Tue<\/a>|>Wed<\/a>|>Thu<\/a>|>Fri<\/a>|>Sat<\/a>|>Sun<\/a>|icon i-|"cond"|"temp"|realfeel">RealFeel|realfeel">Precipitation' $HOME/1b2_accuweather_conkyweather_font/first_days_raw > $HOME/1b2_accuweather_conkyweather_font/first_days

    sed -i -e 's/^[ \t]*//g' -e 's/^.*icon i-//g' -e 's/^.*"cond">//g' -e 's/>Lo</\n/g' $HOME/1b2_accuweather_conkyweather_font/first_days
    sed -i -e 's/ "><\/div>//g' -e 's/"><\/div>//g' -e 's/^.*"temp">//g' -e 's/<span>&deg.*$//g' $HOME/1b2_accuweather_conkyweather_font/first_days
    sed -i -e 's/<p>//g' -e 's/<\/p>//g' -e 's/^.*"#">//g' -e 's/\/span> //g' -e 's/^.*>Precipitation //g' -e '/realfeel/s/^.*; //g' $HOME/1b2_accuweather_conkyweather_font/first_days
    sed -i -e 's/&#.*$//g' -e 's/<.*$//g' -e 's/ i-alarm.*$//g' -e 's/\r//g' -e 's/ *$//g' $HOME/1b2_accuweather_conkyweather_font/first_days
	sed -i -e 's/Today/TODAY/' -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/' $HOME/1b2_accuweather_conkyweather_font/first_days
    sed -i 's/-s\|-l.*$//g' $HOME/1b2_accuweather_conkyweather_font/first_days
    time=$(sed -n 1p $HOME/1b2_accuweather_conkyweather_font/curr_cond)
    if [[ $time == Tonight || $time == Overnight || $time == "Early AM" ]]; then
        sed -i 2a- $HOME/1b2_accuweather_conkyweather_font/first_days
	fi
	L1=$(sed -n 1p $HOME/1b2_accuweather_conkyweather_font/first_days)
    if [[ $L1 == TODAY ]]; then
        sed -i 1d $HOME/1b2_accuweather_conkyweather_font/first_days
	fi
	for (( i=6; i<=21; i+=5 ))
	  do
	      image_raw=$(sed -n "${i}"p $HOME/1b2_accuweather_conkyweather_font/first_days)
	      sed -i ${i}s/$image_raw/$(test_image $image_raw)/ $HOME/1b2_accuweather_conkyweather_font/first_days
	  done
    image_raw=$(sed -n 25p $HOME/1b2_accuweather_conkyweather_font/first_days)
	sed -i 25s/$image_raw/$(test_image $image_raw)/ $HOME/1b2_accuweather_conkyweather_font/first_days
    image_raw=$(sed -n 30p $HOME/1b2_accuweather_conkyweather_font/first_days)
	sed -i 30s/$image_raw/$(test_image $image_raw)/ $HOME/1b2_accuweather_conkyweather_font/first_days

fi


#Last 5days - last_days file 
if [[ -s $HOME/1b2_accuweather_conkyweather_font/last_days_raw ]]; then

    sed -i '/<div class="column-1 clearfix">/,/<div id=\"feature-history\">/!d' $HOME/1b2_accuweather_conkyweather_font/last_days_raw
    egrep -i '>Mon<\/a>|>Tue<\/a>|>Wed<\/a>|>Thu<\/a>|>Fri<\/a>|>Sat<\/a>|>Sun<\/a>|icon i-|"cond"|"temp"|realfeel">RealFeel|realfeel">Precipitation' $HOME/1b2_accuweather_conkyweather_font/last_days_raw > $HOME/1b2_accuweather_conkyweather_font/last_days
    sed -i -e 's/^[ \t]*//g' -e 's/^.*icon i-//g' -e 's/^.*"cond">//g' -e 's/>Lo</\n/g' $HOME/1b2_accuweather_conkyweather_font/last_days
    sed -i -e 's/ "><\/div>//g' -e 's/"><\/div>//g' -e 's/^.*"temp">//g' -e 's/<span>&deg.*$//g' $HOME/1b2_accuweather_conkyweather_font/last_days
    sed -i -e 's/^.*"#">//g' -e 's/\/span> //g' -e 's/^.*>Precipitation //g' -e 's/^.*; //g' $HOME/1b2_accuweather_conkyweather_font/last_days
    sed -i -e 's/&#.*$//g' -e 's/<.*$//g' -e 's/ i-alarm.*$//g' -e 's/\r//g' -e 's/ *$//g' $HOME/1b2_accuweather_conkyweather_font/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/' $HOME/1b2_accuweather_conkyweather_font/last_days
    sed -i 's/-s\|-l.*$//g' $HOME/1b2_accuweather_conkyweather_font/last_days
    for (( i=2; i<=22; i+=5 ))
	  do
	      image_raw=$(sed -n "${i}"p $HOME/1b2_accuweather_conkyweather_font/last_days)
	      sed -i ${i}s/$image_raw/$(test_image $image_raw)/ $HOME/1b2_accuweather_conkyweather_font/last_days
	  done

fi

#messages file
sed -n 28p $HOME/1b2_accuweather_conkyweather_font/curr_cond | cut -c -20 > $HOME/1b2_accuweather_conkyweather_font/messages
sed -n 29p $HOME/1b2_accuweather_conkyweather_font/first_days | cut -c -20 >> $HOME/1b2_accuweather_conkyweather_font/messages
sed -n 34p $HOME/1b2_accuweather_conkyweather_font/first_days | cut -c -20 >> $HOME/1b2_accuweather_conkyweather_font/messages
for (( i=7; i<=22; i+=5 ))
  do
      sed -n ${i}p $HOME/1b2_accuweather_conkyweather_font/first_days | cut -c -20 >> $HOME/1b2_accuweather_conkyweather_font/messages
  done
for (( i=3; i<=23; i+=5 ))
  do
      sed -n ${i}p $HOME/1b2_accuweather_conkyweather_font/last_days | cut -c -20 >> $HOME/1b2_accuweather_conkyweather_font/messages
  done

kill -CONT $(pidof conky)

.conkyrc_1b1_int:

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer yes
use_xft yes

# Update interval in seconds
update_interval 3

# Minimum size of text area
minimum_size 355 500
maximum_width 355

override_utf8_locale yes

# Draw shades?
draw_shades yes

# Text stuff
draw_outline yes # amplifies text if yes
draw_borders no
xftfont Arial:size=9
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_margin 9

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color cbcbcb

own_window_colour brown
own_window_transparent yes

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 30

imlib_cache_size 0
# stuff after 'TEXT' will be formatted on screen

TEXT
${font Arial:size=12}${color ffe595}WEATHER ${font}${hr 2}$color${texeci 500 bash $HOME/1b2_accuweather_conkyweather_font/1b2}
${font Arial:size=10}${execpi 600 sed -n '1p' $HOME/1b2_accuweather_conkyweather_font/messages}${font}${goto 200}${color ffe595}TEMP: $color${alignr}${execpi 600 sed -n '29p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}°C (${execpi 600 sed -n '30p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}°C)
${font conkyweather:size=100}${execi 600  sed -n '27p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}${font}
${voffset -130}${goto 200}${color ffe595}WIND: $color${alignr}${execpi 600 sed -n '31p' $HOME/1b2_accuweather_conkyweather_font/curr_cond} ${execpi 600 sed -n '38p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
${goto 200}${color ffe595}HUM: $color${alignr}${execpi 600 sed -n '32p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
${goto 200}${color ffe595}DEW POINT: $color${alignr}${execpi 600 sed -n '35p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}°C
${goto 200}${color ffe595}PR: $color${alignr}${execpi 600 sed -n '33p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
${goto 200}${color ffe595}VISIB: $color${alignr}${execpi 600 sed -n '37p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
${goto 200}${color ffe595}CLOUD COVER: $color${alignr}${execpi 600 sed -n '36p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
${goto 200}${color ffe595}UV INDEX: $color${alignr}${execpi 600 sed -n '34p' $HOME/1b2_accuweather_conkyweather_font/curr_cond} 
${goto 200}${color ffe595}S/M RISE: $color${alignr}${execpi 600 sed -n '39p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}/${execpi 600 sed -n '41p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
${goto 200}${color ffe595}S/M SET: $color${alignr}${execpi 600 sed -n '40p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}/${execpi 600 sed -n '42p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
${hr 1}
${goto 50}${font Arial:size=10}${color ffe595}TODAY$color$font${goto 230}${font Arial:size=10}${color ffe595}TONIGHT$color$font
${goto 30}${font conkyweather:size=75}${execi 600  sed -n '25p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${goto 210}${voffset -75}${font conkyweather:size=75}${execi 600  sed -n '30p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}
${voffset -70}${goto 145}${execpi 600 sed -n '26p' $HOME/1b2_accuweather_conkyweather_font/first_days}°C${goto 340}${execpi 600 sed -n '31p' $HOME/1b2_accuweather_conkyweather_font/first_days}°C
${goto 140}(${execpi 600 sed -n '27p' $HOME/1b2_accuweather_conkyweather_font/first_days}°C)${goto 335}(${execpi 600 sed -n '32p' $HOME/1b2_accuweather_conkyweather_font/first_days}°C)


${font Arial:size=8}${execpi 600 sed -n '2p' $HOME/1b2_accuweather_conkyweather_font/messages}${goto 195}${execpi 600 sed -n '3p' $HOME/1b2_accuweather_conkyweather_font/messages}$font
Chance of Precip: ${execpi 600 sed -n '28p' $HOME/1b2_accuweather_conkyweather_font/first_days}${goto 195}Chance of Precip: $color${execpi 600 sed -n '33p' $HOME/1b2_accuweather_conkyweather_font/first_days}
${hr 1}
${font Arial:size=9}${goto 40}${color ffe595}${execpi 600 sed -n '5p' $HOME/1b2_accuweather_conkyweather_font/first_days}${goto 145}${execpi 600 sed -n '10p' $HOME/1b2_accuweather_conkyweather_font/first_days}${goto 270}${execpi 600 sed -n '15p' $HOME/1b2_accuweather_conkyweather_font/first_days}$color${font}
${goto 30}${font conkyweather:size=50}${execi 600  sed -n '6p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${goto 140}${voffset -50}${font conkyweather:size=50}${execi 600  sed -n '11p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${goto 260}${voffset -50}${font conkyweather:size=50}${execi 600  sed -n '16p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}
${voffset -40}${font Arial:size=8}${goto 100}${execpi 600 sed -n '8p' $HOME/1b2_accuweather_conkyweather_font/first_days}°C${goto 210}${execpi 600 sed -n '13p' $HOME/1b2_accuweather_conkyweather_font/first_days}°C${goto 330}${execpi 600 sed -n '18p' $HOME/1b2_accuweather_conkyweather_font/first_days}°C
${goto 100}${execpi 600 sed -n '9p' $HOME/1b2_accuweather_conkyweather_font/first_days}°C${goto 210}${execpi 600 sed -n '14p' $HOME/1b2_accuweather_conkyweather_font/first_days}°C${goto 330}${execpi 600 sed -n '19p' $HOME/1b2_accuweather_conkyweather_font/first_days}°C

${execpi 600 sed -n '4p' $HOME/1b2_accuweather_conkyweather_font/messages}${goto 135}${execpi 600 sed -n '5p' $HOME/1b2_accuweather_conkyweather_font/messages}${goto 255}${execpi 600 sed -n '6p' $HOME/1b2_accuweather_conkyweather_font/messages}

${font Arial:size=9}${goto 40}${color ffe595}${execpi 600 sed -n '20p' $HOME/1b2_accuweather_conkyweather_font/first_days}${goto 145}${execpi 600 sed -n '1p' $HOME/1b2_accuweather_conkyweather_font/last_days}${goto 270}${execpi 600 sed -n '6p' $HOME/1b2_accuweather_conkyweather_font/last_days}$color${font}
${goto 30}${font conkyweather:size=50}${execi 600  sed -n '21p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${goto 140}${voffset -50}${font conkyweather:size=50}${execi 600  sed -n '2p' $HOME/1b2_accuweather_conkyweather_font/last_days}${font}${goto 260}${voffset -50}${font conkyweather:size=50}${execi 600  sed -n '7p' $HOME/1b2_accuweather_conkyweather_font/last_days}${font}
${voffset -40}${font Arial:size=8}${goto 100}${execpi 600 sed -n '23p' $HOME/1b2_accuweather_conkyweather_font/first_days}°C${goto 210}${execpi 600 sed -n '4p' $HOME/1b2_accuweather_conkyweather_font/last_days}°C${goto 330}${execpi 600 sed -n '9p' $HOME/1b2_accuweather_conkyweather_font/last_days}°C
${font Arial:size=8}${goto 100}${execpi 600 sed -n '24p' $HOME/1b2_accuweather_conkyweather_font/first_days}°C${goto 210}${execpi 600 sed -n '5p' $HOME/1b2_accuweather_conkyweather_font/last_days}°C${goto 330}${execpi 600 sed -n '10p' $HOME/1b2_accuweather_conkyweather_font/last_days}°C

${execpi 600 sed -n '7p' $HOME/1b2_accuweather_conkyweather_font/messages}${goto 135}${execpi 600 sed -n '8p' $HOME/1b2_accuweather_conkyweather_font/messages}${goto 255}${execpi 600 sed -n '9p' $HOME/1b2_accuweather_conkyweather_font/messages}

${font Arial:size=9}${goto 40}${color ffe595}${execpi 600 sed -n '11p' $HOME/1b2_accuweather_conkyweather_font/last_days}${goto 145}${execpi 600 sed -n '16p' $HOME/1b2_accuweather_conkyweather_font/last_days}${goto 270}${execpi 600 sed -n '21p' $HOME/1b2_accuweather_conkyweather_font/last_days}$color${font}
${goto 30}${font conkyweather:size=50}${execi 600  sed -n '12p' $HOME/1b2_accuweather_conkyweather_font/last_days}${font}${goto 140}${voffset -50}${font conkyweather:size=50}${execi 600  sed -n '17p' $HOME/1b2_accuweather_conkyweather_font/last_days}${font}${goto 260}${voffset -50}${font conkyweather:size=50}${execi 600  sed -n '22p' $HOME/1b2_accuweather_conkyweather_font/last_days}${font}
${voffset -40}${font Arial:size=8}${goto 100}${execpi 600 sed -n '14p' $HOME/1b2_accuweather_conkyweather_font/last_days}°C${goto 210}${execpi 600 sed -n '19p' $HOME/1b2_accuweather_conkyweather_font/last_days}°C${goto 330}${execpi 600 sed -n '24p' $HOME/1b2_accuweather_conkyweather_font/last_days}°C
${font Arial:size=8}${goto 100}${execpi 600 sed -n '15p' $HOME/1b2_accuweather_conkyweather_font/last_days}°C${goto 210}${execpi 600 sed -n '20p' $HOME/1b2_accuweather_conkyweather_font/last_days}°C${goto 330}${execpi 600 sed -n '25p' $HOME/1b2_accuweather_conkyweather_font/last_days}°C

${execpi 600 sed -n '10p' $HOME/1b2_accuweather_conkyweather_font/messages}${goto 135}${execpi 600 sed -n '11p' $HOME/1b2_accuweather_conkyweather_font/messages}${goto 255}${execpi 600 sed -n '12p' $HOME/1b2_accuweather_conkyweather_font/messages}

.conkyrc_1b1_usa:

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer yes
use_xft yes

# Update interval in seconds
update_interval 3

# Minimum size of text area
minimum_size 355 500
maximum_width 355

override_utf8_locale yes

# Draw shades?
draw_shades yes

# Text stuff
draw_outline yes # amplifies text if yes
draw_borders no
#font freesans -12
xftfont Arial:size=9
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_margin 9

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color cbcbcb

own_window_colour brown
own_window_transparent yes

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 30

imlib_cache_size 0
# stuff after 'TEXT' will be formatted on screen

TEXT
${font Arial:size=12}${color ffe595}WEATHER ${font}${hr 2}$color${texeci 500 bash $HOME/1b2_accuweather_conkyweather_font/1b2}
${font Arial:size=10}${execpi 600 sed -n '1p' $HOME/1b2_accuweather_conkyweather_font/messages}${font}${goto 200}${color ffe595}TEMP: $color${alignr}${execpi 600 sed -n '29p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}°F (${execpi 600 sed -n '30p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}°F)
${font conkyweather:size=100}${execi 600  sed -n '27p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}${font}
${voffset -130}${goto 200}${color ffe595}WIND: $color${alignr}${execpi 600 sed -n '31p' $HOME/1b2_accuweather_conkyweather_font/curr_cond} ${execpi 600 sed -n '38p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
${goto 200}${color ffe595}HUM: $color${alignr}${execpi 600 sed -n '32p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
${goto 200}${color ffe595}DEW POINT: $color${alignr}${execpi 600 sed -n '35p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}°F
${goto 200}${color ffe595}PR: $color${alignr}${execpi 600 sed -n '33p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
${goto 200}${color ffe595}VISIB: $color${alignr}${execpi 600 sed -n '37p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
${goto 200}${color ffe595}CLOUD COVER: $color${alignr}${execpi 600 sed -n '36p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
${goto 200}${color ffe595}UV INDEX: $color${alignr}${execpi 600 sed -n '34p' $HOME/1b2_accuweather_conkyweather_font/curr_cond} 
${goto 200}${color ffe595}S/M RISE: $color${alignr}${execpi 600 sed -n '39p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}/${execpi 600 sed -n '41p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
${goto 200}${color ffe595}S/M SET: $color${alignr}${execpi 600 sed -n '40p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}/${execpi 600 sed -n '42p' $HOME/1b2_accuweather_conkyweather_font/curr_cond}
${hr 1}
${goto 50}${font Arial:size=10}${color ffe595}TODAY$color$font${goto 230}${font Arial:size=10}${color ffe595}TONIGHT$color$font
${goto 30}${font conkyweather:size=75}${execi 600  sed -n '25p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${goto 210}${voffset -75}${font conkyweather:size=75}${execi 600  sed -n '30p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}
${voffset -70}${goto 145}${execpi 600 sed -n '26p' $HOME/1b2_accuweather_conkyweather_font/first_days}°F${goto 340}${execpi 600 sed -n '31p' $HOME/1b2_accuweather_conkyweather_font/first_days}°F
${goto 140}(${execpi 600 sed -n '27p' $HOME/1b2_accuweather_conkyweather_font/first_days}°F)${goto 335}(${execpi 600 sed -n '32p' $HOME/1b2_accuweather_conkyweather_font/first_days}°F)


${font Arial:size=8}${execpi 600 sed -n '2p' $HOME/1b2_accuweather_conkyweather_font/messages}${goto 195}${execpi 600 sed -n '3p' $HOME/1b2_accuweather_conkyweather_font/messages}$font
Chance of Precip: ${execpi 600 sed -n '28p' $HOME/1b2_accuweather_conkyweather_font/first_days}${goto 195}Chance of Precip: $color${execpi 600 sed -n '33p' $HOME/1b2_accuweather_conkyweather_font/first_days}
${hr 1}
${font Arial:size=9}${goto 40}${color ffe595}${execpi 600 sed -n '5p' $HOME/1b2_accuweather_conkyweather_font/first_days}${goto 145}${execpi 600 sed -n '10p' $HOME/1b2_accuweather_conkyweather_font/first_days}${goto 270}${execpi 600 sed -n '15p' $HOME/1b2_accuweather_conkyweather_font/first_days}$color${font}
${goto 30}${font conkyweather:size=50}${execi 600  sed -n '6p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${goto 140}${voffset -50}${font conkyweather:size=50}${execi 600  sed -n '11p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${goto 260}${voffset -50}${font conkyweather:size=50}${execi 600  sed -n '16p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}
${voffset -40}${font Arial:size=8}${goto 100}${execpi 600 sed -n '8p' $HOME/1b2_accuweather_conkyweather_font/first_days}°F${goto 210}${execpi 600 sed -n '13p' $HOME/1b2_accuweather_conkyweather_font/first_days}°F${goto 330}${execpi 600 sed -n '18p' $HOME/1b2_accuweather_conkyweather_font/first_days}°F
${goto 100}${execpi 600 sed -n '9p' $HOME/1b2_accuweather_conkyweather_font/first_days}°F${goto 210}${execpi 600 sed -n '14p' $HOME/1b2_accuweather_conkyweather_font/first_days}°F${goto 330}${execpi 600 sed -n '19p' $HOME/1b2_accuweather_conkyweather_font/first_days}°F

${execpi 600 sed -n '4p' $HOME/1b2_accuweather_conkyweather_font/messages}${goto 135}${execpi 600 sed -n '5p' $HOME/1b2_accuweather_conkyweather_font/messages}${goto 255}${execpi 600 sed -n '6p' $HOME/1b2_accuweather_conkyweather_font/messages}

${font Arial:size=9}${goto 40}${color ffe595}${execpi 600 sed -n '20p' $HOME/1b2_accuweather_conkyweather_font/first_days}${goto 145}${execpi 600 sed -n '1p' $HOME/1b2_accuweather_conkyweather_font/last_days}${goto 270}${execpi 600 sed -n '6p' $HOME/1b2_accuweather_conkyweather_font/last_days}$color${font}
${goto 30}${font conkyweather:size=50}${execi 600  sed -n '21p' $HOME/1b2_accuweather_conkyweather_font/first_days}${font}${goto 140}${voffset -50}${font conkyweather:size=50}${execi 600  sed -n '2p' $HOME/1b2_accuweather_conkyweather_font/last_days}${font}${goto 260}${voffset -50}${font conkyweather:size=50}${execi 600  sed -n '7p' $HOME/1b2_accuweather_conkyweather_font/last_days}${font}
${voffset -40}${font Arial:size=8}${goto 100}${execpi 600 sed -n '23p' $HOME/1b2_accuweather_conkyweather_font/first_days}°F${goto 210}${execpi 600 sed -n '4p' $HOME/1b2_accuweather_conkyweather_font/last_days}°F${goto 330}${execpi 600 sed -n '9p' $HOME/1b2_accuweather_conkyweather_font/last_days}°F
${font Arial:size=8}${goto 100}${execpi 600 sed -n '24p' $HOME/1b2_accuweather_conkyweather_font/first_days}°F${goto 210}${execpi 600 sed -n '5p' $HOME/1b2_accuweather_conkyweather_font/last_days}°F${goto 330}${execpi 600 sed -n '10p' $HOME/1b2_accuweather_conkyweather_font/last_days}°F

${execpi 600 sed -n '7p' $HOME/1b2_accuweather_conkyweather_font/messages}${goto 135}${execpi 600 sed -n '8p' $HOME/1b2_accuweather_conkyweather_font/messages}${goto 255}${execpi 600 sed -n '9p' $HOME/1b2_accuweather_conkyweather_font/messages}

${font Arial:size=9}${goto 40}${color ffe595}${execpi 600 sed -n '11p' $HOME/1b2_accuweather_conkyweather_font/last_days}${goto 145}${execpi 600 sed -n '16p' $HOME/1b2_accuweather_conkyweather_font/last_days}${goto 270}${execpi 600 sed -n '21p' $HOME/1b2_accuweather_conkyweather_font/last_days}$color${font}
${goto 30}${font conkyweather:size=50}${execi 600  sed -n '12p' $HOME/1b2_accuweather_conkyweather_font/last_days}${font}${goto 140}${voffset -50}${font conkyweather:size=50}${execi 600  sed -n '17p' $HOME/1b2_accuweather_conkyweather_font/last_days}${font}${goto 260}${voffset -50}${font conkyweather:size=50}${execi 600  sed -n '22p' $HOME/1b2_accuweather_conkyweather_font/last_days}${font}
${voffset -40}${font Arial:size=8}${goto 100}${execpi 600 sed -n '14p' $HOME/1b2_accuweather_conkyweather_font/last_days}°F${goto 210}${execpi 600 sed -n '19p' $HOME/1b2_accuweather_conkyweather_font/last_days}°F${goto 330}${execpi 600 sed -n '24p' $HOME/1b2_accuweather_conkyweather_font/last_days}°F
${font Arial:size=8}${goto 100}${execpi 600 sed -n '15p' $HOME/1b2_accuweather_conkyweather_font/last_days}°F${goto 210}${execpi 600 sed -n '20p' $HOME/1b2_accuweather_conkyweather_font/last_days}°F${goto 330}${execpi 600 sed -n '25p' $HOME/1b2_accuweather_conkyweather_font/last_days}°F

${execpi 600 sed -n '10p' $HOME/1b2_accuweather_conkyweather_font/messages}${goto 135}${execpi 600 sed -n '11p' $HOME/1b2_accuweather_conkyweather_font/messages}${goto 255}${execpi 600 sed -n '12p' $HOME/1b2_accuweather_conkyweather_font/messages}

See if any issue comes up with these and I'll update the tarball later in the day (or the following one tongue)

Last edited by TeoBigusGeekus (2015-10-29 13:18:40)


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

#60 2015-10-29 13:46:47

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

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

^  Awesome Teo, "1b1_accuweather_images" working great here.

Thank you...


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

#61 2015-10-29 14:28:55

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

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

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

For those who like to tweak their conkys to death and back again.
Teo makes it fun and easy ...

As of Thu 29 Oct 2015 - 1b1 outputs:

# pkill -xf "conky -q -c /media/5/conky/test.conky" &

# OS Information
# Example
# ${pre_exec cat /etc/issue}
# Or you could use lsb_release:

# lsb_release -h (help)
# Usage: lsb_release [options]
# ${pre_exec lsb_release -sd}
# ${pre_exec lsb_release -sirc}

###  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_hints skip_taskbar,skip_pager
own_window_colour 000000 #255 255 255 White
own_window_class Conky
own_window_title S11 Test conky
### 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 180

#Normal with no test
minimum_size 250 00
maximum_width 250

#  Change is testing as needed
#minimum_size 1500 12
#maximum_width 1500

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

alignment tl

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

#alignment mm #tl
####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont monofur:bold:size=10
#xftfont mono:bold:size=9
#xftfont fantasque sans mono:bold:size=9

## TEST FONTS ###

#xftfont nimbus sans L:size=9
#xftfont Fantasque Sans Mono:bold:size=9 ## ° symbol a no go!
#xftfont ubuntu condensed:size=10
#xftfont Anonymous Pro:size=8
#xftfont noto sans:bold:size=9
#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
# default_color D3D3D3 # LightGrey
# default_color C0C0C0 # Silver
# default_color A9A9A9 # DarkGray
# default_color 808080 # Gray
# default_color 696969 # DimGray
# default_color 778899 # LightSlateGray
# default_color 708090 # SlateGray
# default_color 2F4F4F # DarkSlateGray
# default_color 000000 # Black
# default_color 666666 #BunsenFlame Grey
color0 8FBC8F #DarkSeaGreen
#color1 C0C0C0 # Silver
#color1 D3D3D3 #LightGrey
color1 778899 #LightSlateGray
color2 FFA07A #255 160 122 LightSalmon ##FAEBD7 #AntiqueWhite ## 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
#color9 DC143C #Crimson
#####################################################  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 no #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 96144

# 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 UTC ${tztime UTC  %H:%M}${alignr}${uptime_short} UP

# 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

#   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  ###########################################################
## Above and After TEXT - requires a composite manager or blinks.
##
# lua_load /media/5/Conky/LUA/draw-bg.lua
#TEXT
#${lua conky_draw_bg 125 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!)
#goto 191
#--------------------------------
#lua_load /media/5/Conky/LUA/draw-bg.lua
#lua_draw_hook_pre draw_bg 10 0 0 0 0 0xffffff 0.05
#lua_draw_hook_post draw_bg 20 80 30 125 150 0xffffff 0.15
#lua_draw_hook_pre draw_bg 0 0 0 0 0 0x000000 0.15

#lua_draw_hook_pre draw_bg 00 0 0 0 0 0x000000 0.35
#lua_draw_hook_post draw_bg 10 0 0 0 0 0x000000 0.25
#
# TEXT
#${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}
#
### V9000 ####################################################################
#starts the lua weather data gathering function, call once at top of conkyrc
#lua_load ~/v9000/v9000.lua
#lua_draw_hook_post weather
#lua_load /media/5/Conky/templates/cF-2013.template.lua
#lua_load /media/5/Conky/LUA/4clocks.lua
#lua_draw_hook_pre main
#lua_load /media/5/Conky/LUA/mounted.lua
#################################################################### V9000 ###
#######################################################  End LUA Settings  ###

##OS: ${pre_exec lsb_release -sd}
##OS: ${pre_exec lsb_release -si} ${pre_exec lsb_release -sr} ${pre_exec lsb_release -sc}

update_interval 1


#template0 ${goto 100}Average use: ${cpu cpu0} %\nCPU 1 = ${cpu cpu1} %\nCPU 2 = ${cpu cpu2} %\nCPU 3 = ${cpu cpu3} %
#template1 ${goto 15}Avg CPU: ${cpu cpu0} %${alignr 5}CPU 1 = ${cpu cpu1} %\n CPU 2 = ${cpu cpu2} %${alignr 5}CPU 3 = ${cpu cpu3} %

#template0 CPU ${platform f71882fg.2560 temp 1}°${alignr 5}Mobo ${platform f71882fg.2560 temp 2}°\nGPU ${nvidia temp}°${alignr 5}SDA ${hddtemp /dev/sda}°
#template1 A = ${cpu cpu0} %${alignr 5}${cpu cpu1} % = 1\n2 = ${cpu cpu2} %${alignr 5}${cpu cpu3} % = 3

#template2 ${if_match "${execpi 600 sed -n '1p' $HOME/3_conky_forecast_nws_NEW/period-names_temps}" == "Tonight"}${color9}${else}${color5}${endif}

# indicate up when having a link
#if_up_strictness link

#TEXT
#${template0}

#lua_load ~/conky-meteo/square_to_round.lua
#lua_draw_hook_post main /home/sector11/conky-meteo/moon-phase/moon.jpg
## ${execpi 9600 ~/conky-meteo/get_image.sh}pkill -xf "conky -q -c /media/5/Conky/1b2_accuweather_conkyweather_font/conkyrc_1b2_int_s11_thin" &

##  ${pre_exec lsb_release -sd}
#${alignc 5}${execi 900 $HOME/.config/conky/scripts/bunsenweather.sh}

#    Thunar ${if_running thunar}is${else}is not${endif} running.
#     Medit ${if_running medit}is${else}is not${endif} running.
#Terminator ${if_running terminator}is${else}is not${endif} running.
#     Dlume ${if_running dlume}is${else}is not${endif} running.


lua_load /media/5/Conky/TeoWeatherClock-2/LUA/mounted.lua

TEXT
 ${time %T}${alignr}${time %x}
${alignc}UTC ${tztime UTC  %T}
${alignc}${time %z}
${alignc}${uptime}

${font Air Force:size=6}${alignc}${if_match ${desktop}==1}${color6}${endif}d${color} ${if_match ${desktop}==2}${color6}${endif}d${color} ${if_match ${desktop}==3}${color6}${endif}d${color} ${if_match ${desktop}==4}${color6}${endif}d${color}${font}

${alignc}${color9}${membar 0,25}${color} ↓ Test Stuff Between ↓ ${color9}${membar 0,25}${color}
${color9}${membar 0}${color}
1b2_accuweather_conkyweather_font
   curr_cond
↓↓ ←← Line Numbers
   ↓↓ ←← Results
01 ${execpi 600 sed -n '1p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
02 ${execpi 600 sed -n '2p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
03 ${execpi 600 sed -n '3p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
04 ${execpi 600 sed -n '4p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
05 ${execpi 600 sed -n '5p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
04 ${execpi 600 sed -n '6p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
07 ${font conkyweather:size=15}${execpi 600 sed -n '7p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}${font}
08 ${execpi 600 sed -n '8p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
09 ${execpi 600 sed -n '9p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
10 ${execpi 600 sed -n '10p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
11 ${execpi 600 sed -n '11p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
12 ${font conkyweather:size=15}${execpi 600 sed -n '12p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}${font}
13 ${execpi 600 sed -n '13p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
14 ${execpi 600 sed -n '14p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
15 ${execpi 600 sed -n '15p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
16 ${execpi 600 sed -n '16p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
17 ${font conkyweather:size=15}${execpi 600 sed -n '17p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}${font}
18 ${execpi 600 sed -n '18p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
19 ${execpi 600 sed -n '19p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
20 ${execpi 600 sed -n '20p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
21 ${execpi 600 sed -n '21p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
22 ${font conkyweather:size=15}${execpi 600 sed -n '22p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}${font}
23 ${execpi 600 sed -n '23p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
24 ${execpi 600 sed -n '24p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
25 ${execpi 600 sed -n '25p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
26 ${execpi 600 sed -n '26p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
--- 1 to 26 not used ---
27 ${font conkyweather:size=15}${execi 600  sed -n '27p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}${font}
28 Current: ${execpi 600 sed -n '28p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
29 Temp     ${execpi 600 sed -n '29p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}°
30 Feels L  ${execpi 600 sed -n '30p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}°
32 Humidity ${execpi 600 sed -n '32p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
31 Wind Dir ${execpi 600 sed -n '31p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
33 Pressure ${execpi 600 sed -n '33p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
34 UV Index ${execpi 600 sed -n '34p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
35 Dew Pt   ${execpi 600 sed -n '35p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}°
36 Cloud C  ${execpi 600 sed -n '36p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
37 Vis      ${execpi 600 sed -n '37p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
38 Wind Sp  ${execpi 600 sed -n '38p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
39 Sunrise  ${execpi 600 sed -n '39p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
40 Sunset   ${execpi 600 sed -n '40p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
41 Moonrise ${execpi 600 sed -n '41p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
42 Moonset  ${execpi 600 sed -n '42p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}

${color9}${membar 0}${color}
${alignc}${color9}${membar 0,25}${color} ↑ These Lines ↑ ${color9}${membar 0,25}${color}
${font}

2015_10_29_12_09_42_Scrot11.jpg

Last edited by Sector11 (2015-10-29 15:11:21)


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

#62 2015-10-29 15:25:09

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

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

ANNOUNCEMENT

Accuweather changed the way it's giving Wind info in their current conditions page. Scripts 1b1 and 1b2 corrected, along with their conkyrcs. I've converted the latter to the new lua syntax as well. If you use custom conkyrcs read the docs of the scripts (Output_of_the_Script pdfs) as the order of the output info in the curr_cond file has changed a little. Thanks to S11, Krunchtime and fvirgola80 for their sharp eyes.

Last edited by TeoBigusGeekus (2015-10-29 15:25:19)


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

#63 2015-10-29 15:25:56

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

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

Hey, nice one S11!


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

#64 2015-10-29 15:33:54

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

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

Big Teo ..... works perfectly ..... how to say " said and done " or as we say in Italy " cooked and eaten " are fantastic also great Sector11 .... ;-)

Schermata_del_2015_10_29_16_35_25.jpg

Last edited by fvirgola80 (2015-10-29 15:36:45)


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

Offline

#65 2015-10-29 15:39:37

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

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

Thanks a lot neighbour!


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

#66 2015-10-29 15:57:56

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

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

TeoBigusGeekus wrote:

Hey, nice one S11!

Thanks ... but "Teo makes it fun and easy ... "

I see you were really quick with the PDF's as well so that makes that little test conky redundant.  wink

Post 56 updated as well.


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

#67 2015-10-29 16:24:07

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

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

Nice! See if you have time to update the alternative conkyrcs on the first post (1b1 and 1b2).


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

#68 2015-10-29 18:00:21

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

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

^  It's already on the drawing table, but illness here, we both have ... ummm ... intestinal problems, so It will be a work in broken progress.   wink  ops


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

#69 2015-10-29 18:20:15

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

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

No worries mate, take your time!
Best wishes for recovery to both of you...


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

#70 2015-10-29 19:08:49

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

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

Boiled rice ... yuk ... so bland ... but running time is getting less.  smile


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

#71 2015-10-30 09:02:34

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

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

good recovery friend :-)


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

Offline

#72 2015-10-30 10:19:16

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

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

Sector11 wrote:

^  It's already on the drawing table, but illness here, we both have ... ummm ... intestinal problems, so It will be a work in broken progress.   wink  ops

Oh...you both have the quick steplol  I think I got that phrase from the movie Deer Hunter.

Thank you Teo for the quick turnaround.

Last edited by KrunchTime (2015-10-30 10:22:15)

Offline

#73 2015-10-30 11:11:49

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

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

@ fvirgola80 - thank you

@ KrunchTime The quick step.  Good one, and that about describes it too.

Updated my conkys for:
1b1)Accuweather - Images - 1b1_29-10-15 here
1b2)Accuweather - ConkyWeather font - 1b2_29-10-15 - here and here

more coming


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

#74 2015-10-30 13:37:33

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

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

@Krunchtime
Anytime mate!

@S11
Brilliant work as always!


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

#75 2015-10-30 21:44:36

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

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

New 1b1_accuweather_images isn't working here.  Here's the error message I get when I attempt to run the 1b1 script from the command line:

[1] 5299
xxx@bunsenlabs-hydrogen:~$ Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 1: no such configuration: 'conky.config'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 2: no such configuration: '--'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 4: config file error
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 6: config file error
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 6: config file error
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 8: no such configuration: '--'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 11: no such configuration: '--'
Conky: use_spacer should have an argument of left, right, or none.  '= 'yes',' seems to be some form of 'false', so defaulting to none.
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 15: no such configuration: '--'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 18: no such configuration: '--'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 19: no such configuration: 'minimum_width'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 20: config file error
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 24: no such configuration: '--'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 27: no such configuration: '--'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 30: no such configuration: '--font'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 34: no such configuration: '--'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 37: no such configuration: '--'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 38: no such configuration: 'border_margin'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 40: no such configuration: '--'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 43: no such configuration: '--'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 49: no such configuration: '--'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 50: no such configuration: '--alignment'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 51: config file error
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 52: no such configuration: '--alignment'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 53: no such configuration: '--alignment'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 55: no such configuration: '--'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 60: no such configuration: '--'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 62: no such configuration: '};'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 64: no such configuration: 'conky.text'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 65: no such configuration: '${font'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 66: no such configuration: '${image'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 67: no such configuration: '${font'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 68: no such configuration: '${goto'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 69: no such configuration: '${goto'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 70: no such configuration: '${goto'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 71: no such configuration: '${goto'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 72: no such configuration: '${goto'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 73: no such configuration: '${goto'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 74: no such configuration: '${goto'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 75: no such configuration: '${goto'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 76: no such configuration: '${goto'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 77: no such configuration: '${hr'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 78: no such configuration: '${goto'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 80: no such configuration: '${goto'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 81: no such configuration: '${goto'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 84: no such configuration: '${font'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 85: no such configuration: 'Chance'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 86: no such configuration: '${hr'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 87: no such configuration: '${font'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 89: no such configuration: '${font'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 90: no such configuration: '${goto'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 92: no such configuration: '${execpi'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 94: no such configuration: '${font'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 96: no such configuration: '${font'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 97: no such configuration: '${font'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 99: no such configuration: '${execpi'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 101: no such configuration: '${font'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 103: no such configuration: '${font'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 104: no such configuration: '${font'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 106: no such configuration: '${execpi'
Conky: /home/xxx/bin/1b1_accuweather_images/.conkyrc_1b1_usa: 107: no such configuration: ']];'
Conky: missing text block in configuration; exiting
***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:

	imlib_context_free();

	With the parameter:

	context

	being NULL. Please fix your program.
Sector11 wrote:

@ KrunchTime The quick step.  Good one, and that about describes it too.

lol

Last edited by KrunchTime (2015-10-30 21:49:20)

Offline

Board footer

Powered by FluxBB