| View previous topic :: View next topic |
| Author |
Message |
Gordon Voice
Joined: 04 Apr 2007 Posts: 34
|
Posted: Thu Jul 02, 2009 1:38 pm Post subject: |
|
|
hi, somewhere i saw this output/theme for the weather..
does it use this script?
| Quote: | Troy, Michigan -- 1:05 PM EDT Updated: 1:05 PM EDT on July 02, 2009
Conditions: 64.3°F / 17.9°C | Partly Cloudy
Humidity: 77% Dew Point: 57°F / 14°C
Pressure: 29.79in / 1008.7hPa (Steady) Wind: Calm |
|
|
| Back to top |
|
 |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
Posted: Mon Aug 17, 2009 1:08 am Post subject: |
|
|
no, that's Weather TCL by DragnLord _________________ Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl |
|
| Back to top |
|
 |
kisser Voice
Joined: 20 Feb 2010 Posts: 7
|
Posted: Wed Sep 29, 2010 6:52 am Post subject: |
|
|
and this?
| Code: | <@KiSsEr> !weather Saudi Arabia
<@Lebanese> Multiple Results Found: Abha; Al Ahsa; Al Baha; Al Qaysumah; Al-Hada; Al-Jouf; Al-Khafji</a></td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td title="Add This Location to Your Favorite Cities"><a href="/php/editfavs.php?addfav=00000.40380"><img src="http://icons-ecast.wxug.com/graphics/wu2/favsBarSave.png" width="48" height="13" alt="Add to My Favorites" /></a></td></tr><tr><td><a
<@Lebanese> href="/global/stations/40445.html">Al-Kharj; Al-Khusaria; Al-Qunfudah</a></td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td title="Add This Location to Your Favorite Cities"><a href="/php/editfavs.php?addfav=00000.41080"><img src="http://icons-ecast.wxug.com/graphics/wu2/favsBarSave.png" width="48" height="13" alt="Add to My Favorites" /></a></td></tr><tr><td><a href="/global/stations/40357.html">Arar; Bisha; Dammam
<@Lebanese> King Fahd; Dawadmi; Dhahran; Gassim; Gizan; Guriat; Hafr Al-Batin; Hail; Hufuf; Jeddah; Khamis Mushait; Khayber; King Fahad Airport; King Khaled; Layla; Madinah; Makkah; Muwaih; Najran; Obaylah</a></td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td title="Add This Location to Your Favorite Cities"><a href="/php/editfavs.php?addfav=00000.41014"><img src="http://icons-ecast.wxug.com/graphics/wu2/favsBarSave.png"
<@Lebanese> width="48" height="13" alt="Add to My Favorites" /></a></td></tr><tr><td><a href="/global/stations/40362.html">Rafha; Riyadh; Sharurah; Shawalah</a></td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td title="Add This Location to Your Favorite Cities"><a href="/php/editfavs.php?addfav=00000.41016"><img src="http://icons-ecast.wxug.com/graphics/wu2/favsBarSave.png" width="48" height="13" alt="Add to My Favorites"
<@Lebanese> /></a></td></tr><tr><td><a href="/global/stations/40375.html">Tabuk; Taif; Tayma</a></td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td title="Add This Location to Your Favorite Cities"><a href="/php/editfavs.php?addfav=00000.40376"><img src="http://icons-ecast.wxug.com/graphics/wu2/favsBarSave.png" width="48" height="13" alt="Add to My Favorites" /></a></td></tr><tr><td><a href="/global/stations/40356.html">Turaif;
<@Lebanese> Uqlat Air Station Suqur</a></td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td title="Add This Location to Your Favorite Cities"><a href="/php/editfavs.php?addfav=00000.40432"><img src="http://icons-ecast.wxug.com/graphics/wu2/favsBarSave.png" width="48" height="13" alt="Add to My Favorites" /></a></td></tr><tr><td><a href="/global/stations/41061.html">Wadi Al Dawasser; Wejh; Yenbo |
_________________ •°o.O Wµ¥ ƒîgµT tø LìvÈ µøm¥ îƒ wÊ Øñ£ÿ £îvìñ tÕ ÐïÊ O.o°• |
|
| Back to top |
|
 |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
