twilio-time-and-temperature/README.md

19 lines
728 B
Markdown
Raw Normal View History

2018-01-17 04:15:11 +00:00
# Twilio Time & Temperature
2018-01-17 04:05:20 +00:00
Make your own Time and Temperature phone number / sms service!
2018-01-17 04:15:11 +00:00
## 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.
2018-01-17 04:37:43 +00:00
- 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`
2018-01-17 04:15:11 +00:00
- Call/text the number to test!