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 

Timezone calculator

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
BigToe
Halfop


Joined: 30 Dec 2010
Posts: 99

PostPosted: Sun Dec 08, 2013 12:45 pm    Post subject: Timezone calculator Reply with quote

Hello

My request is for a timezone converter/retriever, using timeanddate.com if thats possible.

1. When a user types !calc GMT the script will retrieve the GMT time in the following format: "The current GMT time is: hh/mm/ss on dd/mm/yyyy"

* This will work for all major timezones, such as UTC, CET and so on.

2. A user can calculate the difference between a certain timezone and his timezone:

!calc 13:00 GMT in Thailand

Script out:

"When it is 13:00 GMT it will be 18:00 in Thailand"

Please?
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Mon Dec 09, 2013 2:29 am    Post subject: Reply with quote

In order to pull out results from the page you mentioned above you would need an account to legally use it's API and that's quite (ridiculously) expensive. Sure, one could also do a script to parse that web page, but requires a tone of work and at some point they might change the layout or simply ban your IP. Very Happy

So... google for an alternative. Smile
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
BigToe
Halfop


Joined: 30 Dec 2010
Posts: 99

PostPosted: Mon Dec 09, 2013 3:31 am    Post subject: Reply with quote

Hi, yeah that is ridicules, sorry, I had no idea.

How about these alternatives:

1. Worldtimeserver
2. Timezoneconverter
3. worldtimebuddy
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Mon Dec 09, 2013 6:14 am    Post subject: Reply with quote

Hi,

from what I've seen this types of sites offer a free account that's ad-supported and it's limited in functions and a "premium" account with access to it's API (if they have one). Also, they all have a TOS (short of Terms Of Service) with that you agree upon continuing visiting their site that states you aren't allowed to use any sort of program/script to fetch any information off their site, hence the fees.

Bottom line is that you won't find what the features you are looking for without paying anything, even if you ignore what's written in it's TOS (see IMDB script for instance) and go ahead with parsing a site, mainly cos have limited functions.

The only remaining solution would be creating your own database with timezone for each city, country or whatever you want and take things from there onwards.
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
BigToe
Halfop


Joined: 30 Dec 2010
Posts: 99

PostPosted: Wed Dec 11, 2013 10:42 am    Post subject: Reply with quote

Can it use http://www.wolframalpha.com?

Theres lots of stuff it can calculate from there, including timezones
Back to top
View user's profile Send private message
heartbroken
Op


Joined: 23 Jun 2011
Posts: 106
Location: somewhere out there

PostPosted: Wed Dec 11, 2013 11:21 am    Post subject: Reply with quote

BigToe wrote:
Can it use http://www.wolframalpha.com?

Theres lots of stuff it can calculate from there, including timezones


Wolframagaz by MenzAgitat : http://scripts.eggdrop.fr/details-Wolframagaz-s144.html
_________________
Life iS Just a dReaM oN tHE wAy to DeaTh
Back to top
View user's profile Send private message
BigToe
Halfop


Joined: 30 Dec 2010
Posts: 99

PostPosted: Wed Dec 11, 2013 11:33 am    Post subject: Reply with quote

Thanks, but I need an API key and that seems to cost at least $150 a year, so thats not good either
Back to top
View user's profile Send private message
heartbroken
Op


Joined: 23 Jun 2011
Posts: 106
Location: somewhere out there

PostPosted: Wed Dec 11, 2013 11:51 am    Post subject: Reply with quote

Code:
GET STARTED FOR FREE

Sign up for a free development account. Immediate access up to 2000 non-commercial API calls per month.
i just sign up and i get my "key" ..
and tested on my eggdrop1.8 and its working without any problem at all...
_________________
Life iS Just a dReaM oN tHE wAy to DeaTh
Back to top
View user's profile Send private message
BigToe
Halfop


Joined: 30 Dec 2010
Posts: 99

PostPosted: Wed Dec 11, 2013 11:53 am    Post subject: Reply with quote

Signed up where, for the trial? can you link me to wherever you signed up please?
Back to top
View user's profile Send private message
heartbroken
Op


Joined: 23 Jun 2011
Posts: 106
Location: somewhere out there

PostPosted: Wed Dec 11, 2013 12:05 pm    Post subject: Reply with quote

Code:
    ############################################################################
   # CONFIGURATION
    ############################################################################

   # Clé d'API
   # Pour obtenir gratuitement une clé d'API : http://products.wolframalpha.com/api/
   variable API_key "XXXXXX-XXXXXXXXXX"


go in that URL and you gonna see there :
Code:
V 2.0 JUST RELEASED!

GET STARTED FOR FREE

Sign up for a free development account. Immediate access up to 2000 non-commercial API calls per month.
click on "SIGN UP" ..when your account created click on "Get an AppID" done...
_________________
Life iS Just a dReaM oN tHE wAy to DeaTh
Back to top
View user's profile Send private message
BigToe
Halfop


Joined: 30 Dec 2010
Posts: 99

PostPosted: Wed Dec 11, 2013 12:49 pm    Post subject: Reply with quote

You're awesome! thanks!
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 Requests 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