This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

incith:weather (2.8p) (Dec. 18th, 2008)

Support & discussion of released scripts, and announcements of new releases.
Post Reply
G
Gordon
Voice
Posts: 35
Joined: Wed Apr 04, 2007 11:45 am

Post by Gordon »

hi, somewhere i saw this output/theme for the weather..

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
User avatar
spithash
Master
Posts: 249
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

no, that's Weather TCL by DragnLord
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
k
kisser
Voice
Posts: 7
Joined: Sat Feb 20, 2010 3:24 am

Post by kisser »

and this?

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
•°o.O Wµ¥ ƒîgµT tø LìvÈ µøm¥ îƒ wÊ Øñ£ÿ £îvìñ tÕ ÐïÊ O.o°•
User avatar
spithash
Master
Posts: 249
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

yeah I get the same thing on this search string
[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
I never had any other problems with the script though

EDIT:
OK WELL....
[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
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
User avatar
spithash
Master
Posts: 249
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

BUGFIX - [SOLVED]

Post by spithash »

And here's the solution to this annoying thing:

http://ereader.kiczek.com/incith-weather.tcl

Thanks to speechles of cource :D
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Looks like wunderground.com made changes again cause none of the weather scripts display the temp now.

Anyone else?
User avatar
Trixar_za
Op
Posts: 143
Joined: Wed Nov 18, 2009 1:44 pm
Location: South Africa
Contact:

Post by Trixar_za »

Me too, but this is the wrong place to mention this. This script uses google weather instead.
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

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: Select all

#---------------------------------------------------------------------#
# 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 :(
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Re: BUGFIX - [SOLVED]

Post by speechles »

spithash wrote:And here's the solution to this annoying thing:

http://ereader.kiczek.com/incith-weather.tcl

Thanks to speechles of cource :D
Once again, here I am to make your life complete.
Can we fix it, YES WE CAN!!!
Please hold the applause. :P
<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. :P

Incith:Weather 2.8q
The best weather script available for eggdrop, period.
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Thanks speechles :D
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

cache, thought you might be interested....

Code: Select all

    # prefix results with nickname?
    variable usenicks 1
With that new config option. It allows a reply line like this:
<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? :D

Note: this also fixes windchill which wasn't showing before.

Incith:Weather 2.8r
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Thanks very much :D
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

I added %nick% in:

Code: Select all

    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: 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
I had it set to 1, didn't work unless I added %nick% up there in the format.
T
TopDawg
Voice
Posts: 1
Joined: Mon Jan 31, 2011 2:00 pm

Post by TopDawg »

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: Select all

          set output(tempf) [string trim [format "%.1f" [expr {9.0/5.0*($output(tempc) + 32.0)}]] ".0"]
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+32
C=(5/9)*(F-32)

Hope this helps anyone who might have been having issues.
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

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: Select all

          set output(tempf) [string trim [format "%.1f" [expr {9.0/5.0*($output(tempc) + 32.0)}]] ".0"]
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+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: 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"] }
        }
      }
Post Reply