egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Earthquakes v1.1 (Egghelp Version) July 2, 2o12

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Tue Jul 03, 2012 12:11 am    Post subject: Earthquakes v1.1 (Egghelp Version) July 2, 2o12 Reply with quote

Did you feel that? You ever asked that question to anyone when the ground shook? If so... keep reading...

Quote:
<speechles> !eq
<sp33chy> USGS Earthquake: 2.1 magntiude - 7km SE of Valle Vista, California ( 6 minutes 47 seconds ago ) >> http://earthquake.usgs.gov/earthquakes/recenteqsus/Quakes/ci11131154.html
<sp33chy> USGS Earthquake: 0.5 magntiude - 9km WNW of Cobb, California ( 21 minutes 50 seconds ago ) >> http://earthquake.usgs.gov/earthquakes/recenteqsus/Quakes/nc71805755.html
<sp33chy> USGS Earthquake: 1.4 magntiude - 73km ENE of Cape Yakataga, Alaska ( 22 minutes 9 seconds ago ) >> http://earthquake.usgs.gov/earthquakes/recenteqsus/Quakes/ak10504765.html
<sp33chy> USGS Earthquake: 1.8 magntiude - 10km WNW of Cobb, California ( 28 minutes 14 seconds ago ) >> http://earthquake.usgs.gov/earthquakes/recenteqsus/Quakes/nc71805750.html
<sp33chy> USGS Earthquake: 2.2 magntiude - 12km WSW of Alberto Oviedo Mota, Mexico ( 34 minutes 6 seconds ago ) >> http://earthquake.usgs.gov/earthquakes/recenteqsus/Quakes/ci11131146.html

as well as the automation it does automatically...

<sp33chy> USGS Earthquake: 2.1 magntiude - 7km SE of Valle Vista, California ( 2 minutes 56 seconds ago ) >> http://earthquake.usgs.gov/earthquakes/recenteqsus/Quakes/ci11131154.html


The script offers a way to customize the display and pick how many to output and things. Do not change the url or the regex templates it has. This script is a modified version of an earlier scripts of mine "puh rum pum pum".

Anyways... Get the script here: Earthquakes v1.1

Also keep in mind, this script is very miminal and was created for someone who requested it via #egghelp on freenode. It is posted here so that others may enjoy it as well.

Questions? Comments? Complaints? Law suits? Feel free to post them here...
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
Get_A_Fix
Master


Joined: 07 May 2005
Posts: 206
Location: New Zealand

PostPosted: Tue Jul 03, 2012 2:32 am    Post subject: Reply with quote

Yet again, nice script.
_________________
We explore.. and you call us criminals. We seek after knowledge.. and you call us criminals. We exist without skin color, without nationality, without religious bias.. and you call us criminals.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
blake
Master


Joined: 23 Feb 2009
Posts: 201

PostPosted: Tue Jul 10, 2012 10:33 pm    Post subject: Reply with quote

Nice script thanks for sharing

do you reckon you could do this with severe weather warnings for UK USA & canada using NOAA and enviroment canada


Thanks
_________________
Blake
UKEasyHosting UKStormWatch
Back to top
View user's profile Send private message Visit poster's website
Get_A_Fix
Master


Joined: 07 May 2005
Posts: 206
Location: New Zealand

PostPosted: Sat Jul 14, 2012 3:25 pm    Post subject: Reply with quote

I was thinking of even having it announce a tsunami report, along with the earthquake info, as an update. Or, even if a tsunami is reported, and the earthquake isn't, it may be reported before or after, whatever the case, a feature like this to the current script would be adventageous.
_________________
We explore.. and you call us criminals. We seek after knowledge.. and you call us criminals. We exist without skin color, without nationality, without religious bias.. and you call us criminals.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
blake
Master


Joined: 23 Feb 2009
Posts: 201

PostPosted: Fri Jul 20, 2012 10:10 am    Post subject: Reply with quote

Hey

How do i set the bind_time to every 12 hours

I am using this along side burdy but dont want it sending to twitter every 30 minutes

Thanks
_________________
Blake
UKEasyHosting UKStormWatch
Back to top
View user's profile Send private message Visit poster's website
shadrach
Halfop


Joined: 14 Dec 2007
Posts: 69

PostPosted: Mon Mar 11, 2013 5:48 pm    Post subject: Reply with quote

Any chance this can be updated? The website has some changes and this script no longer reports as it did. It's more than a simple url correction so it's beyond my repair. tia.
Back to top
View user's profile Send private message MSN Messenger
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Mon Mar 11, 2013 8:33 pm    Post subject: Reply with quote

shadrach wrote:
Any chance this can be updated? The website has some changes and this script no longer reports as it did. It's more than a simple url correction so it's beyond my repair. tia.


Actually.. um.. it is updated (silently updated two weeks ago or so). USGS no longer offers csv updates. Instead they offer json/jsonp and more importantly atom.. YAY! So migrated the script from working with csv to atom and changed a few parsers in between and she works again.

Here is the full url again: Earthquakes v1.1
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
shadrach
Halfop


Joined: 14 Dec 2007
Posts: 69

PostPosted: Tue Mar 12, 2013 4:36 pm    Post subject: Reply with quote

Appreciated.
Back to top
View user's profile Send private message MSN Messenger
blameshift
Voice


Joined: 27 Mar 2017
Posts: 3

PostPosted: Mon Mar 27, 2017 4:27 am    Post subject: Reply with quote

can someone update this script again it was working now it's stopped Sad

Also when i type !eq i get

[March 27, 2017 06:52:02 pm] <QuakeServ> Invalid command name "zlib" ( http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_day.atom )

it doesn't announce anymore either by itself if someone can fix it please Smile i love this script it's useful
Back to top
View user's profile Send private message
Mateusandi
Voice


Joined: 08 Apr 2017
Posts: 1
Location: Amsterdam, Netherlands

PostPosted: Thu Apr 13, 2017 7:47 am    Post subject: Reply with quote

Im getting the same error unfortunately. Any simple way to fix it?
_________________
We must let go of the life we have planned, so as to accept the one that is waiting for us. Joseph Campbell
Back to top
View user's profile Send private message
plat_
Voice


Joined: 21 Sep 2017
Posts: 3

PostPosted: Fri Sep 22, 2017 12:51 am    Post subject: Reply with quote

After: package require http 2.3
Add: package require tls

Before: catch { set t [::http::geturl $::news::ary(page) -timeout 30000] } error
Add: http::register https 443 [list ::tls::socket -tls1 1]

And change the http URLs to https.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber