Closed wonderil closed 6 years ago
Try this:
${texeci 1800 curl -s wttr.in | sed -n '3,7{s/\d27\[[0-9;]*m//g;s/^..//;s/ *$//;p}'}
@chubin thanks for you
@mingyumu Have you tried it? Does it work for you?
@chubin I tried to modify the grammar to make it run as if it were not
Does not work in new conky: conky: Syntax error (/home/vitich/.conky/conky_tr:2: unexpected symbol near '#') while reading config file. conky: Assuming it's in old syntax and attempting conversion. conky: [string "..."]:150: [string "converted config"]:119: nesting of [[...]] is deprecated near '['
Works like a charm for me! Many thanks, @chubin It's too bad that conky can't handle the colors though...
Edit: conky version: conky 1.10.8_pre compiled Thu Feb 15 00:04:25 UTC 2018 for Linux 4.15.3-1-ARCH x86_64
Edit 2: for anyone else who might find this via Google, I've written a hacky little script to replace the terminal color codes with conky-compatible colors codes. See here: https://gist.github.com/tronje/21c4c1ecf7a9afb133f1814336ac3d48
Transparent variant with imagemagick
${texeci 1800 curl wttr.in/kyiv_0pq_lang=uk.png | convert - -transparent black $HOME/.config/conky/out.png}
${image $HOME/.config/conky/out.png -p 0,0}
True ${texeci 1800 curl wttr.in/kyiv_0pqlang=uk.png | convert - -transparent black $HOME/.config/conky/out.png} ${image $HOME/.config/conky/out.png -p 0,0 **-n_**}
@EvgenyiRa Is -n
critical here?
@EvgenyiRa @vitich Could you please share a couple of screenshots with conky + wttr.in? I am going to add them to README.md
@chubin
Thanks a lot!
the ascii is all bugged for me
the ascii is all bugged for me
${voffset 65} ${texeci 30 phantomjs $HOME/phantomjs/rasterize.js http://wttr.in/Kyiv /dev/stdout | convert - -crop 200x140+0+0 -transparent black /tmp/wttr.png} ${image /tmp/wttr.png -p}
thanks