Add your city weather to Conky.

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.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #84695
    Member
    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
      #84697
      Member
      blur13
        Helpful
        Up
        0
        ::

        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!

        #84699
        Moderator
        Brian Masinick
          Helpful
          Up
          0
          ::

          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 Masinick

          #84703
          Member
          longducdong
            Helpful
            Up
            0
            ::

            Thank you for all those suggestions. I was wondering what that “60” represents. Now I know 😀

            #84710
            Anonymous
              Helpful
              Up
              0
              ::

              Brian Masinick, who or what entitles you to doubt @blur13’s completely correct remark about the execi command ?

              #84722
              Moderator
              Brian Masinick
                Helpful
                Up
                1
                ::

                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 Masinick

                #84732
                Member
                madibi
                  Helpful
                  Up
                  0
                  ::

                  @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 taste

                  m

                  #84733
                  Moderator
                  Brian Masinick
                    Helpful
                    Up
                    0
                    ::

                    @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 taste

                    m

                    Perfect! That’s the only reason I went into more detail; 600 (10 minutes) is a good choice.

                    --
                    Brian Masinick

                    #84797
                    Member
                    marcelocripe
                    Viewing 9 posts - 1 through 9 (of 9 total)
                    • You must be logged in to reply to this topic.