You are not logged in.
Good morning
Théo i convert my wunderground conkyrc in the new syntax & i have problem with it .
At opening session i have this :
when i launch it in terminal there are no errors , i must reconnect me to have the conky completly.
When i changed for the old version 1.90 i don't have any problem.
Any idea .
@+
Last edited by loutch (2016-09-11 09:09:37)
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
@loutch,
please conkyrc
or, is the mistake after I have also searched for hours. In the Address
.../de/de/...
was wrong.
correct
.../en/de/...
So with you
.../en/fr/...
?
Last edited by unklar (2016-09-11 12:18:12)
Offline
conky V1.10
Then everything was simple... (see above) 8o
The images have a bit upwards, where I have to adjust?
And, with the UV index but was also something
PS: ok, I found it https://forums.bunsenlabs.org/viewtopic … 757#p36757
here writes a user:
@Teo,
you're a great guy! O:)
A true statement.
Last edited by unklar (2016-09-11 12:44:36)
Offline
Good morning
Théo i convert my wunderground conkyrc in the new syntax & i have problem with it .
At opening session i have this :
http://pix.tdct.org/upload/thumb/1473584349.png
when i launch it in terminal there are no errors , i must reconnect me to have the conky completly.
When i changed for the old version 1.90 i don't have any problem.
Any idea .
@+
Do you have the kill (STOP) and kill (CONT) commands in your script?
This is a problem of conky not waiting for the script to populate the text files before populating the screen.
conky V1.10
https://cdn.scrot.moe/images/2016/09/11/accu.th.png
Then everything was simple... (see above) 8o
https://cdn.scrot.moe/images/2016/09/11/accu2.th.jpg
The images have a bit upwards, where I have to adjust?
And, with the UV index but was also something
PS: ok, I found it https://forums.bunsenlabs.org/viewtopic … 757#p36757Here the pictures okhttps://cdn.scrot.moe/images/2016/09/11/accu3.th.jpg
here writes a user:
@Teo,
you're a great guy!O:)
A true statement.
Yeah, you do have to do a few readjustments to the images' position, I think it depends on one's screen resolution, dpi, or something else, I don't really know.
Thanks for your support mein Freund.
Everybody, today was the last day of testing/experimentation. We had a whole weekend to monitor the script; unless something drastic occurs, tomorrow I'll post 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
Hello
@ unklar
conkyrc
conky.config = {
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_hints = 'skip_taskbar,skip_pager,undecorated,below',
own_window_colour = '#000000',
minimum_width = 450, minimum_height = 325,
maximum_width = 455,
gap_x = 60,--# l|r
gap_y = 20,--# u|d
alignment = 'top_left',
use_xft = true,
font = 'ubuntu:size=9',
xftalpha = 1.0,
override_utf8_locale = true,
draw_shades = false,
default_shade_color = '#000000',
draw_outline = false,
default_outline_color = '#000000',
default_color = '#ffffff',--# MintCream
color1 = '#778899',--# LightSlateGray
color2 = '#FFA07A',--# LightSalmon
color3 = '#87CEFA',--# LightSkyBlue
color4 = '#48D1CC',--# MediumTurquoise
color5 = '#FFDEAD',--# NavajoWhite
color6 = '#00BFFF',--# DeepSkyBlue
color7 = '#B0E0E6',--# PowderBlue
color8 = '#FFD700',--# Gold
color9 = '#CD5C5C',--# IndianRed
draw_borders = false,
stippled_borders = 5,
border_inner_margin = 5,
border_outer_margin = 0,
border_width = 2,
draw_graph_borders = false,
background = true,
use_spacer = 'none',
no_buffers = true,
double_buffer = true,
update_interval = 1,
lua_load = '~/.conky/lua/image.lua',
};
conky.text = [[
${execi 1800 bash $HOME/2b_Wunderground_API/2b}
${voffset -16}${font LED_mono :style=Medium:size=55}${color 434343}${goto 27}${time %H}${goto 138}${time %M}${font LED_mono :size=20:style=Medium}${color 808080}${goto 235}${time %S}$font
${voffset 30}${color white}${alignc 96}Dernière mise à jour : ${execi 600 sed -n '53p' $HOME/2b_Wunderground_API/Conditions-fr | cut -c18-22}
${voffset -60}${color white}${font GE Inspira:size=9:style=Bold}${alignc -108}${exec date "+%A %d %B %Y"}
${voffset 20}${color white}${font Ubuntu:style=Bold:size=9}${goto 330}Vent : ${execi 600 sed -n '73p' $HOME/2b_Wunderground_API/Conditions}
${color white}${font Ubuntu:style=Bold:size=9}${goto 330}Vitesse : ${execi 600 sed -n '81p' $HOME/2b_Wunderground_API/Conditions} km/h
${goto 330}Pluie : ${execi 600 sed -n '57p' $HOME/2b_Wunderground_API/Simple_Forecast} mm
${voffset -25}${goto 15}${font Ubuntu:size=10}${color white}Sarreguemines : ${execi 600 sed -n '63p' $HOME/2b_Wunderground_API/Conditions-fr} / ${execi 600 sed -n '67p' $HOME/2b_Wunderground_API/Conditions} °C $font
${voffset -2}
${goto 20}${color9}${execi 600 sed -n '145p' $HOME/2b_Wunderground_API/Simple_Forecast}°${color}/${color7}${execi 600 sed -n '150p' $HOME/2b_Wunderground_API/Simple_Forecast}°${color}\
${goto 95}${color9}${execi 600 sed -n '251p' $HOME/2b_Wunderground_API/Simple_Forecast}°${color}/${color7}${execi 600 sed -n '256p' $HOME/2b_Wunderground_API/Simple_Forecast}°${color}\
${goto 170}${color9}${execi 600 sed -n '357p' $HOME/2b_Wunderground_API/Simple_Forecast}°${color}/${color7}${execi 600 sed -n '362p' $HOME/2b_Wunderground_API/Simple_Forecast}°${color}\
${goto 245}${color9}${execi 600 sed -n '463p' $HOME/2b_Wunderground_API/Simple_Forecast}°${color}/${color7}${execi 600 sed -n '468p' $HOME/2b_Wunderground_API/Simple_Forecast}°${color}\
${goto 320}${color9}${execi 600 sed -n '569p' $HOME/2b_Wunderground_API/Simple_Forecast}°${color}/${color7}${execi 600 sed -n '574p' $HOME/2b_Wunderground_API/Simple_Forecast}°${color}\
${goto 400}${color9}${execi 600 sed -n '675p' $HOME/2b_Wunderground_API/Simple_Forecast}°${color}/${color7}${execi 600 sed -n '680p' $HOME/2b_Wunderground_API/Simple_Forecast}°${color} $color
${voffset 4}
${goto 20}${execi 90 sed -n '96p' $HOME/2b_Wunderground_API/Simple_Forecast}km/h\
${goto 95}${execi 90 sed -n '202p' $HOME/2b_Wunderground_API/Simple_Forecast}km/h\
${goto 168}${execi 90 sed -n '308p' $HOME/2b_Wunderground_API/Simple_Forecast}km/h\
${goto 248}${execi 90 sed -n '414p' $HOME/2b_Wunderground_API/Simple_Forecast}km/h\
${goto 324}${execi 90 sed -n '520p' $HOME/2b_Wunderground_API/Simple_Forecast}km/h\
${goto 398}${execi 90 sed -n '626p' $HOME/2b_Wunderground_API/Simple_Forecast}km/h
${voffset -27}
${goto 20}${execi 90 sed -n '98p' $HOME/2b_Wunderground_API/Simple_Forecast}\
${goto 95}${execi 90 sed -n '204p' $HOME/2b_Wunderground_API/Simple_Forecast}\
${goto 168}${execi 90 sed -n '310p' $HOME/2b_Wunderground_API/Simple_Forecast}\
${goto 248}${execi 90 sed -n '416p' $HOME/2b_Wunderground_API/Simple_Forecast}\
${goto 324}${execi 90 sed -n '522p' $HOME/2b_Wunderground_API/Simple_Forecast}\
${goto 398}${execi 90 sed -n '628p' $HOME/2b_Wunderground_API/Simple_Forecast}
${voffset -27}
${goto 20}${execi 3600 echo `date --date="1 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="1 day" | awk '{print $2}'`}\
${goto 95}${execi 3600 echo `date --date="2 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="2 day" | awk '{print $2}'`}\
${goto 168}${execi 3600 echo `date --date="3 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="3 day" | awk '{print $2}'`}\
${goto 248}${execi 3600 echo `date --date="4 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="4 day" | awk '{print $2}'`}\
${goto 324}${execi 3600 echo `date --date="5 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="5 day" | awk '{print $2}'`}\
${goto 398}${execi 3600 echo `date --date="6 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="6 day" | awk '{print $2}'`}
${color FFFFFF}${goto 10}${voffset 8}${cpu cpu0}%\
${goto 55}${exec expr `cat /sys/class/hwmon/hwmon2/temp1_input` / 1000} °\
${goto 105}${execi 120 hddtemp -n /dev/sda} °\
${goto 155}${hwmon 0 temp 1} °\
${goto 200}${memperc}%\
${goto 255}${fs_used_perc /}%\
${goto 305}${fs_used_perc /home}%\
${goto 350}${downspeed wlp2s0}\
${goto 400}${upspeed wlp2s0}
${color 6495ee}${goto 10}CPU\
${goto 50}Temp\
${goto 100}Disque\
${goto 150}Carte\
${goto 200}Ram\
${goto 250}Racine\
${goto 300}Home\
${goto 350}Entrant\
${goto 400}Sortant $color
${goto 250}Signal : ${wireless_link_qual wlp2s0} %${goto 350}${totaldown wlp2s0}${goto 400}${totalup wlp2s0}
${color FFFFFF}${font caviar dreams:size=8}Uptime: ${uptime_short}
${color FFFFFF}${font caviar dreams:size=8}Processes: ${processes}
${color FFFFFF}${font caviar dreams:size=8}Running: ${running_processes}
${voffset -44}
${color 6495ee}${font caviar dreams:size=8}${alignr 20}${nodename}
${color 6495ee}${font caviar dreams:size=8}${alignr 20}${exec cat /etc/issue.net} $machine
${color 6495ee}${font caviar dreams:size=8}${alignr 20}Kernel: ${kernel}
${voffset -935}
${lua fDrawImage $HOME/2b_Wunderground_API/fond/base.png 0 40 450 110}
${lua fDrawImage $HOME/2b_Wunderground_API/fond/flip_bg.png 22 3 100 100}
${lua fDrawImage $HOME/2b_Wunderground_API/fond/flip_bg.png 132 3 100 100}
${lua fDrawImage $HOME/2b_Wunderground_API/fond/base.png 0 155 450 85}
${lua fDrawImage $HOME/2b_Wunderground_API/fond/base.png 0 250 450 85}
${lua fDrawImage $HOME/2b_Wunderground_API/Now.png 205 75 100 70}
${lua fDrawImage $HOME/2b_Wunderground_API/d2.png 0 168 65 45}
${lua fDrawImage $HOME/2b_Wunderground_API/d3.png 75 168 65 45}
${lua fDrawImage $HOME/2b_Wunderground_API/d4.png 150 168 65 45}
${lua fDrawImage $HOME/2b_Wunderground_API/d5.png 225 168 65 45}
${lua fDrawImage $HOME/2b_Wunderground_API/d6.png 300 168 65 45}
${lua fDrawImage $HOME/2b_Wunderground_API/d7.png 375 168 65 45}
${voffset -450}
]];
& here the adress
http://api.wunderground.com/api/xxxxxxxxxxxxx/conditions/forecast10day/astronomy/hourly/satellite/q/FR/Sarreguemines.json
@+
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
@loutch
see the note by Teo (!)
El_Conkystator
once advised me not to use different command calls if possible.
Your conky is very complex and the system outputs.
Line 70 instead of exec
exec command Executes a shell command and displays the output in conky. warning: this takes a lot more resources than other variables. I'd recommend coding wanted behaviour in C and posting a patch.
http://conky.sourceforge.net/variables.html
e.g.
${tztime Europe/Paris %a %d. %b %T}
Line 112
execpi 86400
Line 88-101 increasing the time
{execi 600 ...
If none of that helps increase
update_interval = 1, -->2, 3
or, divide the weather and the system in their own configuration files
Last edited by unklar (2016-09-11 20:38:41)
Offline
Not sure if this has been asked yet, I've been searching but haven't been able to find the answer yet.
Anyways, a few days ago, I noticed weather was displaying correctly in conky. Below is a screenie of my conky (highlighted weather area). You can also see my rc file and the last line output in terminal.
When I launch conky in terminal, I get the following at the end
sed: -e expression #1, char 0: no previous regular expression
sed: -e expression #1, char 0: no previous regular expression
sed: -e expression #1, char 4: unterminated `s' command
Here is my last_days
33
9°
33
21°
A
27°
38
-
<li ><a href="http://www.accuweather.com/en/us/austin-tx/78729/september-weather/34468">
<li class="last"><a href="http://www.accuweather.com/en/us/austin-tx/78729/satellite/34468">
<span class="lt">6 - 10 of 90 days | <a href="http://www.accuweather.com/en/us/austin-tx/78729/month/34468?view=table">All 90 days
FRIDAY
d
<div class="temp ">
22°
/4°C
Mostly cloudy
-
3
<div class="temp ">
22°
/4°
Partly sunny and beautiful
SUNDAY
3
<div class="temp ">
20°
/4°
Partly sunny and pleasant
MONDAY
4
<div class="temp ">
20°
/6°
Sun and clouds
TUESDAY
12
<div class="temp ">
18°
/5°
Mostly cloudy, a little rain
and my current_cond
night
A
Clear
and my tod_ton
33
9°
33
21°
A
27°
38
-
<li ><a href="http://www.accuweather.com/en/us/austin-tx/78729/september-weather/34468">
<li class="last"><a href="http://www.accuweather.com/en/us/austin-tx/78729/satellite/34468">
<span class="lt">1 - 5 of 90 days | <a href="http://www.accuweather.com/en/us/austin-tx/78729/month/34468?view=table">All 90 days
TONIGHT
A
2°
<span class="temp-label tonight selected">Lo
<span class="small-temp tonight">C
-
MONDAY
2
<div class="temp ">
25°
/2°
Mostly sunny, nice and warm
TUESDAY
3
<div class="temp ">
25°
/3°
Partly sunny, nice and warm
WEDNESDAY
2
<div class="temp ">
23°
/3°
Mostly sunny, nice and warm
THURSDAY
2
<div class="temp ">
23°
/4°
Mostly sunny, nice and warm
Not sure what changed or what got messed up. Any ideas or insight?
Last edited by seatommyboy (2016-09-12 04:00:35)
Offline
The Accuweather scripts do not work anymore.
Start reading from this post on, or wait until later today when I'm gonna bundle up the new script.
Last edited by TeoBigusGeekus (2016-09-12 06:56:18)
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
The Accuweather scripts do not work anymore.
Start reading from this post on, or wait until later today when I'm gonna bundle up the new script.
I was afraid you was going to say that... Thanks a bunch!
Offline
ANNOUNCEMENT
Accuweather's changed their pages' layout, so it was a good opportunity to correct the mess with their various scripts: scripts 1a, 1b1, 1b2 and 1c merged and fused. I tried to retain as many things from the old scripts as I could, but in some cases it was impossible (the TODAY/TONIGHT info has disappeared for example). Sorry for any inconvenience.
The new unified script was written from scratch, so treat it gently and with caution. Any feedback is welcome. Have fun...
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
@Teo
Excellent, thank you very much!
Offline
Bitte schon!
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
@Teo,
I have the new images integrated. Here I get the letters of curr_cond leftmost with display.
How do I get rid?
my conkyrc
conky.config = {
-- Create own window instead of using desktop (required in nautilus)
own_window = true,
own_window_type = 'normal',
own_window_transparent = false,
own_window_class = 'Conky',
own_window_colour = '#000000',
own_window_argb_visual = true,
own_window_argb_value = 100,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
-- own_window_colour = 'brown',
-- 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.0,
-- Minimum size of text area
minimum_width = 280, minimum_height = 500,
maximum_width = 230,
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
-- Stippled borders?
stippled_borders = 3,
-- border margins
border_inner_margin = 9,
border_outer_margin = 0,
-- border width
border_width = 10,
-- Default colors and also border colors, grey90 == #e5e5e5
default_color = '#cbcbcb',
-- Text alignment, other possible values are commented
--alignment top_left
alignment = 'top_left',
--alignment bottom_left
--alignment bottom_right
-- Gap between borders of screen and text
gap_x = 15,
gap_y = 45,
-- stuff after 'TEXT' will be formatted on screen
};
conky.text = [[
${font Arial:bold:size=10}${color}WETTER ${execi 90 sed -n '1p' ~/1_accuweather_Deutsch/aktualisiert} ${hr 2} $color${execi 600 bash $HOME/1_accuweather_Deutsch/1_accuweather_Deutsch}
${font}${image $HOME/1_accuweather_Deutsch/0.png -p 0,15 -s 40x40}${execi 600 sed -n '22p' ~/1_accuweather_Deutsch/curr_cond}${font}${goto 75}${voffset -15}AKTUELL: ${execpi 600 sed -n '2p' $HOME/1_accuweather_Deutsch/curr_cond}°
${goto 75}${execpi 600 sed -n '4p' $HOME/1_accuweather_Deutsch/curr_cond|fold -w30}
${image $HOME/1_accuweather_Deutsch/1.png -p 0,85 -s 40x40}${execi 600 sed -n '26p' ~/1_accuweather_Deutsch/first_days}${font}${goto 75}${voffset 15}${execpi 600 sed -n '1p' $HOME/1_accuweather_Deutsch/first_days}: ${execpi 600 sed -n '3p' $HOME/1_accuweather_Deutsch/first_days}°/${execpi 600 sed -n '4p' $HOME/1_accuweather_Deutsch/first_days}°
${goto 75}${execpi 600 sed -n '5p' $HOME/1_accuweather_Deutsch/first_days|fold -w30}
${image $HOME/1_accuweather_Deutsch/2.png -p 0,125 -s 40x40}${execi 600 sed -n '27p' ~/1_accuweather_Deutsch/first_days}${font}${goto 75}${voffset 5}${execpi 600 sed -n '6p' $HOME/1_accuweather_Deutsch/first_days}: ${execpi 600 sed -n '8p' $HOME/1_accuweather_Deutsch/first_days}°/${execpi 600 sed -n '9p' $HOME/1_accuweather_Deutsch/first_days}°
${goto 75}${execpi 600 sed -n '10p' $HOME/1_accuweather_Deutsch/first_days|fold -w30}
${image $HOME/1_accuweather_Deutsch/3.png -p 0,165 -s 40x40}${execi 600 sed -n '28p' ~/1_accuweather_Deutsch/first_days}${font}${goto 75}${execpi 600 sed -n '11p' $HOME/1_accuweather_Deutsch/first_days}: ${execpi 600 sed -n '13p' $HOME/1_accuweather_Deutsch/first_days}°/${execpi 600 sed -n '14p' $HOME/1_accuweather_Deutsch/first_days}°
${goto 75}${execpi 600 sed -n '15p' $HOME/1_accuweather_Deutsch/first_days|fold -w30}
${image $HOME/1_accuweather_Deutsch/4.png -p 0,205 -s 40x40}${execi 600 sed -n '29p' ~/1_accuweather_Deutsch/first_days}${font}${goto 75}${execpi 600 sed -n '16p' $HOME/1_accuweather_Deutsch/first_days}: ${execpi 600 sed -n '18p' $HOME/1_accuweather_Deutsch/first_days}°/${execpi 600 sed -n '19p' $HOME/1_accuweather_Deutsch/first_days}°
${goto 75}${execpi 600 sed -n '20p' $HOME/1_accuweather_Deutsch/first_days|fold -w30}
${image $HOME/1_accuweather_Deutsch/5.png -p 0,245 -s 40x40}${execi 600 sed -n '30p' ~/1_accuweather_Deutsch/first_days}${font}${goto 75}${execpi 600 sed -n '21p' $HOME/1_accuweather_Deutsch/first_days}: ${execpi 600 sed -n '23p' $HOME/1_accuweather_Deutsch/first_days}°/${execpi 600 sed -n '24p' $HOME/1_accuweather_Deutsch/first_days}°
${goto 75}${execpi 600 sed -n '25p' $HOME/1_accuweather_Deutsch/first_days|fold -w30}
${image $HOME/1_accuweather_Deutsch/6.png -p 0,285 -s 40x40}${execi 600 sed -n '26p' ~/1_accuweather_Deutsch/last_days}${font}${goto 75}${execpi 600 sed -n '1p' $HOME/1_accuweather_Deutsch/last_days}: ${execpi 600 sed -n '3p' $HOME/1_accuweather_Deutsch/last_days}°/${execpi 600 sed -n '4p' $HOME/1_accuweather_Deutsch/last_days}°
${goto 75}${execpi 600 sed -n '5p' $HOME/1_accuweather_Deutsch/last_days|fold -w30}
${image $HOME/1_accuweather_Deutsch/7.png -p 0,325 -s 40x40}${execi 600 sed -n '27p' ~/1_accuweather_Deutsch/last_days}${font}${goto 75}${voffset 5}${execpi 600 sed -n '6p' $HOME/1_accuweather_Deutsch/last_days}: ${execpi 600 sed -n '8p' $HOME/1_accuweather_Deutsch/last_days}°/${execpi 600 sed -n '9p' $HOME/1_accuweather_Deutsch/last_days}°
${goto 75}${execpi 600 sed -n '10p' $HOME/1_accuweather_Deutsch/last_days|fold -w30}
${image $HOME/1_accuweather_Deutsch/8.png -p 0,365 -s 40x40}${execi 600 sed -n '28p' ~/1_accuweather_Deutsch/last_days}${font}${goto 75}${execpi 600 sed -n '11p' $HOME/1_accuweather_Deutsch/last_days}: ${execpi 600 sed -n '13p' $HOME/1_accuweather_Deutsch/last_days}°/${execpi 600 sed -n '14p' $HOME/1_accuweather_Deutsch/last_days}°
${goto 75}${execpi 600 sed -n '15p' $HOME/1_accuweather_Deutsch/last_days|fold -w30}
${image $HOME/1_accuweather_Deutsch/9.png -p 0,405 -s 40x40}${execi 600 sed -n '29p' ~/1_accuweather_Deutsch/last_days}${font}${goto 75}${execpi 600 sed -n '16p' $HOME/1_accuweather_Deutsch/last_days}: ${execpi 600 sed -n '18p' $HOME/1_accuweather_Deutsch/last_days}°/${execpi 600 sed -n '19p' $HOME/1_accuweather_Deutsch/last_days}°
${goto 75}${execpi 600 sed -n '20p' $HOME/1_accuweather_Deutsch/last_days|fold -w30}
${image $HOME/1_accuweather_Deutsch/10.png -p 0,445 -s 40x40}${execi 600 sed -n '30p' ~/1_accuweather_Deutsch/last_days}${font}${goto 75}${execpi 600 sed -n '21p' $HOME/1_accuweather_Deutsch/last_days}: ${execpi 600 sed -n '23p' $HOME/1_accuweather_Deutsch/last_days}°/${execpi 600 sed -n '24p' $HOME/1_accuweather_Deutsch/last_days}°
${goto 75}${execpi 600 sed -n '25p' $HOME/1_accuweather_Deutsch/last_days|fold -w30}
]];
Offline
Try with this
conky.config = {
-- Create own window instead of using desktop (required in nautilus)
own_window = true,
own_window_type = 'normal',
own_window_transparent = false,
own_window_class = 'Conky',
own_window_colour = '#000000',
own_window_argb_visual = true,
own_window_argb_value = 100,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
-- own_window_colour = 'brown',
-- 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.0,
-- Minimum size of text area
minimum_width = 280, minimum_height = 500,
maximum_width = 230,
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
-- Stippled borders?
stippled_borders = 3,
-- border margins
border_inner_margin = 9,
border_outer_margin = 0,
-- border width
border_width = 10,
-- Default colors and also border colors, grey90 == #e5e5e5
default_color = '#cbcbcb',
-- Text alignment, other possible values are commented
--alignment top_left
alignment = 'top_left',
--alignment bottom_left
--alignment bottom_right
-- Gap between borders of screen and text
gap_x = 15,
gap_y = 45,
-- stuff after 'TEXT' will be formatted on screen
};
conky.text = [[
${font Arial:bold:size=10}${color}WETTER ${execi 90 sed -n '1p' ~/1_accuweather_Deutsch/aktualisiert} ${hr 2} $color${execi 600 bash $HOME/1_accuweather_Deutsch/1_accuweather_Deutsch}
${font}${image $HOME/1_accuweather_Deutsch/0.png -p 0,15 -s 40x40}${goto 75}${voffset -15}AKTUELL: ${execpi 600 sed -n '2p' $HOME/1_accuweather_Deutsch/curr_cond}°
${goto 75}${execpi 600 sed -n '4p' $HOME/1_accuweather_Deutsch/curr_cond|fold -w30}
${image $HOME/1_accuweather_Deutsch/1.png -p 0,85 -s 40x40}${goto 75}${voffset 15}${execpi 600 sed -n '1p' $HOME/1_accuweather_Deutsch/first_days}: ${execpi 600 sed -n '3p' $HOME/1_accuweather_Deutsch/first_days}°/${execpi 600 sed -n '4p' $HOME/1_accuweather_Deutsch/first_days}°
${goto 75}${execpi 600 sed -n '5p' $HOME/1_accuweather_Deutsch/first_days|fold -w30}
${image $HOME/1_accuweather_Deutsch/2.png -p 0,125 -s 40x40}${goto 75}${voffset 5}${execpi 600 sed -n '6p' $HOME/1_accuweather_Deutsch/first_days}: ${execpi 600 sed -n '8p' $HOME/1_accuweather_Deutsch/first_days}°/${execpi 600 sed -n '9p' $HOME/1_accuweather_Deutsch/first_days}°
${goto 75}${execpi 600 sed -n '10p' $HOME/1_accuweather_Deutsch/first_days|fold -w30}
${image $HOME/1_accuweather_Deutsch/3.png -p 0,165 -s 40x40}${goto 75}${execpi 600 sed -n '11p' $HOME/1_accuweather_Deutsch/first_days}: ${execpi 600 sed -n '13p' $HOME/1_accuweather_Deutsch/first_days}°/${execpi 600 sed -n '14p' $HOME/1_accuweather_Deutsch/first_days}°
${goto 75}${execpi 600 sed -n '15p' $HOME/1_accuweather_Deutsch/first_days|fold -w30}
${image $HOME/1_accuweather_Deutsch/4.png -p 0,205 -s 40x40}${goto 75}${execpi 600 sed -n '16p' $HOME/1_accuweather_Deutsch/first_days}: ${execpi 600 sed -n '18p' $HOME/1_accuweather_Deutsch/first_days}°/${execpi 600 sed -n '19p' $HOME/1_accuweather_Deutsch/first_days}°
${goto 75}${execpi 600 sed -n '20p' $HOME/1_accuweather_Deutsch/first_days|fold -w30}
${image $HOME/1_accuweather_Deutsch/5.png -p 0,245 -s 40x40}${goto 75}${execpi 600 sed -n '21p' $HOME/1_accuweather_Deutsch/first_days}: ${execpi 600 sed -n '23p' $HOME/1_accuweather_Deutsch/first_days}°/${execpi 600 sed -n '24p' $HOME/1_accuweather_Deutsch/first_days}°
${goto 75}${execpi 600 sed -n '25p' $HOME/1_accuweather_Deutsch/first_days|fold -w30}
${image $HOME/1_accuweather_Deutsch/6.png -p 0,285 -s 40x40}${goto 75}${execpi 600 sed -n '1p' $HOME/1_accuweather_Deutsch/last_days}: ${execpi 600 sed -n '3p' $HOME/1_accuweather_Deutsch/last_days}°/${execpi 600 sed -n '4p' $HOME/1_accuweather_Deutsch/last_days}°
${goto 75}${execpi 600 sed -n '5p' $HOME/1_accuweather_Deutsch/last_days|fold -w30}
${image $HOME/1_accuweather_Deutsch/7.png -p 0,325 -s 40x40}${goto 75}${voffset 5}${execpi 600 sed -n '6p' $HOME/1_accuweather_Deutsch/last_days}: ${execpi 600 sed -n '8p' $HOME/1_accuweather_Deutsch/last_days}°/${execpi 600 sed -n '9p' $HOME/1_accuweather_Deutsch/last_days}°
${goto 75}${execpi 600 sed -n '10p' $HOME/1_accuweather_Deutsch/last_days|fold -w30}
${image $HOME/1_accuweather_Deutsch/8.png -p 0,365 -s 40x40}${goto 75}${execpi 600 sed -n '11p' $HOME/1_accuweather_Deutsch/last_days}: ${execpi 600 sed -n '13p' $HOME/1_accuweather_Deutsch/last_days}°/${execpi 600 sed -n '14p' $HOME/1_accuweather_Deutsch/last_days}°
${goto 75}${execpi 600 sed -n '15p' $HOME/1_accuweather_Deutsch/last_days|fold -w30}
${image $HOME/1_accuweather_Deutsch/9.png -p 0,405 -s 40x40}${goto 75}${execpi 600 sed -n '16p' $HOME/1_accuweather_Deutsch/last_days}: ${execpi 600 sed -n '18p' $HOME/1_accuweather_Deutsch/last_days}°/${execpi 600 sed -n '19p' $HOME/1_accuweather_Deutsch/last_days}°
${goto 75}${execpi 600 sed -n '20p' $HOME/1_accuweather_Deutsch/last_days|fold -w30}
${image $HOME/1_accuweather_Deutsch/10.png -p 0,445 -s 40x40}${goto 75}${execpi 600 sed -n '21p' $HOME/1_accuweather_Deutsch/last_days}: ${execpi 600 sed -n '23p' $HOME/1_accuweather_Deutsch/last_days}°/${execpi 600 sed -n '24p' $HOME/1_accuweather_Deutsch/last_days}°
${goto 75}${execpi 600 sed -n '25p' $HOME/1_accuweather_Deutsch/last_days|fold -w30}
]];
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
BINGO!
Thank you very much.
Half the afternoon I have unsuccessfully searched. 8o
perfect
Offline
Hello
You make me this to have the alerts from accuweather.com
#!/bin/bash
wget -O $HOME/Desktop/loutch http://www.accuweather.com/fr/fr/sarreguemines/135050/weather-forecast/135050
sed -i '/<td><p>/!d' $HOME/Desktop/loutch
sed -i -e 's/^ *//' -e 's/<span>.*$//' -e 's/<td><p>//' -e 's/<\/p><\/td>.*$//' $HOME/Desktop/loutch
char=$(cat $HOME/Desktop/loutch|wc -c)
if (( $char == 0 )); then
echo RAS > $HOME/Desktop/loutch
fi
Can you make it for the new accuweather.fr if the new site permice it .
tank's &
@+
Last edited by loutch (2016-09-14 08:38:30)
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
@Teo,
I again with a question
System: bunsenlabs-x86_64
conky V1.9
address: ... /en/de/ ...
from here
address: ... /de/de/ ...
the display errors are already last_day in (first_day)
Mo
7
20
12
Starke Bewölkung
Di
12
21
12
Meist wolkig, leichter Regen
Mi
6
19
9
Meist wolkig
Do
6
18
8
Überwiegend bewölkt
Fr
12
18
7
Möglicherweise Regen
e
h
d
d
h
this is due to accuweather or the script, because not adapted to German?
my conkyrc
# pkill -xf "conky -q -c ~/1_accuweather/1a_DE_int_2.conky" &
## works perfect 2016
## Begin Window Settings
## Create own window instead of using desktop (required in nautilus)
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 conkyrc_1a_int_2
## ARGB can be used for real transparency
## NOTE that a composite manager is required for real transparency.
## This option will not work as desired (in most cases) in conjunction with
## own_window_type normal
own_window_argb_visual yes
## When ARGB visuals are enabled, this use this to modify the alpha value
## Use: own_window_type normal
## Use: own_window_transparent no
## Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
own_window_argb_value 80
minimum_size 300 500 ## w|h
#maximum_width 250
gap_x 20 ## l|r
gap_y 45 ## u|d
alignment tr
## End Window Settings
## Font Settings
use_xft yes
xftfont Liberation Mono:bold:size=9
## Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1.0
## Force UTF8? requires XFT
override_utf8_locale yes
uppercase no
## End Font Settings
## Color Settings
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000
default_color DCDCDC ## 220 220 220 Gainsboro
color0 8FBC8F ## DarkSeaGreen
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 CD5C5C ## IndianRed
## End Color Settings
## Borders Section
draw_borders no
## Stippled borders?
stippled_borders 5
## border margins
border_inner_margin 5
border_outer_margin 0
## border width
border_width 2
## graph borders
draw_graph_borders no
## default_graph_size 15 40
## End Borders Secton
## Miscellaneous Section
## Boolean value, if true, Conky will be forked to background when started.
background yes
## Adds spaces around certain objects to stop them from moving other things
## around, this only helps if you are using a mono font
## Options: right, left or none
use_spacer none
## Default and Minimum is 256 - needs more for single commands that
## "call" a lot of text IE: bash scripts <<-- Teos scripts
## Increase if necessary
## text_buffer_size 256
## Subtract (file slystem) buffers from used memory?
no_buffers yes
## 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
## End Miscellaneous Section
update_interval 1
#--Lua--#
lua_load ~/Lua/draw-bg.lua
# lua_draw_hook_post main
# lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.2
TEXT
${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}
${execi 1600 bash $HOME/1_accuweather/1_accuweather -f}\
W E T T E R I N F O @ ${execpi 600 sed -n '1p' $HOME/1_accuweather/aktualisiert}
${hr}
${goto 10}${font conkyweather:size=30}${execi 600 sed -n '22p' ~/1_accuweather/curr_cond}${font}${goto 75}${voffset -20}AKTUELL: ${execpi 600 sed -n '2p' $HOME/1_accuweather/curr_cond}°C ${execpi 600 sed -n '4p' $HOME/1_accuweather/curr_cond|fold -w30}
${goto 75}
${goto 10}${font conkyweather:size=25}${execi 600 sed -n '26p' ~/1_accuweather/first_days}${font}${goto 75}${voffset -20}${execpi 600 sed -n '1p' $HOME/1_accuweather/first_days}: ${execpi 600 sed -n '3p' $HOME/1_accuweather/first_days}°/${execpi 600 sed -n '4p' $HOME/1_accuweather/first_days}°
${goto 75}${execpi 600 sed -n '5p' $HOME/1_accuweather/first_days|fold -w30}
${goto 10}${font conkyweather:size=25}${execi 600 sed -n '27p' ~/1_accuweather/first_days}${font}${goto 75}${voffset -20}${execpi 600 sed -n '6p' $HOME/1_accuweather/first_days}: ${execpi 600 sed -n '8p' $HOME/1_accuweather/first_days}°/${execpi 600 sed -n '9p' $HOME/1_accuweather/first_days}°
${goto 75}${execpi 600 sed -n '10p' $HOME/1_accuweather/first_days|fold -w30}
${goto 10}${font conkyweather:size=25}${execi 600 sed -n '28p' ~/1_accuweather/first_days}${font}${goto 75}${voffset -20}${execpi 600 sed -n '11p' $HOME/1_accuweather/first_days}: ${execpi 600 sed -n '13p' $HOME/1_accuweather/first_days}°/${execpi 600 sed -n '14p' $HOME/1_accuweather/first_days}°
${goto 75}${execpi 600 sed -n '15p' $HOME/1_accuweather/first_days|fold -w30}
${goto 10}${font conkyweather:size=25}${execi 600 sed -n '29p' ~/1_accuweather/first_days}${font}${goto 75}${voffset -20}${execpi 600 sed -n '16p' $HOME/1_accuweather/first_days}: ${execpi 600 sed -n '18p' $HOME/1_accuweather/first_days}°/${execpi 600 sed -n '19p' $HOME/1_accuweather/first_days}°
${goto 75}${execpi 600 sed -n '20p' $HOME/1_accuweather/first_days|fold -w30}
${goto 10}${font conkyweather:size=25}${execi 600 sed -n '30p' ~/1_accuweather/first_days}${font}${goto 75}${voffset -20}${execpi 600 sed -n '21p' $HOME/1_accuweather/first_days}: ${execpi 600 sed -n '23p' $HOME/1_accuweather/first_days}°/${execpi 600 sed -n '24p' $HOME/1_accuweather/first_days}°
${goto 75}${execpi 600 sed -n '25p' $HOME/1_accuweather/first_days|fold -w30}
${goto 10}${font conkyweather:size=25}${execi 600 sed -n '26p' ~/1_accuweather/last_days}${font}${goto 75}${voffset -20}${execpi 600 sed -n '1p' $HOME/1_accuweather/last_days}: ${execpi 600 sed -n '3p' $HOME/1_accuweather/last_days}°/${execpi 600 sed -n '4p' $HOME/1_accuweather/last_days}°
${goto 75}${execpi 600 sed -n '5p' $HOME/1_accuweather/last_days|fold -w30}
${goto 10}${font conkyweather:size=25}${execi 600 sed -n '27p' ~/1_accuweather/last_days}${font}${goto 75}${voffset -20}${execpi 600 sed -n '6p' $HOME/1_accuweather/last_days}: ${execpi 600 sed -n '8p' $HOME/1_accuweather/last_days}°/${execpi 600 sed -n '9p' $HOME/1_accuweather/last_days}°
${goto 75}${execpi 600 sed -n '10p' $HOME/1_accuweather/last_days|fold -w30}
${goto 10}${font conkyweather:size=25}${execi 600 sed -n '28p' ~/1_accuweather/last_days}${font}${goto 75}${voffset -20}${execpi 600 sed -n '11p' $HOME/1_accuweather/last_days}: ${execpi 600 sed -n '13p' $HOME/1_accuweather/last_days}°/${execpi 600 sed -n '14p' $HOME/1_accuweather/last_days}°
${goto 75}${execpi 600 sed -n '15p' $HOME/1_accuweather/last_days|fold -w30}
${goto 10}${font conkyweather:size=25}${execi 600 sed -n '29p' ~/1_accuweather/last_days}${font}${goto 75}${voffset -20}${execpi 600 sed -n '16p' $HOME/1_accuweather/last_days}: ${execpi 600 sed -n '18p' $HOME/1_accuweather/last_days}°/${execpi 600 sed -n '19p' $HOME/1_accuweather/last_days}°
${goto 75}${execpi 600 sed -n '20p' $HOME/1_accuweather/last_days|fold -w30}
${goto 10}${font conkyweather:size=25}${execi 600 sed -n '30p' ~/1_accuweather/last_days}${font}${goto 75}${voffset -20}${execpi 600 sed -n '21p' $HOME/1_accuweather/last_days}: ${execpi 600 sed -n '23p' $HOME/1_accuweather/last_days}°/${execpi 600 sed -n '24p' $HOME/1_accuweather/last_days}°
${goto 75}${execpi 600 sed -n '25p' $HOME/1_accuweather/last_days|fold -w30}
Offline
@unklar
If by display errors you mean
Überwiegend bewölkt
these lines, then yes, the German version has the following commands
sed -i -e 's/ö\;/ö/g' -e 's/ä\;/ä/g' -e 's/ü\;/ü/g' -e 's/Ä\;/Ä/g' -e 's/Ö\;/Ö/g' -e 's/Ü\;/Ü/g' -e 's/ß\;/ß/g' $HOME/1_accuweather_Deutsch/curr_cond
...
sed -i -e 's/ö\;/ö/g' -e 's/ä\;/ä/g' -e 's/ü\;/ü/g' -e 's/Ä\;/Ä/g' -e 's/Ö\;/Ö/g' -e 's/Ü\;/Ü/g' -e 's/ß\;/ß/g' $HOME/1_accuweather_Deutsch/first_days
...
sed -i -e 's/ö\;/ö/g' -e 's/ä\;/ä/g' -e 's/ü\;/ü/g' -e 's/Ä\;/Ä/g' -e 's/Ö\;/Ö/g' -e 's/Ü\;/Ü/g' -e 's/ß\;/ß/g' $HOME/1_accuweather_Deutsch/last_days
to correct the vowels that should take Umlauten.
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
@loutch
Try with this
#!/bin/bash
wget -O $HOME/Desktop/loutch http://www.accuweather.com/fr/fr/sarreguemines/135050/weather-forecast/135050
message=$(sed -n '/<span>Perspectives<\/span>/ { n;p; }' $HOME/Desktop/loutch)
echo $message > $HOME/Desktop/loutch
sed -i -e 's/<p>//' -e 's/<\/p>.*$//' $HOME/Desktop/loutch
char=$(cat $HOME/Desktop/loutch|wc -c)
if (( $char <= 1 )); then
echo RAS > $HOME/Desktop/loutch
fi
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
RE
Thank's
@+
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline