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);