Page 51 of 287 FirstFirst ... 41495051525361101151 ... LastLast
Results 501 to 510 of 2865

Thread: HOWTO: VinDSL Conky Script

  1. #501

    Talking Re: HOWTO: VinDSL Conky Script

    Conky with METAR


  2. #502
    Join Date
    Feb 2011
    Beans
    15

    Re: HOWTO: VinDSL Conky Script

    Quote Originally Posted by paramvir View Post
    @ hallansing

    I got your message and the wgetman.txt

    For wget :

    Edit /usr/share/conkywx/conkywx.sh - go to a function called "get_data_file ()"

    Here delete the wget option --no-use-server-timestamps - that is it and now run the program. there are 2 calls to wget in both remove that option.

    You can try running /usr/share/conkywx/conky-restart.sh

    This will start your conkywx weather using my default templates.

    However you will need to edit the config file at /etc/conkywx/conkywx.conf and edit your Location - for the first test leave use_xml=0

    If you are using gnome you will need to edit the *conkyrc.sh [ one called in conky-restart.sh ] and change own_window_type to normal.

    For most US cities the full url you see at wunderground for your Location will need to be used - this is stated in the wiki.

    Run this in the terminal and let us know what errors you get.

    cheers
    Paramvir,
    Followed your suggestions and it's working now, getting weather data no problem,
    working in terminal as well, no errors so far...
    basically your suggestion is same as Bill's but the problem was 2 wget calls
    and I only changed for the first call in that function... that messed it up, now all working !!!

    Thank you all for helping me out: Paramvir and Bill !!!
    Waiting on Vindsl stuff as well ...

    Will have to adjust icon/text to fit my conky, if any problems will let you guys know again

    Mike.

  3. #503
    Join Date
    Jan 2009
    Location
    Harborcreek Pa
    Beans
    344
    Distro
    Ubuntu Development Release

    Re: HOWTO: VinDSL Conky Script

    Quote Originally Posted by paramvir View Post
    Conky with METAR

    That is what I was looking for and since you have word wrap figured out that would be great.

    Thanks Bill
    LINUX Flight Simulator Machine - AMD 8-Core FX-8350 - Antec KUHLER H2O 920 - 32G Ram - Nvidia GeForce GTX 780 PCI/Express 6144 MB - Driver Version 340.76 - Asus VE278 - Ubuntu 64 bit 12.04 - 14.04 - 15.10-X-Plane 10.36rc1

  4. #504

    Talking Re: HOWTO: VinDSL Conky Script

    I feeeeel Good

    Conkywx with 14 trends haaaaa



  5. #505
    Join Date
    Jan 2009
    Location
    Harborcreek Pa
    Beans
    344
    Distro
    Ubuntu Development Release

    Re: HOWTO: VinDSL Conky Script

    Quote Originally Posted by paramvir View Post
    I feeeeel Good

    Conkywx with 14 trends haaaaa
    That looks like a very good addition.

    Bill
    LINUX Flight Simulator Machine - AMD 8-Core FX-8350 - Antec KUHLER H2O 920 - 32G Ram - Nvidia GeForce GTX 780 PCI/Express 6144 MB - Driver Version 340.76 - Asus VE278 - Ubuntu 64 bit 12.04 - 14.04 - 15.10-X-Plane 10.36rc1

  6. #506
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    3,001
    Distro
    Ubuntu Development Release

    Re: HOWTO: VinDSL Conky Script

    @ Paramvir
    I'm working on a data dump.

    I'm currently:
    • Cleaning up the .conf file(s) line-by-line
    • Trying all the options
    • Seeing if they work and what they do
    • Parsing comments, blah, blah, blah

    These two settings stumped the chimp...

    Code:
    <SNIP>
    # -----------------------------------------------------------------------
    # Use UPPERCASE or lowercase AM PM or am pm for 12 hour time format
    # -----------------------------------------------------------------------
    # [0] ALL UPPERCASE (example: 03:00 PM)
    # [1] all lowercase (example: 03:00 pm)
    # [2] Hide am pm (example: 03:00)
    # [3] all lowercase with no padding/spacing (example: 3:00pm)
    # NOTE: This will only work if Time_format=12 (below)
    show_lowercase_ampm=3
    
    # -----------------------------------------------------------------------
    # Time format to use 12 or 24 hour format
    # -----------------------------------------------------------------------
    # [12] AM or PM is displayed (example: 03:00 PM)
    # [24] 24 hour format is displayed (example: 15:00)
    Time_format=12
    
    # -----------------------------------------------------------------------
    # Show deg symbol in forecast temps
    # -----------------------------------------------------------------------
    # [0] Hide all deg symbols (example: 95/63)
    # [1] Show all deg symbols (example: 95°/63°)
    # [2] Show all deg symbols, depending on Unit_to_Use (metric: 35°/17°) (imperial: 95°/63°)
    # [3] Show deg symbol ONLY, after forecast pair (example: 95/63°)
    # [4] Show deg symbol AND unit, after forecast pair (example: 95/63°F)
    show_degsym_fc_temp=1
    <SNIP>
    I cannot see any difference between the outputs of option [1] and option [2].

    Both options display the same data/same format, on my desktop, regardless of the Unit_To_Use setting.

    Am I missing something?!?!?

    EDIT

    BTW, I'm not using XML data/ID, just "Location", so I don't know what affect that has (or not). Just saying...
    Last edited by VinDSL; October 7th, 2012 at 08:57 PM. Reason: Clarification
    Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
    Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
    XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU

  7. #507

    Talking Re: HOWTO: VinDSL Conky Script

    Quote Originally Posted by VinDSL View Post
    @ Paramvir
    I'm working on a data dump.

    I'm currently:
    • Cleaning up the .conf file(s) line-by-line
    • Trying all the options
    • Seeing if they work and what they do
    • Parsing comments, blah, blah, blah

    These two settings stumped the chimp...

    Both options display the same data/same format, on my desktop, regardless of the Unit_To_Use setting.

    Am I missing something?!?!?

    EDIT

    BTW, I'm not using XML data/ID, just "Location", so I don't know what affect that has (or not). Just saying...
    Helloooo - today I had a major one on one with conkywx

    you just got me

    as I tried to release I found a new issue with the trends - bash thinks if a number starts with 0 it is octal - though the bash I am using has no problem but the Fedora spit the dummy grrrrrr so alota changee changee

    OK - I shall use D in place of deg symbol
    0 has no deg anywhere,
    1 has 21D/34D, No temp C or F
    2 has 21DC/34DC, has C or F
    3 has 21/43D ,
    4 has 21/34DC

    I will need to test some more b4 I release. The wiki is up to date. I do the wiki when I reach saturation

  8. #508
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    3,001
    Distro
    Ubuntu Development Release

    Re: HOWTO: VinDSL Conky Script

    ~Cool

    Don't mean to muddy the waters, but... you might consider this, too...

    Code:
    # -----------------------------------------------------------------------
    # Use UPPERCASE or lowercase AM PM or am pm for 12 hour time format
    # -----------------------------------------------------------------------
    # [0] ALL UPPERCASE (example: 03:00 PM)
    # [1] all lowercase (example: 03:00 pm)
    # [2] Hide am pm (example: 03:00)
    # [3] all lowercase with no padding/spacing (example: 3:00pm)
    # [4] ALL UPPERCASE WITH NO PADDING/SPACING (example: 3:00PM)
    # NOTE: This will only work if Time_format=12 (below)
    show_lowercase_ampm=4
    Code:
    # -----------------------------------------------------------------------
    # convert times
    # -----------------------------------------------------------------------
    converttohours ()
    {
    	local orgtime1=$( trim "$1" )
    	check_if_time="${orgtime1:0:2}"
    	if [[ $check_if_time =~ ^[0-9|:][:0-9]*$ ]]; then
    		corrtime="${orgtime1:0:8}"
    		
    		if [[ $Time_format == 24 ]]; then
    			if [[ "$orgtime1" == *SCT* ]]; then
    				echo $( date --date "$corrtime 1 hour 30 min" +%R)
    			else
    				echo $( date --date="$corrtime" +%R )
    			fi
    		else
    			if [[ "$orgtime1" == *SCT* ]]; then
    				echo $( date --date "$corrtime 1 hour 30 min" "+%I:%M %p")
    			else
    				# echo $( date --date="$corrtime" +%R )
    				case $show_lowercase_ampm in
    				0)
    					echo "$( date --date="$corrtime" "+%I:%M %p" )"
    					;;
    				1)
    					echo "$( date --date="$corrtime" "+%I:%M %P" )"
    					;;
    				2)
    					echo "$( date --date="$corrtime" "+%I:%M" )"
    					;;
    				3)
    					echo "$( date --date="$corrtime" "+%_I:%M%P" )"
    					;;
    				4)
    					echo "$( date --date="$corrtime" "+%_I:%M%p" )"
    					;;
    				esac
    			fi
    		fi
    	else
    		echo "N/A"
    	fi
    }
    Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
    Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
    XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU

  9. #509
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    3,001
    Distro
    Ubuntu Development Release

    Re: HOWTO: VinDSL Conky Script

    Quote Originally Posted by paramvir View Post
    I do the wiki when I reach saturation
    Bwahahaha! That's funny!

    I play "Cafe World" on Facebook, when I reach that point.

    It's NOT a meta game... it's very slow paced... forces your mind to spin down.
    Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
    Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
    XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU

  10. #510

    Talking Re: HOWTO: VinDSL Conky Script

    This is what I have fixed finally

    Code:
    # -----------------------------------------------------------------------
    # convert times
    # -----------------------------------------------------------------------
    converttohours ()
    {
        local orgtime1=$( trim "$1" )
        check_if_time="${orgtime1:0:2}"
        if [[ $check_if_time =~ ^[0-9|:][:0-9]*$ ]]; then
            local corrtime="${orgtime1:0:8}"
            
            if [[ $Time_format -eq 24 ]]; then
                t_format='+%R'
            else
                case $show_lowercase_ampm in
                0) # show upper case
                    t_format='+%I:%M %p'
                    ;;
                1) # show lower case
                    t_format='+%I:%M %P'
                    ;;
                2) # no am pm displayed
                    t_format='+%I:%M'
                    ;;
                3) # no leading zero
                    t_format='+%_I:%M %P'
                    ;;
                4) # custom format
                    t_format="$custom_time_format"
                    ;;
                esac
            fi
            echo "$( date --date="$corrtime" "$t_format" )"
        else
            echo "N/A"
        fi
    }
    In the config file we have:
    Code:
    # -----------------------------------------------------------------------
    # use upper or lower case AM PM or am pm for 12 hour time format
    # -----------------------------------------------------------------------
    #+ 0 for uppercase, 1 for lower, 2 for no am pm, 3 no padding and space, 
    #+ 4 use custom time format - state the format in custom_time_format
    #+ NOTE: this will only work if Time_format=12
    show_lowercase_ampm=0
    
    # -----------------------------------------------------------------------
    # set custom time format - see man date in a terminal to get more options
    #+ ensure to quote the format in single quotes as shown
    # -----------------------------------------------------------------------
    # custom_time_format='+%_I:%M%P'
    custom_time_format='+%_I:%M'
    This will allow all the variations one can think of

Page 51 of 287 FirstFirst ... 41495051525361101151 ... 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
  •