Posts: 43
WaltH
Joined: 25 Apr 2010
#1
I recently installed antiX-15 and am now in the process of trying to configure Conky to my liking. I've been able to change some fonts in the default .conkyrc file but I would like to be able to display current conditions and the three (or five) day forecast, something I've yet to be able to do. I would also like to get weather from a different source than NOAA and in a slightly abbreviated form.

In addition, I would like to be able to use some of the other Conky themes I have found out there, but none of them seem to work for me. Several I have tried display some information but none of the accompanying images. One theme used Yahoo weather and extended forecast and Google News headlines. While I figured out how to get the current temperature from Yahoo, I could not get the extended forecast, nor did the Google News feed work.

The Conky documentation I've seen (especially with regards to adding weather information) seems outdated, and I have yet to find much of anything I can make work outside of the verbose information I get from using NOAA. Any suggestions short of pulling my hair out? __{{emoticon}}__ Thanks.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#2
I have no interest myself in weather forecasting. But my weather is boring in the desert. Hot with Hotter to come. Sunburn likely. Better bring water.

Might help. Might not.

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://conky.pitstop.free.fr/wiki/index.php5?title=Main_Page"
linktext was:"http://conky.pitstop.free.fr/wiki/index ... =Main_Page"
====================================


Sector11 is a online friend of mine at LQ Forums. You might want to check his documentation in the above link.

Hint: look left at tips and tricks link. Plus other documentation is very valuable there for conky experimentation. You are trying to learn coding without realizing it by the way.

Maybe someone else whose weather is more changing than mine can answer your post better. Because all I run is which gives me current local temperatures and conditions before I jump on the bike and go riding.

I just wanna know how hot it is outside and that is it.

Code: Select all

$ inxi -W 79772
Weather:   Conditions: 73 F (23 C) - Clear Time: August 18, 6:58 AM CDT
Posts: 1,445
skidoo
Joined: 09 Feb 2012
#3
google search"conky weather information" provides excellent page1 results (arch linux wiki, etc.)

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://www.google.com/?gws_rd=ssl#q=conky+weather+information"
linktext was:"https://www.google.com/?gws_rd=ssl#q=co ... nformation"
====================================
Posts: 43
WaltH
Joined: 25 Apr 2010
#4
rokytnji wrote:I have no interest myself in weather forecasting. But my weather is boring in the desert. Hot with Hotter to come. Sunburn likely. Better bring water.

Might help. Might not.

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://conky.pitstop.free.fr/wiki/index.php5?title=Main_Page"
linktext was:"http://conky.pitstop.free.fr/wiki/index ... =Main_Page"
====================================


Sector11 is a online friend of mine at LQ Forums. You might want to check his documentation in the above link.

Hint: look left at tips and tricks link. Plus other documentation is very valuable there for conky experimentation. You are trying to learn coding without realizing it by the way.
I guess I am. Just what I need, something else to do/learn. __{{emoticon}}__ So many things, so little time.

I took a look at the link you posted. Some very nice stuff, although some of the Crunchbang#! forum links are outdated as they use the old crunchbanglinux.org URL. Luckily, a few pages had the newer URL and opened, so I was able to figure out the syntax of those newer forum pages (example:
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://crunchbang.org/forums/viewtopic.php?id=16909"
linktext was:"http://crunchbang.org/forums/viewtopic.php?id=16909"
====================================
instead of
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://crunchbanglinux.org/forums/topic/16909/the-new-monster-conky-thread/"
linktext was:"http://crunchbanglinux.org/forums/topic ... ky-thread/"
====================================
)
rokytnji wrote:Maybe someone else whose weather is more changing than mine can answer your post better. Because all I run is which gives me current local temperatures and conditions before I jump on the bike and go riding.

I just wanna know how hot it is outside and that is it.

Code: Select all

$ inxi -W 79772
Weather:   Conditions: 73 F (23 C) - Clear Time: August 18, 6:58 AM CDT
Perhaps I should go ride my bike before I jump into all of this, but that would be yet one more thing to do. __{{emoticon}}__ Thanks for the link.
Posts: 43
WaltH
Joined: 25 Apr 2010
#5
skidoo wrote:google search"conky weather information" provides excellent page1 results (arch linux wiki, etc.)

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://www.google.com/?gws_rd=ssl#q=conky+weather+information"
linktext was:"https://www.google.com/?gws_rd=ssl#q=co ... nformation"
====================================
I think I had seen some of those and even tried a couple of the configurations, but I could not get them to work properly, just as I could not get the themes from Conky-manager to work properly (no images displayed). Does the version of conky installed in antiX-15 support images, or do I need to install conky-all instead?
Posts: 765
rust collector
Joined: 27 Dec 2011
#6
I am not sure how it is these days, but didn't we have a conkyrc, and a conkyrc-icewm before?
(not that I know why, but there has to be a reason?)
Posts: 43
WaltH
Joined: 25 Apr 2010
#7
rokytnji wrote:I have no interest myself in weather forecasting. But my weather is boring in the desert. Hot with Hotter to come. Sunburn likely. Better bring water.

Might help. Might not.

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://conky.pitstop.free.fr/wiki/index.php5?title=Main_Page"
linktext was:"http://conky.pitstop.free.fr/wiki/index ... =Main_Page"
====================================


Sector11 is a online friend of mine at LQ Forums. You might want to check his documentation in the above link.

Hint: look left at tips and tricks link. Plus other documentation is very valuable there for conky experimentation. You are trying to learn coding without realizing it by the way.
Unfortunately, a number of the links at that site go back to Crunchbang#! and the wiki there is no longer available. I did download some scripts that appear at first glance to provide what I'm looking for, but I'm not really sure where to install them (along with the fonts and other files linked from the Crunchbang#! forum) or how to use them at this point.

I tried the Conky-manager and got a few themes to load but without the associated images and without the weather forecast I hoped to include. I have already spent parts of three or four days working on this, to the detriment of other things I should be attending to, so I may just have to put this on the back burner until I either have time to try to learn all of this (I don't really want to be a coder - at 58, I'm not sure my brain can take it __{{emoticon}}__ ), find something that works better, or just decide to throw my hands up and walk away.
Posts: 43
WaltH
Joined: 25 Apr 2010
#8
skidoo wrote:google search"conky weather information" provides excellent page1 results (arch linux wiki, etc.)

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://www.google.com/?gws_rd=ssl#q=conky+weather+information"
linktext was:"https://www.google.com/?gws_rd=ssl#q=co ... nformation"
====================================
Most of this material seems to go back four years or more, and I've had trouble getting some of it to work at all, although I did install conky-all and was able to get an rss feed to display. Yay, me!
Posts: 1,445
skidoo
Joined: 09 Feb 2012
#9

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://www.google.com/?gws_rd=ssl#q=conkyrc-icewm"
linktext was:"https://www.google.com/?gws_rd=ssl#q=conkyrc-icewm"
====================================

rust collector, yep, ata a glance it seems icewm requires extra fussing, or special handling, or somesuch
Posts: 43
WaltH
Joined: 25 Apr 2010
#10
Okay, I'm still not exactly sure how, but I do have Conky working with a weather feed and an rss headline feed from BBC News. I've also been able to change some of the fonts, although it still could use a bit of dressing up. However, seeing as how it does work, I'm afraid to try to do too much more to it at the moment.
Image
It's not great looking, but it's a start. __{{emoticon}}__
Posts: 765
rust collector
Joined: 27 Dec 2011
#11
just copy it, or back it up, I guess, and edit this one as much as you want. The copy will be there...

Now, This is one of my favorite questions, in conky/weather related threads... Don't you have a window?
Posts: 43
WaltH
Joined: 25 Apr 2010
#12
rust collector wrote:just copy it, or back it up, I guess, and edit this one as much as you want. The copy will be there...

Now, This is one of my favorite questions, in conky/weather related threads... Don't you have a window?
I do, but the blinds are drawn. __{{emoticon}}__ Plus, the window can't tell me what tomorrow might be like.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#13
rust collector wrote:I am not sure how it is these days, but didn't we have a conkyrc, and a conkyrc-icewm before?
(not that I know why, but there has to be a reason?)
That was back in release 13.2 rc. __{{emoticon}}__


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://www.google.com/search?num=50&q=conky+site%3Aantix.freeforums.org&oq=conky+site%3Aantix.freeforums.org&gs_l=serp.3...22919.36258.0.37287.30.29.0.0.0.3.327.3834.15j10j3j1.29.0....0...1c.1.64.serp..24.6.1137.pcpfbjK6zmA"
linktext was:"Sigh, nobody reads my sig I guess."
====================================
Posts: 43
WaltH
Joined: 25 Apr 2010
#14
Okay, it's getting a little better. I've been able to play with the sizing a bit and take out one of the things I don't use/understand (deleting out the freq line). I figured out (wild guess, actually, yet accurate) how to re-size the graphs and change the fonts. Eventually, I might figure out how to use icons in the weather information, instead of what the font used by the weather script generates. Speaking of which, I'd like the second and third parts of the weather information to show Today: and Tomorrow:, just as the first section shows Currently: (see circled text in attached screenshot). Here is the script called by .conkyrc to generate the weather information:

