Testing SMS Gateways

For one of my projects I’m testing an SMS gateway, and decided it would be fun to build a useful alarm clock out of it. For those of you who know Python, you may find this funny. /dev/ttyUSB0 is my Arduino with a temperature sensor. The gateway credentials and phone numbers below are fictional placeholders. import serial import urllib2 def check_temp(): ser = serial.Serial('/dev/ttyUSB0', 9600) t = ser.readline().strip() return float(t) t = check_temp() if int(t) < 8: message = "It+is+now+%f+degrees;+time+to+get+moving." % t f = …
Read Testing SMS Gateways