News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 16350
Latest: bweber
New This Month: 136
New This Week: 6
New Today: 0
Stats
Total Posts: 130893
Total Topics: 16202
Most Online Today: 75
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 0
Guests: 74
Total: 74

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

Join Our Live Stream! by MikeKrebs
November 28, 2023, 10:44:16 PM

controller viewed only through fpp but not IP address by robledjl
November 28, 2023, 09:22:30 PM

AC lights on arches not working by MikeKrebs
November 28, 2023, 09:08:27 PM

Controller Not working by JonD
November 28, 2023, 08:48:59 PM

SRx2 Long Range Dual SmartReceiver by K-State Fan
November 28, 2023, 07:17:40 PM

Strange problem with model testing in fpp by mlevings
November 28, 2023, 07:02:05 PM

'could not create output type bbb48string' on Pi remote no pixels mp4 video only by jtrpop
November 28, 2023, 06:26:20 PM

F16v3 not in sync with 2 Kulp K8s by CaptainMurdoch
November 28, 2023, 04:35:39 PM

Smart Receiver B last port not responding by mikelu53
November 28, 2023, 03:42:32 PM

F48v4-NS Network Light Flashing, No connection by tbone321
November 28, 2023, 03:39:25 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod