Go to file
Will Bradley cdc58cd438 Initial commit 2023-02-11 17:34:19 -08:00
src Initial commit 2023-02-11 17:34:19 -08:00
util Initial commit 2023-02-11 17:34:19 -08:00
views Initial commit 2023-02-11 17:34:19 -08:00
.gitignore Initial commit 2023-02-11 17:34:19 -08:00
LICENSE Initial commit 2023-02-11 17:34:19 -08:00
README.md Initial commit 2023-02-11 17:34:19 -08:00
package-lock.json Initial commit 2023-02-11 17:34:19 -08:00
package.json Initial commit 2023-02-11 17:34:19 -08:00
tsconfig.json Initial commit 2023-02-11 17:34:19 -08:00

README.md

Twilio Time & Temperature in Typescript

Make your own Time and Temperature phone number!

A rewrite of https://gitlab.com/zyphlar/twilio-time-and-temperature in Typescript.

Prerequisites

  • A Twilio account
  • NodeJS 18.x
  • Ideally, AWS Lambda for hosting, but not required

Configuration/Running/Building

  • Copy util/parser.orig.ts to util/parser.ts and edit it to match your desired Twilio phone numbers and locales.
  • For easy dev, run npm run dev-build-start.
  • Access time-temp.php to ensure it's working (should generate Twilio-compatible XML aka TwiML.)

Deployment

  • To deploy to AWS Lambda, run npm run build and upload dist/index.zip to a new Lambda function.
  • Set your Twilio phone number(s) to send an HTTP POST WebHook to the Lambda function.
  • Call the number to test!