############################################################### ## WunderWeather version 5.03 04/12/2017 ## ## Original Script by (lily@disorg.net) ## ## Version 5.0+ updates by SpiKe^^ www.mytclscripts.com ## ## ## ## -> NEW IN VERSION 5.03 <- ## ## - Users can now set/save their default weather location. ## ## example: !w set miami, fl ## ## To use that saved weather location, just type: !w ## ## Does Not use the Eggdrop user file (saves to a file) ## ## - Added metric conversion of most forecast strings. ## ## - Script now allows multiple public weather triggers. ## ## ## ################## - 5.0+ Version History - ################### ## VERSION 5.01 - 28/10/2017 ## ## - All processes and globals are now in a namespace ## ## - Replaced weather forecast (removed by Kiely Allen) ## ## - Replaced metric setting (removed by Kiely &/or David) ## ## - Added 3 new settings for removing colors and/or bolds ## ## - Added Throttle Users - Thanks to user & speechles ## ############################################################### # Lilys Simple Weather (lily@disorg.net) # International Weather script for Eggdrop. # Displays in both F/C and MPH/KPH # Will return weather from www.wunderground.com # Requires TCL8.0 or greater # Has been tested on Eggdrop 1.8.0 and 1.6.21 # You must ".chanset #channel +weather" for each chan # you wish to use this in. # Usage: !w <input> # Input can be <zip> <city, st> <city, country> <airport code> <pws> # To use PWS: !w pws:yourwundergroundpws # VERSION 4.0 - output string rewrite # VERSION 4.2 - http::cleanup, agent string update # VERSION 4.3 - Single tag change in mobile.wunderground source # (first in 4-ish years). # VERSION 4.4 - fixed no windm var bug. # VERSION 4.5 - Single tag change in mobile.wunderground source # for forecast. # VERSION 4.6 - Made default scale configurable # VERSION 4.6+ - Edits/Updates by Kiely Allen and David Moore # Edited Feb 01, 2014 - Kiely Allen: # - Removed Forecast (may tidy up output later and add it again) # - Added Barometer/Pressure (Rising & Falling) # - Added Windchill & Fixed Output Tidyness # Edited Feb 04, 2014 - David Moore: # - Color Changing Temperature & Aliases # - Don't Show Windchill If There Is None # Edited Feb 09, 2014 - Kiely Allen/David Moore # - Added Wind Gust, Cleaned Up Code, Fixed Multiple Choices Bug # Edited Feb 10, 2014 - David Moore # - Don't show windchill if $windcf/$windcc is <0.5F than $tempf # Wind would often be 'calm' and windchill would show 0.1-0.5F± # Edited Feb 13, 2014 - Kiely Allen/David Moore # - Remove metric related config checks, all output includes # both imperial and metric. # - Don't show windchill if windchill is higher than $tempf, # windchills under 1F of $tempf are insignificant # Edited Feb 14, 2014 - Kiely Allen # - Removed custom !ws as it didn't work as exoected, # (need to fix missing $windgm error) # Edited Jun 12, 2014 - Kiely Allen # - Fixed $color extending to all text after $tempf with \003 # VERSION 4.7 - Edits/Updates made by SpiKe^^ - Oct 12, 2017 # Fixed two display issues with "Wind: ...gusting to..." # - Added code to hide wind gusting string if have none. # ( hides this: gusting to 0.0MPH (0.0KPH) ) # - Fixed a color-code issue in the display string used # when showing "Wind: ...gusting to..." #################################################################### package require http setudef flag weather