I lived in Fiji for 4 years, here most of the time: 17°40'54.2"S/178°49'56.3"E
In the summer (Dec/Jan/Feb) it was 35-40C and 100%, oh and no AC either...I was living a lot of the time with locals in the hills. I think my record was 11 cold showers in one day...I would still live there over the UK anyday! One day in the not too distant future I'll have that life again but until I die
Last edited by kaivalagi; August 13th, 2010 at 10:12 PM.
I remember visiting the Phoenix area in the middle of September one year/ On the radio they were making a big deal about how the high temp for the day was going to only be 100! My wife and I drove there in a black car with a black interior! It was a rolling solar oven. The weather stripping on one of the doors fell of because its adhesive melted!
when it rains theres humidity. like 80 percent. and its still that hot. and its raining.
and you should see my parents cars. most of the tinting on the windows has come off and my dad is constantly fixing the seals. thats y i moved to hawaii. cool and sunny all year round. and my cars temp says it just hit 49
but anyway back to conky. i still have yet to stop the flashing. ive changed every variable and changed the minimum and maximum size and the only thing that has any effect is double buffer
Last edited by djyoung4; August 13th, 2010 at 11:19 PM.
I'm a super power user
pollen.com changed something ELSE now! it can't find my zip code any more. Guess I'm forced to set up the script to use wunderground.com
wunderground's output is WAY easier to parse. The script wont look so messy now.
Hopefully wunderground doesn't play around with their output like pollen.com does.Code:#!/bin/bash ZIP=48111 month=$(date +%b) IFS=$'\n' LMH() { case $1 in [0-1].[0-9]|2.[0-4]) echo Low;; # 0.0 to 2.4 is Low 2.[5-9]|3.[0-9]|4.[0-8]) echo Low-Medium;; # 2.5 to 4.8 is Low-Medium 4.9|5.[0-9]|6.[0-9]|7.[0-2]) echo Medium;; # 4.9 to 7.2 is Medium 7.[3-9]|8.[0-9]|9.[0-6]) echo Medium-High;; # 7.3 to 9.6 is Medium-High 9.[7-9]|10.[0-9]|11.[0-9]|12.0) echo High;; # 9.7 to 12.0 is High esac } pollen=$(curl -s "http://www.wunderground.com/DisplayPollen.asp?Zipcode=${ZIP}" | sed -n -e "/Today's pollen and allergy information./,/<\/table>/p" | sed -e 's/^[[:blank:]]*//') days=($(echo "$pollen" | grep "<div class=\"b\">" | sed 's/<[^>]*>//g')) dates=($(echo "$pollen" | grep "<div>$month" | sed 's/<[^>]*>//g')) counts=($(echo "$pollen" | grep "<p class=\"big b\">" | sed 's/<[^>]*>//g')) content=($(echo "$pollen" | grep "<div class=\"mainB\">" | sed 's/<[^>]*>//g')) echo "Current pollen content:" echo "${content[*]}" for d in $(seq 0 $((${#days[*]}-1)));do echo "Pollen count for ${days[d]}, ${dates[d]}:" echo "$(LMH ${counts[d]%0}) at ${counts[d]}" done
My current output from this is:
Suggestions for different wording are welcome!Code:Current pollen content: Ragweed, Nettle and Chenopods. Pollen count for Friday, August 13, 2010: Medium-High at 7.30 Pollen count for Saturday, August 14, 2010: Medium-High at 8.50 Pollen count for Sunday, August 15, 2010: High at 9.70 Pollen count for Monday, August 16, 2010: Medium-High at 9.10
It also looks like showing the previous day's pollen count is the default.
nevermind
It changed to showing from today through Monday.
Last edited by mobilediesel; August 13th, 2010 at 11:56 PM. Reason: forgot to make the zip a variable
@DJ
Here's a trouble shooting tip: Terminal any of the conkys and add one more at a time until you produce the effect that's troubling you. Play around by starting a diff conky and adding others until you can isolate what exactly is causing the problem. Then see what you can do about it then.
Ubuntu User #29918 | Linux User #501271 |
I'll paste it again in case I messed it up:
I just checked and is the first line in the script #!/bin/bash?Code:#!/bin/bash ZIP=48111 month=$(date +%b) IFS=$'\n' LMH() { case $1 in [0-1].[0-9]|2.[0-4]) echo Low;; # 0.0 to 2.4 is Low 2.[5-9]|3.[0-9]|4.[0-8]) echo Low-Medium;; # 2.5 to 4.8 is Low-Medium 4.9|5.[0-9]|6.[0-9]|7.[0-2]) echo Medium;; # 4.9 to 7.2 is Medium 7.[3-9]|8.[0-9]|9.[0-6]) echo Medium-High;; # 7.3 to 9.6 is Medium-High 9.[7-9]|10.[0-9]|11.[0-9]|12.0) echo High;; # 9.7 to 12.0 is High esac } pollen=$(curl -s "http://www.wunderground.com/DisplayPollen.asp?Zipcode=${ZIP}" | sed -n -e "/Today's pollen and allergy information./,/<\/table>/p" | sed -e 's/^[[:blank:]]*//') days=($(echo "$pollen" | grep "<div class=\"b\">" | sed 's/<[^>]*>//g')) dates=($(echo "$pollen" | grep "<div>$month" | sed 's/<[^>]*>//g')) counts=($(echo "$pollen" | grep "<p class=\"big b\">" | sed 's/<[^>]*>//g')) content=($(echo "$pollen" | grep "<div class=\"mainB\">" | sed 's/<[^>]*>//g')) echo "Current pollen content:" echo "${content[*]}" for d in $(seq 0 $((${#days[*]}-1)));do echo "Pollen count for ${days[d]}, ${dates[d]}:" echo "$(LMH ${counts[d]%0}) at ${counts[d]}" done
I tried it in sh rather than bash and it doesn't work in sh.
Bookmarks