Forum › Forums › General › Tips and Tricks › Add your city weather to Conky.
- This topic has 8 replies, 6 voices, and was last updated Jun 18-2:57 pm by marcelocripe.
-
AuthorPosts
-
June 16, 2022 at 8:36 pm #84695Member
longducdong
For those who want to add their city weather to Conky, found the instruction on YouTube.
Control Centre > Edit System Monitor (Conky).
Scroll down to bottom and paste
${execi 60 curl wttr.in/saigon?format="saigon:+%C+%t\n"}
Replace “saigon” with your city name.
BTW I’n running Antix 19, so don’t know about Antix 21- This topic was modified 10 months, 3 weeks ago by caprea. Reason: added code tags,quotation marks are otherwise malformed
June 16, 2022 at 8:52 pm #84697Member
blur13
::that last \n is for a new line, doesnt really add anything since in conkyrc you can add lines anyways. Thats more useful for longer outputs when you want everything fetched with one curl command but structured in different lines.
Anyways, the main reason I’m posting is because that “execi 60” updates every 60 seconds, which seems redundant for a weather service. The weather doesnt change every minute. Maybe 1200 is more sensible. If you have too many “execi” updating often conky will start using noticably more cpu.
Other than that, you found a great “one liner” for the weather. Thanks for sharing!
June 16, 2022 at 9:16 pm #84699Moderator
Brian Masinick
::In “the old days”, major weather forecast services available to the general public were only updated infrequently, sometimes as infrequently as hourly.
I still see a few services that update at xx:53, in other words 53 minutes past the hour, but if the temperature does change, many of them do change.I also see, however, a number of services that provide essentially up-to-the-minute weather services that will change a phone display. The one I personally use, based on “Wunderground Weather” is one of those services.
Perhaps once a minute is a very frequent change but I don’t think that’s often enough to seriously disturb Conky; after all, the time changes every minute too.
For those who want a less frequent change, 600 would be every ten minutes, 900 would be every fifteen minutes and 1200 would be every twenty minutes, so it’s the choice and the comfort level of the user to decide if any of these, or something else, is what is preferred.
--
Brian MasinickJune 16, 2022 at 9:45 pm #84703Member
longducdong
::Thank you for all those suggestions. I was wondering what that “60” represents. Now I know 😀
June 17, 2022 at 8:53 am #84710Anonymous
::Brian Masinick, who or what entitles you to doubt @blur13’s completely correct remark about the execi command ?
June 17, 2022 at 12:31 pm #84722Moderator
Brian Masinick
::Brian Masinick, who or what entitles you to doubt @blur13’s completely correct remark about the execi command ?
I suggest that you refrain from criticism.
1) I personally use weather services daily.
2) I did not criticize or discredit anyone or anything. I simply elaborated on the 60 second value; I did question whether it would cause a conky issue and simply explained the various values; 60 is fine if someone really does want updates every minute.
If you want to remain on the forum stop attacking me and other people.
--
Brian MasinickJune 17, 2022 at 4:39 pm #84732Membermadibi
::@longducdong
thx for the nice script.
I immediately added it to my main antiX pc.I changed it this way: ${execi 600 curl wttr.in/turin?format=”Torino:+%C+%t\n”}
because I like to have the name of my town with the 1st letter in capital letters 🙂
@blur13 & @Brian Masinik
thx for the explanation of the script, so I could adapt the time to my tastem
June 17, 2022 at 5:09 pm #84733Moderator
Brian Masinick
::@longducdong
thx for the nice script.
I immediately added it to my main antiX pc.I changed it this way: ${execi 600 curl wttr.in/turin?format=”Torino:+%C+%t\n”}
because I like to have the name of my town with the 1st letter in capital letters 🙂
@blur13 & @Brian Masinick
thx for the explanation of the script, so I could adapt the time to my tastem
Perfect! That’s the only reason I went into more detail; 600 (10 minutes) is a good choice.
--
Brian MasinickJune 18, 2022 at 2:57 pm #84797Member
marcelocripe
::Hello longducdong.
The other topics about Conky in antiX might be of interest to you:
– – – – –
Olá longducdong.
Os outros tópicos sobre o Conky no antiX podem ser do seu interesse:
https://www.antixforum.com/forums/topic/cli-or-conky/
https://www.antixforum.com/forums/topic/conky-reporting-disk-operation-how-to-separate-read-and-write/
https://www.antixforum.com/forums/topic/conky-transparency-problem/
https://www.antixforum.com/forums/topic/clean-out-redundant-windoze-partition-resize-antix/
https://www.antixforum.com/forums/topic/how-to-change-time-on-conky/
https://www.antixforum.com/forums/topic/exec-sh-in-conky/
https://www.antixforum.com/forums/topic/antix-conky-disk-space-misinformation/ -
AuthorPosts
- You must be logged in to reply to this topic.