Перейти к содержимому


Фотография

wz2r.tcl


  • Авторизуйтесь для ответа в теме
В этой теме нет ответов

#1 tvrsh

tvrsh

    Активный участник

  • Администратор
  • 389 сообщений
  • Пол:Мужчина
  • Город:Russian Federation, Podolsk
  • Ник в сети:tvrsh
  • Каналы:#egghelp, #3hauka, #bash.org

Отправлено 25 мая 2008 - 17:47

################################################################################
##################################
## Weather v2112 - Rosc (rosc2112 at yahoo com) Based on original code by Murf (and others)
## http://members.dandy..._2112.3.tcl.txt
## Translation & bug fix - anaesthesia /weird (elenium@bonbon.net)
## Look through the configuration section below for options.
##
## NEW OPTION: -c switch, 'set wz_default_cl' option and .cloud binding for showing clouds/visibility/ceiling data
##
################################################################################
##################################
## Tested using TCL 8.4 with eggdrop v1.6.18.
################################################################################
##################################
##
## Usage (in channel or msg):
## !wz help -- Show the help file and examples.
## !wzf <location> -- Forecasts
## !wzc <search string> -- Search for country/WMO code with plain text search.
##
## Switches:
## !wz
## -d <location> -- Set a default city, allowing user to type just '.wz'
## -d remove -- Unset default city, if set.
## -o <location> -- Long/short output toggle, opposite of $wz_long setting
## -u [i|m|c] <location> -- Imperial, Metric or Combined units
## -m <location> -- Lunar phases, Moonrise/Moonset
## -p <location> -- Precipitation records - rain and snow records (US only)
## -r <location> -- Record high/low temperatures (US only)
## -s <location> -- UV/Sunrise/Sunset/Length/Visible/Tomorrow-length
## -t <location> -- Local time for city
## -c <location> -- Clouds/Visibility/Ceiling
##
## Optional seperate bindings (enabled by default, configurable below):
## !wtime <location>
## !wsun <location>
## !wmoon <location>
## !wrecord <location>
## !wrain <location>
## !wcloud <location>
##
## <location> can be a 5-digit U.S.Zipcode, U.S. City and State (full name or 2-letter state abbreviation),
## 3-letter International Airport Code, or City and Non-US Country (full name or 2-letter WMO Code).
##
## Comma's are no longer required, and does not assume a US location (although, in a case like
## "Baltimore MD", using the abbreviation without a comma will cause it to try to look up Madiera
## Islands, so either use the full state name, or use the comma to seperate them. Using a comma will
## pass the location as-is, without doing the country_search lookup to translate abbrevs into full
## country names.)
##
## A good list of WMO codes is available at: http://www.statoids.com/wab.html (although wunderground does not
## adhere to this standard 100%)
##
################################################################################
##################################


Очень бета версия, погода в америке там не работает, перевод не полный, фаренгейты не убраны.. баги в регэкспах..
На сайте, откуда он погоду берет довольно часто изменения происходят, это может вызвать неработоспособность скрипта.
Пользуйтесь пока это возможно.

Прикрепленные файлы

  • Прикрепленный файл  wz2r.tcl   76,15К   9 Количество загрузок:

http://ircnet.su/
#egghelp @ IrcNet.Ru




Количество пользователей, читающих эту тему: 0

0 пользователей, 0 гостей, 0 анонимных