Posted: Sun Oct 03, 2010 9:20 am Post subject: |
|
|
yeah I get the same thing on this search string
| Quote: | [09:18:21] <@spithash> !weather Saudi Arabia
[09:18:24] <@nagger> Multiple Results Found: Abha; Al Ahsa; Al Baha; Al Qaysumah; Al-Hada</a></td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td title="Add This Location to
Your Favorite Cities"><a href="/php/editfavs.php?addfav=00000.41035"><img src="http://icons-ecast.wxug.com/graphics/wu2/favsBarSave.png" width="48" height="13" alt="Add
to My Favorites" /></a></td></tr><tr><td><a href="/global/stations/40361.html">Al-Jouf;
[09:18:25] <@nagger> Al-Khafji</a></td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td title="Add This Location to Your Favorite Cities"><a
href="/php/editfavs.php?addfav=00000.40380"><img src="http://icons-ecast.wxug.com/graphics/wu2/favsBarSave.png" width="48" height="13" alt="Add to My Favorites"
/></a></td></tr><tr><td><a href="/global/stations/40445.html">Al-Kharj; Al-Khusaria; Al-Qunfudah</a></td><td> </td><td> </td><td> </td><td>
[09:18:26] <@nagger> </td><td> </td><td> </td><td title="Add This Location to Your Favorite Cities"><a href="/php/editfavs.php?addfav=00000.41080"><img
src="http://icons-ecast.wxug.com/graphics/wu2/favsBarSave.png" width="48" height="13" alt="Add to My Favorites" /></a></td></tr><tr><td><a
href="/global/stations/40357.html">Arar; Bisha; Dammam King Fahd; Dawadmi; Dhahran; Gassim; Gizan; Guriat; Hafr Al-Batin; Hail; Hufuf; Jeddah; Khamis Mushait; Khayber;
[09:18:30] <@nagger> King Fahad Airport; King Khaled; Layla</a></td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td title="Add This Location to Your Favorite Cities"><a
href="/php/editfavs.php?addfav=00000.41010"><img src="http://icons-ecast.wxug.com/graphics/wu2/favsBarSave.png" width="48" height="13" alt="Add to My Favorites"
/></a></td></tr><tr><td><a href="/global/stations/40430.html">Madinah; Makkah; Muwaih; Najran; Obaylah</a></td><td>
[09:18:35] <@nagger> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td title="Add This Location to Your Favorite Cities"><a href="/php/editfavs.php?addfav=00000.41014"><img
src="http://icons-ecast.wxug.com/graphics/wu2/favsBarSave.png" width="48" height="13" alt="Add to My Favorites" /></a></td></tr><tr><td><a
href="/global/stations/40362.html">Rafha; Riyadh; Sharurah; Shawalah</a></td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td
[09:18:40] <@nagger> title="Add This Location to Your Favorite Cities"><a href="/php/editfavs.php?addfav=00000.41016"><img src="http://icons-ecast.wxug.com/graphics/wu2/favsBarSave.png"
width="48" height="13" alt="Add to My Favorites" /></a></td></tr><tr><td><a href="/global/stations/40375.html">Tabuk; Taif; Tayma</a></td><td> </td><td> </td><td>
</td><td> </td><td> </td><td> </td><td title="Add This Location to Your Favorite Cities"><a
[09:18:45] <@nagger> href="/php/editfavs.php?addfav=00000.40376"><img src="http://icons-ecast.wxug.com/graphics/wu2/favsBarSave.png" width="48" height="13" alt="Add to My Favorites"
/></a></td></tr><tr><td><a href="/global/stations/40356.html">Turaif; Uqlat Air Station Suqur</a></td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td
title="Add This Location to Your Favorite Cities"><a href="/php/editfavs.php?addfav=00000.40432"><img
[09:18:50] <@nagger> src="http://icons-ecast.wxug.com/graphics/wu2/favsBarSave.png" width="48" height="13" alt="Add to My Favorites" /></a></td></tr><tr><td><a
href="/global/stations/41061.html">Wadi Al Dawasser; Wejh; Yenbo
|
I never had any other problems with the script though
EDIT:
OK WELL....
| Quote: | [09:21:53] <@spithash> !wz pakistan
[09:21:56] <@nagger> Multiple Results Found: Badin; Bahawalnagar; Bahawalpur; Balakot; Bar Khan; Battal</a></td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><t
This Location to Your Favorite Cities"><a href="/php/editfavs.php?addfav=00000.41531"><img src="http://icons-ecast.wxug.com/graphics/wu2/favsBarSave.png"
height="13" alt="Add to My Favorites" /></a></td></tr><tr><td><a href="/global/stations/41518.html">Bunji;
[09:21:57] <@nagger> Cherat; Chhor; Chillas; Chitral; Dal Bandin; Dera Ghazi Khan</a></td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td title="Add This Loca
Favorite Cities"><a href="/php/editfavs.php?addfav=00000.41652"><img src="http://icons-ecast.wxug.com/graphics/wu2/favsBarSave.png" width="48" height="13
My Favorites" /></a></td></tr><tr><td><a href="/global/stations/41624.html">Dera Ismail Khan; Dir; Drosh;
[09:21:59] <@nagger> Faisalabad; Faisalabad Airport</a></td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td title="Add This Location to Your Favorite Cities">
href="/php/editfavs.php?addfav=00000.WOPFA"><img src="http://icons-ecast.wxug.com/graphics/wu2/favsBarSave.png" width="48" height="13" alt="Add to My Fav
/></a></td></tr><tr><td><a href="/global/stations/41516.html">Gilgit; Hyderabad; Islamabad; Jacobabad; Jhelum; Jiwani;
[09:22:02] <@nagger> Kakul; Kalat; Karachi; Khanpur; Khuzdar; Kohat; Lahore; Lahore City; Mianwali; Multan; Murree; Nawabshah; Nokkundi; Pad Idan; Panjgur; Parachinar; Pasni;
Quetta</a></td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td title="Add This Location to Your Favorite Cities"><a
href="/php/editfavs.php?addfav=00000.41661"><img src="http://icons-ecast.wxug.com/graphics/wu2/favsBarSave.png" width="48" height="13" alt="Add
[09:22:07] <@nagger> to My Favorites" /></a></td></tr><tr><td><a href="/global/stations/41660.html">Quetta Airport; Risalpur; Rohri; Saidu Sharif; Sargodha; Sialkot; Sibi; Sk
Zhob |
_________________ Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl |
|
| Back to top |
|
 |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Fri Jan 21, 2011 8:28 pm Post subject: |
|
|
Looks like wunderground.com made changes again cause none of the weather scripts display the temp now.
Anyone else? |
|
| Back to top |
|
 |
Trixar_za Op

Joined: 18 Nov 2009 Posts: 143 Location: South Africa
|
Posted: Sat Jan 22, 2011 1:28 am Post subject: |
|
|
Me too, but this is the wrong place to mention this. This script uses google weather instead. _________________ http://www.trixarian.net/Projects |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Sat Jan 22, 2011 10:56 am Post subject: |
|
|
| Trixar_za wrote: | | Me too, but this is the wrong place to mention this. This script uses google weather instead. |
Sorry you lost me there for a second.. which script uses google weather?
| Code: |
#---------------------------------------------------------------------#
# incith:weather v2.8p #
# #
# retrieves weather and forecast data from www.wunderground.com #
|
I have always used DragonLords weather script but it hasn't been updated anymore unless I am looking in the wrong spot  |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sat Jan 22, 2011 12:03 pm Post subject: Re: BUGFIX - [SOLVED] |
|
|
Once again, here I am to make your life complete.
Can we fix it, YES WE CAN!!!
Please hold the applause.
| Quote: | <speechles> !wz ukiah, california
<sp33chy> Ukiah, California (39.2°N/123.2°W); Updated: 6:56 AM PST (January 22, 2011); Conditions: Clear; Temperature: 39°F (4°C); High/Low: 68/36°F (20/2°C); UV: 0/16; Humidity: 96%; Dew Point: 38°F (3°C); Pressure: 30.06 in/1018 hPa; Wind: NNW at 4 MPH (6 KPH) |
This is NOT "Google Weather" by HM2K. He has his own thread.
This is NOT "Weather" by Dragonlord. He has his own thread.
This thread is ONLY for "Weather" by Incith.
Incith:Weather 2.8q
The best weather script available for eggdrop, period. _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Sat Jan 22, 2011 12:45 pm Post subject: |
|
|
Thanks speechles  |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sun Jan 23, 2011 6:02 pm Post subject: |
|
|
cache, thought you might be interested....
| Code: | # prefix results with nickname?
variable usenicks 1 |
With that new config option. It allows a reply line like this: | Quote: | <speechles> !wz
<sp33chy> speechles's weather request; Ukiah, California (39.2°N/123.2°W); Updated: 12:56 PM PST (January 23, 2011); Conditions: Clear; Temperature: 61°F (16.1°C); High/Low: 70/36°F (21/2°C); UV: 3/16; Humidity: 35%; Dew Point: 33°F (1°C); Pressure: 30.15 in/1021 hPa; Wind: Calm |
How's that?
Note: this also fixes windchill which wasn't showing before.
Incith:Weather 2.8r _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Sun Jan 23, 2011 7:57 pm Post subject: |
|
|
Thanks very much  |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Sun Jan 23, 2011 9:19 pm Post subject: |
|
|
I added %nick% in:
| Code: |
variable weather_format "%nick% %w0% %w2% %w3% %w4% %w5% %w6% %w10% %w1%"
|
To get it to work, hope that is correct way, it works.
Might want to add in:
| Code: |
# w0 - location, w1 - updated, w2 - conditions, w3 - temperature, w4 - windchill
# w5 - high/low, w6 - humidity, w7 - dew point, w8 - UV index, w9 - pressure
# w10 - wind
|
I had it set to 1, didn't work unless I added %nick% up there in the format. |
|
| Back to top |
|
 |
TopDawg Voice
Joined: 31 Jan 2011 Posts: 1
|
Posted: Mon Jan 31, 2011 2:11 pm Post subject: |
|
|
I found an error in the code that calculates F from C, its line 799 from the latest file speechles posted the link to:
it currently reads:
| Code: | | set output(tempf) [string trim [format "%.1f" [expr {9.0/5.0*($output(tempc) + 32.0)}]] ".0"] |
However it should be:
| Code: | | set output(tempf) [string trim [format "%.1f" [expr {9.0/5.0*$output(tempc) + 32.0}]] ".0"] |
F=(9/5)*C+32
C=(5/9)*(F-32)
Hope this helps anyone who might have been having issues. |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Mon Jan 31, 2011 9:49 pm Post subject: |
|
|
| TopDawg wrote: | I found an error in the code that calculates F from C, its line 799 from the latest file speechles posted the link to:
it currently reads:
| Code: | | set output(tempf) [string trim [format "%.1f" [expr {9.0/5.0*($output(tempc) + 32.0)}]] ".0"] |
However it should be:
| Code: | | set output(tempf) [string trim [format "%.1f" [expr {9.0/5.0*$output(tempc) + 32.0}]] ".0"] |
F=(9/5)*C+32
C=(5/9)*(F-32)
Hope this helps anyone who might have been having issues. |
Then the entirely corrected code block would look like this: | Code: | if {[regexp -nocase {<span class="nobr"><span class="b">(.*?)</span>(.*?)</span>} $html - output(tempf) output(tempc)]} {
set output(tempc) [string index $output(tempc) end]
if {[string equal "F" $output(tempc)]} {
set output(tempc) [format "%.1f" [expr {5.0/9.0*($output(tempf) - 32.0)}]]
if {[string match *.* $output(tempc)]} { set output(tempc) [string trim $output(tempc) ".0"] }
} else {
set output(tempc) $output(tempf)
set output(tempf) [format "%.1f" [expr {9.0/5.0*$output(tempc) + 32.0}]]
if {[string match *.* $output(tempf)]} { set output(tempf) [string trim $output(tempf) ".0"] }
}
} |
_________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
|