does it use this script?
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
Code: Select all
<@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
I never had any other problems with the script though[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/wu ... arSave.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/wu ... arSave.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/wu ... arSave.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/wu ... arSave.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/wu ... arSave.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/wu ... arSave.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/wu ... arSave.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/wu ... arSave.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
[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/wu ... arSave.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/wu ... arSave.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/wu ... arSave.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/wu ... arSave.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
Sorry you lost me there for a second.. which script uses google weather?Trixar_za wrote:Me too, but this is the wrong place to mention this. This script uses google weather instead.
Code: Select all
#---------------------------------------------------------------------#
# incith:weather v2.8p #
# #
# retrieves weather and forecast data from www.wunderground.com #
Once again, here I am to make your life complete.spithash wrote:And here's the solution to this annoying thing:
http://ereader.kiczek.com/incith-weather.tcl
Thanks to speechles of cource
This is NOT "Google Weather" by HM2K. He has his own thread.<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)
Code: Select all
# prefix results with nickname?
variable usenicks 1
How's that?<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
Code: Select all
variable weather_format "%nick% %w0% %w2% %w3% %w4% %w5% %w6% %w10% %w1%"
Code: Select all
# 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
Code: Select all
set output(tempf) [string trim [format "%.1f" [expr {9.0/5.0*($output(tempc) + 32.0)}]] ".0"]
Code: Select all
set output(tempf) [string trim [format "%.1f" [expr {9.0/5.0*$output(tempc) + 32.0}]] ".0"]
Then the entirely corrected code block would look like this: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:However it should be:Code: Select all
set output(tempf) [string trim [format "%.1f" [expr {9.0/5.0*($output(tempc) + 32.0)}]] ".0"]
F=(9/5)*C+32Code: Select all
set output(tempf) [string trim [format "%.1f" [expr {9.0/5.0*$output(tempc) + 32.0}]] ".0"]
C=(5/9)*(F-32)
Hope this helps anyone who might have been having issues.
Code: Select all
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"] }
}
}