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.
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
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
@ 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...
I cannot see any difference between the outputs of option [1] and option [2].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>
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
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
~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=4Code:# ----------------------------------------------------------------------- # 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
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
This is what I have fixed finally
In the config file we have: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 }
This will allow all the variations one can think ofCode:# ----------------------------------------------------------------------- # 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'
Bookmarks