Search Results for 'conky weather'

Forum Forums Search Search Results for 'conky weather'

Viewing 15 results - 16 through 30 (of 77 total)
  • Author
    Search Results
  • #84770

    In reply to: CLI or conky

    Moderator
    Brian Masinick

      I’ve been writing some fairly simple weather scripts in multiple scripting languages.

      I’ll add some Conky scripts to my list.

      This is a great topic; please remember to keep the discussion kind and civil. I love the ideas here and I don’t want to be forced to remove inappropriate stuff; I appeal to everyone to respect the forum etiquette and policy.

      I’ll update that thread as a reminder to everyone.

      Thanks!

      --
      Brian Masinick

      #84722
      Moderator
      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 Masinick

        #84699
        Moderator
        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 Masinick

          #84697
          Member
          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!

            #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, 4 weeks ago by caprea. Reason: added code tags,quotation marks are otherwise malformed
              #84637

              In reply to: Local weather on conky

              Moderator
              BobC

                Hi, Use Forum>>Search to look for conky weather

                Tips for newbies are here:
                https://www.antixforum.com/forums/topic/short-essential-how-to-list-for-the-complete-linux-newbie/

                #84634
                Member
                longducdong

                  Hello everyone, I’m new to Linux. I have Antix 19 on my laptop. I’d to add local weather to conky. Any help would be appreciated.

                  #83243

                  In reply to: CLI or conky

                  Moderator
                  Brian Masinick

                    I separated off topic digressions from this topic; let’s return to ONLY Conky related comments.

                    I have two areas of question and interest:

                    1) Does anyone have any good scripts for EITHER a shell or programming language that are reasonably up-to date for obtaining current weather data from the Wunderground weather service?

                    Once upon a time there were several good scripts; maybe they’ve been updated several times. The old ones I once had don’t work any more.

                    2) We have lots of great Conky scripts in our MX and antiX collection, but I’m always willing and interested in seeing more creativity in this area. Who knows, this “old dog” may learn a few new tricks after all! Thanks for helping to get this discussion BACK on track!

                    --
                    Brian Masinick

                    #82632

                    In reply to: CLI or conky

                    Anonymous

                      https://www.antixforum.com/forums/topic/antix-screenys-general/page/25/#post-82630

                      @BobC,
                      the configurations.

                      For the weather display you need:
                      – the WUnderground_conky_script and the Moongiant_conky_script from TeoBigusGeekus.
                      As described in the readme files, you have to make the entries for your location and in the Moon_script for your hemisphere and make them executable.

                      – the font monofur
                      – the Lua script draw_bg.lua
                      – the 1 pixel images
                      – and the Conky configuration file
                      The Conky will display the correct data after the second run, which takes about 8.5 minutes. Of course, you could run a script at startup to fetch the weather data and make Conky available at its startup. But, what are 8.5 minutes….

                      The files

                      ###################################

                      #82625
                      Moderator
                      BobC

                        @male, I like the colors.

                        Could you post the two conky files, please? I like the weather one. Not sure if the bottom one would peaceably co-exist with my autohiding IceWM toolbar.

                        Thanks

                        #81697
                        Member
                        PPC

                          hi, Glen
                          Some thoughts on the screen grab of MXDE available here: https://i0.wp.com/bandshed.net/images/screenshots/MXDE-64-Screenshot.png

                          – It looks great, a mix of modern and retro – and can prehaps appeal to both Windows XP era users and folks comming from more mocern UI’s.
                          – You can’t go wrong with zzzfm – is lightness + features in an excelent package – if extremely low use of system resources is not your main goal, the video thumbnails is great (almost the single feature missing in antiX’s default zzzfm)
                          – Nice conky – modern and full of info
                          – The weather info on conky was a nice touch
                          – I like how everything is perfectly catalogued- the menu, the conky – no mess to confuse users!
                          – Has an welcome screen! Most people does not pay attention to those, but them can be a big help
                          – Has a nice quick setup window!

                          My suggestions:
                          – Most people like a clock on the toolbar, I saw none (I know, conky has a clock, but you have to minimize all windows or move them out of the way to see it)
                          – The “hand written” font may be hard to read
                          – Conky has too much info that most people won’t probably need (details about CPU, etc – folks that do care about that, usually know how to find out that info)
                          – Most people expect a “search” field in the menu- even if the menu allows searching for apps without it…
                          – Does zzzfm have the “Default” Bookmarks?

                          Real nice work!

                          P.

                          • This reply was modified 1 year ago by PPC.
                          #81679
                          Member
                          Ironfighter

                            Apologies for delay in responding. Here are the answers to your questions then the Conky detail in code box

                            Rox – ICEWM
                            At the moment only one monitor – see screenshot – resolution 1440×900. I can access the second screen which is a Sony TV via its remote control and HDMI cable which I have currently disconnected.
                            I have “found” conky again by the following process.
                            I have Stacer installed – I searched for Conky which was running but unseen on my scree so I “killed” it.
                            Then I ran the Conky command in a terminal. It is now back on my screen even after I shut the computer down for a couple of days then started it up again this morning.
                            Image of cnky screen output below

                            $ conky -v
                            Conky 1.9.0 compiled Sun Jul  2 19:19:46 UTC 2017 for Linux 4.4.73-18.17-default (x86_64)
                            
                            Compiled in features:
                            
                            System config file: /etc/conky/conky.conf
                            Package library path: /usr/lib/conky
                            
                             X11:
                              * Xdamage extension
                              * XDBE (double buffer extension)
                              * Xft
                              * ARGB visual
                            
                             Music detection:
                              * Audacious
                              * MPD
                              * MOC
                              * XMMS2
                            
                             General:
                              * math
                              * hddtemp
                              * portmon
                              * Curl
                              * RSS
                              * Weather (METAR)
                              * Weather (XOAP)
                              * wireless
                              * support for IBM/Lenovo notebooks
                              * nvidia
                              * eve-online
                              * config-output
                              * Imlib2
                              * apcupsd
                              * iostats
                              * ncurses
                              * Lua
                            
                              Lua bindings:
                               * Cairo
                               * Imlib2
                            • This reply was modified 1 year ago by Ironfighter.
                            #79197
                            Member
                            PPC

                              The idea behind FT10 is to make antiX have most of the features users of most modern OS take for granted, and also make it look a bit more up to date…
                              It took more than a year, many, many hours of work (I’m not a professional in anything tech related) and multiple versions (most of them were not released to the public) for FT10 to become what an user told me is almost a “Desktop Environment” – I consider that the 3 floating window managers that antiX includes out of the box, combined with all the features, scripts and default applications, all combine to make what is for all intents and porpoises, a real Desktop Environment.
                              FT10 merely adds a customized alternative toolbar and a customized alternative menu (the default menu of the window manager is still available when users right click the desktop), plus a few other small extras.

                              @Madibi:
                              – Probably not too many “extras” will be added to FT10 – I’m considering a couple of scripts, to help manage appimages and flatpaks. Any more extras would probably be additions to the FT10 activation menu – I’m considering including the option to install Kronometer and Gnome Maps and eventually some kind of “App Store” that works well – everything else I think antiX needs, if not already provided out of the box in the Full version, is installable from the Package Installer (like Pulseaudio). I was thinking of adding options to disable the Network and Volume icons on the toolbar, for people that don’t use them or prefer the interactive connman/volumeicon tray icons.
                              – In terms of resource consumption, the default FT10 settings use about the same resources as the default Rox managed Icewm desktop with volume icon and Conky…
                              the way I use Ft10 – with the “Fluxbox” desktop, without desktop icons, volumeicon and conky- uses a tiny bit less RAM that the default antiX desktop. On CPU consumption it’s about the same, and use a negligible amount of CPU more if use you use the CPU & RAM toolbar monitor and activate the Calendar alarms…
                              You can run FT10 with as many or as little extras as you want – you can run it without a conky (my default setup) or use FT10 with Conky, Calendar Alarms, Visual Effects, a Clipboard app, a Keyboard app and Nvidea drivers – and the idle RAM usage is still under 190mb of RAM and 1-2% of CPU on a single core computer…
                              – If antiX runs on your device with the default desktop, then it runs it with FT10 too. I had FT10 installed on an old 32bits/1gb of RAM desktop, and it ran fine- allowed me to surf the web, view full HD videos, work with LibreOffice, etc…
                              – Incredibly, I never heard any antiX user complain about the lack of “colors” on the default menu/toolbar – true that there are lots of themes that change those features… And I think the default, non activated Windows 10 does not even allow users to change the desktop… Thinking that some people may dislike the current trend of using “dark themes”, I made available the “white” (kind of blueish gray) theme – users are not stuck with the Dark Theme (right click the +/- icon > and toggle the Dark Theme off). I made the toolbar icons by hand so they are always visible, no matter if you use a light or dark theme… White colors hurt my eyes, that’s why Dark Mode is the default…
                              When I have the time (and the will, I can try adding a script that edits the non Dark theme- but that won’t probably happen any time soon). There are is a GUI way to edit the toolbar color (the menu automatically matches the toolbar color)- the default tint2 configuration tool – but it’s a bit overwhelming to use, that’s why I wrote/adapted scripts to manage the most common task I think a user needs…

                              I already altered the “clock” script so it used Kronometer if it’s available or the default cli chronometer if it’s not- I’m hesitating if I should include kronometer out of the box because I don’t want to make FT10 full of “bloat” or apps most people don’t need, but, at the same time I want it to have at least as much functionality as the cheapest android device in the market can offer…

                              Probably I’ll go to the choice that adds more features (and installs a couple of mb of dependencies)- for example: having compton and kronometer installed out of the box with FT10 does not use any system resources, other than about 1mb of disk space – that probably only impacts users that are running antiX live from a tiny USB device – for most cases, 1mb is negligible – and it adds the stopwatch and Visual Effects, if the user wants to use them… The same reasoning goes with the “translator” dependencies – probably it makes sense to install them as FT10 dependencies. But… some users, mainly English speaking users will never use the Translator, so, why force those tiny dependencies on them?
                              Edit: on the other handy I would never add, as default FT10 dependencies, the about 10mb of files that the script that mounts network shares requires – because most users do not use shared folders- those that do, can install those dependencies automatically when they run that script for the first time…

                              I consider FT10 to be a kind of testing grounds for scripts I feel should be included by default in antiX – like debinstaller, the CLI version of World Clock and even the Translation script – on the verge of what I consider should be or not included in the default antiX is the Cloud script… Please note that I wrote/used scripts that allow even users on extremely low powered devices to use web services without running a web browser:
                              -The Weather app is just a script that runs wttr.in, automatically localized and with a more precise localization, on a terminal window
                              -The News app loads news headlines from a CLI service and displays them on a simple yad window
                              -The Translator app automatically translates selected text to your own language, no need to open a web page with Google Translator or Deepl…
                              -The Cloud script mounts cloud drives on your file manager – so you can use the cloud without having to use a browser that is too slow…
                              Those scripts, coupled with the default Claws e-mail client (a light e-mail client, way faster than webmail, on slow devices) and Smtube (to stream YouTube videos without having to use a web browser, that does not run well on slow devices) or installing messenger applications (like pidgin, etc- to use instant messages), allow users of even 20+ years old single core 32 bits computers with less than 1gb of RAM to use services that otherwise would be unavailable to them. They can even use some websites on Links 2 web browser (provided by default) – handy for reading some news sites or blogs.

                              • This reply was modified 1 year, 1 month ago by PPC.
                              • This reply was modified 1 year, 1 month ago by PPC.
                              • This reply was modified 1 year, 1 month ago by PPC.
                              #76695

                              In reply to: CLI or conky

                              Member
                              calciumsodium

                                Anyways, while we’re on weather services, this is a great one:

                                finger yourlocation@graph.no

                                gives you an ASCII graph of the weather, using data from YR.no.

                                finger @graph.no

                                gives you usage instructions.

                                Thank you for this tip. I have been playing with it. Now I got the @graph.no weather and news to autostart in terminal. I got xterm to keep the terminal window after it renders the weather graph. Roxterm would render it and then automatically close the window.

                                xterm -geometry 80x25+130+350 -hold -e finger ^waukee@graph.no &

                                I also got the wttr.in weather in conky as well.

                                Attachments:
                                #76448

                                In reply to: CLI or conky

                                Moderator
                                Brian Masinick

                                  @linuxdaddy:

                                  I love your conky weather tip AND the open door!

                                  --
                                  Brian Masinick

                                Viewing 15 results - 16 through 30 (of 77 total)