News:

LATEST RELEASE:  FPP 8.1 - Download from here - https://github.com/FalconChristmas/fpp/releases/tag/8.1

+-+-

+-User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+-Site Stats

Members
Total Members: 16591
Latest: dolly
New This Month: 29
New This Week: 3
New Today: 1
Stats
Total Posts: 133602
Total Topics: 16633
Most Online Today: 94
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 2
Guests: 40
Total: 42

Integrating Twilio with Google Sheets

Started by Nufernandes, September 09, 2023, 07:15:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nufernandes

First off, thank you to the contributors on the Twilio Plugin, Love the possibilities it offers.

I have Twilio setup, and working. When I text a name to my Twilio number it sends the webhook to FPP and the name comes up on the matrix. I dont want to publicize the number, because my 16 yr old self would be leaving the light show and constantly texting the matrix...(I'm not that guy anymore). I haven't figured out a way to limit the text to one per person, so I decided to create a google Form, which I can limit by IP Address.

I have the Form set up, and the Sheet that gathers the results. In the sheet I inserted the code that is attached, and setup a trigger to execute the code when a new entry is submitted.

When I enter a name in the form, the sheet collects the response, and executes the code.
The log file shows that the request is being made to Twilio and Twilio accepted it, by returning a '200' code.
the response line seems to be blank in the log file, and the name entered in the form never comes through to the matrix, or the messaging queue.
If I text the name, it comes through right away.

I am hoping that by attaching the code and the log files here, some can see something I may be missing.

I know the FPP and Twilio settings must be correct because its working via text, I just cant get it to do the same via the webhook script in the Form.



Nufernandes

@dkulp  can you help if you have a few minutes to review the attached code?

dkulp

Gut feeling is the scope of the "var response" variable.  You are defining it within the "if" and thus I believe it's no longer set outside of there.   That said, I know little about Apps Script so I could be off.
Daniel Kulp - https://kulplights.com

Nufernandes

thanks for the suggestion, I will keep tweaking it.

Support FPP

+- Recent Topics

F16V5 WiFi by DaSarge
Today at 11:21:42 AM

Bottom of all my videos are distorted by breese
Today at 04:27:46 AM

FM Radio Not recgnized by Poporacer
October 14, 2024, 04:53:34 PM

Fresh Install on RPi Zero WH Initial WiFi Connection for Headless Configuration by Poporacer
October 14, 2024, 04:51:25 PM

Abnormal conditions Voltage to low by dkulp
October 14, 2024, 10:22:36 AM

Anyone else having FPP 8.0 issues with Remote Falcon? by JonD
October 14, 2024, 06:25:37 AM

FPP 8.2 Released! by zaicik
October 14, 2024, 05:31:01 AM

FPP Config for K16 -> Genius LR? by Poporacer
October 13, 2024, 03:24:27 PM

After Saving Cannot Upload Sequence by Poporacer
October 13, 2024, 12:05:46 PM

Multiple writes per second to fppd.log while any sequence is playing - Resolved by Poporacer
October 13, 2024, 12:01:42 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod