Remove debug
This commit is contained in:
parent
24bfe1b97c
commit
fb4e4786a0
1
index.js
1
index.js
@ -12,7 +12,6 @@ function getCurrentDate() {
|
|||||||
|
|
||||||
async function fetchCurrentKwh() {
|
async function fetchCurrentKwh() {
|
||||||
const url = `https://odegdcpnma.execute-api.eu-west-2.amazonaws.com/development/prices?dno=19&voltage=LV&start=${getCurrentDate()}&end=${getCurrentDate()}`;
|
const url = `https://odegdcpnma.execute-api.eu-west-2.amazonaws.com/development/prices?dno=19&voltage=LV&start=${getCurrentDate()}&end=${getCurrentDate()}`;
|
||||||
console.log(url);
|
|
||||||
const response = await axios.get(url);
|
const response = await axios.get(url);
|
||||||
const json = response.data;
|
const json = response.data;
|
||||||
const baseCost = json.data.data[0].Overall;
|
const baseCost = json.data.data[0].Overall;
|
||||||
|
Reference in New Issue
Block a user