Update to include authentication
This commit is contained in:
parent
69f91a2b87
commit
6459ce4c9f
@ -41,7 +41,9 @@ const twilioClient = twilio(TWILIO_SID, TWILIO_AUTH_TOKEN);
|
|||||||
|
|
||||||
async function temperatoTick() {
|
async function temperatoTick() {
|
||||||
try {
|
try {
|
||||||
const response = await request(GRAPHQL_URL, getSensorDataQuery);
|
const response = await request(GRAPHQL_URL, getSensorDataQuery, {}, {
|
||||||
|
'authorization': process.env.AUTH,
|
||||||
|
});
|
||||||
|
|
||||||
if (response.getSensorData.temperato < SET_POINT && response.getSensorData.temperato >= EARLY_WARNING) {
|
if (response.getSensorData.temperato < SET_POINT && response.getSensorData.temperato >= EARLY_WARNING) {
|
||||||
numberOfEarlyTicks++;
|
numberOfEarlyTicks++;
|
||||||
|
Loading…
Reference in New Issue
Block a user