You are not logged in.

#1561 2017-05-06 16:11:24

ector1935
Member
Registered: 2017-05-03
Posts: 240

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

@Sector11 is missing little,now only the first day's temperature is missing.
Thank@Sector11
2017-05-06-180755_355x463_scrot.th.png

edit
It should be correct, because we are now at night
thank you

Tomorrow I'll let you know if it's all ok

Last edited by ector1935 (2017-05-08 08:23:41)

Offline

#1562 2017-05-06 18:07:01

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 guys. 
Waiting for a post from you ector1935.


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

#1563 2017-05-06 19:42:07

ector1935
Member
Registered: 2017-05-03
Posts: 240

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

TeoBigusGeekus wrote:

Good to know guys. 
Waiting for a post from you ector1935.

sorry,@Teo
I did not understand the question, what should I post?

Offline

#1564 2017-05-06 19:44:04

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

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

Just post if the script runs ok.


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

#1565 2017-05-06 19:53:41

ector1935
Member
Registered: 2017-05-03
Posts: 240

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

Put the scrip, but in my opinion here,there is still a mistake:

${else}${execpi 300 sed -n '3p' /home/minchionne/1_accuweather/first_days}${endif}\
${alignr 55}${execi 300 sed -n '8p' ~/1_accuweather/first_days}

addition the endif for me does not want it.
.conkyrc4

# pkill -xf "conky -c /media/5/conky/Temetka/Temetka_80s_s11.conky" &

# Inspired by: Temetka https://forums.bunsenlabs.org/viewtopic.php?pid=47838#p47838

## ---------- Begin Window Settings
#update_interval 1.0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager  #,sticky
own_window_colour 000000
own_window_class Conky
own_window_title Temetka's 80's Sunsent
## ARGB can be used for real transparencyown_window_hints
#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 80

minimum_size 300 0  ### width | height
maximum_width 300

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

alignment tl
## ---------- End Window Settings
## ---------- Font Settings
use_xft yes
#xftfont Liberation Mono:bold:size=11
#xftfont Fantasque Sans Mono:bold:size=12
#xftfont Monofur:bold:size=10
#xftfont DejaVu Sans Mono:bold:size=10
xftfont Fira Mono:bold:size=10

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

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

default_color DCDCDC #Gainsboro
color0 98FB98 #PaleGreen
color1 778899 #LightSlateGray
color2 FFD700 #Gold
color3 B0E0E6 #PowderBlue
color4 F4A460 #SandyBrown
color5 DEB887 #BurlyWood
color6 00BFFF #DeepSkyBlue
color7 5F9EA0 #CadetBlue
color8 FFA500 #Orange
color9 FF4500 #OrangeRed
## ---------- 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 Section  ###
###  Miscellaneous Section  #####################
# Boolean value, if true, Conky will be forked to background when started.
background yes

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

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

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

# change GiB to G and MiB to M
short_units yes

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

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

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

#   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

update_interval 1
#################  End Miscellaneous Section  ###

