From ae30fc9716f68dd046f84a9e526c964aa28c6110 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 8 Feb 2016 22:53:58 +0800 Subject: Drop conky configuration (I no longer use conky) --- _conky/cronograph/accuweather/accuweather.sh | 172 --- _conky/cronograph/accuweather/curr_cond | 5 - _conky/cronograph/accuweather/curr_cond_raw | 1646 -------------------------- _conky/cronograph/accuweather/last_days | 25 - _conky/cronograph/accuweather/last_days_raw | 82 -- _conky/cronograph/accuweather/tod_ton | 25 - _conky/cronograph/accuweather/tod_ton_raw | 81 -- 7 files changed, 2036 deletions(-) delete mode 100755 _conky/cronograph/accuweather/accuweather.sh delete mode 100644 _conky/cronograph/accuweather/curr_cond delete mode 100644 _conky/cronograph/accuweather/curr_cond_raw delete mode 100644 _conky/cronograph/accuweather/last_days delete mode 100644 _conky/cronograph/accuweather/last_days_raw delete mode 100644 _conky/cronograph/accuweather/tod_ton delete mode 100644 _conky/cronograph/accuweather/tod_ton_raw (limited to '_conky/cronograph/accuweather') diff --git a/_conky/cronograph/accuweather/accuweather.sh b/_conky/cronograph/accuweather/accuweather.sh deleted file mode 100755 index fe6a407..0000000 --- a/_conky/cronograph/accuweather/accuweather.sh +++ /dev/null @@ -1,172 +0,0 @@ -#!/bin/sh - -## get the directory of this script -SCRIPT_PATH=`readlink -f $0` -SCRIPT_DIR=`dirname ${SCRIPT_PATH}` - -## address (Accuweather url) -address="http://www.accuweather.com/en/cn/shanghai/106577/weather-forecast/106577" # Shanghai - - -## function: test_image() -test_image() { - case $1 in - 1) - echo a - ;; - 2|3) - echo b - ;; - 4|5) - echo c - ;; - 6) - echo d - ;; - 7) - echo e - ;; - 8) - echo f - ;; - 11) - echo 0 - ;; - 12) - echo h - ;; - 13|14) - echo g - ;; - 15) - echo m - ;; - 16|17) - echo k - ;; - 18) - echo i - ;; - 19) - echo q - ;; - 20|21|23) - echo o - ;; - 22) - echo r - ;; - 24|31) - echo E - ;; - 25) - echo v - ;; - 26) - echo x - ;; - 29) - echo y - ;; - 30) - echo 5 - ;; - 32) - echo 6 - ;; - 33) - echo A - ;; - 34|35) - echo B - ;; - 36|37) - echo C - ;; - 38) - echo D - ;; - 39|40) - echo G - ;; - 41|42) - echo K - ;; - 43|44) - echo O - ;; - *) - echo - - ;; - esac -} - - -#kill -STOP $(pidof conky) -#killall wget - -## urls and wget weather data -loc_id=$(echo ${address} | sed 's/\/weather-forecast.*$//' | sed 's/^.*\///') -last_number=$(echo ${address} | sed 's/^.*\///') - -curr_addr="$(echo ${address} | sed 's/weather-forecast.*$//')current-weather/${last_number}" -wget -O ${SCRIPT_DIR}/curr_cond_raw "${curr_addr}" - -addr1="$(echo ${address} | sed 's/weather-forecast.*$//')daily-weather-forecast/${last_number}" -wget -O ${SCRIPT_DIR}/tod_ton_raw "${addr1}" - -addr2="${addr1}?day=6" -wget -O ${SCRIPT_DIR}/last_days_raw "${addr2}" - -## current conditions -if [ -s ${SCRIPT_DIR}/curr_cond_raw ]; then - sed -i '/detail-now/,/#details/!d' ${SCRIPT_DIR}/curr_cond_raw - egrep -i '"cond"|icon i-|detail-tab-panel' ${SCRIPT_DIR}/curr_cond_raw > ${SCRIPT_DIR}/curr_cond - sed -i -e 's/^.*detail-tab-panel //g' -e 's/^.*icon i-//g' -e 's/"><\/div>.*$//g' ${SCRIPT_DIR}/curr_cond - sed -i -e 's/^.*"cond">//g' -e 's/°/\n/g' -e 's/<\/span>.*"temp">/\n/g' -e 's/<.*>//g' ${SCRIPT_DIR}/curr_cond - sed -i -e 's/">//g' -e 's/-->//g' -e 's/\r$//g' -e 's/ i-alarm.*$//g' -e 's/-[a-z].*$//g' ${SCRIPT_DIR}/curr_cond - image=$(sed -n 2p ${SCRIPT_DIR}/curr_cond) - sed -i 2s/${image}/$(test_image ${image})/ ${SCRIPT_DIR}/curr_cond -fi - -## First 5 days -if [ -s ${SCRIPT_DIR}/tod_ton_raw ]; then - sed -i '/feed-tabs/,/\.feed-tabs/!d' ${SCRIPT_DIR}/tod_ton_raw - egrep -i 'Early AM|Today|Tonight|Overnight|icon i-|cond|temp|Mon|Tue|Wed|Thu|Fri|Sat|Sun' ${SCRIPT_DIR}/tod_ton_raw > ${SCRIPT_DIR}/tod_ton - sed -i -e 's/^.*#">//g' -e 's/^.*icon i-//g' -e 's/^.*cond">//g' -e 's/^.*temp">//g' ${SCRIPT_DIR}/tod_ton - sed -i -e 's/Lo<\/span> /\n/g' -e 's/<\/a>.*$//g' -e 's/ "><.*$//g' -e 's/&#.*$//g' -e 's/teo//g' ${SCRIPT_DIR}/tod_ton - sed -i -e 's/.*$//g' -e 's/<\/span>//g' -e 's/\r$//g' -e 's/ i-alarm.*$//g' ${SCRIPT_DIR}/tod_ton - sed -i -e 's/Early AM/EARLY AM/' -e 's/Today/TODAY/' -e 's/Tonight/TONIGHT/' -e 's/Overnight/OVERNIGHT/' -e 's/Mon/MON/' -e 's/Tue/TUE/' -e 's/Wed/WED/' -e 's/Thu/THU/' -e 's/Fri/FRI/' -e 's/Sat/SAT/' -e 's/Sun/SUN/' -e 's/-[a-z]*$//g' ${SCRIPT_DIR}/tod_ton - time=$(sed -n 1p ${SCRIPT_DIR}/tod_ton) - image=$(sed -n 2p ${SCRIPT_DIR}/tod_ton) - # - if [ "${time}" = "TODAY" ]; then - sed -i 2s/${image}/$(test_image ${image})/ ${SCRIPT_DIR}/tod_ton - elif [ "${time}" = "TONIGHT" -o "${time}" = "OVERNIGHT" -o "${time}" = "EARLY AM" ]; then - sed -i 2s/${image}/$(test_image ${image})/ ${SCRIPT_DIR}/tod_ton - sed -i 3a- ${SCRIPT_DIR}/tod_ton - fi - # - for i in $(seq 7 5 22); do - image=$(sed -n "${i}"p ${SCRIPT_DIR}/tod_ton) - sed -i ${i}s/${image}/$(test_image ${image})/ ${SCRIPT_DIR}/tod_ton - done -fi - -## Next 5 days -if [ -s ${SCRIPT_DIR}/last_days_raw ]; then - sed -i '/feed-tabs/,/\.feed-tabs/!d' ${SCRIPT_DIR}/last_days_raw - egrep -i 'icon i-|cond|temp|Mon|Tue|Wed|Thu|Fri|Sat|Sun' ${SCRIPT_DIR}/last_days_raw > ${SCRIPT_DIR}/last_days - sed -i -e 's/^.*#">//g' -e 's/^.*icon i-//g' -e 's/^.*cond">//g' -e 's/^.*temp">//g' ${SCRIPT_DIR}/last_days - sed -i -e 's/Lo<\/span> /\n/g' -e 's/<\/a>.*$//g' -e 's/ "><.*$//g' -e 's/&#.*$//g' -e 's/teo//g' ${SCRIPT_DIR}/last_days - sed -i -e 's/.*$//g' -e 's/<\/span>//g' -e 's/\r$//g' -e 's/ i-alarm.*$//g' ${SCRIPT_DIR}/last_days - sed -i -e 's/Mon/MON/' -e 's/Tue/TUE/' -e 's/Wed/WED/' -e 's/Thu/THU/' -e 's/Fri/FRI/' -e 's/Sat/SAT/' -e 's/Sun/SUN/' -e 's/-[a-z]*$//g' ${SCRIPT_DIR}/last_days - # - for i in $(seq 7 5 22); do - image=$(sed -n "${i}"p ${SCRIPT_DIR}/last_days) - sed -i ${i}s/${image}/$(test_image ${image})/ ${SCRIPT_DIR}/last_days - done -fi - -#kill -CONT $(pidof conky) - diff --git a/_conky/cronograph/accuweather/curr_cond b/_conky/cronograph/accuweather/curr_cond deleted file mode 100644 index f5d92e6..0000000 --- a/_conky/cronograph/accuweather/curr_cond +++ /dev/null @@ -1,5 +0,0 @@ -night -A -Clear -18 - diff --git a/_conky/cronograph/accuweather/curr_cond_raw b/_conky/cronograph/accuweather/curr_cond_raw deleted file mode 100644 index 9f2b26c..0000000 --- a/_conky/cronograph/accuweather/curr_cond_raw +++ /dev/null @@ -1,1646 +0,0 @@ - - - - Shanghai Current Weather - AccuWeather Forecast for Shanghai China - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
- - - - - - - - - - - - - - -
- -
-
- - - - - - -
- -
-
-
- - - - - -
- -
- - - -
-
- - - - - - - - - - - - -
-
- -
-
-
-
- -
-
-
- - -
- 1 - 5 of 45 days | All 45 days - -
- - -
- Next 5 Days - -
    -
  • -
    -
    -

    Today

    -

    May 10

    -
    -
    - Rain and drizzle this morning - 22°Lo 19° -
    - -
    - -
  • -
  • -
    -
    -

    Sun

    -

    May 11

    -
    -
    - Humid with heavy rain - 23°Lo 17° -
    - - more -
    - -
  • -
  • -
    -
    -

    Mon

    -

    May 12

    -
    -
    - Nice and warm with sunshine - 26°Lo 16° -
    - - more -
    - -
  • -
  • -
    -
    -

    Tue

    -

    May 13

    -
    -
    - Rather cloudy and warm - 26°Lo 18° -
    - - more -
    - -
  • -
  • -
    -
    -

    Wed

    -

    May 14

    -
    -
    - Showers around in the morning - 25°Lo 18° -
    - - more -
    - -
  • -
