Conky and wttr

Forum rules
Before you post please read how to get help
antcj
Level 3
Level 3
Posts: 110
Joined: Thu Jun 28, 2012 11:17 pm

Re: Conky and wttr

Post by antcj »

Ok i found this link https://gist.github.com/tronje/21c4c1ec ... 4336ac3d48
Many thanks to that poster

using that i managed to get this:

http://pix.toile-libre.org/upload/origi ... 884835.jpg

so very happy .
Couldn't have done it without the community support
User avatar
zcot
Level 6
Level 6
Posts: 1094
Joined: Wed Oct 19, 2016 6:08 pm

Re: Conky and wttr

Post by zcot »

Great! Excellent work! :D

Also, you could use a different font to get a correct wind direction icon showing. It showed correctly with the 'Liberation Mono' I showed in that previous example.. and there's others.
User avatar
zcot
Level 6
Level 6
Posts: 1094
Joined: Wed Oct 19, 2016 6:08 pm

Re: Conky and wttr

Post by zcot »

just to leave another for the thread:

Code: Select all

conky.config = {
    use_xft = true,
    minimum_width = 10,
    minimum_height = 10,
    gap_x = 10,
    gap_y = 10,
    alignment = 'top_right',
    update_interval = 14400.0,
};

conky.text = [[
${exec curl -s wttr.in/Orlando?format='%l:+%c+%t,+%w+%m'}
]]
User avatar
Gruppo Sportivo
Level 4
Level 4
Posts: 204
Joined: Sun May 28, 2017 4:14 am
Location: Nissewaard (NL)

Re: Conky and wttr

Post by Gruppo Sportivo »

wttr.in text only.

Used country codes (nl.wttr.in and es.wttr.in)
Special characters and symbols added in text to indicate sunset and sunrise time (☼,¸,↑,↓).

Code: Select all

${color #4e6969}${font Weather:size=14}c${font}${color} ${execi 600 curl -s nl.wttr.in/Spijkenisse?format=%l+%c%t+%o+%h,+%w+%p+%m¸☼↑+%S↓+%s}
${color #4e6969}${font Weather:size=14}c${font}${color} ${execi 600 curl -s es.wttr.in/Alicante?format=%l+%c%t+%o+%h,+%w+%p+%m¸☼↑+%S↓+%s}
Image
Post Reply

Return to “Compiz, Conky, Docks, & Widgets”