TEXT
${image /home/minchionne/1_accuweather/80s_Sunset.png -p 66,0 -s 170x170}\
${font Kenyan Coffee:size=50}${color3}${alignc}${time %H:%M}${color}${font}
${font Shimes One PERSONAL USE:size=70}${color6}${alignc}${time %A}${font}
${font Kenyan Coffee:size=20}${color3}${alignc}${time %d %b %y}${color}${font}
${color3}Booted @${color} ${exec who -b | cut -c23-}${alignr}${color3}Up:${color} ${exec w | awk '/ up /{gsub(/,$/,"",$3);print $3}'}
${color1}${swapbar 0}${color}
${color5}${alignc}TEMPS
${goto 20}${color3}CPU${color} ${acpitemp}°\
${goto 93}${color3}M|B${color} ${execpi 5 sensors acpitz-virtual-0 | grep 'temp1' | awk -F'+' '{print $2}' | awk -F'.' '{print $1}'}°\
${goto 165}${color3}SDA${color} ${hddtemp /dev/sda}°\
${goto 240}${color3}GPU${color}${hwmon 1 temp 1}° 
${color1}${swapbar 0}${color}
${alignc}${color5}Intel Core i7-3630QM ${color3}Avg${color} ${if_match ${cpu cpu0} < 10}  ${cpu cpu0}\
${else}${if_match ${cpu cpu0} < 100} ${cpu cpu0}\
${else}${color}${cpu cpu0}${color}${endif}${endif}%
${color3}CPU   ${color0} %${color}          MHz${alignr 5}${color3}${goto 190}CPU   ${color0}%${color}         MHz
${goto 25}${color3}1${color0}   \
${if_match ${cpu cpu1} < 10}  ${cpu cpu1}\
${else}${if_match ${cpu cpu1} < 100} ${cpu cpu1}\
${else}${color9}${cpu cpu1}${color}${endif}${endif}\
${goto 100}${color}${freq 1}${goto 200}${color3}5${goto 222}${color0}${if_match ${cpu cpu5} < 10}  ${cpu cpu5}\
${else}${if_match ${cpu cpu5} < 100} ${cpu cpu5}\
${else}${color9}${cpu cpu5}${color}${endif}${endif}\
${alignr 2}${color}${freq 5}
${goto 25}${color3}2${color0}   \
${if_match ${cpu cpu2} < 10}  ${cpu cpu2}\
${else}${if_match ${cpu cpu2} < 100} ${cpu cpu2}\
${else}${color9}${cpu cpu2}${color}${endif}${endif}\
${goto 100}${color}${freq 2}${goto 200}${color3}6${goto 222}${color0}${if_match ${cpu cpu6} < 10}  ${cpu cpu6}\
${else}${if_match ${cpu cpu6} < 100} ${cpu cpu6}\
${else}${color9}${cpu cpu6}${color}${endif}${endif}\
${alignr 2}${color}${freq 6}
${goto 25}${color3}3${color0}   \
${if_match ${cpu cpu3} < 10}  ${cpu cpu3}\
${else}${if_match ${cpu cpu3} < 100} ${cpu cpu3}\
${else}${color9}${cpu cpu3}${color}${endif}${endif}\
${goto 100}${color}${freq 3}${goto 200}${color3}7${goto 222}${color0}${if_match ${cpu cpu7} < 10}  ${cpu cpu7}\
${else}${if_match ${cpu cpu7} < 100} ${cpu cpu7}\
${else}${color9}${cpu cpu7}${color}${endif}${endif}\
${alignr 2}${color}${freq 7}
${goto 25}${color3}4${color0}   \
${if_match ${cpu cpu4} < 10}  ${cpu cpu4}\
${else}${if_match ${cpu cpu4} < 100} ${cpu cpu4}\
${else}${color9}${cpu cpu4}${color}${endif}${endif}\
${goto 100}${color}${freq 4}${goto 200}${color0}8${goto 222}${color0}${if_match ${cpu cpu8} < 10}  ${cpu cpu8}\
${else}${if_match ${cpu cpu8} < 100} ${cpu cpu8}\
${else}${color9}${cpu cpu8}${color}${endif}${endif}\
${alignr 2}${color}${freq 8}
#${alignc}${color5}CPU Fan${color} ${platform f71882fg.2560 fan 1} ${color3}RPM
${color1}${swapbar 0}${color}
${alignc}${color3}Memory${color}  Using:${color3} ${mem} of ${memmax}
${color1}${swapbar 0}${color}
 S.T.${goto 118}Currently:${alignr}Temp\

${image $HOME/1_accuweather/forecast_2016/forecast_0.png -p 23,435 -s 250x252}\
${font Fira Mono:size=30}±${execi 300 sed -n '3p' ~/1_accuweather/curr_cond}\
${alignr}${execi 300 sed -n '2p' ~/1_accuweather/curr_cond}${font}


 UVI: ${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}/11\
 ${alignr}${execi 300 sed -n '8p' ~/1_accuweather/curr_cond}:Bar


Wind: ${execi 300 sed -n '5p' ~/1_accuweather/curr_cond} ${execi 300 sed -n '6p' ~/1_accuweather/curr_cond}\
 ${alignr}${execi 300 sed -n '7p' ~/1_accuweather/curr_cond} :Hum


 Cld: ${execi 300 sed -n '10p' ~/1_accuweather/curr_cond}\
 ${alignr}${execi 300 sed -n '13p' ~/1_accuweather/curr_cond} :Vis


${image ~/4_Moon/0.png -p 100,725}
${alignc}${swapbar 0,50} Current Moon & Forecast ${swapbar 0,50}
${color5}${execi 3600 echo `date --date="0 day" | awk '{print $1" "$3" "$2}'`}\
${alignr}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`} ${color}
${image $HOME/1_accuweather/forecast_2016/forecast_1.png -p 10,720 -s 45x45}\
${image $HOME/1_accuweather/forecast_2016/forecast_2.png -p 236,720 -s 45x45}\
${if_match "${execpi 300 sed -n '4p' /home/minchionne/1_accuweather/first_days}" == "Lo"}\
${else}${execpi 300 sed -n '3p' /home/minchionne/1_accuweather/first_days}${endif}\
${alignr 55}${execi 300 sed -n '8p' ~/1_accuweather/first_days}

${goto 60}${if_match "${execpi 300 sed -n '3p' /home/minchionne/1_accuweather/first_days}" == "Lo"}\
${execpi 300 sed -n '3p' /home/minchionne/1_accuweather/first_days}\
${alignr https://forums.bunsenlabs.org/edit.php?id=48496#} ${execi 300 sed -n '9p' ~/1_accuweather/first_days}
${color5}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$3" "$2}'`}\
${alignr}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$3" "$2}'`}${color}
${image $HOME/1_accuweather/forecast_2016/forecast_3.png -p 10,785 -s 45x45}\
${image $HOME/1_accuweather/forecast_2016/forecast_4.png -p 240,785 -s 45x45}\
${execi 300 sed -n '13p' ~/1_accuweather/first_days}\
${alignr 55}${execi 300 sed -n '18p' ~/1_accuweather/first_days}

${goto 60}${execi 300 sed -n '14p' ~/1_accuweather/first_days}\
${alignr}${execi 300 sed -n '24p' ~/1_accuweather/first_days}

image
2017-05-06-215351_350x862_scrot.th.png

Last edited by ector1935 (2017-05-06 19:55:53)

Offline

#1566 2017-05-06 20:36:24

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,640

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

^^ector1935
they work with multiple conkyrc4!
In this posted there is no call for the scripts.   tongue

Offline

#1567 2017-05-06 21:25:17

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

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

ector1935 wrote:

Put the scrip, but in my opinion here,there is still a mistake:

${else}${execpi 300 sed -n '3p' /home/minchionne/1_accuweather/first_days}${endif}\
${alignr 55}${execi 300 sed -n '8p' ~/1_accuweather/first_days}

You are only quoting a "small part" of what is needed:

${if_match "${execpi 300 sed -n '4p' /home/sector11/1_accuweather/first_days}" == "Lo"} \
${else}${execpi 300 sed -n '3p' /home/sector11/1_accuweather/first_days}${endif}\
${alignr 55}${execi 300 sed -n '8p' ~/1_accuweather/first_days}

${goto 60}${if_match "${execpi 300 sed -n '4p' /home/sector11/1_accuweather/first_days}" == "Lo"}\
${execpi 300 sed -n '3p' /home/sector11/1_accuweather/first_days}${endif}\
${alignr}${execi 300 sed -n '9p' ~/1_accuweather/first_days}

After a certain time of day accuweather stops "forscasting" the "high" temp for the day and "first_days" looks like this:

TONIGHT
36  <<... this is for the weather image
18  << -- during the day this is the HIGH position at night the LO
Lo << -- accuweather posts this at night.
Partly cloudy and mild

During the day that would look like:

TODAY
36 <<-- the image
23 <<-- today's High
18 <<-- today's Low
Partly cloudy and mild

So the conky code above is to change this output:

18
   image
           Lo

to look like this:

   image
           18