-
- - - - -
- - -
-
-
-
-
Light fog 19° RealFeel® 20°
- -
- -
- -
-
-

N

-

E

-

S

-

W

- -
- - -
    -
  • Humidity: 88%
  • -
  • Pressure: 1014.00 mb
  • -
  • UV Index: 4
  • -
  • Cloud Cover: 20%
  • -
  • Ceiling: 549 m
  • -
  • Dew Point: 17° C
  • -
  • Visibility: 3 km
  • -
- -
- - -
17 km/h
- -
- -
- -
- - - - -
-
-

Sunrise/Sunset

-
- - - Sunrise / Sunset Illustration - -

- Rises at - 5:03 AM - with - - 13:36 - - of sunlight, then sets at - 6:39 PM -

- -
- - -
-
-

Moonrise/Moonset

- Astronomy > -
- - - Moonrise / Moonset Illustration - -

- Rises at - 2:18 PM - with - 12:14 - of moolight, then sets at - 2:32 AM -

- -
- - - -
-
-

Temperature Summary - 10:58 AM

-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Temp (°C)
Now19°
Yesterday21°
RealFeel®20°
RealFeel® Shade18°
Wind Chill19°
Dew Point17°
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Hi / Lo
Previous 6 Hours20°
 18°
Previous 12 Hours20°
 17°
Previous 24 Hours22°
 17°
-
-
-
-
- -
-
-

Temperature History - May 10

- more Historical Weather Data > - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 TodayNormalRecord5/10/2013
High22°23°N/A24°
Low19°16°N/A18°
-
- - -
-
-

Precipitation Summary - 10:58 AM

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Amount (mm)
Previous 1 Hour0
Previous 3 Hours0
Previous 6 Hours1
Previous 9 Hours1
Previous 12 Hours1
Previous 18 Hours1
Previous 24 Hours1
-
-
- -
-
-
- -
-
-
-
-
-
- - - -
-
-
-
-
-
-
-
-
-
- Top Story -

Shanghai Weather Report

-
- - - -
-

Rainfall Tops 400 mm Near Hong Kong, More to Come

-
May 9, 2014; 10:05 PM ET
-

Hong Kong has already endured flooding rain, and more is on the way for this weekend. more >

-
-
-
-
-
-
-
-
-
-
-
-
- -
- - - - - -
- - - -
-
-
-
-
-
- -
-
-
-
- -
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
- - - -
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
- -
- - - - - - - -
- -
- - - - - - - -
- -
- - -
- - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - diff --git a/_conky/cronograph/accuweather/last_days b/_conky/cronograph/accuweather/last_days deleted file mode 100644 index 75a56d9..0000000 --- a/_conky/cronograph/accuweather/last_days +++ /dev/null @@ -1,25 +0,0 @@ -WED -12 -Showers around in the morning -25 -17 -THU -d -Mostly cloudy -26 -18 -FRI -b -Partly sunny -23 -15 -SAT -i -Cooler with rain -17 -16 -SUN -i -Periods of rain -21 -17 diff --git a/_conky/cronograph/accuweather/last_days_raw b/_conky/cronograph/accuweather/last_days_raw deleted file mode 100644 index 6ac7def..0000000 --- a/_conky/cronograph/accuweather/last_days_raw +++ /dev/null @@ -1,82 +0,0 @@ -
- Previous 5 Days - Next 5 Days - -
    -
  • -
    -
    -

    Wed

    -

    May 14

    -
    -
    - Showers around in the morning - 25°Lo 17° -
    - -
    - -
  • -
  • -
    -
    -

    Thu

    -

    May 15

    -
    -
    - Mostly cloudy - 26°Lo 18° -
    - - more -
    - -
  • -
  • -
    -
    -

    Fri

    -

    May 16

    -
    -
    - Partly sunny - 23°Lo 15° -
    - - more -
    - -
  • -
  • -
    -
    -

    Sat

    -

    May 17

    -
    -
    - Cooler with rain - 17°Lo 16° -
    - - more -
    - -
  • -
  • -
    -
    -

    Sun

    -

    May 18

    -
    -
    - Periods of rain - 21°Lo 17° -
    - - more -
    - -
  • -
-
- diff --git a/_conky/cronograph/accuweather/tod_ton b/_conky/cronograph/accuweather/tod_ton deleted file mode 100644 index a839d7e..0000000 --- a/_conky/cronograph/accuweather/tod_ton +++ /dev/null @@ -1,25 +0,0 @@ -TONIGHT -h -Rain and drizzle late -- -17 -SAT -e -Cloudy and breezy -21 -18 -SUN -i -Humid with heavy rain -23 -16 -MON -a -Nice and warm with sunshine -26 -16 -TUE -d -Rather cloudy and warm -26 -17 diff --git a/_conky/cronograph/accuweather/tod_ton_raw b/_conky/cronograph/accuweather/tod_ton_raw deleted file mode 100644 index 2976b86..0000000 --- a/_conky/cronograph/accuweather/tod_ton_raw +++ /dev/null @@ -1,81 +0,0 @@ -
- Next 5 Days - -
    -
  • -
    -
    -

    Tonight

    -

    May 9

    -
    -
    - Rain and drizzle late - Lo 17° -
    - -
    - -
  • -
  • -
    -
    -

    Sat

    -

    May 10

    -
    -
    - Cloudy and breezy - 21°Lo 18° -
    - - more -
    - -
  • -
  • -
    -
    -

    Sun

    -

    May 11

    -
    -
    - Humid with heavy rain - 23°Lo 16° -
    - - more -
    - -
  • -
  • -
    -
    -

    Mon

    -

    May 12

    -
    -
    - Nice and warm with sunshine - 26°Lo 16° -
    - - more -
    - -
  • -
  • -
    -
    -

    Tue

    -

    May 13

    -
    -
    - Rather cloudy and warm - 26°Lo 17° -
    - - more -
    - -
  • -
-
- -- cgit v1.2.2