Fixed bug with tibber request
This commit is contained in:
parent
17026db07e
commit
12d3c80ba8
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {" +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue