You are not logged in.

#1001 2018-12-21 02:36:07

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 5,575
Website

Re: Show us your conky

Sector11 wrote:
loutch wrote:

Hello
GREAT MASTER CONKYSTADOR

and thus the phrase I coined and became is passed forward to a much better Conkystador!

I thought I had invented that title for you! Could be memory fuzz though...


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#1002 2018-12-21 03:44:33

damo
....moderator....
Registered: 2015-08-20
Posts: 5,006

Re: Show us your conky

I thought it was me!


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#1003 2018-12-21 05:11:06

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 5,575
Website

Re: Show us your conky

dGjnqCl.png

Must have been a collective visitation or something.


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#1004 2018-12-21 10:18:49

unklar
Member
Registered: 2015-10-31
Posts: 891

Re: Show us your conky

lol lol

It doesn't matter who assign the term. In any case, HE is!  tongue

Offline

#1005 2018-12-21 10:28:57

loutch
Member
Registered: 2015-12-12
Posts: 311

Re: Show us your conky

Hello

here a video from my conky-radiotray (must be seen in full-screen)

https://drive.google.com/open?id=10nzyM … Ks2ASZeYp3


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Online

#1006 2018-12-21 18:52:43

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 846

Re: Show us your conky

Sector11 wrote:

====================
I have a couple of conky's that require the help of lynx as well.  And a shell script that my wife has been bugging me about "forever", that I have tried a million ways to Sunday to fix.  No go.

We could try to fix them together sometime S11.

@loutch and unklar
Do you mean that even after changing wget to lynx the images change continuously, even when there's no song change?


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

#1007 2018-12-21 19:16:45

unklar
Member
Registered: 2015-10-31
Posts: 891

Re: Show us your conky

TeoBigusGeekus wrote:

@loutch and unklar
Do you mean that even after changing wget to lynx the images change continuously, even when there's no song change?

Yes, Teo.
But this only happens where I run the syntax1.10 of Conky (siduction; arch-linux; mx)

With syntax1.9 this does not happen (bunsenlabs; antiX; mageia5)   big_smile

Offline

#1008 2018-12-21 19:19:35

unklar
Member
Registered: 2015-10-31
Posts: 891

Re: Show us your conky

loutch wrote:

Hello

here a video from my conky-radiotray (must be seen in full-screen)

https://drive.google.com/open?id=10nzyM … Ks2ASZeYp3

@loutch

excellent work. You are an artist.  angel

Offline

#1009 2018-12-21 19:29:26

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 846

Re: Show us your conky

Does it at least get the correct image for a while before changing to an irrelevant 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

#1010 2018-12-21 19:36:01

unklar
Member
Registered: 2015-10-31
Posts: 891

Re: Show us your conky

Yes.
Where irrelevant is not true. It is practically then the picture, what google shows, if radiotray is not switched on.

As a rule it is this here on the left

Offline

#1011 2018-12-21 20:04:38

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 846

Re: Show us your conky

When you get the generic image, does the following command

qdbus net.sourceforge.radiotray /net/sourceforge/radiotray getCurrentMetaData

show the correct artist?


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

#1012 2018-12-21 20:13:41

unklar
Member
Registered: 2015-10-31
Posts: 891

Re: Show us your conky

to be exact, it's executed four times.

conky.text = [[

#${lua fDrawImage ~/.conky/radiotray/images/caset.png 00 00 150 150}
${voffset 120}${if_match "${execi 5 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray getCurrentMetaData| fold -s -w40}" == "Playing"} 
${else}${execi 5 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray getCurrentMetaData| fold -s -w40 }${endif}
${execi 5 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray getCurrentMetaData| fold -s -w40 > ~/.conky/radiotray/artiste_titre.txt}
${execi 5 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio > ~/.conky/radiotray/logo.txt}
${texeci 3 ~/.conky/radiotray/pochette.sh}${texeci 5 ~/.conky/radiotray/logo.sh}
${if_match "${execi 5 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray getCurrentMetaData| fold -s -w40}" == "Playing"}${lua fDrawImage ~/.conky/radiotray/logo.png 19 19 112 112}
${else}${lua fDrawImage ~/.conky/radiotray/pochette.png 19 19 112 112}${endif}
${voffset -800} 
]];

Last edited by unklar (2018-12-21 20:17:49)

Offline

#1013 2018-12-21 20:26:59

loutch
Member
Registered: 2015-12-12
Posts: 311

Re: Show us your conky

unklar wrote:
loutch wrote:

Hello

here a video from my conky-radiotray (must be seen in full-screen)

https://drive.google.com/open?id=10nzyM … Ks2ASZeYp3

@loutch

excellent work. You are an artist.  angel

just a litle litle artist . All my conkys are working great on Mageia 5 & linuxmint Sarah

(version 1.90) with other distros & version 1.10 someone are catastrophic

@ Theo

no probleme with conky 1.90 in M5kde

here conkyrc

background yes
use_xft yes
xftfont GE Inspira:size=10
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 412 96
maximum_width 412
text_buffer_size 2048
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_outline_color white
alignment tl
gap_x 0
gap_y 780
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 ffffff#ffd579
default_shade_color 333333rad
default_outline_color black

lua_load ~/.conky/lua/image.lua
lua_load  ~/.conky/radiotray/audio_spectrum.lua
lua_draw_hook_pre spectrum    default  160 80    1   27 7 1    16 1 1    2f3d40 1 ff6c4a 1

TEXT

${voffset -8}${alignc -50}${font GE Inspira:size=12}${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio}$font
                                                    ${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio > ~/.conky/radiotray/logo.txt}
${voffset 25}${font GE Inspira:size=7}${if_match "${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray getCurrentMetaData| fold -s -w30}" == "Playing"} ${else}
${alignc -60}${voffset -12}${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray getCurrentMetaData| fold -s -w80 | cut -c1-50}${endif}
${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray getCurrentMetaData| fold -s -w80 > ~/.conky/radiotray/artiste_titre.txt}
${lua fDrawImage $HOME/.conky/radiotray/images/case.png 0 0 410 108}
${if_match "${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio}" == "RTL"}${lua fDrawImage ~/.conky/radiotray/logos/rtl.png 240 30 40 40}${else}
${if_match "${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio}" == "HOTMIX80"}${lua fDrawImage ~/.conky/radiotray/logos/hotmix-80.png 240 28 35 35}${else}
${if_match "${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio}" == "MAXI80"}${lua fDrawImage ~/.conky/radiotray/logos/maxi80.png 250 29 35 35}${else}
${if_match "${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio}" == "RTL2"}${lua fDrawImage ~/.conky/radiotray/logos/rtl2.png 246 30 45 45}${else}
${if_match "${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio}" == "MAGNUM LA RADIO"}${lua fDrawImage ~/.conky/radiotray/logos/magnumradio.png 214 26 120 40}${else}
${if_match "${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio}" == "LOUNGERADIO"}${lua fDrawImage ~/.conky/radiotray/logos/lounge-radio.png 254 30 40 40}${else}
${if_match "${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio}" == "NOSTALGIE"}${lua fDrawImage ~/.conky/radiotray/logos/nostalgie.png 214 20 100 60}${else}
${if_match "${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio}" == "NOSTALGIE80"}${lua fDrawImage ~/.conky/radiotray/logos/nostalgie_80.png 230 30 80 40}${else}
${if_match "${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio}" == "LOR FM"}${lua fDrawImage ~/.conky/radiotray/logos/lorfm.png 230 10 70 70}${else}
${if_match "${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio}" == "181.fm"}${lua fDrawImage ~/.conky/radiotray/logos/181fm.png 244 30 45 45}${else}
${if_match "${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio}" == "Radio swiss pop"}${lua fDrawImage ~/.conky/radiotray/logos/rspop.png 244 30 45 45}${else}
${if_match "${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio}" == "RFM"}${lua fDrawImage ~/.conky/radiotray/logos/rfm.png 247 28 35 35}${endif}
${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}
${texeci 9 ~/.conky/radiotray/pochette.sh}
${if_match "${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray getCurrentMetaData| fold -s -w30}" == "Playing"}${lua fDrawImage ~/.conky/radiotray/logos/radio.png 19 10 78 78}
${else}${lua fDrawImage ~/.conky/radiotray/pochette.png 24 14 68 70}${endif}
${lua fDrawImage ~/.conky/radiotray/images/stop.png 115 31 13 13}
${lua fDrawImage ~/.conky/radiotray/images/prev.png 100 45 13 13}
${lua fDrawImage ~/.conky/radiotray/images/play.png 115 45 13 13}
${lua fDrawImage ~/.conky/radiotray/images/next.png 130 45 13 13}
${lua fDrawImage ~/.conky/radiotray/images/pause.png 115 59 13 13}
${lua fDrawImage ~/.conky/radiotray/images/bar.png 98 78 48 4}
${lua fDrawImage ~/.conky/radiotray/images/grip.png 115 78 5 5}
${lua fDrawImage ~/.conky/radiotray/images/1-play.png 155 15 10 10}
${voffset -800}

Last edited by loutch (2018-12-21 20:28:29)


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Online

#1014 2018-12-21 21:16:18

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 846

Re: Show us your conky

unklar wrote:

to be exact, it's executed four times.

Yes, but when the incorrect image is shown does the command report back the correct artist?


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

#1015 2018-12-21 21:25:45

unklar
Member
Registered: 2015-10-31
Posts: 891

Re: Show us your conky

exact
if the "wrong" image appears, the right artist still remains as text under the wrong image.


Edit:
maybe as a supplement:
the script asks aunt Google. Google provides the first picture that is found. This picture / cover (must) not necessarily match the current cover of the radio station.
It can also be another cover of this artist.

Example: Screenshot_20181221_230722.th.png

Last edited by unklar (2018-12-21 22:11:04)

Offline

#1016 2018-12-22 22:13:25

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 846

Re: Show us your conky

What triggers my interest is how it works nicely with 1.9 as you say, but fails with 1.10.
How can the conky version used affect a google search invoked by a bash script?


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

#1017 2018-12-23 09:02:52

unklar
Member
Registered: 2015-10-31
Posts: 891

Re: Show us your conky

In my opinion these are the unsolved puzzles of version 1.10, this other version written entirely in Lua. The internal procedures are no longer identical to those of 1.9.  sad
I had already written above, the same error occurs when I "reproach" the 1.10 here in siduction or arch, the configuration of the 1.9 of loutch without converting it. It only shows the initial error, that it is "an old syntax" and still boots the Conky.

conky: Syntax error (/home/unklarer/.conky/radiotray/images/conkyrc:1: '=' expected near 'yes') while reading config file.

There is a reason why our friend S11 consistently refuses to use the syntax1.10.  big_smile

Thank you very much for your interest. And, at Christmas time!
I wish you, Sector11 and everyone here in the forum a Merry Christmas!
You are the best.  hi.gif

Offline

#1018 2018-12-24 01:41:15

Sector11
The Tpyo Knig Mod
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,442

Re: Show us your conky

Frohe Weihnachten unklar to you and your family.  Hope you see your grandson too.
Καλά Χριστούγεννα Teo to your family as well. You're awesome

... and just generally speaking ....

Glædelig jul
Joyeux Noël (Nicole)
メリークリスマス
Feliz Natal
Feliz Navidad

and a Merry Christmas in every other language going!


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#1019 2018-12-24 12:52:36

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 846

Re: Show us your conky

Merry Christmas to all!!!

@unklar
I installed radiotray but it crashes on me.
I installed radiotray-ng but the qdbus commands don't work with it.
Maybe if I find some time during the holidays I'll re-examine the issue, until then...


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

#1020 2018-12-25 17:50:45

unklar
Member
Registered: 2015-10-31
Posts: 891

Re: Show us your conky

Teo, you tireless fighter.  big_smile

That's not so important now. The family goes ahead and a German proverb says:
"ComesTime , Comes advice "  wink


Thank you.

Offline

#1021 2018-12-27 17:20:42

loutch
Member
Registered: 2015-12-12
Posts: 311

Re: Show us your conky

hello

TeoBigusGeekus wrote:

