You are not logged in.
By the way, Teo, I haven't even told you yet, "the API" works great for me too
Offline
Knock on wood
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
Wood is considered to be very trustworthy here... and, I'll do that. ]:D
Offline
Teo: Thanks for the response and help. The new script is pulling in the CR newline character (which is Windows encoding) into the first_days file during the hours when "Lo" is displayed.
If you open the first_days file in geany during evening, or early morning, you can clearly see it with the line endings visible:
Only "Lo" has the CR in the line ending. This does not happen in any other line in the file. You can manually remove the character, but it reappears as soon as the new script is executed on the next interval, as expected. This doesn't happen on other conkyrc files using the old script and EU locations.
uklar: Thanks for the response and the [override_utf8_locale = true] suggestion, but as I said in the original message the issue is not with "Lo" appearing, which is desired, it is the unwanted character that is getting pulled in by the new script only during the hours when Lo is displayed. The degree character displays correctly.
Offline
I'll investigate ASAP, thanks for the feedback bansurveillancecapitalism.
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
ANNOUNCEMENT
Tiny bug in the last month's update (1_Accuweather script) that caused an unwanted Windows carriage return to appear after the "Lo" temperature value when a US location had been chosen, thus making conky display an unknown character after the aforementioned string. Script rebundled.
For the lazy: Open the script, go to line 391 and replace its ending
..... -e 's/<\/span>//g' $HOME/1_accuweather/first_days
with
..... -e 's/<\/span>//g' -e 's/\r//g' $HOME/1_accuweather/first_days
Thanks to bansurveillancecapitalism for his feedback.
Last edited by TeoBigusGeekus (2019-03-16 23:19:15)
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
Hi everyone
To all xfce4 users, if in the latest updates your conky no longer have transparency, and desktop icons are like in the picture, just downgrade xfdesktop
probably has some bugs
At least to me with archlinux xfce4 this bug appears
Offline
Arch+Openbox here, no problems whatsoever.
Just wait for an update from the xfce developers.
Thanks for the info ector1935.
Last edited by TeoBigusGeekus (2019-03-17 16:39:39)
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
Hi Teo,
it seems to be only for xfce and is caused by the latest xfdesktop version.
But no weather images on my conky tonight, I hope it's just temporary.
Does it happen to you too?
see image
have this error from terminal
home/eva/1_accuweather/1_accuweather: riga 414: 15213 Annullato (core dump creato) lynx --source -accept_all_cookies "$addr2" > $HOME/1_accuweather/last_days_raw
Edit
I restarted and everything works sorry.
Last edited by ector1935 (2019-03-17 19:44:31)
Offline
Alright then ector1935, keep an eye though.
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
Hi Teo,
it seems to be only for xfce and is caused by the latest xfdesktop version.
But no weather images on my conky tonight, I hope it's just temporary.
Does it happen to you too?
Debian stable running fine with xfdesktop v.4.12.3-3 .
Which version of xfdesktop is playing ugly?
Offline
Probably this 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
Probably this one.
yes
xfdesktop 4.13.3-1
have made a patch, but I still have to check if it works, yesterday I tried to reinstall it and the bug of the conky wax still
Last edited by ector1935 (2019-03-18 12:11:29)
Offline
Patience my friend
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
Nice one loutch!
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
With conky, we can set position of image like this :
${image ~/conky-meteo-dark_sky/d1.png -p 40,20 -s 53x32}
${image ~/conky-meteo-dark_sky/d2.png -p 40,90 -s 53x32}
${image ~/conky-meteo-dark_sky/d3.png -p 40,160 -s 53x32}
${image ~/conky-meteo-dark_sky/d4.png -p 40,230 -s 53x32}
${image ~/conky-meteo-dark_sky/d5.png -p 40,295 -s 53x32}
${image ~/conky-meteo-dark_sky/d6.png -p 40,365 -s 53x32}
${image ~/conky-meteo-dark_sky/d7.png -p 40,435 -s 53x32}
${image ~/conky-meteo-dark_sky/d8.png -p 40,500 -s 53x32}
In my conky I have that :
${goto 100}${font DejaVuSansMono:bold:size=10}${exec date '+%A %d %B'}
${goto 100}${font DejaVuSansMono:bold:size=10}${exec date '+%A %d %B' --date '1 days'}
............................
I can set horizontal position with ${goto 100} but I want also set vertical position for align text with image.
Is there a way to do that ?
Offline
Look at the voffset variable.
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
Look at the voffset variable.
I test voffset but that is not good.
Because in my conky I have a line for forecast, and this forecast may be on 1 or 2 or 3 lines.
${exec jq --raw-output '.daily.data[0].summary' $HOME/conky-meteo-dark_sky/rawdata | xargs -n6}
without xargs -n6
Offline
This Conky goes back to @loutch.
With the help of the image.lua script of Didier-T the arrangement of the images is determined. After TEXT or conky.text = [[ the configuration looks like this. Maybe it will help you.
...
lua_load ~/LUA/image.lua
TEXT
##### Start #####
${texeci 500 bash $HOME/1_accuweather/1_accuweather -f2015 -h2015}
##### Zeit #####
${voffset -35}${font GE Inspira:size=55}${time %H}:${time %M}${font GE Inspira:size=20}${color 808080}${goto 180}${time %S}$color$font
##### Datum #####
${voffset -55}${font GE Inspira:size=14}${alignc -50}${time %A, %d %B %Y}$font
##### Wind-Info-Anzeige ######
${goto 310}${font GE Inspira:size=12}Wind : ${execi 90 sed -n '5p' $HOME/1_accuweather/curr_cond} ${execi 90 sed -n '6p' $HOME/1_accuweather/curr_cond}
${goto 310}Humidity : ${execi 90 sed -n '7p' $HOME/1_accuweather/curr_cond}
${goto 310}Pressure : ${execi 90 sed -n '8p' $HOME/1_accuweather/curr_cond}
#### Stadt ####
${voffset -5}${font GE Inspira:size=14}Lichtenstein : ${font} ${execi 90 sed -n '1p' $HOME/1_accuweather/aktualisiert}
${font GE Inspira:size=18}${goto 135}${execi 90 sed -n '2p' $HOME/1_accuweather/curr_cond} °C ${font} Gefühlt : ${voffset -12}${font GE Inspira:size=18}${execi 90 sed -n '3p' $HOME/1_accuweather/curr_cond} °C
${goto 555}${voffset -124}${font ubuntu:size=11}N $font
${goto 522}${voffset 8}${font Ubuntu:size=6}NNW ${goto 583}NNE$font
${goto 493}${voffset -6}${font Ubuntu:size=9}NW ${goto 611}NE$font
${goto 486}${voffset 10}${font Ubuntu:size=6}WNW ${goto 618}ENE$font
${goto 468}${voffset 5}${font Ubuntu:size=11}W ${goto 641}E$font
${goto 486}${voffset 9}${font Ubuntu:size=6}WSW ${goto 618}ESE
${goto 493}${voffset 16}${font Ubuntu:size=9}SW ${goto 611}SE$font
${goto 522}${voffset -4}${font Ubuntu:size=6}SSW ${goto 583}SSE
${goto 555}${voffset 4}${font Ubuntu:size=11}S $font
#### Anzeige der nächsten drei Stunden und drei Tage ####
${voffset -60}${goto 20}${tztime GMT-1 %H} h\
${goto 95}${tztime GMT-2 %H} h\
${goto 170}${tztime GMT-3 %H} h\
${goto 245}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$2}'`}\
${goto 320}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$2}'`}\
${goto 400}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$2}'`}
##### Temperaturanzeige #####
${voffset 25}
T${goto 30}${execi 90 sed -n '29p' $HOME/1_accuweather/hourly1}°\
${goto 100}${execi 90 sed -n '30p' $HOME/1_accuweather/hourly1}°\
${goto 180}${execi 90 sed -n '31p' $HOME/1_accuweather/hourly1}°\
${goto 245}${color9}${execi 90 sed -n '8p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 90 sed -n '9p' $HOME/1_accuweather/first_days}°${color}\
${goto 320}${color9}${execi 90 sed -n '13p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 90 sed -n '14p' $HOME/1_accuweather/first_days}°${color}\
${goto 400}${color9}${execi 90 sed -n '18p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 90 sed -n '19p' $HOME/1_accuweather/first_days}°${color}
#### Icons aktuelle Bedingungen und Wind ####
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_0.png 180 5 132 80 0}${lua fDrawImage $HOME/1_accuweather/forecast_2015/wind_0.png 465 4 190 190 0}\
#### Icons für die nächsten 3 Stunden und 3 Tage ####
${lua fDrawImage $HOME/1_accuweather/hourly_2015/hourly_1.png 0 145 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/hourly_2015/hourly_2.png 75 145 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/hourly_2015/hourly_3.png 150 145 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_2.png 225 145 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_3.png 300 145 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_4.png 380 145 70 40 0}
${voffset -800}
image.lua
-- De Didier-T
require 'cairo'
home = os.getenv ('HOME')
--Fonction d'affichage
function conky_fDrawImage(path,x,y,w,h,arc)
path = string.gsub(path, "~", home)
path = string.gsub(path, "$HOME", home)
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
local function fDrawImage(path,x,y,w,h,arc)
x=x+(w/2)
y=y+(h/2)
local img = cairo_image_surface_create_from_png(path)
local w_img, h_img = cairo_image_surface_get_width (img), cairo_image_surface_get_height (img)
local cr = cairo_create (cs)
cairo_translate (cr, x, y)
if arc then
cairo_rotate (cr, arc)
end
cairo_scale (cr, w/w_img, h/h_img)
cairo_set_source_surface (cr, img, -w_img/2, -h_img/2)
cairo_paint (cr)
cairo_destroy(cr)
cairo_surface_destroy (img)
end
fDrawImage(path,x,y,w,h,arc)
cairo_surface_destroy(cs)
return ""
end
e.g
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_0.png 180 5 132 80 0}
180= horizontal position from left
5= vertical position from above
132=image height
80=image width
0=Rotation of the image (here nothing but 0,1 -1-1,5 or others can be set up to the desired rotation)
Last edited by unklar (2019-03-24 17:21:52)
Offline