Another Conky Weather Forecast Solution

Not the prettiest out there, but works for me. Haven't seen this one out there yet.
Dependencies: elinks, conky
What it does: Creates a file in ~/ with weather forecast from weather.com. Then displays pieces of text from that file in Conky.
Place this in your ~/.conkyrc:
${color #79f9ff}Weather Details High/low F Rain?
${color grey}${execi 3600 elinks "http://www.weather.com/weather/print/97302" > YOUR_FILE_NAME ; cat -n YOUR_FILE_NAME | grep "^ *11" | cut -c10-100}
${color grey}${execi 3600 cat -n YOUR_FILE_NAME | grep "^ *13" | cut -c10-100}
${color grey}${execi 3600 cat -n YOUR_FILE_NAME | grep "^ *15" | cut -c10-100}
${color grey}${execi 3600 cat -n YOUR_FILE_NAME | grep "^ *17" | cut -c10-100}
${color grey}${execi 3600 cat -n YOUR_FILE_NAME | grep "^ *19" | cut -c10-100}
${color grey}${execi 3600 cat -n YOUR_FILE_NAME | grep "^ *21" | cut -c10-100}
${color grey}${execi 3600 cat -n YOUR_FILE_NAME | grep "^ *23" | cut -c10-100}
${color grey}${execi 3600 cat -n YOUR_FILE_NAME | grep "^ *25" | cut -c10-100}
${color grey}${execi 3600 cat -n YOUR_FILE_NAME | grep "^ *27" | cut -c10-100}
${color grey}${execi 3600 cat -n YOUR_FILE_NAME | grep "^ *29" | cut -c10-100}
Replace the 97302 zip code in the address with your own. Change all the YOUR_FILE_NAMEs to whatever you want your weather file name to be. Make sure they are all the same though. Ctrl+S and there should be some weather output in Conky. You might have to fidget with the greps and cuts to make it look right for you (but probably not).

Not the prettiest out there, but works for me. Haven't seen this one out there yet.
Dependencies: elinks, conky
What it does: Creates a file in ~/ with weather forecast from weather.com. Then displays pieces of text from that file in Conky.
Place this in your ~/.conkyrc:
${color #79f9ff}Weather Details High/low F Rain?
${color grey}${execi 3600 elinks "http://www.weather.com/weather/print/97302" > YOUR_FILE_NAME ; cat -n YOUR_FILE_NAME | grep "^ *11" | cut -c10-100}
${color grey}${execi 3600 cat -n YOUR_FILE_NAME | grep "^ *13" | cut -c10-100}
${color grey}${execi 3600 cat -n YOUR_FILE_NAME | grep "^ *15" | cut -c10-100}
${color grey}${execi 3600 cat -n YOUR_FILE_NAME | grep "^ *17" | cut -c10-100}
${color grey}${execi 3600 cat -n YOUR_FILE_NAME | grep "^ *19" | cut -c10-100}
${color grey}${execi 3600 cat -n YOUR_FILE_NAME | grep "^ *21" | cut -c10-100}
${color grey}${execi 3600 cat -n YOUR_FILE_NAME | grep "^ *23" | cut -c10-100}
${color grey}${execi 3600 cat -n YOUR_FILE_NAME | grep "^ *25" | cut -c10-100}
${color grey}${execi 3600 cat -n YOUR_FILE_NAME | grep "^ *27" | cut -c10-100}
${color grey}${execi 3600 cat -n YOUR_FILE_NAME | grep "^ *29" | cut -c10-100}
Replace the 97302 zip code in the address with your own. Change all the YOUR_FILE_NAMEs to whatever you want your weather file name to be. Make sure they are all the same though. Ctrl+S and there should be some weather output in Conky. You might have to fidget with the greps and cuts to make it look right for you (but probably not).

Similar Messages

  • Help for a Conky weather script

    Hi,
    I was trying to write a Conky script to display weather forecast for the current day in my Conky, using <tempmin>, <tempmax> and <descr> on this page http://www.tv5.org/TV5Site/widget/meteo … lle_id=474.
    I'm a complete newbie to bash/perl/whatever, and I couldn't manage to do much. Could anyone explain me how to proceed?
    Please don't RTFM me :(

    You need xmlstarlet to run it.
    It simply parses that xml file and extracts the info you want.
    I wanted to add newlines, so I just wrapped it all in 'echo -e $(...)' and called it a day. There's probably a better way to do it.
    Also, note that the index on 'descr' is one higher than on 'tempmin' and 'tempmax', because there's already a 'descr' earlier in the file:
    <weather>
    <data>
    <ville>Paris</ville>
    <pays>FRANCE</pays>
    <date>Observation le vendredi 22 à 13:00 (heure locale)</date>
    <temp>4°C</temp>
    <descr>couvert </descr>
    You don't want the value of this 'descr', but of the one a bit lower (the second one) -
    <descr>très nuageux </descr>
    thus '//descr[2]'.

  • Weather forecast in dvt graph

    Hi!!
    I am using jdeveloper 11.1.1.5
    I need to show the weather forecast information in dvt graph which should be updatable.
    Could any one pls help me!!

    Sorry jhon!!
    +Where do you get the weather forecast from?+I need to get the weather forecast from any sites.,
    For Eg: Many websites like yahoo!! tey are giving an updatable weather forecast similar to that
    To be more clear.
    While we are using Geographical map we are giving some location URL so that the map renders
    +How do you want to display the forecast?+I need to display the weather forecast in dvt: Graph [Line]
    If there is any better UI Components other than graph. please provide it also
    +You want the weather forecast to be up-datable? What do you mean by that - the user updates the weather forecast?+No User will update the weather forecast
    Hope i am clear.,
    To be more clear., If there any solution on how to access the weather forecast pls provide me.,

  • I cannot print the weekly weather forecast

    Hi, i have just bought officejet pro 8610 a amazing machine indeed,but i have a problem when i choose greece for the weather forecast and put the postal code for my town when i go to the hp weather applicatin i can see the weather for my town but i cannot print the weekly forecast it says that it will be print soon after downloading, like the other apps but nothing. I would appreciate if there was a solution to this.

    Hello @oscillato ,
    Welcome to the HP forum.
    I understand that the weather app will not print the weekly forecast.
    I could not find an HP weather app. I only found Weathernews.
    This apps content is provided by a third party.
    You could try a manual DNS, but if the other apps are printing I don't think it will really help.
    You could always contact the Cloud Services Department.
    They might have some insider information, or even be able to escalate the issue to the provider.
    Please call our Cloud Services at 855-785-2777. If you live outside the US/Canada Region, please click the link below to get the support number for your region. http://www8.hp.com/us/en/contact-hp/ww-phone-assist.html
    Aardvark1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!

  • My weather forecast does not work!

    My weather forecast does not work, the animation background catching this.
    This equals the image of the print, it does not move.

    Try:
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings                 
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.                       

  • Weather forecast in notification center

    Hello,
    In Yosemite (on my MBP early 2008), the town of the weather forecast (with an arrow pointing to north east) is not my actual residence, but a previous one. Yet in Maps or in Date & Time pref panel, the location service works properly. It's strange because in the notification center, the text with details of the forecast matches my actual residence, but the icon with the arrow gives the town of my ancient place.
    How can I correct that ? Thanks.

    Problem solved : I have put the folder ~/Library/Containers/com.apple.ncplugin.weather to the trash. It has been automatically recreated and the city of the meteo is now correct.

  • [SOLVED] (Perl) Help Modifying Conky Weather Script

    I'm using buttons' excellent Conky weather script, but it has more information than I need. It displays both the current weather condition and the temperature:
    [condition]:[temperature]F
    so right now it's
    Clear: 46F
    All I need is for it to display the temperature, without the current condition, colon, and letter 'F' (for Fahrenheit).
    the script:
    METRIC=0 #Should be 0 or 1; 0 for F, 1 for C
    if [ -z $1 ]; then
    echo
    echo "USAGE: weather.sh <locationcode>"
    echo
    exit 0;
    fi
    curl -s http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}\&locCode\=$1 | perl -ne 'if (/Currently/) {chomp;/\<title\>Currently: (.*)?\<\/title\>/; print "$1"; }'
    In Conky:
    {execi 300 /home/hex/.conky/weather.sh <zip code>}
    I'm not familiar with Perl yet so any help is much appreciated
    Last edited by Olson (2011-02-17 07:06:10)

    Try this
    curl ... | perl -ne 'if (/Currently/) {chomp;/\<title\>.*: (\d*).\<\/title\>/; print "$1"; }'

  • How do I change the Weather forecast to local Uk postcode

    I have just downloaded Firefox, and am having difficulty in customizing the home page. How can I get the weather forecast for my area of U.K. - I don't need to know about New York

    SergZak wrote:
    I do. Who uses Centigrade in Los Angeles? (that's where I am as well)
    Well, in fact, I do. I use metric 24/7, because in my business, everything is done with metric. Since 90% of the world uses metric, it seems ridiculous to pander to individuals who refuse to enter the 20th Century (let alone the 21st Century).

  • Where do I find all explanations of Weather Forecast (app) Symbols??

    Where do I find all explanations of Weather Forecast (app) Symbols??
    thanks!!

    If it's a third party app, best place to check will be the developer's website - have you tried that?
    If you need help with that, please post a link to their website or the direct link in the app store.

  • Pyqt3 request by weather-forecast of superkaramba (arch=ppc)

    pyqt3 request by  weather-forecast of superkaramba
    for PPC
    thanks

    Hm, I've been doing some more work on AWeather lately... I don't think there are any Arch packages for it yet, and I don't use Arch myself, but if someone wants to volunteer to make one I might be able to help/answer questions.
    The old wiki page was linked from above, the new development page is here: http://lug.rose-hulman.edu/code/projects/aweather
    There's also IDV, which has quite a bit of support, but is a little tricky to get started with, and requires Java: http://www.unidata.ucar.edu/software/idv/

  • New Conky Weather Program with Weather Alerts - conkywx

    Here is a new weather program written in Bash script
    Please provide feedback - For users of other distros - kindly visit my Blog for latest releases and leave comments and feedback there - thanks
    Screenshots
    Program is now on the AUR
    Support for :
       - Multiple locations
           - Multiple locations can be searched for using separate config files per location
       - Templates
           - Use templates to have very low CPU loads
       - Direct elements
           - Each element can be directly called. In fact if you add a config to each element - you can have multiple locations on the same conkyrc.
       - Choose the kind of units you want - Imperial or Metric
       - Choose the time format 12 hour AM/PM or 24 hour clock
       - Choose Font based or Image based conkyrc
       - Choose popup notifications each time conky updates
       - Has it's own man page
       - and more - see man conkywx man page file once you install it from the AUR.
       - all weather elements used are also listed in the man pages.
    Why Weather Underground
       - Well IMO it has the best weather information on the web.
    This program does not need the use of any Keys from the website only the URL or the location code for a supported location on the planet.
    Weather has become a very important factor in our lives lately and hence this program.
    You can design your own templates or conkyrc files looking at the examples.
    Last edited by Paramvir (2013-05-09 15:24:54)

    Here is the conkywx AUR package https://aur.archlinux.org/packages.php?ID=59931]
    Have had to make many changes here to get this done.
    The config file is now in /etc/conkywx/conkywx.conf - this file can be used as is and is the default config
    There is now a man page - man conkywx is what you look for.
    The program is now accessed in path /usr/bin/conkywx installed in /usr/share/conkywx
    This is my first AUR package
    To figure out the AUR - a good tool that I use is Yaourt (Yet AnOther User Repository Tool) and it is very easy to install if you use the [archlinuxfr] as mentioned in that wiki. It is an excellent front end for pacman and it also allows you to search and install from AUR.
    If you have tried something else and feel it is good - please do share that info
    Last edited by Paramvir (2012-06-11 08:28:08)

  • Siri tells me the wrong weather forecast

    I love the fact that Siri is now available on my New iPad. When I ask "What is the weather today?" It references the weather app which is not on my iPad (I assume it is built into Siri) but it tells me the weather for the wrong location. Since the Apple Weather app is not available in Settings I can't change the preferences for it. Any suggestions?

    Thank you for your answer.
    Both are turned on.
    Siri informs the name of my city correctly (when I ask for the forecast), but the weather information is wrong (the temperature seems to be coming from another city).
    The name of my city is Curitiba (located in Brazil).
    But when I check the temperature informed by Siri, in comparison with the Yahoo weather application (which is the one used by iPhone 5s) yahoo app gives me a different and correct temperature (something around 10 degrees or more of difference).
    Any idea how could I fix this?
    Thank you again.
    Rodrigo.

  • Conky weather icon issues

    Ok, I have been using the conkyForecast script for a while now, and it's been nice, but, for some reason it decided not to show anything until today actually.
    So, I started investigating the conky man page, and found that it has weather information available to it as well.
    You have to use --enable-metar and/or --enable-xoap.
    The xoap apparently enables metar as well.
    Anyway, I used the conky-git package, but had to change the ccmake to cmake-gui in order to get it to build.
    After all that, the weather works fine, except for when displaying the weather icon.
    The icon argument returns a number, which apparently corresponds to pngs from weather.com  (not that I've been able to find the kit), but the icons are provided with conkyForecast (for which I'm thankful).   But how do I get conky to display the icon?
    I'm starting to think that feature may just be broken at this time, but I'm just curious to see if I've done something odd with this and didn't intend to.
    When I look in the weathericons, there is a 26.png that would correspond with the cloud_cover option, but the icon shows 26, rather than that png.    Do I need to have the images placed in a certain place or what?
    I've searched all over the place, but most things that pop up are for conkyForecast, rather than for any information on this within conky.
    I looked at the weather portions of the code as well, but can't tell where it's looking for the icon, if it is at all. 
    Any suggestions as to where to look for more info?  I don't do irc really, but I may have to break down and install an irc client and go ask on the #conky channel. 

    There is no stock weather app on iPads. Use the App Store app to search for, download or purchase a weather app of your choosing.

  • Ideas for a conky weather script ...

    Here are the 2 best sources for weather updates for me :
    http://www.google.ca/search?sourceid=ch … chicoutimi (google)
    or
    http://www.meteomedia.com/weather/CAQC0107 (most known weather website/tv-channel of my country)
    What would be the best grep ou curl ? Got ideas to build that script ?
    Google seem limited but I could show pictures on my desktop directly maybe,
    Meteomedia as less nice GUI for that ...

    Meskarune wrote:check out the conky forcast package in aur
    If you install the package you'll find a conkyrc/template file example in /usr/share/conkyforecast/example
    Also have a look at the conky hardcore website, it details quite a lot user setups for this script, a good example is here: http://conky.linux-hardcore.com/?page_id=2487
    Cheers

  • Conky - Weather Underground Script

    Since weather.com is ending their free XOAP service conkyForecast will no longer work at the end of this month.
    Therefore I wrote a small script to get the temperature and condition from Weather Underground
    #!/usr/bin/python
    # Fetches Weather info from Weather Underground
    # Usage: ./wundergound.py zipcode
    # International:
    # * Go to http://www.wunderground.com/
    # * Find your city
    # * Click the RSS icon
    # * Station ID is the number that follows /stations/ in the url
    # Values are either True or False
    metric=False
    international=False
    import sys
    import feedparser
    def usage():
    print("Usage:")
    if international:
    print(" ./wunderground.py StationID")
    else:
    print(" ./weunderground.py zipcode")
    sys.exit(1)
    if not len(sys.argv) == 2:
    usage()
    location=sys.argv[1]
    if international:
    url="http://rss.wunderground.com/auto/rss_full/global/stations/"
    else:
    url="http://rss.wunderground.com/auto/rss_full/"
    feed=feedparser.parse(url+location)
    if not feed.feed:
    # Assume Error
    print("Error")
    sys.exit(1)
    current=feed['items'][0].title
    if metric:
    temp=current.split(",")[0].split(":")[1].split("/")[1].strip()
    else:
    temp=current.split(",")[0].split(":")[1].split("/")[0].strip()
    condition=current.split(",")[1].split("-")[0].strip()
    print(temp, "-", condition)
    Example:
    $ ./wunderground 11201
    69.6F - Clear
    Conky:
    ${execi 600 /home/pyther/scripts/wunderground 11201}
    Enjoy!

    Here is the documentation for feedparser: http://packages.python.org/feedparser/
    What exactly are you trying to do? In the script feedparser is getting the first rss entry and parsing it.
    If you want the afternoon, night, or next day entries...
    afternoon=feed['items'][1].title # afternoon
    tonight=feed['items'][2].title # Tonight
    tomorrow=feed['items'][3].title # tomorrow

Maybe you are looking for

  • Configuring the iPhone and your environment for wireless corporate email

    I'm posting this as a top level thread, because I'm certain that there are others out there, who like me, are trying to figure this out. Configuring the iPhone for Enterprise Use With Apple’s release of the iPhone, IT organizations are presented with

  • Formu;a column

    hai all I am developing a report. I am using UTL_FILE in that report in formula column. When i try simply i am getting the result. When i include the utl_file concepts in the formula column which will create a text file in the server path , it is com

  • Error message when trying to connect to Itunes

    When I go to I-Tunes Store on my account I keep getting message.."I-Tunes Store is temorarily unavailble...please try again later...this has been going on for several days...what can I do to get into the I-Tunes Store from my account? This was an ear

  • Content pane doubt

    What exactly is the content pane and what is its purpose? I read this but am still quite confused. By the mini flow chart thing, do they mean that first i create a JFrame and then i get the contentPane for it and then i can add components like JPanel

  • Apple tv bought in Switzerland, moved to Brazil

    Hi everyone, I just wonder if my Apple TV, last gen., bought in Switzerland, will work in Brazil, cuz I am moving. Many thx, Franz