main

PHP & MySQLYadayada

#TopSecretProject – Twitter Alert for Waktu Solat

March 2, 2011 — by NeoTech3

Memperkenalkan the so-called #TopSecretProject lah. It’s actually a tweet alert which’ll send out tweets bila dah masuk waktu solat fardhu on daily basis. Data waktu solat fetched from JAKIM’s website http://www.e-solat.gov.my/.
It’s actually a simple PHP script connected to Twitter via OAuth, it’ll do a simple checking of current time against the data stored in MySQL database. In order to identify whether the current time is Subuh, Zuhur, etc, I did a checking based on range of time for each sets of solat fardhu using function CheckTime() written by Patrick H. (patrickh@gmail.com). Function can be found at his personal blog.

The idea is to setup twitter alerts for major towns in Malaysia. For now, I’ve started creating 5 twitter accounts to cover Kuala Lumpur, Melaka, Ipoh, Pulau Pinang, & Kuantan. From time to time, I’ll be adding the other areas as well.

Below is the list of covered areas (striked-through) & to be covered.

Feedbacks are welcomed.

  1. WP Kuala Lumpur
  2. Melaka
  3. Ipoh
  4. Pulau Pinang
  5. Kuantan
  6. Kuala Terengganu
  7. Kota Kinabalu
  8. Perlis
  9. Johor Bahru
  10. Kota Bharu
  11. Alor Setar
  12. Kuching
  13. Labuan
  14. Seremban

Credits to @raficyber & @dewmandew for their help.

3 comments

  • raficyber

    March 3, 2011 at 12:23 am

    bos nnt dah siap semua saya nak copy letak kat blog saya yer.
    Tq

    Reply

  • od3n

    August 17, 2011 at 1:42 pm

    salam,

    bleh share x f unction CheckTime() tu? link reference broken.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *