Page 39 of 187 FirstFirst ... 2937383940414989139 ... LastLast
Results 381 to 390 of 1869

Thread: HOWTO: VinDSL Conky Script

  1. #381
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    2,827
    Distro
    Ubuntu Development Release

    Re: HOWTO: VinDSL Conky Script

    Let me post this, while I'm thinking about it...

    I've pretty much settled on this same old skool design.

    I've grown accustomed to it, over the years. It tells me what I what to know, and doesn't take up a lot of real estate on my desktop.




    /usr/share/conkywx/examples/vindsl-weather-template.sh
    Code:
    ##################################
    ## VinDSL | rev. 12-09-23 08:09 ##
    ##################################
    ##   CONKYWX WEATHER TEMPLATE   ##
    ##################################
    ${voffset 6}${goto 34}${font Weather:size=44}${color6}y${font}
    ${voffset -58}${font RadioSpace:size=33}${color6}${alignc}[PT]${font}
    ${voffset 2}${alignc 6}${font}${font DroidSansFallback:bold:size=7.4}${color5}Feels${offset 3}like${offset 1}:${offset 1}${color6}[FL]${offset 3}${color5}/${offset 3}${color6}[FCTT]${font}
    ${voffset -40}${goto 203}${font DroidSansFallback:bold:size=8.75}${color6}[D1T]${font}
    ${voffset 0}${goto 204}${font DroidSansFallback:bold:size=7.3}${color5}CoR${offset 1}:${offset 1}${color6}[D1P]${font}
    ${voffset -45}${goto 188}${font KRARound:size=41.5}${color8}I${font}
    ${voffset 6}${font Ubuntu:size=22.75}${color5}${alignc}[CT]${font}
    ${voffset 7}${alignc 6}${font}${font DroidSansFallback:bold:size=8}${color5}Sunrise${offset 1}:${offset 1}${color6}[SR]${offset 6}${color5}Sunset${offset 1}:${offset 1}${color6}[SS]${font}
    ${voffset 8}${goto 85}${font DroidSansFallback:bold:size=7.55}${color5}Humidity${offset 1}:${offset 2}${color6}[HM]${font}${voffset 11}${goto 84}${font DroidSansFallback:bold:size=7.55}${color5}Barometer${offset 1}:${offset 2}${color6}[BR]${font}${voffset 11}${goto 84}${font DroidSansFallback:bold:size=7.55}${color5}Bar${offset 3}Trend${offset 1}:${offset 2}${color6}[FCTP]${font}${voffset 11}${goto 84}${font DroidSansFallback:bold:size=7.55}${color5}Moonrise${offset 1}:${color6}[MR]${font}${voffset 11}${goto 85}${font DroidSansFallback:bold:size=7.55}${color5}Moonset${offset 1}:${color6}[MS]${font}
    ${voffset -61}${goto 16}${font ConkyWindNESW:size=41.6}${color6}[BF]${font}${voffset -36}${goto 196}${font MoonPhases:size=35}${color6}[MIF]${font}${voffset -36}${goto 198}${font MoonPhases:size=35}${color8}8${font}
    ${voffset -1}${goto 22}${font DroidSansFallback:bold:size=8.45}${color3}[WS] mph${voffset -1}${goto 203}[MP]${font}
    ${voffset 8}${goto 25}${font DroidSans:bold:size=8.5}${color5}[D2D]${goto 85}[D3D]${goto 144}[D4D]${goto 201}[D5D]${font}
    ${voffset 2}${goto 23}${font ConkyWeather:size=32}${color6}[D2F]${goto 83}[D3F]${goto 142}[D4F]${goto 200}[D5F]${font}
    ${voffset 1}${goto 25}${font DroidSans:bold:size=8.5}${color3}[D2T]${goto 85}[D3T]${goto 144}[D4T]${goto 201}[D5T]${font}
    ${voffset -1}${goto 24}${font DroidSans:bold:size=8.45}${color5}CoR${offset 1}:${offset 1}${color3}[D2P]${goto 84}${color5}CoR${offset 1}:${offset 1}${color3}[D3P]${goto 144}${color5}CoR${offset 1}:${offset 1}${color3}[D4P]${goto 201}${color5}CoR${offset 1}:${offset 1}${color3}[D5P]${font}

    Here's the test template, with update & fetch times added...




    /usr/share/conkywx/examples/vindsl-weather-template-test.sh
    Code:
    ##################################
    ## VinDSL | rev. 12-09-18 12:00 ##
    ##################################
    ## CONKYWX FETCH TEST TEMPLATE  ##
    ##################################
    ${voffset 6}${goto 34}${font Weather:size=44}${color6}y${font}
    ${voffset -58}${font RadioSpace:size=33}${color6}${alignc}[PT]${font}
    ${voffset 2}${alignc 6}${font}${font DroidSansFallback:bold:size=7.4}${color5}Feels${offset 3}like${offset 1}:${offset 1}${color6}[FL]${offset 3}${color5}/${offset 3}${color6}[FCTT]${font}
    ${voffset -40}${goto 203}${font DroidSansFallback:bold:size=8.75}${color6}[D1T]${font}
    ${voffset 0}${goto 204}${font DroidSansFallback:bold:size=7.3}${color5}CoR${offset 1}:${offset 1}${color6}[D1P]${font}
    ${voffset -45}${goto 188}${font KRARound:size=41.5}${color8}I${font}
    ${voffset 6}${alignc}${font}${font DroidSansFallback:bold:size=7.4}${color5}Update${offset 1}:${offset 1}${color6}[LU]${offset 6}${color5}Fetched${offset 1}:${offset 1}${color6}[LF]${font}
    ${voffset -0}${font Ubuntu:size=22.75}${color5}${alignc}[CT]${font}
    ${voffset 8}${alignc 6}${font}${font DroidSansFallback:bold:size=8}${color5}Sunrise${offset 1}:${offset 1}${color6}[SR]${offset 6}${color5}Sunset${offset 1}:${offset 1}${color6}[SS]${font}
    ${voffset 8}${goto 85}${font DroidSansFallback:bold:size=7.55}${color5}Humidity${offset 1}:${offset 2}${color6}[HM]${font}${voffset 11}${goto 84}${font DroidSansFallback:bold:size=7.55}${color5}Barometer${offset 1}:${offset 2}${color6}[BR]${font}${voffset 11}${goto 84}${font DroidSansFallback:bold:size=7.55}${color5}Bar${offset 3}Trend${offset 1}:${offset 2}${color6}[FCTP]${font}${voffset 11}${goto 84}${font DroidSansFallback:bold:size=7.55}${color5}Moonrise${offset 1}:${color6}[MR]${font}${voffset 11}${goto 85}${font DroidSansFallback:bold:size=7.55}${color5}Moonset${offset 1}:${color6}[MS]${font}
    ${voffset -61}${goto 16}${font ConkyWindNESW:size=41.6}${color6}[BF]${font}${voffset -36}${goto 196}${font MoonPhases:size=35}${color6}[MIF]${font}${voffset -36}${goto 198}${font MoonPhases:size=35}${color8}8${font}
    ${voffset -1}${goto 22}${font DroidSansFallback:bold:size=8.45}${color3}[WS] mph${voffset -1}${goto 203}[MP]${font}
    ${voffset 8}${goto 25}${font DroidSans:bold:size=8.5}${color5}[D2D]${goto 85}[D3D]${goto 144}[D4D]${goto 201}[D5D]${font}
    ${voffset 2}${goto 23}${font ConkyWeather:size=32}${color6}[D2F]${goto 83}[D3F]${goto 142}[D4F]${goto 200}[D5F]${font}
    ${voffset 1}${goto 25}${font DroidSans:bold:size=8.5}${color3}[D2T]${goto 85}[D3T]${goto 144}[D4T]${goto 201}[D5T]${font}
    ${voffset -1}${goto 24}${font DroidSans:bold:size=8.45}${color5}CoR${offset 1}:${offset 1}${color3}[D2P]${goto 84}${color5}CoR${offset 1}:${offset 1}${color3}[D3P]${goto 144}${color5}CoR${offset 1}:${offset 1}${color3}[D4P]${goto 201}${color5}CoR${offset 1}:${offset 1}${color3}[D5P]${font}

    I've moved the Sunrise/Sunset times to the weather template, so the time template isn't required any longer.


    The only changes I made to conkywx.sh ver. 0.7.4 is:

    Apply the "piping patch". Mentioned here: http://ubuntuforums.org/showpost.php...&postcount=364


    And, the "leading zero patch" in the converttohours () function:

    /usr/share/conkywx/conkywx.sh
    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" "+%l:%M %p")
    			else
    				# echo $( date --date="$corrtime" +%R )
    				case $show_lowercase_ampm in
    				0)
    					echo "$( date --date="$corrtime" "+%l:%M %p" )"
    					;;
    				1)
    					echo "$( date --date="$corrtime" "+%l:%M %P" )"
    					;;
    				*)
    					echo "$( date --date="$corrtime" "+%l:%M" )"
    					;;
    				esac
    			fi
    		fi
    	else
    		echo "N/A"
    	fi
    }

    Here's my conkywx.conf file:

    /etc/conkywx/conkywx.conf (and)
    /usr/share/conkywx/examples/conkywx.conf

    Code:
    # -----------------------------------------------------------------------
    # Wund Weather Config File 
    # -----------------------------------------------------------------------
    # THIS PROGRAM IS FOR PERSONAL AND PRIVATE USE ONLY
    # CONTACT WUNDERGROUND.COM FOR PROFESSIONAL SOLUTIONS
    # CAVEAT: No guarantee that this program will work on all platforms,
    # Use At Your Own Risk.
    
    # -----------------------------------------------------------------------
    # use_xml
    # -----------------------------------------------------------------------
    # Use XML data from wunderground - 1 for yes - 0 for no
    # if this is set to 1 you will need the xml_ID for a station of your choosing
    # 
    use_xml=0
    
    # -----------------------------------------------------------------------
    # xml_ID
    # -----------------------------------------------------------------------
    # You can use the xml data which is provided at wunderground generated by 
    # Davis Vantage Pro series of private weather stations.
    # This xml is updated every 2.5 seconds or there about - so one gets pretty 
    # much real-time weather data. Though the data contained is current and all 
    # predictive and astro data for sun and moon and 7 day forecast comes from
    # from the main web page for your location.
    #
    # To get this xml_ID you need to visit the location of your interest
    # which will give you the *Location* url [US] or number [rest of the world]
    # at the bottom of the page you have a listing of private weather station feeding 
    # wunderground
    #
    # You will also notice a lot of them - under Type column have Rapid Fire in green - 
    # ideally one of these would make a good choice and you can select one closest to your
    # location. The last part of the url is the number after the ID=. infact if you hover 
    # your mouse over the station name on the main page you will see a popup with the link
    # url which has like this ID=I00020B4 - you can see examples below
    #	New delhi GK 2
    # xml_ID=IDELHINE8
    #	Morristown area
    # xml_ID=I00020B4
    #	Perth Wanneroo
    # xml_ID=IWESTERN144
    
    # -----------------------------------------------------------------------
    # Location settings
    # -----------------------------------------------------------------------
    # + Enter the location number from weather underground web page url
    # + most locations have a location number - BUT some do not - like the US sites!!!
    # + in which case use the URL and set Location to url
    # + Location=url
    # +	OR
    # + Location=number
    # + Use only one location per config file!
    # + for more than one location - create a new config file and give the path 
    # + to it with a -c command line option
    # + there are some test cases listed below - just ensure only one location is uncommented.
    # If you cannot figure the number just use the full url to that page.
    #	Scottsdale, Arizona
    Location=http://www.wunderground.com/q/zmw:85250.1.99999
    
    # -----------------------------------------------------------------------
    # Test location settings
    # -----------------------------------------------------------------------
    #  Testing URL - to test the various locations - a Location can be
    #+ uncommented it will override the Location above
    #+
    #	New delhi Palam
    # Location=42181
    #	Paris France
    # Location=07157
    #	perth western australia
    # Location=94610
    #	Morristown, NJ USA
    #Location=http://www.wunderground.com/US/NJ/Morristown.html
    #	Reykjavik, Iceland
    # Location=04030
    #	Cape town South Africa
    # Location=68816
    #	Gloucestershire, United Kingdom
    # Location=03633
    #	Dubai UAE
    # Location=41194
    #	Prospect Creek, Alaska
    # Location=http://www.wunderground.com/q/zmw:99726.18.99999
    #	Svalbard, Norway
    # Location=http://www.wunderground.com/cgi-bin/findweather/getForecast?query=zmw:00000.1.01008
    #	Dresden Germany
    # Location=10488
    
    # -----------------------------------------------------------------------
    # Units to use and Downloaded
    # -----------------------------------------------------------------------
    #  enter the units to get centigrade or farenheit 
    #+ metric [SI] or imperial/english [IM] Option= SI or IM
    Units_to_Use=IM
    Units_downloaded=IM
    
    # -----------------------------------------------------------------------
    # Show units, use short date, show notification
    # -----------------------------------------------------------------------
    # Use 1 (enable) or 0 (disable)
    Units_show=0			# If you want to see units like km/h etc in conky
    use_short_date=1		# Sunday, 27 will become Sun 27
    show_notification=1		# Every update a popup notification shows
    show_short_cond_text=1		# Use short Present Condition text
    show_lowercase_ampm=1		# Use upper or lower case AM PM or am pm for 12 hour time format
    				# 0 for uppercase, 1 for lower, or 2 for no am pm
    				# NOTE: this will only work if Time_format=12 below
    show_degsym_fc_temp=2		# Show deg symbol in forecast temps, 
    				# 0 to hide, 1 to show, 2 to show deg symbol with F C depending on Unit_to_Use
    				# 3 to show deg after the FC pair, 4 to show deg F C after pair ;-)
    # -----------------------------------------------------------------------
    # Time format to use 12 or 24 hour format
    # -----------------------------------------------------------------------
    #  Time_format is 12 or 24 - in 12 u get AM or PM in 24 u get 
    #+ 24 hours format like 15:00 in place of 03:00 PM
    Time_format=12
    
    # -----------------------------------------------------------------------
    # Today date format - can be used any place multiple times
    # -----------------------------------------------------------------------
    today_date_format="%b, %d %Y"
    
    # -----------------------------------------------------------------------
    # Minimum time the script allows the wesite to be polled
    # -----------------------------------------------------------------------
    #  this is the minimum fetch time in seconds
    #+ this should be less than the conky script fetch frequency
    #+ The program checks for changes in Location, use_xml or xml_ID variable.
    #+ If any of these have changed then the program will make a fresh call for
    #+ downloading data even if the minimum_fetch_time has not been reached
    # minimum_fetch_time=1740
    minimum_fetch_time=870
    
    
    # -----------------------------------------------------------------------
    # --- DO NOT TOUCH SECTION ---
    # URLs used in this program
    # -----------------------------------------------------------------------
    main_url="http://www.wunderground.com/global/stations/"
    xml_url="http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID="

    So, that's where it stands, right now. Simple pimple!

    I'm gonna go play around with the Metric side of things, and see how that goes...

    BBL
    Last edited by VinDSL; September 23rd, 2012 at 07:05 PM. Reason: Addendum
    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

  2. #382

    Re: HOWTO: VinDSL Conky Script

    Quote Originally Posted by VinDSL View Post
    Interesting!

    I'll do a wash, rinse & restyle, and see it that does the trick.

    I'm getting to be an expert at (re)installing Conkywx. LoL!

    False alarm! Everything is back to *normal*.

    Guess it was just an anomaly.
    Lets see if it happens again.

    Actually I move my templates etc in my project folder and just keep WX_DIR export updated - since I keep the same hierarchy - but even then the WX_DIR is added or commented out on the *conkyrc.sh - as I need - I really cannot work with the installed conkywx as I will need root access all the time.

    I have now made a provision to either look for config file in $HOME/.config/conkywx location or /etc/conkywx - like most programs have this option available - so why not conkywx - plus the -c option is always there.

  3. #383

    Re: HOWTO: VinDSL Conky Script

    Quote Originally Posted by foodoo View Post
    Hi vindsl,

    Since the pipe problem has been fixed i have had no problems what so ever!
    I saw your last screenshot and i must say it looks wonderful, perfectly matched with that wallpaper, i must admit you have very good taste in wallpapers!
    It's slowly getting cold here in Dresden, only 9°C at the moment but it looks like it's going to get warmer during the week up to 24-25°C come Thursday.
    Anyway here's a nice picture of the City taken in the evening sometime during the summer this year.
    https://dl.dropbox.com/u/105847605/Dresden.jpg

    Nice Greetings Sean.
    THAT is wow - I have added that pic to my wallpaper stash

    I am waiting for winter to add snow information

  4. #384

    Re: HOWTO: VinDSL Conky Script

    Quote Originally Posted by VinDSL View Post
    We're all over the map, as far as the hardware is concerned. I'm running cutting edge dev releases on ancient iron. Your setup sounds like it belongs in a space shuttle. LoL!
    Yes we plug on with changes as required and YES the space shuttle has more modest hardware than Bill's - me thinks

  5. #385
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    2,827
    Distro
    Ubuntu Development Release

    Re: HOWTO: VinDSL Conky Script

    Quote Originally Posted by paramvir View Post
    I have now made a provision to either look for config file in $HOME/.config/conkywx location or /etc/conkywx - like most programs have this option available - so why not conkywx - plus the -c option is always there.
    Hi Paramvir,
    Indeed! Capital idea!

    I think everyone has grown accustomed to finding conf files in /home.

    Plus, some ppl use auto-login, and can't even remember their password. Don't LoL -- I've seen it happen!

    It's just adds a level of complexity; switching back n' forth, IMO.
    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

  6. #386

    Re: HOWTO: VinDSL Conky Script

    Quote Originally Posted by VinDSL View Post
    Let me post this, while I'm thinking about it...

    I've pretty much settled on this same old skool design.

    I've grown accustomed to it, over the years. It tells me what I what to know, and doesn't take up a lot of real estate on my desktop.

    I'm gonna go play around with the Metric side of things, and see how that goes...
    BBL
    Yup that looks good..

    Generally we settle for a design and it grows on us - my templates reflect that and so do your.

    here is a preview of the latest conkywx.conf
    PHP Code:
    #  How do you want the present conditon to look like
    #+ 0=first char each word uppercase 1=all upper 2=all lower or
    #+ 3=sentence - only first character of the full present condition
    pc_what_case=0

    use_pcondition_blacklist
    =1    # use blacklist to shorten Present Condition text

    #  Add words you want to remove from Present Condition text in this list
    #+ Separate words with space, if two words together then quote the words 
    #+ with " character. 
    #+ To replace words use format "orginaltext:newtext" and quote text with " character
    #+ To replace everything use format "*orginaltext*:newtext" and quote text 
    #+ with " character
    #+ The list is not case sensitive.
    #+ output will be based on pc_what_case
    #+ To use this blacklist you must set use_pcondition_blacklist=1
    pcondition_blacklist=( light heavy Severe Widespread pellets pellet 
    Freezing "Thunderstorms:t-storms" "Thunderstorm:t-storms" "with:+" \
     
    "and:+" "Patches of" "Low Drifting" Small Precipitation )
    # pcondition_blacklist=( light heavy Severe Widespread Pellet Freezing "*Thunderstorms*:Thunderstorm" "Patches of" "Low Drifting" Small Precipitation )

    # 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 
    #+ NOTE: this will only work if Time_format=12 below
    show_lowercase_ampm=3

    # show deg symbol in forecast temps, 
    #+ 0 to hide, 1 to show, 2 to show deg symbol with F C depending on Unit_to_Use
    #+ 3 to show deg after the FC pair, 4 to show deg F C after pair ;-)

    show_degsym_fc_temp=
    Take note of use_pcondition_blacklist so as a user you can add or remove your own set of words from pcondition_blacklist array that you might want to remove from the present condition.

    Also see show_lowercase_ampm - the 3rd option removes the 0 from time output.

    I am using php thingy as it gives colour output

    cheers
    Last edited by paramvir; September 23rd, 2012 at 07:10 PM.

  7. #387

    Re: HOWTO: VinDSL Conky Script

    Quote Originally Posted by VinDSL View Post
    Hi Paramvir,
    Indeed! Capital idea!

    I think everyone has grown accustomed to finding conf files in /home.

    Plus, some ppl use auto-login, and can't even remember their password. Don't LoL -- I've seen it happen!

    It's just adds a level of complexity; switching back n' forth, IMO.
    Yes - you are absolutely right and left too - I use auto-login

  8. #388
    Join Date
    Jan 2009
    Location
    Harborcreek Pa
    Beans
    343
    Distro
    Ubuntu Development Release

    Re: HOWTO: VinDSL Conky Script

    Quote Originally Posted by paramvir View Post
    delete the file $HOME/.conkywx_new_version_test - this will update it with the latest info - need to figure how to delete it on uninstall - perhaps in the install script - part of uninstall cleanup script - grrrrrrrrr

    This is the only file created by conkywx in your $HOME folder.
    Deleted it and then had work a little to get it back but all is working fine now.

    Thanks Bill
    LINUX Flight Simulator Machine - AMD 8-Core FX-8350 - Antec KUHLER H2O 920 - 32G Ram - Nvidia GeForce GTX 680 PCI/Express 4096 MB - Driver Version 310.14 - Asus VE278 - Ubuntu 64 bit 12.04 - 12.10 - 13.04 - 13.10 - 14.04 - X-Plane 10.25b1

  9. #389
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    2,827
    Distro
    Ubuntu Development Release

    Re: HOWTO: VinDSL Conky Script

    Added an arrow to the current temp, to indicate the trend, e.g. Falling, Rising, Steady.


    Here's how it looks in Gnome-Shell...
    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. #390

    Talking Re: HOWTO: VinDSL Conky Script

    Quote Originally Posted by VinDSL View Post
    Added an arrow to the current temp, to indicate the trend, e.g. Falling, Rising, Steady.


    Here's how it looks in Gnome-Shell...
    This is so unreal - freaky lol - I just got this arrow thingy into the program last night.
    PHP Code:
    # characters to use for forecast trends - qoute in single ' quotes
    #+ use unicode fonts in you script like DejaVu Sans ...
    #+ if you want to change these values - test them first in terminal as
    #+ example echo -e '\u2194'
    risingtrend='\u2191'
    fallingtrend='\u2193'
    steadytrend='\u2194' 
    http://en.zimagez.com/zimage/screenshot-09252012am.php

    Nice wallpaper - desert and water - I have the same wall without the desert or the tree

Page 39 of 187 FirstFirst ... 2937383940414989139 ... 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
  •