You are not logged in.

#41 2015-10-13 23:31:35

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,947

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

Thanks Nili ...

ragamatrix did the hard stuff - I just tweaked it.  Not my work.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster

Offline

#42 2015-10-14 16:04:07

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

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

Good to know moongiant is operational again.

Very nice job ragamatrix and 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

#43 2015-10-14 16:58:29

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,947

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

ragamatrix makes nice conkys - I steal them   angel


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster

Offline

#44 2015-10-15 10:00:31

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

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

Hello Guys , I confirm the site for the lunar phases http://www.moongiant.com/phase/today/ works again we hope that there are other obstacles .... thanks TEO and Sector11 are legendary


Nothing happens by chance

Offline

#45 2015-10-15 12:52:39

ragamatrix
Member
Registered: 2015-10-04
Posts: 427

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

@Sector11@TeoBigusGeekus&&@NiliThanks for all these compliments  yikes  smile

@Sector11->You steal but you improve the stolen "commodity" and I do the same like you ... smile

Last edited by ragamatrix (2015-10-15 12:58:50)

Offline

#46 2015-10-15 16:02:42

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,947

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

ragamatrix wrote:

@Sector11@TeoBigusGeekus&&@NiliThanks for all these compliments  yikes  smile

@Sector11->You steal but you improve the stolen "commodity" and I do the same like you ... smile

That, I can not deny, we have 'stolen' each others conkys over time - so we compliment each other.

A long time ago:

Londonali1010 coined a phrase:

CCCC - Collaborative Creative Conky Community

that became known as C4 as well.

I think that sums up what conky people do quite nicely.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster

Offline

#47 2015-10-15 16:05:56

Nili
Member
From: $HOME/♫♪
Registered: 2015-09-30
Posts: 1,046
Website

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

I think is more like part of open source rather than stolen, we learn from code and continuing making it better.
edit: giving credit, we respect the work of others smile

Last edited by Nili (2015-10-15 17:06:52)


Devuan/XFCE

Offline

#48 2015-10-15 17:03:10

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

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

Added a link on the first page.

“Amateurs borrow, professionals steal”


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

#49 2015-10-15 17:58:06

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,947

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

Nili wrote:

I think is more like part of open source rather than stolen, we learn from code and continuing making it better.
edit: giving credit, we respect the work of others smile

I can relate to that ...

man conky

I always try and give credit to the person I {cough cough} 'borrowed' from, but being human at times I forget.  So, lately (past few years), I put the person's name in the conky file name or some commented out line in the file itself.

@ Teo - Awesome: “Amateurs borrow, professionals steal”  I like it!


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster

Offline

#50 2015-10-24 09:50:41

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

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

ragamatrix wrote:

Cleaned by Sector11 now it's perfect, you're an expert with details and I really like it ! That's how we progress...  cool

Probably a result of his time in the military and the job he did.

Offline

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

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,947

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

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


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster

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
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,947

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


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster

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: 262

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)


Nothing happens by chance

Offline

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

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,947

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


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster

Offline

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

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

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 :-)


Nothing happens by chance

Offline

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

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

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: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

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
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,947

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

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

Thank you...


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster

Offline

Board footer

Powered by FluxBB