From 5bd17e1e32afd25de4347ae0364cbf1e9b02fde0 Mon Sep 17 00:00:00 2001 From: William Moore Date: Thu, 12 Jan 2023 03:55:23 -0600 Subject: [PATCH] Update to no longer use data store for this --- package.json | 2 +- src/index.ts | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 6f68dc6..15c1809 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "temperato", - "version": "1.0.0", + "version": "2.0.0", "description": "", "main": "src/index.ts", "module": "src/index.ts", diff --git a/src/index.ts b/src/index.ts index 8650c45..cb391ec 100644 --- a/src/index.ts +++ b/src/index.ts @@ -37,13 +37,7 @@ let numberOfEarlyTicks = 0; async function temperatoTick() { try { - const response = await fetch(ENDPOINT, { - headers: { - 'authorization': process.env.AUTH, - } - } - ); - + const response = await fetch(ENDPOINT); const data: any = await response.json(); if (data.temperature < SET_POINT && data.temperature >= EARLY_WARNING) { @@ -83,4 +77,4 @@ async function temperatoTick() { } } -setInterval(() => temperatoTick(), SLEEP_TIMER); \ No newline at end of file +setInterval(() => temperatoTick(), SLEEP_TIMER);