Merry Christmas to all!!!

@unklar
I installed radiotray but it crashes on me.
I installed radiotray-ng but the qdbus commands don't work with it.
Maybe if I find some time during the holidays I'll re-examine the issue, until then...

I'm trying Mageia7 xfce in vb she don't have radiotray just radiotray-ng  & i found this commands for my conky

${execi 5 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.station'}
${execi 5 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.artist'}
${execi 5 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.title'}
${execi 5 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.volume'}

you can ad that to

group
image no cover just icon if you ad anyone
state
volume

@+

Last edited by loutch (2018-12-27 17:21:05)


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Online

#1022 2018-12-27 22:27:21

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 846

Re: Show us your conky

That's brilliant loutch, thanks!

So, I used radiotray-ng and the following conf file

conky.config = {
	background = true,
	use_xft = true,
	font = 'Liberation Sans:size=8',
	xftalpha = 1,
	update_interval = 1.0,
	total_run_times = 0,
	own_window = true,
	own_window_transparent = true,
--own_window_color 000000
own_window_argb_visual = true,
--own_window_argb_value = 250,
	own_window_type = 'normal',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
	double_buffer = true,
	minimum_width = 200, minimum_height = 180,
--maximum_width 200
	text_buffer_size = 2048,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	default_color = 'white',
	default_outline_color = 'white',
	alignment = 'bottom_right',
	gap_x = 70,
	gap_y = -10,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	override_utf8_locale = true,
--imlib_cache_flush_interval = 60,
	imlib_cache_size = 0,


-- Taille des pointillés
	stippled_borders = 5,

-- Couleurs
	default_color = '#ffffff',--ffd579
	default_shade_color = '#333333',
	default_outline_color = 'black',

};

conky.text = [[

${texeci 10 ./test_script}
${image pochette.png -p 0,0}
]];

and script (called it test_script)

#!/bin/bash
#créé par loutch

qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep artist |sed 's/^.*" \: "//' |sed 's/",.*$//' > artiste_titre.txt
qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep title |sed 's/^.*" \: "//' |sed 's/",.*$//' >> artiste_titre.txt
titre=$(cat artiste_titre.txt)
lynx --source -useragent="Googlebot-Image/1.0" "www.google.fr/search?q=$titre\&tbm=isch" | perl -pe 's!.*?<img .*?src="([^"]*)".*!$1!' > lienMiniaturefile
sed -i 's/^.* http\:/http\:/' lienMiniaturefile
sed -i '/gstatic/!d' lienMiniaturefile

lienMiniature=$(cat lienMiniaturefile)
lynx -dump "$lienMiniature" > miniatureGoogleImage

convert miniatureGoogleImage pochette.png

I completely ditched lua (and the if_match commands for the sake of simplicity), changed the update interval to 10 secs and what do you know?... It works flawlessly!
...for the five minutes I managed to dedicate to it that is.
Could you please test it for a longer period of time? Maybe your problem is lua, not conky 1.10...


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

#1023 2018-12-28 10:16:52

loutch
Member
Registered: 2015-12-12
Posts: 311

Re: Show us your conky

hello Theo

Great work it is  perfect for conky 1.10 in my VB mageia7

you must just ad this

#!/bin/bash
#créé par loutch
#2018-12-27 modifier par TeoBigusGeekus pour radiotray-ng et conky 1.10

Last edited by loutch (2018-12-28 10:40:29)


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Online

#1024 2018-12-28 11:07:50

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 846

Re: Show us your conky

Never mind credits, just test it and report back if you have the time.


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

#1025 2018-12-28 14:44:58

unklar
Member
Registered: 2015-10-31
Posts: 891

Re: Show us your conky

Unfortunately, the radiotray-ng package is only available in mageia7 (cauldron = the unstable under development version) and in AUR from archlinux.  https://pkgs.org/
It is not available in Debian.  sad   

mageia7 I didn't even have in a VB
so there is only archlinux left and here I had to learn again how to install packages from the AUR.

So I can only report, since 5 minutes the picture / cover runs stable, without changing with the one from *google*.   big_smile

Offline

Board footer

Powered by FluxBB