Fixed bug with tibber request

This commit is contained in:
Ziver Koc 2024-12-28 22:11:26 +01:00
parent 17026db07e
commit 12d3c80ba8

View file

@ -88,7 +88,7 @@ public class TibberController implements HalSensorController, Runnable, HalDaemo
HttpClient client = new HttpClient(HttpClient.HttpRequestType.POST);
client.setURL(TIBBER_API_ENDPOINT);
client.setHeader("Authorization", "Bearer " + HalContext.getStringProperty(CONFIG_TIBBER_TOKEN));
client.setContent("application/json");
client.setHeader("Content-Type", "application/json");
String requestQuery = "{ " +
"\"query\": \"{" +
"viewer {" +