It's not an error, it's the way I created the conky.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1568 2017-05-07 08:19:44

ector1935
Member
Registered: 2017-05-03
Posts: 240

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

Goodmorning,
I finally resolved,I see the weather as on accuweather.com,thank you all.
Here is my .conkyrc

# pkill -xf "conky -c /media/5/conky/Temetka/Temetka_80s_s11.conky" &

# Inspired by: Temetka https://forums.bunsenlabs.org/viewtopic.php?pid=47838#p47838

## ---------- Begin Window Settings
#update_interval 1.0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager  #,sticky
own_window_colour 000000
own_window_class Conky
own_window_title Temetka's 80's Sunsent
## ARGB can be used for real transparencyown_window_hints
#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 80

minimum_size 300 0  ### width | height
maximum_width 300

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

alignment tl
## ---------- End Window Settings
## ---------- Font Settings
use_xft yes
#xftfont Liberation Mono:bold:size=11
#xftfont Fantasque Sans Mono:bold:size=12
#xftfont Monofur:bold:size=10
#xftfont DejaVu Sans Mono:bold:size=10
xftfont Fira Mono:bold:size=10

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

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

default_color DCDCDC #Gainsboro
color0 98FB98 #PaleGreen
color1 778899 #LightSlateGray
color2 FFD700 #Gold
color3 B0E0E6 #PowderBlue
color4 F4A460 #SandyBrown
color5 DEB887 #BurlyWood
color6 00BFFF #DeepSkyBlue
color7 5F9EA0 #CadetBlue
color8 FFA500 #Orange
color9 FF4500 #OrangeRed
## ---------- 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 Section  ###
###  Miscellaneous Section  #####################
# Boolean value, if true, Conky will be forked to background when started.
background yes

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

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

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

# change GiB to G and MiB to M
short_units yes

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

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

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

#   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

update_interval 1
#################  End Miscellaneous Section  ###

