import schedule
import time
import sendmessage
import location
import getweather


def job():
	ip = location.get_ip()
	lat, lon = location.get_location(ip)
	weather = getweather.get_weather(lat, lon)

	msg = sendmessage.create_message(weather)
	t_phone, m_phone = sendmessage.phone_numbers()
	sendmessage.send_message(t_phone, m_phone, msg)
	print 'message sent'
	return


def main():
	'''schedule.every().day.at("07:31").do(job, 'job running')

	while True:
		schedule.run_pending()
		time.sleep(60)'''
	job()

if __name__ == "__main__":
	main()
@@ -379,19 +379,16 @@
 ain():%0A%09
-'''
 schedule
@@ -409,12 +409,12 @@
 t(%220
-7:31
+8:00
 %22).d
@@ -494,18 +494,10 @@
 (60)
-'''%0A%09job()
+%0A%09
 %0A%0Aif
@@ -524,12 +524,13 @@
 __%22:%0A%09main()
+%0A

enable scheduling of task