You are not logged in.
@unklar
You are welcone to anything posted by me...therefore...not stealing!
As to the hddtemp issue...Not certain this is the problem but...be sure the hddtemp daemon is installed and working properly. See this post by Sector11:
https://forums.bunsenlabs.org/viewtopic … 509#p50509
Good luck
-DrakarNoir
Last edited by DrakarNoir (2018-01-04 00:33:42)
--I can EXPLAIN it to you. I cannot UNDERSTAND it for you!
Offline
hello
Unklar no when i comment this 2 lines ther is no problem & no circle in the conky
#lua_load ~/.conky/cronograph/scripts/clock_rings.lua
#lua_draw_hook_pre clock_rings
konsole
[loutch@localhost ~]$ conky -c ~/.conky/cronograph/conkyrc
Conky: forked to background, pid is 14448
[loutch@localhost ~]$
Conky: desktop window (28001b4) is subwindow of root window (34c)
Conky: window type - normal
Conky: drawing to created window (0x5200003)
Conky: drawing to double buffer
--2018-01-04 11:19:49-- [url]http://www.accuweather.com/fr/fr/sarreguemines/135050/current-weather/135050[/url]
Résolution de [url=http://www.accuweather.com]www.accuweather.com[/url] ([url=http://www.accuweather.com]www.accuweather.com[/url])… 23.38.6.92
Connexion à [url=http://www.accuweather.com]www.accuweather.com[/url] ([url=http://www.accuweather.com]www.accuweather.com[/url])|23.38.6.92|:80… connecté.
requête HTTP transmise, en attente de la réponse… 301 Moved Permanently
Emplacement : [url]https://www.accuweather.com/fr/fr/sarreguemines/135050/current-weather/135050[/url] [suivant]
--2018-01-04 11:19:49-- [url]https://www.accuweather.com/fr/fr/sarreguemines/135050/current-weather/135050[/url]
Connexion à [url=http://www.accuweather.com]www.accuweather.com[/url] ([url=http://www.accuweather.com]www.accuweather.com[/url])|23.38.6.92|:443… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : non indiqué [text/html]
Sauvegarde en : « /home/loutch/1_accuweather/curr_cond_raw »
[ <=> ] 101 050 --.-K/s ds 0,05s
2018-01-04 11:19:50 (1,83 MB/s) - « /home/loutch/1_accuweather/curr_cond_raw » sauvegardé [101050]
--2018-01-04 11:19:50-- [url]http://www.accuweather.com/fr/fr/sarreguemines/135050/daily-weather-forecast/135050[/url]
Résolution de [url=http://www.accuweather.com]www.accuweather.com[/url] ([url=http://www.accuweather.com]www.accuweather.com[/url])… 23.38.6.92
Connexion à [url=http://www.accuweather.com]www.accuweather.com[/url] ([url=http://www.accuweather.com]www.accuweather.com[/url])|23.38.6.92|:80… connecté.
requête HTTP transmise, en attente de la réponse… 301 Moved Permanently
Emplacement : [url]https://www.accuweather.com/fr/fr/sarreguemines/135050/daily-weather-forecast/135050[/url] [suivant]
--2018-01-04 11:19:50-- [url]https://www.accuweather.com/fr/fr/sarreguemines/135050/daily-weather-forecast/135050[/url]
Connexion à [url=http://www.accuweather.com]www.accuweather.com[/url] ([url=http://www.accuweather.com]www.accuweather.com[/url])|23.38.6.92|:443… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : non indiqué [text/html]
Sauvegarde en : « /home/loutch/1_accuweather/first_days_raw »
[ <=> ] 101 314 --.-K/s ds 0,06s
2018-01-04 11:19:50 (1,71 MB/s) - « /home/loutch/1_accuweather/first_days_raw » sauvegardé [101314]
--2018-01-04 11:19:50-- [url]http://www.accuweather.com/fr/fr/sarreguemines/135050/daily-weather-forecast/135050?day=6[/url]
Résolution de [url=http://www.accuweather.com]www.accuweather.com[/url] ([url=http://www.accuweather.com]www.accuweather.com[/url])… 23.38.6.92
Connexion à [url=http://www.accuweather.com]www.accuweather.com[/url] ([url=http://www.accuweather.com]www.accuweather.com[/url])|23.38.6.92|:80… connecté.
requête HTTP transmise, en attente de la réponse… 301 Moved Permanently
Emplacement : [url]https://www.accuweather.com/fr/fr/sarreguemines/135050/daily-weather-forecast/135050?day=6[/url] [suivant]
--2018-01-04 11:19:50-- [url]https://www.accuweather.com/fr/fr/sarreguemines/135050/daily-weather-forecast/135050?day=6[/url]
Connexion à [url=http://www.accuweather.com]www.accuweather.com[/url] ([url=http://www.accuweather.com]www.accuweather.com[/url])|23.38.6.92|:443… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : non indiqué [text/html]
Sauvegarde en : « /home/loutch/1_accuweather/last_days_raw »
[ <=> ] 102 744 --.-K/s ds 0,06s
2018-01-04 11:19:51 (1,78 MB/s) - « /home/loutch/1_accuweather/last_days_raw » sauvegardé [102744]
Last edited by Head_on_a_Stick (2018-01-04 17:39:51)
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
^ OK, second try
${voffset -30}${goto 140}${fs_used_perc /}%
${voffset -1}${goto 132}Home
what is the requirement in the Lua script?
Offline
hello
nothing in "name" & "argument"
name='',
arg='',
max=100,
bg_colour=0xFFFFFF,
bg_alpha=1.0,
fg_colour=0xFFFFFF,
fg_alpha=0.0,
x=85, y=150,
radius=1,
thickness=2,
start_angle=0,
end_angle=360
Last edited by Head_on_a_Stick (2018-01-04 17:40:11)
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
Hi unklar
Hi loutch,
Sorry, I just got around to it today. :8
no problem i think i found what is wrong
i change all this
name='',
arg='',
max=100,
with this
name='time',
arg='%S',
max=1,
Now no error in konsole & the conky work great
Tanks for helping
&
@+
Last edited by loutch (2018-01-11 13:29:33)
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
^^ Congratulations, master loutch!
Offline
WIP
based on this rainmeter skin
The code is a mess at this point, especially the music part which comes from polling deadbeef every second. Using mpd is much easier as it has native support in conky.
The text can be put in conkyrc, and it'd be cleaner, but afaik, conky doesn't support right aligning text.
Last edited by easysid (2018-01-12 18:21:31)
Offline
Hello
I made news conky
the radiotray is on right (the buttons are fakes)
the left one is any conky-clic for audacious (from a covergloobus-skin found on deviantart)
audacious-clic
# -- Conky settings -- #
background no
update_interval 0.5
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 1024
imlib_cache_size 15000
max_specials 10000
max_user_text 15000
diskio_avg_samples 2
format_human_readable yes
border_inner_margin 0
border_outer_margin 0
# -- Window specifications -- #
own_window yes
own_window_type normal
own_window_transparent no
own_window_argb_visual yes
own_window_argb_value 0
own_window_hints undecorate,skip_taskbar,skip_pager,below
own_window_title media
minimum_size 412 176
maximum_width 412
alignment top_right
gap_x 40
gap_y 820
# -- Graphics settings -- #
draw_shades no
draw_outline no
draw_borders yes
draw_graph_borders no
border_width 0
default_bar_size 210 4
default_color 000000
# -- Text settings -- #
use_xft yes
xftfont GE Inspira:size=8
color1 92deee
color2 668c95
color3 d0fefb
color4 2f3d40
color5 ff6c4a
lua_load ~/.conky/audacious/scripts/button_script.lua
lua_draw_hook_pre get_mouse {"media","/tmp/xdo"}
lua_startup_hook start_xdo /tmp/xdo
#lua_shutdown_hook stop_xdo
lua_load ~/.conky/audacious/scripts/lua_functions.lua
lua_load ~/.conky/lua/image.lua
template1 ${lua rc_button {btype=3,bname="button1",blx_off=278,bly_off=75,bw_off=22,bh_off=12}}
template2 ${lua rc_button {btype=3,bname="button2",blx_off=216,bly_off=75,bw_off=22,bh_off=12}}
template3 ${lua rc_button {btype=3,bname="button3",blx_off=185,bly_off=75,bw_off=22,bh_off=12}}
template4 ${lua rc_button {btype=3,bname="button4",blx_off=247,bly_off=75,bw_off=22,bh_off=12}}
template5 ${lua rc_button {btype=3,bname="button5",blx_off=309,bly_off=75,bw_off=22,bh_off=12}}
TEXT
${execi 3 ~/.conky/audacious/scripts/cover.sh}
${lua fDrawImage ~/.conky/audacious/casee.png 0 0 410 138}${lua fDrawImage ~/.conky/audacious/audacious.png 40 32 70 70}${lua fDrawImage ~/.conky/audacious/album.png 28 20 93 92}${voffset -30}${font GE Inspira :size=14}
${alignc -50}${execi 3 audtool current-song-tuple-data artist}${font}
${alignc -50}${execi 3 audtool current-song-tuple-data title}
${alignc -50}${execi 3 audtool current-song-tuple-data album}
${goto 160}${execi 1 audtool current-song-output-length} ${goto 348}${execi 1 audtool current-song-length}
${voffset 10}${goto 160}${color 000000}${execbar expr 100 \* $(audtool --current-song-output-length-seconds) \/ $(audtool --current-song-length-seconds)}$color\
${goto 160}${color ffffff}${execbar echo 0}
${if_match ${template1}==0}
${else}${lua fDrawImage ~/.conky/audacious/images/Orange.png 360 5 35 35}${exec audacious --pause}
${endif}
${if_match ${template2}==0}
${else}${lua fDrawImage ~/.conky/audacious/images/Orange.png 360 5 35 35}${exec audacious --stop}
${endif}
${if_match ${template3}==0}
${else}${lua fDrawImage ~/.conky/audacious/images/Orange.png 360 5 35 35}${exec audacious --rew}
${endif}
${if_match ${template4}==0}
${else}${lua fDrawImage ~/.conky/audacious/images/Orange.png 360 5 35 35}${exec audacious --play}
${endif}
${if_match ${template5}==0}
${else}${lua fDrawImage ~/.conky/audacious/images/Orange.png 360 5 35 35}${exec audacious --fwd}
${endif}
${lua fDrawImage ~/.conky/audacious/ppause.png 278 65 30 15}
${lua fDrawImage ~/.conky/audacious/pstop.png 216 65 30 15}
${lua fDrawImage ~/.conky/audacious/pprev.png 185 65 30 15}
${lua fDrawImage ~/.conky/audacious/pplay.png 247 65 30 15}
${lua fDrawImage ~/.conky/audacious/pnext.png 309 65 30 15}
${voffset -350}
radiotray
background yes
use_xft yes
xftfont Liberation Sans:size=8
xftalpha 1
update_interval 0.1
total_run_times 0
own_window yes
own_window_transparent yes
#own_window_color 000000
own_window_argb_visual yes
#own_window_argb_value 0
own_window_type normal
own_window_hints undecorated,below,skip_taskbar,skip_pager
double_buffer yes
minimum_size 452 160
maximum_width 452
text_buffer_size 2048
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_outline_color white
alignment tr
gap_x 0
gap_y 700
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
#imlib_cache_flush_interval 60
imlib_cache_size 0
# Taille des pointillés
stippled_borders 5
# Couleurs
default_color 000000
default_shade_color 333333
default_outline_color black
lua_load ~/.conky/lua/image.lua
TEXT
${voffset 10}${alignc -40}${font Liberation Sans:size=12}${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio}$font
${voffset 6}${alignc -44}${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray getCurrentMetaData| fold -s -w80 | cut -c1-50}
${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray getCurrentMetaData| fold -s -w80 > ~/.conky/radiotray/artiste_titre.txt}
${lua fDrawImage $HOME/.conky/radiotray/images/casee.png 0 0 450 150}
${texeci 20 ~/.conky/radiotray/pochette.sh}
${lua fDrawImage ~/.conky/radiotray/pochette.png 44 34 70 70}
${lua fDrawImage ~/.conky/radiotray/images/albumcase.png 32 22 93 92}
${lua fDrawImage ~/.conky/radiotray/images/pprev.png 200 70 50 20}
${lua fDrawImage ~/.conky/radiotray/images/ppause.png 251 70 50 20}
${lua fDrawImage ~/.conky/radiotray/images/pnext.png 302 70 50 20}
${lua fDrawImage ~/.conky/radiotray/images/seek1.png 165 100 220 4}
${lua fDrawImage ~/.conky/radiotray/images/seek.png 165 100 100 4}
${lua fDrawImage ~/.conky/radiotray/images/slider.png 262 96 12 12}
${voffset -280}
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
for any vim users, I have modified the conkyrc.vim syntax file to support the new config of v1.10
It is basically copied from lua.vim syntax file. Put it in ~/.vim/syntax/ and you're good to go.
conkyrc.vim
" Vim syntax file
" Language: conkyrc
" Author: Ciaran McCreesh <ciaranm@gentoo.org>
" Version: 20060307
" Copyright: Copyright (c) 2005 Ciaran McCreesh
" Licence: You may redistribute this under the same terms as Vim itself
"
if exists("b:current_syntax")
finish
endif
setlocal commentstring=--\ %s
syn match ConkyrcComment "--.*$"
" syn region ConkyrcComment start="--\[\[" end="\]\]"
syn keyword ConkyrcSetting alignment append_file background border_inner_margin border_outer_margin border_width color0 color1 color2 color3 color4 color5 color6 color7 color8 color9 colorN cpu_avg_samples default_bar_height default_bar_width default_color default_gauge_height default_gauge_width default_graph_height default_graph_width default_outline_color default_shade_color diskio_avg_samples display double_buffer draw_borders draw_graph_borders draw_outline draw_shades extra_newline font format_human_readable gap_x gap_y xinerama_head http_refresh if_up_strictness imap imlib_cache_flush_interval imlib_cache_size lua_draw_hook_post lua_draw_hook_pre lua_load lua_shutdown_hook lua_startup_hook mail_spool max_port_monitor_connections max_text_width max_user_text maximum_width minimum_height minimum_width mpd_host mpd_password mpd_port music_player_interval mysql_host mysql_port mysql_user mysql_password mysql_db net_avg_samples no_buffers nvidia_display out_to_console out_to_http out_to_ncurses out_to_stderr out_to_x override_utf8_locale overwrite_file own_window own_window_class own_window_colour own_window_hints own_window_title own_window_transparent own_window_type pad_percents pop3 sensor_device short_units show_graph_range show_graph_scale stippled_borders temperature_unit template template0 template1 template2 template3 template4 template5 template6 template7 template8 template9 text text_buffer_size times_in_seconds top_cpu_separate top_name_verbose top_name_width total_run_times update_interval update_interval_on_battery uppercase use_spacer use_xft xftalpha xftfont
syn keyword ConkyrcConstant
\ above
\ below
\ bottom_left
\ bottom_right
\ bottom_middle
\ desktop
\ dock
\ false
\ none
\ normal
\ override
\ skip_pager
\ skip_taskbar
\ sticky
\ top_left
\ top_right
\ top_middle
\ middle_left
\ middle_right
\ middle_middle
\ undecorated
\ true
syn match ConkyrcNumber /\S\@<!\d\+\(\.\d\+\)\?\(\S\@!\|}\@=\)/
\ nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
syn match ConkyrcColour /\S\@<![a-fA-F0-9]\{6\}\(\S\@!\|}\@=\)/
\ nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
syn region ConkyrcString start=+'+ end=+'+ contains=ConkyrcConstant, ConkyrcColour
syn region ConkyrcString start=+"+ end=+"+ contains=ConkyrcConstant, ConkyrcColour
syn region ConkyrcVar start=/\${/ end=/}/ contained contains=ConkyrcVarStuff
syn region ConkyrcVar start=/\$\w\@=/ end=/\W\@=\|$/ contained contains=ConkyrcVarName
syn match ConkyrcVarStuff /{\@<=/ms=s contained nextgroup=ConkyrcVarName
syn keyword ConkyrcVarName contained nextgroup=ConkyrcNumber,ConkyrcColour skipwhite acpiacadapter acpifan acpitemp addr addrs alignc alignr apcupsd apcupsd_cable apcupsd_charge apcupsd_lastxfer apcupsd_linev apcupsd_load apcupsd_loadbar apcupsd_loadgauge apcupsd_loadgraph apcupsd_model apcupsd_name apcupsd_status apcupsd_temp apcupsd_timeleft apcupsd_upsmode apm_adapter apm_battery_life apm_battery_time audacious_bar audacious_bitrate audacious_channels audacious_filename audacious_frequency audacious_length audacious_length_seconds audacious_main_volume audacious_playlist_length audacious_playlist_position audacious_position audacious_position_seconds audacious_status audacious_title battery battery_bar battery_percent battery_short battery_time blink bmpx_album bmpx_artist bmpx_bitrate bmpx_title bmpx_track bmpx_uri buffers cached cmdline_to_pid color color0 color1 color2 color3 color4 color5 color6 color7 color8 color9 combine conky_build_arch conky_build_date conky_version cpu cpubar cpugauge cpugraph curl desktop desktop_name desktop_number disk_protect diskio diskio_read diskio_write diskiograph diskiograph_read diskiograph_write distribution downspeed downspeedf downspeedgraph draft_mails else endif entropy_avail entropy_bar entropy_perc entropy_poolsize eval eve exec execbar execgauge execgraph execi execibar execigauge execigraph execp execpi flagged_mails font format_time forwarded_mails freq freq_g fs_bar fs_bar_free fs_free fs_free_perc fs_size fs_type fs_used fs_used_perc goto gw_iface gw_ip hddtemp head hr hwmon i2c i8k_ac_status i8k_bios i8k_buttons_status i8k_cpu_temp i8k_left_fan_rpm i8k_left_fan_status i8k_right_fan_rpm i8k_right_fan_status i8k_serial i8k_version ibm_brightness ibm_fan ibm_temps ibm_volume ical iconv_start iconv_stop if_pa_sink_muted if_empty if_existing if_gw if_match if_mixer_mute if_mounted if_mpd_playing if_running if_smapi_bat_installed if_up if_updatenr if_xmms2_connected image imap_messages imap_unseen ioscheduler irc journal kernel laptop_mode lines loadavg loadgraph lua lua_bar lua_gauge lua_graph lua_parse machine mails mboxscan mem memwithbuffers membar memwithbuffersbar memeasyfree memfree memgauge memgraph memmax memperc mixer mixerbar mixerl mixerlbar mixerr mixerrbar moc_album moc_artist moc_bitrate moc_curtime moc_file moc_rate moc_song moc_state moc_timeleft moc_title moc_totaltime monitor monitor_number mpd_album mpd_artist mpd_bar mpd_bitrate mpd_elapsed mpd_file mpd_length mpd_name mpd_percent mpd_random mpd_repeat mpd_smart mpd_status mpd_title mpd_track mpd_vol mysql nameserver new_mails nodename nodename_short no_update nvidia obsd_product obsd_sensors_fan obsd_sensors_temp obsd_sensors_volt obsd_vendor offset outlinecolor pa_sink_volume pa_sink_volumebar pa_sink_description pa_card_name pa_card_active_profile pb_battery pid_chroot pid_cmdline pid_cwd pid_environ pid_environ_list pid_exe pid_nice pid_openfiles pid_parent pid_priority pid_state pid_state_short pid_stderr pid_stdin pid_stdout pid_threads pid_thread_list pid_time_kernelmode pid_time_usermode pid_time pid_uid pid_euid pid_suid pid_fsuid pid_gid pid_egid pid_sgid pid_fsgid pid_read pid_vmpeak pid_vmsize pid_vmlck pid_vmhwm pid_vmrss pid_vmdata pid_vmstk pid_vmexe pid_vmlib pid_vmpte pid_write platform pop3_unseen pop3_used processes read_tcp read_udp replied_mails rss running_processes running_threads scroll seen_mails shadecolor smapi smapi_bat_bar smapi_bat_perc smapi_bat_power smapi_bat_temp sony_fanspeed stippled_hr stock swap swapbar swapfree swapmax swapperc sysname tab tail tcp_ping tcp_portmon template0 template1 template2 template3 template4 template5 template6 template7 template8 template9 texeci texecpi threads time to_bytes top top_io top_mem top_time totaldown totalup trashed_mails tztime gid_name uid_name unflagged_mails unforwarded_mails unreplied_mails unseen_mails updates upspeed upspeedf upspeedgraph uptime uptime_short user_names user_number user_terms user_times user_time utime voffset voltage_mv voltage_v weather wireless_ap wireless_bitrate wireless_essid wireless_link_bar wireless_link_qual wireless_link_qual_max wireless_link_qual_perc wireless_mode words xmms2_album xmms2_artist xmms2_bar xmms2_bitrate xmms2_comment xmms2_date xmms2_duration xmms2_elapsed xmms2_genre xmms2_id xmms2_percent xmms2_playlist xmms2_size xmms2_smart xmms2_status xmms2_timesplayed xmms2_title xmms2_tracknr xmms2_url
syn region ConkyrcConf start=/^conky\.config\s*=\s*{/ end=/};/ contains=ALLBUT,ConkyrcVar
syn region ConkyrcText start=/^conky\.text\s*=\s*\[\[/ end=/\]\];/ contains=ConkyrcVar
hi def link ConkyrcComment Comment
hi def link ConkyrcSetting Keyword
hi def link ConkyrcConstant Constant
hi def link ConkyrcNumber Number
hi def link ConkyrcColour Special
hi def link ConkyrcString String
hi def link ConkyrcText Normal
hi def link ConkyrcVar Identifier
hi def link ConkyrcVarName Keyword
let b:current_syntax = "conkyrc"
Offline
It has been a while since I have been into conky and I am trying to get my weather to work that I originally got from S11 years ago. The error message is
al@al-X55CR:~$ conky: Syntax error (/home/al/conky/wea_conky/Vert-Weather:2: unexpected symbol near '#') while reading config file.
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:115: unexpected symbol near '}'
All of the files are here https://www.dropbox.com/s/kmskkz7h1qoyc … ar.gz?dl=0
It is supposed to look like this
it is using conky V1.9 and I am using V1.10. I am totally lost with this. Any chance someone could help me figure this out? Thanks
Offline
it is using conky V1.9 and I am using V1.10. I am totally lost with this. Any chance someone could help me figure this out? Thanks
The simplest solution here may be to install my conky version 1:1.9:
https://software.opensuse.org//download … kage=conky
If the repository is added, APT should see my package as "newer" than the Debian stretch version and will switch to it during the next `apt update && apt upgrade` cycle.
My version should still work just fine with all of the old conkyrc files.
Offline
The simplest solution here may be to install my conky version 1:1.9:
^^ or, you try the syntax of version 1.10
conky.config = {
-- To use #! in a conky use: ${exec echo '#!'}
-- conky -c ~/.conky/wea_conky/Vert-Weather &
-- Created by Sector11 ###
-- Begin Window Settings #
-- Create own window instead of using desktop (required in nautilus)
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',--sticky,
--own_window_colour black
own_window_class = 'Forecast Conky',
own_window_title = 'Forecast 6-2 by MrP',
-- 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 = true,
-- 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 override'
own_window_argb_visual = true,
-- When ARGB visuals are enabled, this use this to modify the alpha value
-- Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
-- own_window_argb_value 0
minimum_width = 195, minimum_height = 0,
maximum_width = 195,
gap_x = 10,
gap_y = 10,
alignment = 'bottom_right',
-- End Window Settings #
-- Font Settings #
-- Use Xft (anti-aliased font and stuff)
use_xft = true,
font = 'Anonymous Pro:size=9',
-- Alpha of Xft font. Must be a value at or between 1 and 0 #
xftalpha = 0,
-- Force UTF8? requires XFT #
override_utf8_locale = true,
draw_shades = false,
default_shade_color = 'black',
draw_outline = false,
default_outline_color = 'black',
uppercase = false,
-- End Font Settings #
-- Color Settings #
default_shade_color = 'grey',
default_outline_color = 'black',
default_color = '#DCDCDC',--Gainsboro
color0 = '#778899',--LightSlateGrey
color1 = '#BA55D3',--MediumOrchid
color2 = '#7FFFD4',--Aquamarine
color3 = '#C6FF8E',--Light Green
color4 = '#F08080',--LightCoral
color5 = '#FFDEAD',--NavajoWhite
color6 = '#00BFFF',--DeepSkyBlue
color7 = '#48D1CC',--MediumTurquoise
color8 = '#FFFF00',--Yellow
color9 = '#FF0000',--Red
-- End Color Settings #
-- Borders Section #
draw_borders = false,
-- Stippled borders?
stippled_borders = 0,
-- border margins
border_inner_margin = 10,
border_outer_margin = 0,
-- border width
border_width = 0,
-- graph borders
draw_graph_borders = false,
-- End Borders Secton #
-- Miscellaneous Section #
-- Boolean value, if true, Conky will be forked to background when started.
background = false,
-- 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',
text_buffer_size = 256,
-- Subtract (file system) buffers from used memory?
no_buffers = true,
-- change GiB to G and MiB to M
short_units = true,
pad_percents = 2,
-- End Miscellaneous Section #
-- LUA Settings #
lua_load = '~/wea_conky/draw_bg.lua',
lua_load = '~/wea_conky/forecast_VW.lua',
lua_draw_hook_pre = 'weatherdata',
-- End LUA Settings #
update_interval = 2,
};
conky.text = [[
${lua conky_draw_bg 15 0 0 0 0 0x000000 0.4}${color6}${lua weather day1.day}${goto 100}${color2} Low ${lua weather day1.low}° ${font}${color white}/ ${color4}Hi ${lua weather day1.hih}°${color}
${goto 50}Now ${font Zekton:size=16}${color6}${lua weather now.tmp}° ${color5}/ ${voffset -10}${font}FL ${font Zekton:size=16}${color6}${lua weather now.flk}°${color}${font}\
${lua weather image.now 50 80 60 60}
${goto 100}${color7} Humidity:${color} ${lua weather now.hum}%
${goto 100}${color7} Dew Point:${color} ${lua weather now.dpt}°
${goto 100}${color7}Wind Chill:${color} ${lua weather now.wch}°
${goto 100}${color7}Heat Index:${color} ${lua weather now.hid}°
${color7}Ceil:${color} ${lua weather now.cel}${goto 100}${color7}Visibility:${color} ${lua weather now.vis}
${color7}Wind:${color} ${lua weather now.wsp} mph ${color7}@${color} ${lua weather now.wdg}° ${color7}(${color}${lua weather now.wdi}${color7})${color}
${color7}Barometer:${color} ${lua weather now.prs} ${color7}Gusts:${color} ${lua weather now.wgs}${color}
${color7}Phase: ${color}${lua weather day1.mph}
${font Zekton:size=16}${color}${lua weather now.con}${font}
${color5}Today's Forecast ${hr}${color}${lua weather image.day1 30 240 35 35}
${goto 50}${color7}Precip:${color}${lua weather day1.ppt}% ${goto 130}${color7}Cloud: ${color}${lua weather day1.cld}%
${goto 55}${color7} UVI: ${color}${lua weather day1.uvn} (${lua weather day1.uvt})
${goto 55}${color7} Sun: ${color5}${lua weather day1.sri} ${color0}${lua weather day1.sst}
${goto 55}${color7}Moon: ${color5}${lua weather day1.mri} ${color0}${lua weather day1.mst}${color}
${lua weather moonfont.day1 20 280 20 0xFFFFFF}${goto 55}${color}${lua weather day1.mph}
${stippled_hr 2}
${color6}${lua weather day2.day}${goto 120}${lua weather day3.day}
${color2}${lua weather day2.low}° <${color4}> ${lua weather day2.hih}°${color}\
${goto 120}${color2}${lua weather day3.low}° <${color4}> ${lua weather day3.hih}°\
${lua weather image.day2 45 355 35 35}${lua weather image.day3 155 355 35 35}
${color6}${lua weather day4.day}${goto 120}${lua weather day5.day}
${color2}${lua weather day4.low}° <${color4}> ${lua weather day4.hih}°${color}\
${goto 120}${color2}${lua weather day5.low}° <${color4}> ${lua weather day5.hih}°\
${lua weather image.day4 45 425 35 35}${lua weather image.day5 155 425 35 35}
${color6}${lua weather day6.day}${goto 120}${lua weather day7.day}
${color2}${lua weather day6.low}° <${color4}> ${lua weather day6.hih}°${color}\
${goto 120}${color2}${lua weather day7.low}° <${color4}> ${lua weather day7.hih}°\
${lua weather image.day6 45 500 35 35}${lua weather image.day7 155 500 35 35}
${color6}${lua weather day8.day}${goto 120}${lua weather day9.day}
${color2}${lua weather day8.low}° <${color4}> ${lua weather day8.hih}°${color}\
${goto 120}${color2}${lua weather day9.low}° <${color4}> ${lua weather day9.hih}°\
${lua weather image.day8 45 575 35 35}${lua weather image.day9 155 575 35 35}
${color}${hr}
#${execpi 1800 conkyForecast -i --location=340044 --template=/media/DATEN/Abgleich/Conky/Sector11/wea_conky/vert.template}
#+- Updated: ${execpi 120 conkyForecast --datatype=LU}
#+- Fetched: ${execpi 120 conkyForecast --datatype=LF}
]];
Offline
Offline
Thanks a lot. I'll try it out in the morning
Offline
^unklar I have it working except t will not show current or update. Any chance because it was coded for the Weather Channel website that it will not work for Accuweather?
Offline
I have it working except t will not show current or update. Any chance because it was coded for the Weather Channel website that it will not work for Accuweather?
yes.
please be aware that ALL conky scripts require manual care, but esp. the weather scripts.
some weather services aren't available in all countries, their websites change over the year etc. etc.
i think you should post the actual conky code here, if you still have problems with it.
that dropbox link was a show-stopper for me (tar.gz AND javascript).
Offline
I have been looking thru some other forums and I have come across the realization that my conky code including the weather is outdated and I need to start over from scratch. Thanks for your input.
Offline
conky.config = {
--#############################################
-- Settings
--#############################################
background = true,
use_xft = true,
font = 'Ubuntu:regular:size=10',
xftalpha = 1.0,
update_interval = 1.0,
-- update_interval_on_battery = 30.0,
total_run_times = 0,
own_window = true,
own_window_colour = '#141414',
own_window_transparent = true,
-- own_window_type = 'dock',
own_window_type = 'desktop' ,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_class = 'ConkyFB',
own_window_title = 'ConkyFB',
--#############################################
-- Compositing tips:
-- Conky can play strangely when used with
-- different compositors. I have found the
-- following to work well, but your mileage
-- may vary. Comment/uncomment to suit.
--#############################################
--#
-- own_window_argb_visual = true,
-- own_window_argb_value = 2,
--# xcompmgr
-- own_window_argb_visual yes
-- own_window_argb_value 120
--# cairo-compmgr
--own_window_type desktop
--own_window_argb_visual yes
--#############################################
no_buffers = true,
uppercase = true,
cpu_avg_samples = 2,
override_utf8_locale = true,
short_units = true,
imlib_cache_size = 0,
pad_percents = 1,
max_user_text = 3200,
text_buffer_size = 1024,
if_up_strictness = 'address',
double_buffer = true,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
border_inner_margin = 1,
border_outer_margin = 1,
default_color = '#D1BF64',
default_shade_color = '#000000',
default_outline_color = '#828282',
color0 = '#FFFFFF',
color1 = '#000000',
color2 = '#73AEB4',-- - blue titles
color3 = '#FFFF00',-- - yellow
color4 = '#0000FF',-- - blue
color5 = '#00FF00',-- - green
color6 = '#FFA500',-- - orange
color7 = '#D1BF64',-- - cyan3
color8 = '#DAA520',-- - gold
color9 = '#F00A11',-- - reddish
minimum_width = 256, minimum_height = 0,
maximum_width = 256,
alignment = 'top_left',
gap_x = 12,
gap_y = 12,
};
conky.text = [[
${voffset 10}${goto 12}${color2}Kernel:${goto 120}${color}${kernel}
${voffset 12}${goto 12}${color2}Uptime:${goto 120}${color}${uptime_short}
${voffset 12}${goto 12}${color2}CPU:${goto 120}${if_match ${cpu}<=50}${color7}${else}${if_match ${cpu}<=70}${color8}${else}${if_match ${cpu}>70}${color9}${endif}${endif}${endif}${cpu cpu0}%${color}
${voffset 6}${goto 120}${loadavg 1}${offset 10}${loadavg 2}${offset 10}${loadavg 3}
${voffset 12}${goto 12}${color2}RAM:${goto 120}${if_match ${memperc}<=50}${color7}${else}${if_match ${memperc}<=70}${color8}${else}${if_match ${memperc}>70}${color9}${endif}${endif}${endif}${memperc}%${color}
${voffset 12}${goto 12}${color2}Batt:${color}${goto 120}${if_match ${battery_percent BAT0}<=15}${blink ${battery_percent BAT0}%}${else}${battery_percent BAT0}%${endif}${offset 12}${execpi 60 acpi | awk '/Battery 0/ {print $3}' | cut -c1-4}
${voffset 12}${goto 12}${color2}Up:${color}${goto 120}${upspeedgraph wlo1 16,112 666666 ff0000}
${voffset 12}${goto 12}${color2}Down:${color}${goto 120}${downspeedgraph wlo1 16,112 000000 00ff00}
]];
You must unlearn what you have learned.
-- yoda
Online
my conky :
but i cant remember how to put fortune cookies on it :-(
anyone kind enough to help ?
Last edited by voids (2018-01-19 06:12:24)
at the beginning there was darkness then came light
Offline