TEXT
${image /home/minchionne/1_accuweather/80s_Sunset.png -p 66,0 -s 170x170}\
${font Kenyan Coffee:size=50}${color3}${alignc}${time %H:%M}${color}${font}
${font Shimes One PERSONAL USE:size=70}${color6}${alignc}${time %A}${font}
${font Kenyan Coffee:size=20}${color3}${alignc}${time %d %b %y}${color}${font}
${color3}Booted @${color} ${exec who -b | cut -c23-}${alignr}${color3}Up:${color} ${exec w | awk '/ up /{gsub(/,$/,"",$3);print $3}'}
${color1}${swapbar 0}${color}
${color5}${alignc}TEMPS
${goto 20}${color3}CPU${color} ${acpitemp}°\
${goto 93}${color3}M|B${color} ${execpi 5 sensors acpitz-virtual-0 | grep 'temp1' | awk -F'+' '{print $2}' | awk -F'.' '{print $1}'}°\
${goto 165}${color3}SDA${color} ${hddtemp /dev/sda}°\
${goto 240}${color3}GPU${color}${hwmon 1 temp 1}° 
${color1}${swapbar 0}${color}
${alignc}${color5}Intel Core i7-3630QM ${color3}Avg${color} ${if_match ${cpu cpu0} < 10}  ${cpu cpu0}\
${else}${if_match ${cpu cpu0} < 100} ${cpu cpu0}\
${else}${color}${cpu cpu0}${color}${endif}${endif}%
${color3}CPU   ${color0} %${color}          MHz${alignr 5}${color3}${goto 190}CPU   ${color0}%${color}         MHz
${goto 25}${color3}1${color0}   \
${if_match ${cpu cpu1} < 10}  ${cpu cpu1}\
${else}${if_match ${cpu cpu1} < 100} ${cpu cpu1}\
${else}${color9}${cpu cpu1}${color}${endif}${endif}\
${goto 100}${color}${freq 1}${goto 200}${color3}5${goto 222}${color0}${if_match ${cpu cpu5} < 10}  ${cpu cpu5}\
${else}${if_match ${cpu cpu5} < 100} ${cpu cpu5}\
${else}${color9}${cpu cpu5}${color}${endif}${endif}\
${alignr 2}${color}${freq 5}
${goto 25}${color3}2${color0}   \
${if_match ${cpu cpu2} < 10}  ${cpu cpu2}\
${else}${if_match ${cpu cpu2} < 100} ${cpu cpu2}\
${else}${color9}${cpu cpu2}${color}${endif}${endif}\
${goto 100}${color}${freq 2}${goto 200}${color3}6${goto 222}${color0}${if_match ${cpu cpu6} < 10}  ${cpu cpu6}\
${else}${if_match ${cpu cpu6} < 100} ${cpu cpu6}\
${else}${color9}${cpu cpu6}${color}${endif}${endif}\
${alignr 2}${color}${freq 6}
${goto 25}${color3}3${color0}   \
${if_match ${cpu cpu3} < 10}  ${cpu cpu3}\
${else}${if_match ${cpu cpu3} < 100} ${cpu cpu3}\
${else}${color9}${cpu cpu3}${color}${endif}${endif}\
${goto 100}${color}${freq 3}${goto 200}${color3}7${goto 222}${color0}${if_match ${cpu cpu7} < 10}  ${cpu cpu7}\
${else}${if_match ${cpu cpu7} < 100} ${cpu cpu7}\
${else}${color9}${cpu cpu7}${color}${endif}${endif}\
${alignr 2}${color}${freq 7}
${goto 25}${color3}4${color0}   \
${if_match ${cpu cpu4} < 10}  ${cpu cpu4}\
${else}${if_match ${cpu cpu4} < 100} ${cpu cpu4}\
${else}${color9}${cpu cpu4}${color}${endif}${endif}\
${goto 100}${color}${freq 4}${goto 200}${color0}8${goto 222}${color0}${if_match ${cpu cpu8} < 10}  ${cpu cpu8}\
${else}${if_match ${cpu cpu8} < 100} ${cpu cpu8}\
${else}${color9}${cpu cpu8}${color}${endif}${endif}\
${alignr 2}${color}${freq 8}
#${alignc}${color5}CPU Fan${color} ${platform f71882fg.2560 fan 1} ${color3}RPM
${color1}${swapbar 0}${color}
${alignc}${color3}Memory${color}  Using:${color3} ${mem} of ${memmax}
${color1}${swapbar 0}${color}
 S.T.${goto 118}Currently:${alignr}Temp\

${image $HOME/1_accuweather/forecast_2016/forecast_0.png -p 23,435 -s 250x252}\
${font Fira Mono:size=30}±${execi 300 sed -n '3p' ~/1_accuweather/curr_cond}\
${alignr}${execi 300 sed -n '2p' ~/1_accuweather/curr_cond}${font}


 UVI: ${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}/11\
 ${alignr}${execi 300 sed -n '8p' ~/1_accuweather/curr_cond}:Bar


Wind: ${execi 300 sed -n '5p' ~/1_accuweather/curr_cond} ${execi 300 sed -n '6p' ~/1_accuweather/curr_cond}\
 ${alignr}${execi 300 sed -n '7p' ~/1_accuweather/curr_cond} :Hum


 Cld: ${execi 300 sed -n '10p' ~/1_accuweather/curr_cond}\
 ${alignr}${execi 300 sed -n '13p' ~/1_accuweather/curr_cond} :Vis


${image ~/4_Moon/0.png -p 100,725}
${alignc}${swapbar 0,50} Current Moon & Forecast ${swapbar 0,50}
${color5}${execi 3600 echo `date --date="0 day" | awk '{print $1" "$3" "$2}'`}\
${alignr}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`} ${color}
${image $HOME/1_accuweather/forecast_2016/forecast_1.png -p 10,720 -s 45x45}\
${image $HOME/1_accuweather/forecast_2016/forecast_2.png -p 236,720 -s 45x45}\
${if_match "${execpi 300 sed -n '4p' /home/minchionne/1_accuweather/first_days}" == "Lo"}\
${else}${execpi 300 sed -n '3p' /home/minchionne/1_accuweather/first_days}${endif}\
${alignr 55}${execi 300 sed -n '8p' ~/1_accuweather/first_days}

${goto 60}${if_match "${execpi 300 sed -n '3p' /home/minchionne/1_accuweather/first_days}" == "Lo"}\
${execpi 300 sed -n '4p' /home/minchionne/1_accuweather/first_days}\
${alignr https://forums.bunsenlabs.org/edit.php?id=48496#} ${execi 300 sed -n '9p' ~/1_accuweather/first_days}
${color5}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$3" "$2}'`}\
${alignr}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$3" "$2}'`}${color}
${image $HOME/1_accuweather/forecast_2016/forecast_3.png -p 10,785 -s 45x45}\
${image $HOME/1_accuweather/forecast_2016/forecast_4.png -p 240,785 -s 45x45}\
${execi 300 sed -n '13p' ~/1_accuweather/first_days}\
${alignr 55}${execi 300 sed -n '18p' ~/1_accuweather/first_days}

${goto 60}${execi 300 sed -n '14p' ~/1_accuweather/first_days}\
${alignr}${execi 300 sed -n '19p' ~/1_accuweather/first_days}

2017-05-07-101307_345x848_scrot.th.png
edit
meteo web,The conky just changed the S.T. At 15 degrees,as above accuweather
http://www.accuweather.com/it/it/gorlag … er/2277856

riedit

I changed the weather of the first max temperature, because in the day shift, it showed Lo, but not the max temperature.
from

${image $HOME/1_accuweather/forecast_2016/forecast_2.png -p 236,720 -s 45x45}\
${if_match "${execpi 300 sed -n '4p' /home/minchionne/1_accuweather/first_days}" == "Lo"}\

to

${image $HOME/1_accuweather/forecast_2016/forecast_2.png -p 236,720 -s 45x45}\
${if_match "${execpi 300 sed -n '1p' /home/minchionne/1_accuweather/first_days}" == "Lo"}\

I add that this conky also works with version1.10,do not know why,but it works!

Last edited by ector1935 (2017-05-08 08:35:38)

Offline

#1569 2017-05-07 13:49:20

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

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

Good stuff!  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1570 2017-05-07 18:06:54

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

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

ector1935 wrote:

I finally resolved,I see the weather as on accuweather.com,thank you all.

Good to know.


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

#1571 2017-05-08 08:44:21

ector1935
Member
Registered: 2017-05-03
Posts: 240

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

Good Morning,
Someone knows how to remove,the shadow that you see in the photo,use mate gkt3.
2017-05-07-182439_625x461_scrot.th.png
This is the conky in 1_accuweather,name .conkyrc_1_hourly_weatherfront
Unfortunately on the net I find a few discussions about this.

Offline

#1572 2017-05-08 10:42:54

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

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

I think you should change this line

own_window_type normal

to

own_window_type override

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

#1573 2017-05-08 14:36:32

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

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

it's a Compiz thing

somethiung along these lines for conky:

Find the name of an application

Some plugins ("Trailfocus: exclude", "Transset", etc.) require you to fill in the names (to be more precise the WM_CLASS) of the applications which it will affect. To find out the name to fill in, enter this into a terminal and click on the application's window:

xprop | grep WM_CLASS | cut -d \" -f 4

Window Types

The window_types key pair allows to limit the effect of compiz plugins to certain types of windows. Window types are as follows:

Dock, Toolbar, Menu, Utility, Splash, Normal, Dialog, ModalDialog, Fullscreen, Unknown


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1574 2017-05-08 15:03:53

ector1935
Member
Registered: 2017-05-03
Posts: 240

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

Thank you for the reply @Teo and @ Sector11
I have two distro, one with compiz and one without, the one without override does not work,I removed all the edges,and I put this in the conky.:

