Make your own Time and Temperature phone number / sms service!
Go to file
2018-01-16 21:22:42 -08:00
.gitignore Create .gitignore 2018-01-16 20:15:45 -08:00
LICENSE Initial commit 2018-01-16 20:05:20 -08:00
README.md Update README.md 2018-01-16 20:37:43 -08:00
time-temp.inc.php.dist Update time-temp.inc.php.dist 2018-01-16 21:22:00 -08:00
time-temp.php Update time-temp.php 2018-01-16 21:22:42 -08:00

Twilio Time & Temperature

Make your own Time and Temperature phone number / sms service!

Prerequisites

  • A Twilio account
  • A Weather Underground API account
  • A publicly-accessible server running PHP

Installation

  • Copy the time-temp.inc.php.dist file to time-temp.inc.php and modify with your Twilio and WUnderground details.
  • Access time-temp.php to ensure it's working (should generate XML.)
  • Set your Twilio phone number(s) to send an HTTP POST WebHook to the time-temp.php public URL.
    • To do SMS, use the ?type variable like this:
      • Voice Webhook: http://your.server.here/time-temp.php?type=voice
      • SMS Webhook: http://your.server.here/time-temp.php?type=sms
  • Call/text the number to test!