You are not logged in.
thank sector, our post crossed, I have the solution in my last post ( #1461 )
Offline
Well, I tried ... main point: You got it!
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
And here the list of available language : https://www.wunderground.com/weather/ap … ge-support
Offline
SUPERB! That link should be in the OP! Just an opinion!
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
I don't have time to test the script, but does it work in French without changing the original one?
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
I test the two scripts, the original 2b and mine, 3b, and that work.
Offline
I don't have time to test the script, but does it work in French without changing the original one?
OH YEA! HUSTON WE HAVE A WINNER
The ONLY change: /lang=XX/ nothing else.
Left to right:
English
address="http://api.wunderground.com/api/################/conditions/forecast10day/astronomy/hourly/satellite/q/Argentina/Jorge_Newbery_Aeroparque.json"
Spanish
address="http://api.wunderground.com/api/################/conditions/forecast10day/astronomy/hourly/satellite/lang:SP/q/Argentina/Jorge_Newbery_Aeroparque.json"
French
address="http://api.wunderground.com/api/################/conditions/forecast10day/astronomy/hourly/satellite/lang:FR/q/Argentina/Jorge_Newbery_Aeroparque.json"
Greek
address="http://api.wunderground.com/api/################/conditions/forecast10day/astronomy/hourly/satellite/lang:GR/q/Argentina/Jorge_Newbery_Aeroparque.json"
German
address="http://api.wunderground.com/api/################/conditions/forecast10day/astronomy/hourly/satellite/lang:DL/q/Argentina/Jorge_Newbery_Aeroparque.json"
Italian
address="http://api.wunderground.com/api/################/conditions/forecast10day/astronomy/hourly/satellite/lang:IT/q/Argentina/Jorge_Newbery_Aeroparque.json"
EDIT: Ninja'd by chepioq I take too long!
@chepioq
If I may be so bold: Merci beaucoup from Teo, myself and all who use this script! KUDOS!
=====
What's in English is either hard coded or comes from the "date" command that should work properly on any system installed in another language.
Last edited by Sector11 (2017-01-15 17:26:11)
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
^ Getting better all the time.
The 4 conky companions I have for wunderground are working quite well in Spanish. You should have no problem in French
Teo's scripts got handed an Easter Egg and it too chepioq to find it
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Something's not right.
I get this when I run conkyrc1:
Also, on an unrelated note, conkyrc4 doesn't seem to work. Hmmm.....
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
YUP, I noticed the same thing late last night. Changing the language means that the script "output" is reporting the moon phases in the language chosen. The script itself has hard coded English moon phase terms to search for:
The last section, so not as universal as we thought - SOME TWEAKING REQUIRED BY THE USERS:
#Forecast feature: Moon_Sun
sed -n '/"moon_phase": {/,/"sun_phase": {/p' /media/5/Conky/2b_Wunderground_API/raw_data > /media/5/Conky/2b_Wunderground_API/Moon_Sun
sed -i 's/^[ \t]*"//g' /media/5/Conky/2b_Wunderground_API/Moon_Sun
sed -i '/moon_phase\|^[ \t]*},$\|sun_phase\|^[ \t]*}$/d' /media/5/Conky/2b_Wunderground_API/Moon_Sun
sed -i -e 's/":"/\n/g' -e 's/".*$//g' /media/5/Conky/2b_Wunderground_API/Moon_Sun
moon_phase=$(sed -n 6p /media/5/Conky/2b_Wunderground_API/Moon_Sun)
if [[ $moon_phase == "Waning Crescent" ]]; then
cp /media/5/Conky/2b_Wunderground_API/moonicons/$hemisphere"21.png" /media/5/Conky/2b_Wunderground_API/Moon_phase.png
elif [[ $moon_phase == "Waxing Crescent" ]]; then
cp /media/5/Conky/2b_Wunderground_API/moonicons/$hemisphere"04.png" /media/5/Conky/2b_Wunderground_API/Moon_phase.png
elif [[ $moon_phase == "Waning Gibbous" ]]; then
cp /media/5/Conky/2b_Wunderground_API/moonicons/$hemisphere"17.png" /media/5/Conky/2b_Wunderground_API/Moon_phase.png
elif [[ $moon_phase == "Waxing Gibbous" ]]; then
cp /media/5/Conky/2b_Wunderground_API/moonicons/$hemisphere"09.png" /media/5/Conky/2b_Wunderground_API/Moon_phase.png
elif [[ $moon_phase == "First Quarter" ]]; then
cp /media/5/Conky/2b_Wunderground_API/moonicons/$hemisphere"07.png" /media/5/Conky/2b_Wunderground_API/Moon_phase.png
elif [[ $moon_phase == "Last Quarter" ]]; then
cp /media/5/Conky/2b_Wunderground_API/moonicons/$hemisphere"19.png" /media/5/Conky/2b_Wunderground_API/Moon_phase.png
elif [[ $moon_phase =~ New.* ]]; then
cp /media/5/Conky/2b_Wunderground_API/moonicons/$hemisphere"24.png" /media/5/Conky/2b_Wunderground_API/Moon_phase.png
elif [[ $moon_phase =~ Full.* ]]; then
cp /media/5/Conky/2b_Wunderground_API/moonicons/$hemisphere"13.png" /media/5/Conky/2b_Wunderground_API/Moon_phase.png
fi
There is a "sun phase" ??
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Last week I went out walking 4 blocks to a "supermarcado" (grocery store) and 4 blocks home, I was wearing a 'modified' T-Shirt - no neck, no sleeves - to combat the heat.
That night my wife said "OMG, What did you do?" The back of my neck and shoulders were a deep red! UVI was a Very High 9 out of 11.
She applied a thick layer of cream. GD UVI so I made a very simple conky that I cannot help but see:
It changes colours according to the chart linked above.
0, 1 & 2 = Green
3, 4 & 5 = Yellow
6 & 7 = Orange
8, 9 & 10 = Red
11+ = Violet <<--- yup seen that a few times here. Normal summer days are 9 or 10 though.
Not something most northern hemisphere people are concerned with but here in the south!
Any Australians or New Zealanders here?
BTW: The bash script getting the data is in another conky, this just uses the existing data!
# pkill -xf "conky -c ~/1_accuweather/S11_accu_UVI.conky" &
# Created - Sat 14 Jan 2017
### 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 Accuweather UVI
minimum_size 64 64
maximum_width 64
## Because I always forget which is which :D
## l|r
gap_x 115
## u|d
gap_y 0
alignment tl
########################################## End Window Settings ###
### Font Settings ################################################
use_xft yes
xftfont Fira Mono:size=13
xftalpha 1.0
override_utf8_locale yes
############################################ End Font Settings ###
### Color Settings ###############################################
draw_shades yes
default_shade_color ffffff
default_color 000000 #Black
########################################### End Color Settings ###
### Borders Section ##############################################
draw_borders no ##<<<<<<<<<< ------------------------------------
stippled_borders 5
border_inner_margin 0
border_outer_margin 0
########################################### End Borders Secton ###
### Miscellaneous Section ########################################
background yes
use_spacer none
no_buffers yes
double_buffer yes
update_interval 1
TEXT
${if_match ${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}==0}${image ~/1_accuweather/UVI/Green_D_128.png -s 64x64}
${goto 23}0${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}${endif}\
${if_match ${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}==1}${image ~/1_accuweather/UVI/Green_D_128.png -s 64x64}
${goto 23}0${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}${endif}\
${if_match ${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}==2}${image ~/1_accuweather/UVI/Green_D_128.png -s 64x64}
${goto 23}0${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}${endif}\
${if_match ${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}==3}${image ~/1_accuweather/UVI/Yellow_D_128.png -s 64x64}
${goto 23}0${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}${endif}\
${if_match ${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}==4}${image ~/1_accuweather/UVI/Yellow_D_128.png -s 64x64}
${goto 23}0${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}${endif}\
${if_match ${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}==5}${image ~/1_accuweather/UVI/Yellow_D_128.png -s 64x64}
${goto 23}0${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}${endif}\
${if_match ${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}==6}${image ~/1_accuweather/UVI/Orange_D_128.png -s 64x64}
${goto 23}0${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}${endif}\
${if_match ${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}==7}${image ~/1_accuweather/UVI/Orange_D_128.png -s 64x64}
${goto 23}0${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}${endif}\
${if_match ${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}==8}${image ~/1_accuweather/UVI/Red_D_128.png -s 64x64}
${goto 23}0${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}${endif}\
${if_match ${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}==9}${image ~/1_accuweather/UVI/Red_D_128.png -s 64x64}
${goto 23}0${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}${endif}\
${if_match ${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}==10}${image ~/1_accuweather/UVI/Red_D_128.png -s 64x64}
${goto 23}${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}${endif}\
${if_match ${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}==11}${image ~/1_accuweather/UVI/Violet_D_128.png -s 64x64}
${goto 23}${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}${endif}
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
I'll be damned: .conkyrc4 from script #2b works now.
I swear it didn't work last night and today at noon.
@S11
Thats a great idea S11 and it can come handy in hot and semi hot climates.
I'm putting it on the front 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
There is a "sun phase" ??
From the source code on wunderground's page:
"sun_phase": {
"sunrise": {
"hour":"7",
"minute":"55"
},
"sunset": {
"hour":"17",
"minute":"33"
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
@chepioq
I want to put your script and conkyrc on a link from the front page.
Can you gather them on a single post?
Don't forget to include the link with the available languages.
Thanks.
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
Ok Theo.
I made a conky-weather , based on 2b_Wunderground_API, I modified the 2b script and rename it as 3b. I use Wundergroud API, with personal key, and I have learned that this API can be provided with several language.
List of language can be found here : https://www.wunderground.com/weather/ap … ge-support.
You must add your language in 3b script, like this :
#put your Weather Underground address API here
address="http://api.wunderground.com/api/you_api_key_here/conditions/forecast10day/astronomy/hourly/satellite/lang:FR/q/aubagne.json"
3b script :
#!/bin/bash
#put your hemisphere here: n for north, s for south
hemisphere=n
#put your Weather Underground address API here
address="http://api.wunderground.com/api/your_api_key_here/conditions/forecast10day/astronomy/hourly/satellite/lang:FR/q/aubagne.json"
wun_icon_to_png () {
if [[ $1 == day ]]; then
case $2 in
chanceflurries)
echo 21
;;
chancerain)
echo 14
;;
chancesleet)
echo 26
;;
chancesnow)
echo 20
;;
chancetstorms)
echo 17
;;
clear)
echo 1
;;
cloudy)
echo 7
;;
flurries)
echo 21
;;
fog)
echo 11
;;
hazy)
echo 5
;;
mostlycloudy)
echo 6
;;
mostlysunny)
echo 4
;;
partlycloudy)
echo 4
;;
partlysunny)
echo 6
;;
sleet)
echo 26
;;
rain)
echo 18
;;
snow)
echo 22
;;
sunny)
echo 1
;;
tstorms)
echo 15
;;
unknown)
echo 0
;;
esac
elif [[ $1 == night ]]; then
case $2 in
chanceflurries)
echo 43
;;
chancerain)
echo 39
;;
chancesleet)
echo 40
;;
chancesnow)
echo 43
;;
chancetstorms)
echo 41
;;
clear)
echo 33
;;
cloudy)
echo 38
;;
flurries)
echo 43
;;
fog)
echo 11
;;
hazy)
echo 37
;;
mostlycloudy)
echo 36
;;
mostlysunny)
echo 35
;;
partlycloudy)
echo 35
;;
partlysunny)
echo 36
;;
sleet)
echo 40
;;
rain)
echo 40
;;
snow)
echo 44
;;
sunny)
echo 33
;;
tstorms)
echo 41
;;
unknown)
echo 0
;;
esac
fi
}
#rm $HOME/test/*.png
curl $address -o $HOME/test/raw_data
sed -n '/, "current_observation": {/,/, "satellite": {/p' $HOME/test/raw_data > $HOME/test/Conditions
sed -i 's/^[ \t]*"//g' $HOME/test/Conditions
sed -i '/current_observation\|image":\|logo_\|title":\|link":\|^[ \t]*},$\|^[ \t]*}$\|temperature_string\|forecast_url\|history_url\|ob_url\|satellite":/d' $HOME/test/Conditions
sed -i -e 's/":"/\n/g' -e 's/",\|": {$//g' -e 's/"precip_1hr_string/\nprecip_1hr_string/g' -e 's/":/\n/g' -e 's/,$//g' $HOME/test/Conditions
sed -i -e 's/^http.*\/c\/k\///g' -e '/gif/s/_.*$//g' $HOME/test/Conditions
day_or_night=$(sed -n 137p $HOME/test/Conditions)
if [[ $day_or_night == nt ]]; then
cp $HOME/test/Forecast_Images/$(wun_icon_to_png night $(sed -n 135p $HOME/test/Conditions)).png $HOME/test/Now.png
else
cp $HOME/test/Forecast_Images/$(wun_icon_to_png day $(sed -n 135p $HOME/test/Conditions)).png $HOME/test/Now.png
fi
#Satellite feature, commented out by default, uncomment if you wish so
sed -n '/, "satellite": {/,/"forecast":{/p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/raw_data > $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Satellite
sed -i 's/^[ \t]*"//g' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Satellite
sed -i -e '/image/!d' -e 's/^.*": "//g' -e 's/".*$//g' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Satellite
for (( i=1; i<=3; i++ ))
do
wget -O $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/sat_pic$i.png $(sed -n ${i}p $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Satellite)
done
#Forecast feature: Forecast
sed -n '/"forecast":{/,/"simpleforecast": {/p' $HOME/test/raw_data > $HOME/test/Forecast
sed -i -e '/"period":\|icon_url/d' $HOME/test/Forecast
sed -i 's/^[ \t]*"//g' $HOME/test/Forecast
sed -i -e '/period\|icon\|title\|fcttext/!d' -e 's/":"/\n/g' -e 's/":/\n/g' -e 's/",//g' -e 's/,$//g' -e 's/nt_//g' $HOME/test/Forecast
#Forecast feature: Moon_Sun
sed -n '/"moon_phase": {/,/"sun_phase": {/p' $HOME/test/raw_data > $HOME/test/Moon_Sun
sed -i 's/^[ \t]*"//g' $HOME/test/Moon_Sun
sed -i '/moon_phase\|^[ \t]*},$\|sun_phase\|^[ \t]*}$/d' $HOME/test/Moon_Sun
sed -i -e 's/":"/\n/g' -e 's/".*$//g' $HOME/test/Moon_Sun
#Forecast feature: Simple Forecast
sed -n '/"simpleforecast": {/,/"hourly_forecast": \[/p' $HOME/test/raw_data > $HOME/test/Simple_Forecast
sed -i 's/^[ \t]*"//g' $HOME/test/Simple_Forecast
sed -i '/hourly_forecast\|simpleforecast\|forecastday\|{"date"\|period\|icon_url\|^[ \t]*},$\|^[ \t]*}$\|^[ \t]*,$\|^[ \t]*\]$/d' $HOME/test/Simple_Forecast
sed -i -e 's/":"/\n/g' -e 's/":/\n/g' -e 's/",$//g' -e 's/,$//g' -e 's/"$//g' $HOME/test//Simple_Forecast
sed -i '/^[ \t]*{/d' $HOME/test/Simple_Forecast
sed -i -e 's/^[ \t]*"//g' -e 's/^[ \t]*//g' $HOME/test/Simple_Forecast
for (( i=2; i<=146; i+=16 ))
do
cp $HOME/test/Forecast_Images/$(wun_icon_to_png day $(sed -n ${i}p $HOME/test/Forecast)).png $HOME/test/d$(( 1+(i-2)/16 )).png
j=$(( i+8 ))
cp $HOME/test/Forecast_Images/$(wun_icon_to_png night $(sed -n ${j}p $HOME/test/Forecast)).png $HOME/test//n$(( 1+(i-2)/16 )).png
done
sed -n '/"hourly_forecast": \[/,/"moon_phase": {/p' $HOME/test/raw_data > $HOME/test/Hourly
sed -i -e 's/^[ \t]*"//g' -e 's/^[ \t]*//g' $HOME/test/Hourly
sed -i '/hourly_forecast\|FCTTIME\|^{$\|^},$\|^}$\|^,$\|^]$\|moon_phase/d' $HOME/test/Hourly
sed -i -e 's/": /\n/g' -e 's/","/\n/g' -e 's/", "/\n/g' $HOME/test/Hourly
sed -i -e 's/^""//g' -e 's/^"//g' -e 's/^{"//g' -e 's/"},$//g' -e 's/",$//g' $HOME/test/Hourly
sed -i -e 's/^},//g' -e 's/"}$//g' -e 's/^,//g' $HOME/test/Hourly
sed -i -e 's/^icon_url.*\/c\/k\///g' -e '/gif/s/_.*$//g' $HOME/test/Hourly
sed -i -e '/min_unpadded\|UTCDATE/,+1d' $HOME/test/Hourly
for (( i=64; i<=4212; i+=117 ))
do
j=$(( i+1 ))
day_or_night=$(sed -n ${j}p $HOME/test/Hourly)
if [[ $day_or_night == nt ]]; then
cp $HOME/test/Forecast_Images/$(wun_icon_to_png night $(sed -n ${i}p $HOME/test/Hourly)).png $HOME/test/h$(( 1+(i-64)/117 )).png
else
cp $HOME/test/Forecast_Images/$(wun_icon_to_png day $(sed -n ${i}p $HOME/test/Hourly)).png $HOME/test/h$(( 1+(i-64)/117 )).png
fi
done
And the conky:
conky.config = {
background = false,
use_xft = true,
font = 'DejaVuSansMono:size=8',
update_interval = 1800.0,
total_run_times = 0,
own_window = true,
own_window_type = 'dock',
own_window_transparent = true,
own_window_argb_visual = true,
own_window_hints = 'undecorated,skip_taskbar,skip_pager,below',
double_buffer = true,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = true,
stippled_borders = 8,
border_inner_margin = 4,
alignment = 'top_left',
minimum_width = 190,
minimum_height = 283,
gap_x = 130,
gap_y = 85,
no_buffers = false,
uppercase = false,
cpu_avg_samples = 2,
net_avg_samples = 2,
override_utf8_locale = true,
use_spacer = right,
text_buffer_size = 6144,
imlib_cache_size = 8192,
default_outline_color = '000000',
color1 = 'F5B800',
color2 = '00f5ff',
}
conky.text = [[
${exec bash $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/3b}\
${goto 50}${font DejaVuSansMono:bold:size=8}${color2}Actuel${color1}${font} ${font DejaVuSansMono:bold:size=8}${goto 140}${color1}${exec sed -n '67p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions}°${font}
${color1}${goto 50}${exec sed -n '63p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions}
${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Now.png -p -1,0 -s 53x32}
${goto 50}${font DejaVuSansMono:bold:size=8}${color2}Aujourd'hui${font}${color1} ${color2}${goto 140}${exec sed -n '44p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°/${color1} ${exec sed -n '39p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°
${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d1.png -p -1,35 -s 53x32} ${goto 50}${exec sed -n '46p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}
${goto 50}${font DejaVuSansMono:bold:size=8}${color2}${execi 3600 date --date="1 day" | awk '{print $1""$3}' | tr '[a-z]' '[A-Z]'}${goto 140}${exec sed -n '150p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°/${color1} ${exec sed -n '145p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°${font}${color1}
${goto 50}${exec sed -n '152p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}
${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d2.png -p -1,72 -s 53x32}
${color2}${goto 50}${execi 3600 date -d +2days | awk '{print $1""$3 }'| tr '[a-z]' '[A-Z]'}${goto 140}${exec sed -n '256p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°/${color1} ${exec sed -n '251p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°${font}${color1}
${goto 50}${exec sed -n '258p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}
${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d3.png -p -1,112 -s 53x32}
${color2}${goto 50}${execi 3600 date -d +3days | awk '{print $1""$3 }'| tr '[a-z]' '[A-Z]'}${goto 140}${exec sed -n '362p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°/${color1} ${exec sed -n '357p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°${font}${color1}
${goto 50}${exec sed -n '364p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}
${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d4.png -p -1,152 -s 53x32}
${goto 50}${color2}${execi 3600 date -d +4days | awk '{print $1""$3 }'| tr '[a-z]' '[A-Z]'}${goto 140}${exec sed -n '468p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°/${color1} ${exec sed -n '463p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°${font}${color1}
${goto 50}${exec sed -n '470p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}
${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d5.png -p -1,192 -s 53x32}
${goto 50}${color2}${execi 3600 date -d +5days | awk '{print $1""$3 }'| tr '[a-z]' '[A-Z]'}${goto 140}${exec sed -n '574p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°/${color1} ${exec sed -n '569p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°${font}${color1}
${goto 50}${exec sed -n '576p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}
${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d6.png -p -1,232 -s 53x32}
${color2}${goto 50}${execi 3600 date -d +6days | awk '{print $1""$3 }'| tr '[a-z]' '[A-Z]'}${goto 140}${exec sed -n '680p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°/${color1} ${exec sed -n '675p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°${font}${color1}
${goto 50}${exec sed -n '682p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}
${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d7.png -p -1,272 -s 53x32}
${color2}${goto 50}${execi 3600 date -d +7days | awk '{print $1""$3 }'| tr '[a-z]' '[A-Z]'}${goto 140}${exec sed -n '786p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°/${color1} ${exec sed -n '781p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°${font}${color1}
${goto 50}${exec sed -n '788p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}
${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d8.png -p -1,312 -s 53x32}
${alignc}${color2}${font DejaVuSansMono:bold:size=10}${exec sed -n '3p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions}${font}
${color2}Humidité${alignr}${color1}${exec sed -n '69p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions}
${color2}Pression${alignr}${color1}${exec sed -n '85p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions} hPa
${color2}Vent${alignr}${color1}${exec sed -n '81p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions} km/h${alignr}
${color2}Direction ${alignr}${color1}${exec sed -n '73p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions}
]]
Edit
Additional conky, to complete my conky .
conky-texte:
conky.config = {
background = false,
use_xft = true,
font = 'DejaVuSansMono:size=8',
update_interval = 1800.0,
total_run_times = 0,
own_window = true,
own_window_type = 'dock',
own_window_transparent = true,
own_window_argb_visual = true,
own_window_hints = 'undecorated,skip_taskbar,skip_pager,below',
double_buffer = true,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = true,
stippled_borders = 8,
border_inner_margin = 4,
alignment = 'top_left',
minimum_width = 190,
minimum_height = 283,
gap_x = 120,
gap_y = 505,
no_buffers = false,
uppercase = false,
cpu_avg_samples = 2,
net_avg_samples = 2,
override_utf8_locale = true,
use_spacer = right,
text_buffer_size = 6144,
imlib_cache_size = 8192,
default_outline_color = '000000',
color1 = 'F5B800',
color2 = '00f5ff',
}
conky.text = [[
${color2}${alignc}${font DejaVuSansMono:bold:size=10}Tendance${font}
${color1}${goto 13}${exec sed -n '8p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Forecast | tr -s '.' '\n' | sed 's/$/./g'}
${color2}${alignc}${font DejaVuSansMono:bold:size=10}Cette nuit${font}
${color1}${goto 13}${exec sed -n '16p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Forecast | tr -s '.' '\n' | sed 's/$/./g'}
]]
I place this conky under my conky-meteo, because if I integrate the code in my conky-meteo it changes the width of my conky, depending on the length of the sentences.
Last edited by chepioq (2017-03-02 05:31:38)
Offline
Brilliant my friend! Thanks a lot!
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
You must add your language in 3b script, like this :
I thought that was long known.
https://forums.bunsenlabs.org/viewtopic … 5784#p5784
Offline
Touche!
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
Offline