conky.config = {
-- Create own window instead of using desktop (required in nautilus)
	own_window = true,
    own_window_type = 'desktop',
	own_window_transparent = true,
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',

-- Use double buffering (reduces flicker, may not work for everyone)
	double_buffer = true,

-- fiddle with window
	use_spacer = 'right',
	use_xft = true,

-- Update interval in seconds
	update_interval = 3,

-- Minimum size of text area
	minimum_width = 1030, minimum_height = 300,
	maximum_width = 1030,

	override_utf8_locale = true,

-- Draw shades?
	draw_shades = true,

-- Text stuff
	draw_outline = true,-- amplifies text if yes
	draw_borders = false,
--font freesans -12
	font = 'Arial:size=9',
	uppercase = false,-- set to yes if you want all text to be in uppercase



-- Default colors and also border colors,grey90 == #e5e5e5
	default_color = '#2bef04',

	own_window_colour = 'yellow',

-- 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,
	text_buffer_size = 4096,

-- stuff after 'TEXT' will be formatted on screen
};

conky.text = [[
${font Arial:size=11}${color orange}HOURLY WEATHER ${font}${hr 2}${texeci 600 bash $HOME/1_accuweather/1_accuweather -h}

${execpi 600 sed -n '1,26p' $HOME/1_accuweather/altogether16}

]];

image conky Mate without compiz
http://i.imgur.com/VEEulCX.png


Tonight I try with mate + compiz, if it works as say sector11

Last edited by ector1935 (2017-05-08 15:20:44)

Offline

#1575 2017-05-08 15:22:18

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

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

ector1935 wrote:

image conky Mate without compiz
http://i.imgur.com/VEEulCX.png


Tonight I try with mate + compiz, if it works as say sector11

Interesting....

If that is a conky that you want to
1. open,
2. look at, and
3. close again when read.

Change

	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',

to

	own_window_hints = 'below,skip_taskbar,skip_pager',

Set a mrenus entry to start it and then you close it like a normal application with the [x] in the corner.
2017-05-08_121620_Scrot11.th.png
Now if it has border shadows - who cares?   cool


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1576 2017-05-09 08:01:11

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

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

ector1935 wrote:

Good Morning,
Someone knows how to remove,the shadow that you see in the photo,use mate gkt3.
https://cdn.scrot.moe/images/2017/05/08/2017-05-07-182439_625x461_scrot.th.png
This is the conky in 1_accuweather,name .conkyrc_1_hourly_weatherfront
Unfortunately on the net I find a few discussions about this.

Hello ector1935;
I'm also a conky and compiz user.
I fixed the shadow problem in the ccsm (compiz settings manager)
You have to go in windows decoration and shadowed windows and fill these settings (for me tint2 and conky):
1494316779.png
I hope it helps...

Offline

#1577 2017-05-09 12:59:39

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

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

ragamatrix wrote:

Hello ector1935;
I'm also a conky and compiz user.
I fixed the shadow problem in the ccsm (compiz settings manager)

THis post bookmarked.  I knew it could be don, but not being a compiz user....
Thank you ragamatrix.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1578 2017-05-09 16:31:46

ector1935
Member
Registered: 2017-05-03
Posts: 240

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

Thanks for posting your conky-compiz @ ragamtrix but I did not remember having blocked the conky update,so i still have version 1.9.
Sector11 conky already contains x compiz settings,works without having to modify ccsm.
Here's my conky-archlinux-mate-compiz working.
Thanks to all and congratulations for the work done!

2017-05-09-183009_1600x900_scrot.th.png

Last edited by ector1935 (2017-05-09 16:32:07)

Offline

#1579 2017-05-09 16:39:44

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

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

ector1935 wrote:

Sector11 conky already contains x compiz settings,works without having to modify ccsm.

That would be in conky v1.10?  I didn't know that.

Looks like you are using ARGB for transparency (the moon is washed out).  sad

I don't like images that are washed out with ARGB.  Should have thought of that link first.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1580 2017-05-09 16:47:43

ector1935
Member
Registered: 2017-05-03
Posts: 240

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

No,that is conky 1.9 the moon is washed because of the lighter background,i put pictures with conky version from terminal

2017-05-09-185220_1600x900_scrot.th.png

Last edited by ector1935 (2017-05-09 16:54:22)

Offline

Board footer

Powered by FluxBB