Code: Select all

#!/bin/bash

#function: test_image
test_image () {
    case $1 in
     1|01)
       echo a
     ;;
     2|02)
       echo b
     ;;
     3|03)
       echo c
     ;;
     4|04)
       echo c
     ;;
     5|05)
       echo c
     ;;
     6|06)
       echo d
     ;;
     7|07)
       echo e
     ;;
     8|08)
       echo e
     ;;
     11)
       echo 0
     ;;
     12)
       echo h
     ;;
     13|14)
       echo g
     ;;
     15)
       echo l
     ;;
     16|17)
       echo k
     ;;
     18|26)
       echo i
     ;;
     19)
       echo p
     ;;
     20|21|23)
       echo o
     ;;
     22)
       echo r
     ;;
     24|31)
       echo E
     ;;
     25)
       echo u
     ;;
     29)
       echo v
     ;;
     30)
       echo 5
     ;;
     32)
       echo 6
     ;;
     33)
       echo A
     ;;
     34|36|37)
       echo B
     ;;
     35|38)
       echo C
     ;;
     39|40)
       echo G
     ;;
     41|42)
       echo K
     ;;
     43|44)
       echo O
     ;;
    esac
} 

#put your accuweather rss address here
address="http://rss.accuweather.com/rss/liveweather_rss.asp?locCode=83703"

killall wget
wget -O $HOME/1d_accuweather_rss_12-2-14/1d_accuweather_rss/weather_raw1 $address
if [[ -s $HOME/1d_accuweather_rss_12-2-14/1d_accuweather_rss/weather_raw1 ]]; then

    egrep 'Currently|Forecast<\/title>|_31x31.gif' $HOME/1d_accuweather_rss_12-2-14/1d_accuweather_rss/weather_raw1 > $HOME/1d_accuweather_rss_12-2-14/1d_accuweather_rss/weather1
    sed -i '/AccuWeather\|Currently in/d' $HOME/1d_accuweather_rss_12-2-14/1d_accuweather_rss/weather1
    sed -i -e 's/^[ \t]*//g' -e 's/<title>\|<\/title>\|<description>\|<\/description>//g' $HOME/1d_accuweather_rss_12-2-14/1d_accuweather_rss/weather1
    sed -i -e 's/<img src="/\n/g' $HOME/1d_accuweather_rss_12-2-14/1d_accuweather_rss/weather1
    sed -i '/^$/d' $HOME/1d_accuweather_rss_12-2-14/1d_accuweather_rss/weather1
    sed -i -e 's/_31x31.*$//g' -e 's/^.*\/icons\///g' $HOME/1d_accuweather_rss_12-2-14/1d_accuweather_rss/weather1
    sed -i -e '1s/.$//' -e '3s/.$//' -e '6s/.$//' $HOME/1d_accuweather_rss_12-2-14/1d_accuweather_rss/weather1
    for (( i=2; i<=8; i+=3 ))
        do
            im=$(sed -n ${i}p $HOME/1d_accuweather_rss_12-2-14/1d_accuweather_rss/weather1)
            sed -i $i"s/^.*$/$(test_image $im)/" $HOME/1d_accuweather_rss_12-2-14/1d_accuweather_rss/weather1
        done

fi
And here is the screenshot:
Image
I can probably live with a simpler look like this, although I might like something a little fancier (as shown elsewhere in the forum). The problem is that I have yet to have any success with the fancier configurations and could not get the themes in conky-manager to properly work. So, baby steps. __{{emoticon}}__
Posts: 604
thriftee
Joined: 27 Feb 2009
#15
I probably have something pretty close to what you are asking for, but mine does use the NWS forecasts, which I then programatically reword in about 1/2 the space without removing any info