Enter forum description here ...
0

Tibber.com API call - help with authorization.

Joachim O 7 years ago in Devices / Http updated 4 years ago 12

Hi.

I'm trying to reach my electricity company through their public API.

I'm able to use the POST field in the command to get a response but a layer of authorization is required.


Is anyone able to point me in the right direction on how to incorporate the authorization token in my call?

This call gives me a response (from their examples)

call:

{
"query": "{ viewer { name }}"
}

response:

{"data":null,"errors":[{"message":"No valid access token in request","locations":[{"line":1,"column":3}],"path":["viewer"],"extensions":{"code":"INTERNAL_SERVER_ERROR"}}]}


Documentation:

https://developer.tibber.com/docs/guides/calling-api


Any help is appreciated

0
Under review

Warning message when web browser uses HTTPS connection

Claude Pey 7 years ago in Devices / Http updated by ComfortClick Support 7 years ago 1

Hi Everyone !

When I try to connect via https, the web browser shows a warning message (SITE NOT SECURE).

Is it a meaning to avoid this warning ?

That's not user friendly for the final user.

Thanks for your help.

Claude.

0
Under review

HTTP device stopped working

Calin Birtocean 7 years ago in Devices / Http updated 7 years ago 2

Hello,

The http device stopped after few months working without any issues. Here is the debug message while trying to send the command:

Debug : 10/26/2018 19:45:41 : Devices\http : Exception : GetResponseCallbackWebException : The underlying connection was closed: An unexpected error occurred on a send. at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at BOSCommon.Drivers.BOSHttpClient.GetResponseCallback(IAsyncResult result)System.IO.IOException: Authentication failed because the remote party has closed the transport stream.
at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
at System.Net.PooledStream.EndWrite(IAsyncResult asyncResult)
at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)

The encoding is UTF8 and parser type Json. 

Same command gets executed when it is launched from google chome browser from the same server where the bOS is installed.

Could you please advise what the problem should be? 

Thanks,

Calin

0

Comfortclick API to get data from other applications

Fernando Castellar 8 years ago in Devices / Http updated by Ricardo Pinto | visiontech pt 8 years ago 5

Hello! I'm learning to use Http devices to send data to an API, but I need to do the opposite. I mean, I press a button in an external application, and I need it to send a command to ComfortClick. Is there any URL in comfortclick to get json data, or text data?

Thank you! 

0

HTTP

Dev Venba 8 years ago in Devices / Http 0

Hi,

We need to do an action wherein when anyone press the bell button on the video intercom, the lock relay ( in z wave ) gets triggered. Please assist !

0

Variable Cylic Sending of Commands

Lee Douglas 8 years ago in Devices / Http updated by Ricardo Pinto | visiontech pt 8 years ago 4

To reduce traffic, I generally set commands to send cyclically at around 5 minute intervals.

In certain circumstances, I would want to "boost" that to get 30 second responses temporarily to closely monitor conditions.

Is there a way to Send Cyclically on a variable time period?

0

I am not sure how to configure http > Boolean with url /api

n muthu N Muthu 8 years ago in Devices / Http updated by Rait Lotamõis 8 years ago 1

I am not sure how  to  configure http  > Boolean with below  url /api 

I have to pass  l1498904289859 to open window  http://192.168.2.109:8080/send?deviceMac=b4430dd11511&codeId=l1498904289859 Close window  l1498900850560 http://192.168.2.109:8080/send?deviceMac=b4430dd11511&codeId=l1498900850560

using  browser  to enter  url its working  and  programme  > set the  http request also work  

0
Under review

How to call a url from jigsaw

tech 8 years ago in Devices / Http updated by ComfortClick Support 8 years ago 1
0

IP Ping

Andy Gill 8 years ago in Devices / Http updated by Rait Lotamõis 8 years ago 1

Any ideas how we could generate a ping request to an IP from the bOS, and receive a true/false response to whether IP is live or not.

0

HTTP request stopping

Andy Gill 9 years ago in Devices / Http 0

Hi There,


I have a Http Json type that fetches meter data, I'm finding it stops fetching randomly once stopped does not come back until I change for example the encoding? it still shows as connected?

So one is this to do with timeout? if so is there a way of detecting it's happened and resetting something automatically?