Page 103 of 122 FirstFirst ... 35393101102103104105113 ... LastLast
Results 1,021 to 1,030 of 1219

Thread: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

  1. #1021
    Join Date
    Jun 2006
    Beans
    32
    Distro
    Ubuntu

    Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

    Best set of scripts I've came across, so easy to install, even for a complete novice like myself.
    One little with the text, it seems to show double lines, and miss things like temp.
    If someone could point out where I'm going wrong.



    Code:
    $color${execi 600 bash /home/billy/.Accuweather_RSS/acc_rss}
    ${font conkyweather:size=30}${execpi 600  sed -n '2p' /home/billy/.Accuweather_RSS/weather}${font}${goto 75}${voffset -25}${execpi 600 sed -n '1p' /home/billy/.Accuweather_RSS/weather|cut -c1-20}
    ${goto 75}${execpi 600 sed -n '1p' /home/billy/.Accuweather_RSS/weather|cut -c1-40}
    ${goto 75}${execpi 600 sed -n '1p' /home/billy/.Accuweather_RSS/weather|cut -c21-60}
    
    ${execi 600 date --date="-1 days ago" '+%d/%m/%Y'} Forecast
    ${font conkyweather:size=30}${execpi 600  sed -n '8p' /home/billy/.Accuweather_RSS/weather}${font}${goto 75}${voffset -25}${execpi 600 sed -n '4p' /home/billy/.Accuweather_RSS/weather|cut -c21-50}
    ${goto 75}${execpi 600 sed -n '7p' /home/billy/.Accuweather_RSS/weather|cut -c21-40}
    ${goto 75}${execpi 600 sed -n '7p' /home/billy/.Accuweather_RSS/weather|cut -c41-60}

  2. #1022
    Join Date
    Feb 2008
    Beans
    5,636

    Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

    Here's the weather file for my town:
    Code:
    1:Currently: Partly Cloudy: -5C 
    2:r
    3:2/1/2012 Forecast
    4:High: -2 C Low: -5 C Very cold with snow showers 
    5:E
    6:2/2/2012 Forecast
    7:High: 1 C Low: -2 C Showers of rain and snow 
    8:v
    Look closely at your conkyrc:
    In the first line, you're asking it to show the 2nd line of the weather file (ie. the letter r) with conkyweather font
    Code:
    ${font conkyweather:size=30}${execpi 600  sed -n '2p' /home/billy/.Accuweather_RSS/weather}${font}
    In the same line, you're asking it to move a bit to the right (goto 75), a bit to the top (voffset -25) and display the first 20 letters (cut -c1-20) of the first line of the weather file (ie. Currently: Partly Cl)
    Code:
    ${goto 75}${voffset -25}${execpi 600 sed -n '1p' /home/billy/.Accuweather_RSS/weather|cut -c1-20}
    In the 2nd line, you're asking it to display the first 40 letters of the 1rst line of the weather file, after moving a bit to the right, (i.e. Currently: Partly Cloudy: -5C)
    Code:
    ${goto 75}${execpi 600 sed -n '1p' /home/billy/.Accuweather_RSS/weather|cut -c1-40}
    In the 3rd line, you're asking it to display from letter 21 to letter 60 (cut -c21-60) of the 1rst line of the weather file, after moving a bit to the right, (i.e. oudy: -5C)
    Code:
    ${goto 75}${execpi 600 sed -n '1p' /home/billy/.Accuweather_RSS/weather|cut -c21-60}
    You make conky display a date and then...

    ...you make it display the weather symbol (v) from line 8 of the weather file
    Code:
    ${font conkyweather:size=30}${execpi 600  sed -n '8p' /home/billy/.Accuweather_RSS/weather}${font}
    completely ignoring the day in between.

    In the same line
    Code:
    ${goto 75}${voffset -25}${execpi 600 sed -n '4p' /home/billy/.Accuweather_RSS/weather|cut -c21-50}
    you tell conky to display from character 21 to character 50 of the 4rth line of the weather file - the message of the day you've just ignored (ie. Very cold with snow showers)

    In the next line
    Code:
    ${goto 75}${execpi 600 sed -n '7p' /home/billy/.Accuweather_RSS/weather|cut -c21-40}
    you're displaying character 21-40 of the 7nth line of the weather file (ie. Showers of rain and snow)

    Finally
    Code:
    ${goto 75}${execpi 600 sed -n '7p' /home/billy/.Accuweather_RSS/weather|cut -c41-60}
    You're showing characters 41-60 of the exact same line as the previous command (ie. snow)

    TL;DR: You've messed up a bit. Try with this:
    Code:
    ${font conkyweather:size=30}${execpi 600  sed -n '2p' /home/billy/.Accuweather_RSS/weather}${font}${goto 75}${voffset -25}${execpi 600 sed -n '1p' /home/billy/.Accuweather_RSS/weather|cut -c1-20}
    ${goto 75}${execpi 600 sed -n '1p' /home/billy/.Accuweather_RSS/weather|cut -c21-40}
    ${goto 75}${execpi 600 sed -n '1p' /home/billy/.Accuweather_RSS/weather|cut -c41-60}
    
    ${execi 600  sed -n '3p' /home/billy/.Accuweather_RSS/weather}
    ${font conkyweather:size=30}${execpi 600  sed -n '5p' /home/billy/.Accuweather_RSS/weather}${font}${goto 75}${voffset -25}${execpi 600 sed -n '4p' /home/billy/.Accuweather_RSS/weather|cut -c1-20}
    ${goto 75}${execpi 600 sed -n '4p' /home/billy/.Accuweather_RSS/weather|cut -c21-40}
    ${goto 75}${execpi 600 sed -n '4p' /home/billy/.Accuweather_RSS/weather|cut -c41-60}
    
    ${execi 600  sed -n '6p' /home/billy/.Accuweather_RSS/weather}
    ${font conkyweather:size=30}${execpi 600  sed -n '8p' /home/billy/.Accuweather_RSS/weather}${font}${goto 75}${voffset -25}${execpi 600 sed -n '4p' /home/billy/.Accuweather_RSS/weather|cut -c1-20}
    ${goto 75}${execpi 600 sed -n '7p' /home/billy/.Accuweather_RSS/weather|cut -c21-40}
    ${goto 75}${execpi 600 sed -n '7p' /home/billy/.Accuweather_RSS/weather|cut -c41-60}
    Last edited by TeoBigusGeekus; February 1st, 2012 at 08:29 PM.

  3. #1023
    Join Date
    Jun 2006
    Beans
    32
    Distro
    Ubuntu

    Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

    Outstanding, it's looking good now.
    Many thanks for taking the time to help and explain what each line does it makes it easier to understand now, it's much appreciated.

  4. #1024
    Join Date
    Feb 2008
    Beans
    5,636

    Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

    You're welcome mate.

  5. #1025
    Join Date
    Jul 2011
    Beans
    16

    Question Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

    Hi again here...

    How do you manage a correct display for temperatures ?
    As they are now all negative for the rest of the week, they are all flushed to the right and I'm loosing the last one (it's gone out of conky displaying area).

    Here is the T°C part of my script :

    Code:
    ${goto 5}${font DroidSansMonoBold:size=8}${color 49AEF2}${offset 2}${execi 1800 sed -n '23p' ~/conkymeteo/cond_meteo}${color6}°${color6}|${color FF2222}${offset 2}${execi 1800 sed -n '24p' ~/conkymeteo/cond_meteo}${offset -3}${color6}°${color 49AEF2}${offset 14}${execi 1800 sed -n '25p' ~/conkymeteo/cond_meteo}${color6}°${color6}|${color FF2222}${offset 2}${execi 1800 sed -n '26p' ~/conkymeteo/cond_meteo}${offset -3}${color6}°${color 49AEF2}${offset 14}${execi 1800 sed -n '27p' ~/conkymeteo/cond_meteo}${color6}°${color6}|${color FF2222}${offset 2}${execi 1800 sed -n '28p' ~/conkymeteo/cond_meteo}${offset -3}${color6}°${color 49AEF2}${offset 14}${execi 1800 sed -n '29p' ~/conkymeteo/cond_meteo}${color6}°${color6}|${color FF2222}${offset 2}${execi 1800 sed -n '30p' ~/conkymeteo/cond_meteo}${offset -3}${color6}°${color 49AEF2}${offset 14}${execi 1800 sed -n '31p' ~/conkymeteo/cond_meteo}${color6}°${color6}|${color FF2222}${offset 2}${execi 1800 sed -n '32p' ~/conkymeteo/cond_meteo}${offset -3}${color6}°${font}
    They are all on one single line, maybe it's not a good way to do it because it will depend on the previous T°C value ? I don't know...
    How would you fix that ?

    Cheers.

  6. #1026
    Join Date
    Feb 2008
    Beans
    5,636

    Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

    Which script do you use?
    Could you also post a screenshot?

  7. #1027
    Join Date
    Jul 2011
    Beans
    16

    Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

    Hem, sorry, yes, I use the VinDSL script, but as I came here some days ago to check if it was possible to make a script to grab information on my national weather website, I have completely rewritten the weather part.

    Here's the weather part :
    Code:
    ##################################
    ##      WEATHER (Metric)        ##
    ##################################
    ${voffset -14}${if_up wlan0}${texeci 1800 bash ~/conkymeteo/conkyforecast}${texeci 600 bash ~/conkymeteo/radarimg}${endif}
    ${goto 5}${voffset 6}${font DroidSans:bold:size=8}${color4}MÉTÉOSUISSE${offset 6}${color8}${voffset -2}${hr 2}${font}
    ${goto 5}${voffset 4}${offset 0}${image ~/conkymeteo/cc.gif -p 4,630 -s 42x26}
    ${goto 54}${voffset -18}${alignc}${offset -32}${font RadioSpace:size=18}${color3}Here, ${font}${font RadioSpace:size=16}${voffset -9}${execpi 1800 sed -n '21p' ~/conkymeteo/cond_meteo}°C${font}${offset 8}${voffset -12}${font Weather:size=24}${color2}y${font}
    ${goto 5}${voffset 6}${offset 4}${color8}${execi 1800 sed -n '3p' ~/conkymeteo/cond_meteo}${offset 17}${execi 1800 sed -n '4p' ~/conkymeteo/cond_meteo}${offset 17}${execi 1800 sed -n '5p' ~/conkymeteo/cond_meteo}${offset 17}${execi 1800 sed -n '6p' ~/conkymeteo/cond_meteo}${offset 17}${execi 1800 sed -n '7p' ~/conkymeteo/cond_meteo}
    ${goto 5}${voffset 0}${offset 0}${image ~/conkymeteo/cc0.gif -p 2,678 -s 36x22}${voffset 2}${offset 0}${image ~/conkymeteo/cc2.gif -p 54,678 -s 36x22}${voffset 2}${offset 0}${image ~/conkymeteo/cc4.gif -p 108,678 -s 36x22}${voffset 2}${voffset 6}${offset 0}${image ~/conkymeteo/cc6.gif -p 160,678 -s 36x22}${voffset 2}${offset 0}${image ~/conkymeteo/cc8.gif -p 212,678 -s 36x22}
    ## Températures
    ${goto 5}${font DroidSansMonoBold:size=8}${color 49AEF2}${offset 2}${execi 1800 sed -n '23p' ~/conkymeteo/cond_meteo}${color6}°${color6}|${color FF2222}${offset 2}${execi 1800 sed -n '24p' ~/conkymeteo/cond_meteo}${offset -3}${color6}°${color 49AEF2}${offset 14}${execi 1800 sed -n '25p' ~/conkymeteo/cond_meteo}${color6}°${color6}|${color FF2222}${offset 2}${execi 1800 sed -n '26p' ~/conkymeteo/cond_meteo}${offset -3}${color6}°${color 49AEF2}${offset 14}${execi 1800 sed -n '27p' ~/conkymeteo/cond_meteo}${color6}°${color6}|${color FF2222}${offset 2}${execi 1800 sed -n '28p' ~/conkymeteo/cond_meteo}${offset -3}${color6}°${color 49AEF2}${offset 14}${execi 1800 sed -n '29p' ~/conkymeteo/cond_meteo}${color6}°${color6}|${color FF2222}${offset 2}${execi 1800 sed -n '30p' ~/conkymeteo/cond_meteo}${offset -3}${color6}°${color 49AEF2}${offset 14}${execi 1800 sed -n '31p' ~/conkymeteo/cond_meteo}${color6}°${color6}|${color FF2222}${offset 2}${execi 1800 sed -n '32p' ~/conkymeteo/cond_meteo}${offset -3}${color6}°${font}
    ${goto 5}${if_up wlan0}${voffset 42}${image ~/conkymeteo/images/radar.png -p 135,720 -s 121x80}${endif}
    And attached, a print screen.
    Attached Images Attached Images

  8. #1028
    Join Date
    Feb 2008
    Beans
    5,636

    Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

    Play with the lines of minimum size and maximum width in your .conkyrc, ie. increase the values until all your data fits well.

  9. #1029
    Join Date
    Jul 2011
    Beans
    16

    Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

    The problem is that the line with the temperature may be very long if there is a lot of negative T°C and very short if all T°C are for example, all 1.
    I mean, it takes one more character for the negative sign, that "move to the right" the rest of the data.
    And I want them to stay right down the corresponding icons for each day.

  10. #1030
    Join Date
    Feb 2008
    Beans
    5,636

    Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

    I don't use vin's script, but what I'd do:
    Lose the ubuntu 10.04 logo on the top (you do know what os you're using, don't you) and make the days in the forecast go to 2 lines.
    Just my 5 drachmas.

Page 103 of 122 FirstFirst ... 35393101102103104105113 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •