You are not logged in.
Too strong ahahhahahah great Yoda .....
@ Obi - Wan and Yoda .... I have a project to introduce or if it could be doable ....... a script that contains the lunar phases of the day today , and the weather forecast for accuweather with the layout of version 1b1
bye Luke
Nothing happens by chance
Offline
Teo, I incorporated some of the lines of your 1b1_accuweather_images script into my own, and am having a problem with it updating. If I kill my conky script and restart it, it runs the 1b1 script again, and everything is fine (temporarily), but it won't update the weather info unless I do. How can I make the 1b1 file run on a specified interval, say, 10 minutes or so, and the desktop conky update it that? All help is greatly appreciated.
Offline
Can you post your full script and conkyrc?
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
Sure. The 1b1 script is:
#!/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/us/coldwater-oh/45828/weather-forecast/2214865"
#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>°.*$//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>°.*$//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>°.*$//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)
and my conkyrc script is:
alignment top_right
update_interval 3
use_xft yes
border_inner_margin 10
xftfont Terminal :size=9
own_window_argb_visual yes
background no
no_buffers yes
border_inner_margin 15
double_buffer yes
imlib_cache_size 60
use_spacer yes
override_utf8_locale yes
draw_shades yes
draw_outline yes
draw_borders no
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
# stuff after 'TEXT' will be formatted on screen
TEXT
#${font :bold:size=10}${alignc}${color C0FFBA} ${time %R}
#${alignc}${font :size=9}${color C0FFBA}${alignc}${time %a} ${time %D}
#${alignc}${font :bold:size=10}${color light gray}UTC
#${alignc}${font :bold:size=10} ${utime %R}
#${font :size=9}${alignc}${time %a} ${utime %D}
#${font :bold:size=10}${color FFFF9D}$alignc SYSTEM
#$alignc------------------
${alignc}${color white}${font :bold:size=9} Distro:
${font :size=9}${alignc}${pre_exec cat /etc/issue.net}
${alignc}${color white}${font :bold:size=9}Kernel:
${font :size=9}${alignc}${kernel}
${alignc}${color green}${font :bold:size=10}UpTime
${alignc}${font :size=9}$uptime_short
${font :bold:size=10}${alignc}${color light blue}Processor
${alignc}${color light blue}${font :bold:size=10}CPU 1 ${font :size=9}(${cpu cpu1}%)${font :bold:size=9} CPU 2 ${font :size=9}(${cpu cpu2}%)
${alignc}${color magenta}${font :bold:size=10}Memory
${font :bold:size=9}MAIN ${font :size=9}$memperc% / ${font :bold:size=9}SWAP $swapperc%
${font :bold:size=10}${alignc}${color yellow}HDD
${alignc}${font :size=9}${fs_used} of ${fs_size} (${fs_used_perc}%)
${color FF83B3}${alignc}${font :bold:size=10}Network
${font :bold:size=9}Down ${font :size=9}${downspeed eth0} ${font :bold:size=9}UP ${font :size=9}${upspeed eth0}
${alignc}${font :bold:size=10}${color FFC9B5}IP Address
${alignc}${font :bold:size=9}Public: ${font :size=9}206.51.162.117
${font :bold:size=9}Private: ${font :size=9}${addr eth0}
${alignc}${font :bold:size=10}${color white}Graphics Card
${alignc}${font :bold:size=9}GPU Temp ${font :size=9}${nvidia temp} °C
#${color2}Fan Speed ${alignr}${color0}${execi 5 nvidia-settings -q [fan:0]/GPUCurrentFanSpeed -t} %
#${color2}GPU Clock ${alignr}${color0}${nvidia gpufreq} MHz
#${color2}Mem Clock ${alignr}${color0}${nvidia memfreq} MHz
${font :bold:size=9}Mem Used ${font :size=9}${execi 5 nvidia-settings -q [gpu:0]/UsedDedicatedGPUMemory -t} / ${exec nvidia-settings -q [gpu:0]/TotalDedicatedGPUMemory -t} MiB
#${image ./nvidia.png -p 0,90 -s 200x132}
${alignc}${font :size 9}${color FDADFF}Current Weather
${alignc}${color orange}${font :size=9}${execpi 600 sed -n '1p' $HOME/1b1_accuweather_images/messages}
${alignc}${color orange}${font :bold:size=9}TEMP ${alignc}${color white}${font :size=9}${execpi 600 sed -n '29p' $HOME/1b1_accuweather_images/curr_cond}°F
#(${execpi 600 sed -n '30p' $HOME/1b1_accuweather_images/curr_cond}°F)
${alignc}${color orange}${font :bold:size=9}WIND: ${alignc}${font :size=9}${color white}${execpi 600 sed -n '31p' $HOME/1b1_accuweather_images/curr_cond} ${execpi 600 sed -n '38p' $HOME/1b1_accuweather_images/curr_cond}
${alignc}${color orange}${font :bold:size=9}HUM: ${alignc}${color white}${font :size=9}${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
${alignc}${color orange}${font :bold:size=9}Baro Press: ${alignc}${color white}${font :size=9}${execpi 600 sed -n '33p' $HOME/1b1_accuweather_images/curr_cond}
${alignc}${color orange}${font :bold:size=9}CLOUD COVER: ${color white}${font :size=9}${execpi 600 sed -n '36p' $HOME/1b1_accuweather_images/curr_cond}
${font :size 10}${color FDADFF}Forecast
${alignc}${color orange}${font :bold:size=9}TODAY
${alignc}${color white}${font :size=9}${execpi 600 sed -n '26p' $HOME/1b1_accuweather_images/first_days}°F / ${execpi 600 sed -n '31p' $HOME/1b1_accuweather_images/first_days}°F
${alignc}Chance of Precip: ${execpi 600 sed -n '28p' $HOME/1b1_accuweather_images/first_days}
${alignc}${color orange}${font :bold:size=9}TOMORROW
${alignc}${color white}${font :size=9}${execpi 600 sed -n '8p' $HOME/1b1_accuweather_images/first_days}°F / ${execpi 600 sed -n '9p' $HOME/1b1_accuweather_images/first_days}°F
${alignc}${execpi 600 sed -n '7p' $HOME/1b1_accuweather_images/messages}
${alignc}${color orange}${font :bold:size=9}${execpi 600 sed -n '10p' $HOME/1b1_accuweather_images/first_days}
${alignc}${color white}${font :size=9}${execpi 600 sed -n '13p' $HOME/1b1_accuweather_images/first_days}°F / ${execpi 600 sed -n '14p' $HOME/1b1_accuweather_images/last_days}°F
${alignc}${execpi 600 sed -n '12p' $HOME/1b1_accuweather_images/messages}
Thanks
MOD EDIT: Please use
[code]
code goes between code tags
see menu above message box:
B U I S E m Color H URL Img Quote Code U-List N-List A-List Smilies
[/code]
Thank you.
Last edited by Sector11 (2015-11-25 19:44:16)
Offline
You are missing the most important line of all: Calling the scrip to get the information:
${execpi 600 sed -n '1p' $HOME/1b1_accuweather_images/1b1}\
Since you can not add it to a commented line put it as the first "active" line in your conky and add an " \ " at the end so you do not mess up your spacing.
# stuff after 'TEXT' will be formatted on screen
TEXT
#${font :bold:size=10}${alignc}${color C0FFBA} ${time %R}
#${alignc}${font :size=9}${color C0FFBA}${alignc}${time %a} ${time %D}
#${alignc}${font :bold:size=10}${color light gray}UTC
#${alignc}${font :bold:size=10} ${utime %R}
#${font :size=9}${alignc}${time %a} ${utime %D}
#${font :bold:size=10}${color FFFF9D}$alignc SYSTEM
#$alignc------------------
${execpi 600 sed -n '1p' $HOME/1b1_accuweather_images/1b1}\
${alignc}${color white}${font :bold:size=9} Distro:
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Sector 11, thanks for the quick reply. I put in the line just as you showed it, but to no avail. It still doesn't update unless I shut down the conkyrc file and start it again. Could it be that the files that the 1b1 script get are put in the wrong place, or the conkyrc script is looking in the wrong place? I've looked at the conkyrc script and every looks right. Thanks.
Offline
Sector 11, correction: It doesn't do it now even when I 'killall conky' from a terminal and restart it. I checked the properties of the 1b1 file, and it hasn't been accessed since 7:56 this morning, and I've been working on this problem most of the day.
Offline
the 1b1 script is designed to work in:
$HOME/1b1_accuweather_images/
That where you are getting the data info from ... so ..
what happens if you run it in a terminal?
$HOME/1b1_accuweather_images/1b1
or
/home/your_username/1b1_accuweather_images/1b1
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
OK, when I run 'bash 1b1' from a terminal, it connects and runs fine, and the widget updates, whereas if I just type '1b1' in a terminal, it says 'command not found'. So I guess what I need to do is to get the 'bash 1b1' command to run every 10 minutes. One thing I've noticed is that the weather conditions on my conky widget match the conditions I see online when I click on curr_cond_raw in the 1b1_accuweather_images folder, but if I go to accuweather.com, the conditions may vary, sometimes by a significant amount. Any and all help is greatly appreciated.
Offline
Most weather sites update their data once an hour. Lets say your city gets updated 13 minuted past the hour.
If you collect the data at 9 minutes past the hour, when you fire up in the morning you are getting information that is 56 minutes old an due to be updated in 4 minutes. If you collect every 30 minutes, at 39 minutes past you get new info and at 9 minutes past you get the same info. But at 13 minutes past the website is updated, there's your difference. It's normal.
ERROR! - MINE!
I gave you the wrong line to add:
Use this one:
${texeci 500 bash $HOME/1b1_accuweather_images/1b1}
Last edited by Sector11 (2015-11-26 02:33:56)
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Do you run any other conkys?
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
Hello Obi - Wan and Yoda I we're working on ]:D ]:D
Nothing happens by chance
Offline
Teo, I don't run any other conkys, since this one gives me all I need. Sector 11, I put that line in my conky and it immediately updated. I was not aware of the 1 hour info update interval. Thanks for the help guys.
Offline
Good to know you've solved your problem Froggg.
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
Yep, with help from you gurus, It's working well. Again, I thank you. Now I want to tinker with it. (Imagine that!) I want to add a line in the conkyrc to say 'Last updated' and give the time when the website weather was last updated. Any suggestions?
Offline
good idea , now we ask the teachers Yoda and Obi who say , sicuamente is information that could be taken from the site accuweather but I think the wise Obi or the authoritative Yoda already know
Bye Luke
Nothing happens by chance
Offline
^ That info, Last Fetched/Updated, isn't in the AccuW scripts, to the best of my knowledge.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Two layouts involving 1b1_accuweather_images and 4_Moon
These are a team effort: fvirgola80 & Sector11
Path to the scripts and data files will need to be changed.
1b1_int_y_moon.conky - OOPS! Images mis-aligned - code below fixed!
# pkill -xf "conky -c /media/5/Conky/1b1_accuweather_images/1b1_int_y_moon.conky" &
# Works perfect: # Works perfect: Fri 27 Nov 2015 14:24:31
### Begin Window Settings ##################################################
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_colour 000000
own_window_class Conky
own_window_title Teo's AccuW & Moon
### ARGB can be used for real transparency - requires composite manager
### Plays hell on conky with images.
# own_window_argb_visual yes # Options: yes or no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
# own_window_argb_value 100
minimum_size 330 00 # w|h
maximum_width 330 #75
gap_x 10 # l|r
gap_y 10 # u|d
alignment tr
#################################################### End Window Settings ###
### Font Settings ##########################################################
use_xft yes
#xftfont monofur:bold:size=10
xftfont fantasque sans mono:bold:size=10
xftalpha 1.0
override_utf8_locale yes
###################################################### End Font Settings ###
### Color Settings #########################################################
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000
default_color DCDCDC #Gainsboro
color0 A9A9A9 #DarkGray
color1 778899 #LightSlateGray
color2 F5F5DC #Beige
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 FFA07A #LightSalmon
##################################################### End Color Settings ###
### Borders Section ########################################################
# border margins
border_inner_margin 5
border_outer_margin 0
##################################################### End Borders Secton ###
### Miscellaneous Section ##################################################
background yes
use_spacer none
no_buffers yes
imlib_cache_size 0
double_buffer yes
############################################## End Miscellaneous Section ###
#${image /media/5/Conky/images/red+x.png
#TEXT
#${texeci 1200 bash /media/5/Conky/4_Moon/n_moon}\
#${texeci 1200 bash /media/5/Conky/1b1_accuweather_images/1b1}\
update_interval 1
TEXT
${texeci 1200 bash /media/5/Conky/4_Moon/n_moon}\
${texeci 1200 bash /media/5/Conky/1b1_accuweather_images/1b1}\
${color5}${time %a %e %b}${image /media/5/Conky/images/LightSlateGrey_1.png -p 78,1 -s 2x187}${color}\
${image /media/5/Conky/images/bk_20.png -p -5,-5 -s 345x375}\
${goto 90}${color5}Southern Hemisphere Moon ${membar 0}${color}
${color9}${execi 90 sed -n '29p' /media/5/Conky/1b1_accuweather_images/curr_cond}°${color}\
${goto 160}Phase ${execpi 600 sed -n '7p' /media/5/Conky/4_Moon/raw}
${image /media/5/Conky/1b1_accuweather_images/cc.png -p 2,28 -s 70x42}\
${image /media/5/Conky/4_Moon/0.png -p 100,23 -s 50x50}\
${goto 160}Moon is ${execpi 600 sed -n '1p' /media/5/Conky/4_Moon/raw} visible
${goto 160}Moon Age ${execpi 600 sed -n '5p' /media/5/Conky/4_Moon/raw} days
${color8}± ${execi 90 sed -n '30p' /media/5/Conky/1b1_accuweather_images/curr_cond}°${color}\
${goto 160}Moon Angle ${execpi 600 sed -n '6p' /media/5/Conky/4_Moon/raw}°
${execi 90 sed -n '33p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${goto 90}Moonrise ${execi 90 sed -n '41p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${goto 220}Moonset ${execi 90 sed -n '42p' /media/5/Conky/1b1_accuweather_images/curr_cond}
UVI ${execi 90 sed -n '34p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${goto 85}${color5}${membar 0}${color}
HUM ${execi 90 sed -n '32p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${goto 90}${color5}TODAY${goto 220}TONIGHT${color}
DP ${execi 90 sed -n '35p' /media/5/Conky/1b1_accuweather_images/curr_cond}°\
${image /media/5/Conky/1b1_accuweather_images/tod.png -p 120,130 -s 50x30}\
${image /media/5/Conky/1b1_accuweather_images/ton.png -p 250,130 -s 50x30}\
${goto 85}${color5}${membar 0,110}${goto 220}${membar 0}${color}
Wnd ${execi 90 sed -n '31p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${goto 90}${execi 90 sed -n '26p' /media/5/Conky/1b1_accuweather_images/first_days}°\
${goto 220}${execi 90 sed -n '31p' /media/5/Conky/1b1_accuweather_images/first_days}°
@ ${execi 90 sed -n '38p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${goto 90}±${execi 90 sed -n '27p' /media/5/Conky/1b1_accuweather_images/first_days}°\
${goto 220}±${execi 90 sed -n '32p' /media/5/Conky/1b1_accuweather_images/first_days}°
Vis ${execi 90 sed -n '37p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${goto 90}CoP ${execi 90 sed -n '28p' /media/5/Conky/1b1_accuweather_images/first_days}\
${goto 220}CoP ${execi 90 sed -n '33p' /media/5/Conky/1b1_accuweather_images/first_days}
Cld ${execi 90 sed -n '36p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${goto 90}Sunrise ${execi 90 sed -n '39p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${goto 220}Sunset ${execi 90 sed -n '40p' /media/5/Conky/1b1_accuweather_images/curr_cond}
${color5}${membar 0}${color}
${color5}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`}\
${goto 125}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$3" "$2}'`} \
${goto 245}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$3" "$2}'`}${color}
${color9}${execi 90 sed -n '8p' /media/5/Conky/1b1_accuweather_images/first_days}°\
${goto 125}${execi 90 sed -n '13p' /media/5/Conky/1b1_accuweather_images/first_days}°\
${goto 245}${execi 90 sed -n '18p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}
${image /media/5/Conky/1b1_accuweather_images/6.png -p 35,215 -s 50x30}\
${image /media/5/Conky/1b1_accuweather_images/11.png -p 153,215 -s 50x30}\
${image /media/5/Conky/1b1_accuweather_images/16.png -p 273,215 -s 50x30}\
${color7}${execi 90 sed -n '9p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}\
${goto 125}${execi 90 sed -n '14p' /media/5/Conky/1b1_accuweather_images/first_days}°\
${goto 245}${execi 90 sed -n '19p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}
${color5}${membar 0}${color}
${color5}${execi 3600 echo `date --date="4 day" | awk '{print $1" "$3" "$2}'`}\
${goto 125}${execi 3600 echo `date --date="5 day" | awk '{print $1" "$3" "$2}'`} \
${goto 245}${execi 3600 echo `date --date="6 day" | awk '{print $1" "$3" "$2}'`}${color}
${color9}${execi 90 sed -n '23p' /media/5/Conky/1b1_accuweather_images/first_days}°\
${goto 125}${execi 90 sed -n '4p' /media/5/Conky/1b1_accuweather_images/last_days}°\
${goto 245}${execi 90 sed -n '9p' /media/5/Conky/1b1_accuweather_images/last_days}°${color}
${image /media/5/Conky/1b1_accuweather_images/21.png -p 35,271 -s 50x30}\
${image /media/5/Conky/1b1_accuweather_images/last_2.png -p 153,271 -s 50x30}\
${image /media/5/Conky/1b1_accuweather_images/last_7.png -p 273,271 -s 50x30}\
${color7}${execi 90 sed -n '24p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}\
${goto 125}${execi 90 sed -n '5p' /media/5/Conky/1b1_accuweather_images/last_days}°\
${goto 245}${execi 90 sed -n '10p' /media/5/Conky/1b1_accuweather_images/last_days}°${color}
${color5}${membar 0}${color}
${color5}${execi 3600 echo `date --date="7 day" | awk '{print $1" "$3" "$2}'`}\
${goto 125}${execi 3600 echo `date --date="8 day" | awk '{print $1" "$3" "$2}'`} \
${goto 245}${execi 3600 echo `date --date="9 day" | awk '{print $1" "$3" "$2}'`}${color}
${color9}${execi 90 sed -n '14p' /media/5/Conky/1b1_accuweather_images/last_days}°\
${goto 125}${execi 90 sed -n '19p' /media/5/Conky/1b1_accuweather_images/last_days}°\
${goto 245}${execi 90 sed -n '24p' /media/5/Conky/1b1_accuweather_images/last_days}°${color}
${image /media/5/Conky/1b1_accuweather_images/last_12.png -p 35,326 -s 50x30}\
${image /media/5/Conky/1b1_accuweather_images/last_17.png -p 153,326 -s 50x30}\
${image /media/5/Conky/1b1_accuweather_images/last_22.png -p 273,326 -s 50x30}\
${color7}${execi 90 sed -n '15p' /media/5/Conky/1b1_accuweather_images/last_days}°${color}\
${goto 125}${execi 90 sed -n '20p' /media/5/Conky/1b1_accuweather_images/last_days}°\
${goto 245}${execi 90 sed -n '25p' /media/5/Conky/1b1_accuweather_images/last_days}°${color}
${color5}${membar 0}${color}
# pkill -xf "conky -c /media/5/Conky/1b1_accuweather_images/1b1_int_y_moon_2.conky" &
# Works perfect: Fri 27 Nov 2015 14:24:31
### Begin Window Settings ##################################################
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_colour 000000
own_window_class Conky
own_window_title Teo's AccuW & Moon 2
### ARGB can be used for real transparency - requires composite manager
### Plays hell on conky with images.
# own_window_argb_visual yes # Options: yes or no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
# own_window_argb_value 100
minimum_size 600 00 # w|h
maximum_width 600 #75
gap_x 10 # l|r
gap_y 10 # u|d
alignment tl
#################################################### End Window Settings ###
### Font Settings ##########################################################
use_xft yes
#xftfont monofur:bold:size=10
xftfont fantasque sans mono:bold:size=10
xftalpha 1.0
override_utf8_locale yes
###################################################### End Font Settings ###
### Color Settings #########################################################
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000
default_color DCDCDC #Gainsboro
color0 A9A9A9 #DarkGray
color1 778899 #LightSlateGray
color2 F5F5DC #Beige
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 FFA07A #LightSalmon
##################################################### End Color Settings ###
### Borders Section ########################################################
# border margins
border_inner_margin 5
border_outer_margin 0
##################################################### End Borders Secton ###
### Miscellaneous Section ##################################################
background yes
use_spacer none
no_buffers yes
imlib_cache_size 0
double_buffer yes
############################################## End Miscellaneous Section ###
#${image /media/5/Conky/images/red+x.png
#${texeci 1200 bash /media/5/Conky/4_Moon/moon}\
#${texeci 1200 bash /media/5/Conky/1b1_accuweather_images/1b1}\
update_interval 1
TEXT
${color5}${time %a %e %b}${color}\
${image /media/5/Conky/images/bk_20.png -p -5,-5 -s 610x205}\
${image /media/5/Conky/images/LightSlateGrey_1.png -p 83,1 -s 2x192}\
${image /media/5/Conky/images/LightSlateGrey_1.png -p 335,1 -s 2x192}\
${goto 90}${color5}Southern Hemisphere Moon ${membar 0,70}\
Nine Day Forecast ${membar 0}${color}
${color9}${execi 90 sed -n '29p' /media/5/Conky/1b1_accuweather_images/curr_cond}°${color}\
${goto 150}Phase ${execpi 600 sed -n '7p' /media/5/Conky/4_Moon/raw}\
${goto 345}${color5}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`}\
${goto 440}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$3" "$2}'`}\
${goto 530}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$3" "$2}'`}${color}
${image /media/5/Conky/1b1_accuweather_images/cc.png -p 2,25 -s 70x42}\
${image /media/5/Conky/4_Moon/0.png -p 95,23 -s 50x50}\
${goto 150}Moon is ${execpi 600 sed -n '1p' /media/5/Conky/4_Moon/raw} visible\
${goto 345}${color9}${execi 90 sed -n '8p' /media/5/Conky/1b1_accuweather_images/first_days}°\
${goto 440}${execi 90 sed -n '13p' /media/5/Conky/1b1_accuweather_images/first_days}°\
${goto 530}${execi 90 sed -n '18p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}
${goto 150}Moon Age ${execpi 600 sed -n '5p' /media/5/Conky/4_Moon/raw} days\
${image /media/5/Conky/1b1_accuweather_images/6.png -p 365,33 -s 50x30}\
${image /media/5/Conky/1b1_accuweather_images/11.png -p 460,33 -s 50x30}\
${image /media/5/Conky/1b1_accuweather_images/16.png -p 550,33 -s 50x30}\
${goto 345}${color7}${execi 90 sed -n '9p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}\
${goto 440}${execi 90 sed -n '14p' /media/5/Conky/1b1_accuweather_images/first_days}°\
${goto 530}${execi 90 sed -n '19p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}
${color8}± ${execi 90 sed -n '30p' /media/5/Conky/1b1_accuweather_images/curr_cond}°${color}\
${goto 150}Moon Angle ${execpi 600 sed -n '6p' /media/5/Conky/4_Moon/raw}°
${execi 90 sed -n '33p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${goto 90}Moonrise ${execi 90 sed -n '41p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${goto 220}Moonset ${execi 90 sed -n '42p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${goto 345}${color5}${execi 3600 echo `date --date="4 day" | awk '{print $1" "$3" "$2}'`}\
${goto 440}${execi 3600 echo `date --date="5 day" | awk '{print $1" "$3" "$2}'`}\
${goto 530}${execi 3600 echo `date --date="6 day" | awk '{print $1" "$3" "$2}'`}${color}
UVI ${execi 90 sed -n '34p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${goto 85}${color5}${membar 0,250}${color}\
${goto 345}${color9}${execi 90 sed -n '23p' /media/5/Conky/1b1_accuweather_images/first_days}°\
${goto 440}${execi 90 sed -n '4p' /media/5/Conky/1b1_accuweather_images/last_days}°\
${goto 530}${execi 90 sed -n '9p' /media/5/Conky/1b1_accuweather_images/last_days}°${color}
HUM ${execi 90 sed -n '32p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${goto 90}${color5}TODAY${goto 220}TONIGHT${color}\
${image /media/5/Conky/1b1_accuweather_images/21.png -p 365,89 -s 50x30}\
${image /media/5/Conky/1b1_accuweather_images/last_2.png -p 460,89 -s 50x30}\
${image /media/5/Conky/1b1_accuweather_images/last_7.png -p 550,89 -s 50x30}\
${goto 345}${color7}${execi 90 sed -n '24p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}\
${goto 440}${execi 90 sed -n '5p' /media/5/Conky/1b1_accuweather_images/last_days}°\
${goto 530}${execi 90 sed -n '10p' /media/5/Conky/1b1_accuweather_images/last_days}°${color}
DP ${execi 90 sed -n '35p' /media/5/Conky/1b1_accuweather_images/curr_cond}°\
${image /media/5/Conky/1b1_accuweather_images/tod.png -p 115,130 -s 50x30}\
${image /media/5/Conky/1b1_accuweather_images/ton.png -p 245,130 -s 50x30}\
${goto 85}${color5}${membar 0,115}${goto 220}${membar 0,115}${color}
Wnd ${execi 90 sed -n '31p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${goto 90}${execi 90 sed -n '26p' /media/5/Conky/1b1_accuweather_images/first_days}°\
${goto 220}${execi 90 sed -n '31p' /media/5/Conky/1b1_accuweather_images/first_days}°\
${goto 345}${color5}${execi 3600 echo `date --date="7 day" | awk '{print $1" "$3" "$2}'`}\
${goto 440}${execi 3600 echo `date --date="8 day" | awk '{print $1" "$3" "$2}'`}\
${goto 530}${execi 3600 echo `date --date="9 day" | awk '{print $1" "$3" "$2}'`}${color}
@ ${execi 90 sed -n '38p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${goto 90}±${execi 90 sed -n '27p' /media/5/Conky/1b1_accuweather_images/first_days}°\
${goto 220}±${execi 90 sed -n '32p' /media/5/Conky/1b1_accuweather_images/first_days}°\
${goto 345}${color9}${execi 90 sed -n '14p' /media/5/Conky/1b1_accuweather_images/last_days}°\
${goto 440}${execi 90 sed -n '19p' /media/5/Conky/1b1_accuweather_images/last_days}°\
${goto 530}${execi 90 sed -n '24p' /media/5/Conky/1b1_accuweather_images/last_days}°${color}
Vis ${execi 90 sed -n '37p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${goto 90}CoP ${execi 90 sed -n '28p' /media/5/Conky/1b1_accuweather_images/first_days}\
${goto 220}CoP ${execi 90 sed -n '33p' /media/5/Conky/1b1_accuweather_images/first_days}\
${image /media/5/Conky/1b1_accuweather_images/last_12.png -p 365,145 -s 50x30}\
${image /media/5/Conky/1b1_accuweather_images/last_17.png -p 460,145 -s 50x30}\
${image /media/5/Conky/1b1_accuweather_images/last_22.png -p 550,145 -s 50x30}\
${goto 345}${color7}${execi 90 sed -n '15p' /media/5/Conky/1b1_accuweather_images/last_days}°${color}\
${goto 440}${execi 90 sed -n '20p' /media/5/Conky/1b1_accuweather_images/last_days}°\
${goto 530}${execi 90 sed -n '25p' /media/5/Conky/1b1_accuweather_images/last_days}°${color}
Cld ${execi 90 sed -n '36p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${goto 90}Sunrise ${execi 90 sed -n '39p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${goto 220}Sunset ${execi 90 sed -n '40p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${alignr 50}Buenos Aires, Argentina
${color5}${membar 0}${color}
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
@Froggg
Let's save the update time info in the curr_cond file.
Just before this
kill -CONT $(pidof conky)
line in the 1b1 script, add this command
date >> $HOME/1b1_accuweather_images/curr_cond
This line will append the output of the date command at the end of the curr_cond file.
You can change the output format of date as you like ('man date' for more info).
Then all you have to do is change this line the conkyrc file
${font Arial:size=12}${color ffe595}WEATHER ${font}${hr 2}$color${texeci 500 bash $HOME/1b1_accuweather_images/1b1}
to something like
${font Arial:size=12}${color ffe595}WEATHER: ${execpi 600 sed -n '43p' $HOME/1b1_accuweather_images/curr_cond}${font}${hr 2}$color${texeci 500 bash $HOME/1b1_accuweather_images/1b1}
@S11
Very nice mate. I've added a link on the first page.
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
@S11
Very nice mate. I've added a link on the first page.
@TEO - combos are :cool: - more info. Hope others find them useful. :)
---
And I use the "date" command in my conkys to get the format I like, example:
${goto 345}${color5}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`}\
${goto 440}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$3" "$2}'`}\
${goto 530}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$3" "$2}'`}${color}
So on your suggestion a tweak:
27 Nov 15 | 16:36:58 ~
$ date
Fri Nov 27 16:37:09 ART 2015
27 Nov 15 | 16:37:09 ~
$ date | awk '{print $1" "$3" "$2" "$4}'
Fri 27 Nov 16:38:21
27 Nov 15 | 16:38:21 ~
$
I added:
date | awk '{print $1" "$3" "$2" "$4}' >> /media/5/Conky/1b1_accuweather_images/curr_cond
kill -CONT $(pidof conky)
line 42 & 43:
8:10 AM
Fri 27 Nov 16:32:43
I LIKE IT! It's always a good day when you learn something!
Question - since you are here ... I have searched your scripts high and low looking to see where you trim the fat (current conditions to 20 characters) and fail every time. How do I eliminate that to get the FULL text I don't care if it is: "Hot and humid today and clear skies tonight in time to watch ET cross the full moon on the way home!" ?
I have an idea I want to play with with the "font" scripts and or to make a 'text' only conky.
If the answer is different for each script would you be so kind as to post them all. :)
Mostly interested in 1b2_accuweather_conkyweather_font. I see the "forcast" file for wunderground but that is a textual forecast with a mix of info. Not quite what I want to play with - althought would make a good test base.
Any help appreciared.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline