09.02.2022, 13:14
Get the date/time for the next hour in proper format:
Then decode the status data:
Code:
os.date('%Y-%m-%dT%H:00:00', os.time() + 3600)
Then decode the status data:
Code:
data = json.decode(status)
price = data.result.records[1].SpotPriceDKK
log(price)