Enter forum description here ...
+10

API call with oauth1 authorization

Pascal Platteel 6 years ago in Devices / Http updated by KayH 12 months ago 1

When will Comfortclick support API calls with OAuth1 or OAuth2 authorization? More and more Providers require this kind of authorization.

+5

NetAtmo weather station and Welcome integration

Rait Lotamõis 8 years ago in Devices / Http updated by ComfortClick ComfortClick 3 years ago 22

I'm so happy about getting my NetAtmo integration working, that I wanted to share it with the rest of you people.


This is the device itself


All you need to do is enter the values for strings in the "Settings" section of the device, and you will immediately get the values from one indoor and one outdoor module (which is the typical starter package setup.)  If you have more stations and/or modules then you can easily access them by just duplicating the existing values under the "Weather Station" query and changing the instance number in their "Token name." 


For example: default indoor temperature value = body.devices[0].dashboard_data.Temperature

indoor temperature value for next weather station = body.devices[1].dashboard_data.Temperature


and for modules:


temperature of first module of first station = body.devices[0].modules[0].dashboard_data.Temperature

secondary module of first station = body.devices[0].modules[1].dashboard_data.Temperature


I've also included a WIP section for the NetAtmo Welcome camera. I have yet to figure out how to track persons per name, since their position in the table is always changing.


+3

OpenAI

Jürgen Jürgenson 2 years ago in Devices / Http updated by Pedro Jorge 6 months ago 8

It's year 2023, the AI bots will take over the "world" so here is a template for it for bOS too...Kodu-Http (OpenAI) (1.2).bos

Right now it works just as a outdated google search with better logic or smth. Somehow the image generator crashes the http driver. Remember everything is in beta.

To get it working you need to make a account for OpenAI and generate your API key.

1. insert it here - for both completions and image generator commands YOUR_KEY.

Image 4432

2. You can ask the AI your question and it should respond. Made a TTS for it's  answers too so its extra creepy.

Image 4434

FYI it's not as good as the web page bot - for longer answers sometimes it doesn't give out the full info and I've seen that some of codes may go missing. In theory you can make it give you suggestions automatically too. If it gives you a BadRequest error see if the input is all in one line. It does not like it when some text is on a new line.

Happy new year!

+3

DAIKIN AC Units controlled via Wi-Fi

Ghita Laurentiu 4 years ago in Devices / Http updated by Claudiu Ghisoiu 2 years ago 7

Hello everybody,

I've managed to integrate my DAIKIN AC units (Wi-Fi connected) in bOS so I can control them easily and use them in any scene. 

The only thing that you need is to change the IP to match the IP of your units. Hope you enjoy it. Feel free to ask if is something that does not work as you wish. 


Daikin AC Unit.bos

All the best,

Laurentiu

+3
Under review

RegEx Parsec

Marco Magnani 6 years ago in Devices / Http updated 6 years ago 5

Dear,

I try to use RegEx to collect some value data of my weather station (WS) from an HTML page. Unfortunately, the weather station doesn’t support API or XML, so from Http Device I import with success the WS html page in text and after I use RegEx to parsec it

The problem is that the RegEx implemented in bOS seams don’t manage the Capturing Group (in the picture is the $1) but only the matched string.

What I did was to select a specific part of the html imported page (the highlighted in the picture in green) and after extract the number 51 that is the value that I need to collect and associate to the integer variable in bOS as reported in the piture

Due to the WS uses almost the same html code to provide other sensors values ( e.g. for Outdor temp: <td bgcolor="#EDEFEF"><input name="outTemp" disabled="disabled" type="text" class="item_2" style="WIDTH: 80px" value="26.7" maxlength="8"></td>

I had to select the part of html code that contains the specific value number that I need to collect and use the capturing group to extract from the selected html code part the sensor value, but this regex sentence in bOS it seams doesn’t work

Can you help me to manage this issue or implement in bOS a way to manage the Capturing Group, please?


Marco

Image 1486


+2
Under review

Unable to handle data from Json array

Pascal Platteel 6 years ago in Devices / Http updated by Sebastian Salmhofer 5 years ago 3

When using the http driver, I am able to connect to an API and process the Json data. For example:

{

       "id": 60662,

       "country": "NL",

        "main": true

}


But when the data is returned in a Json array, the data cannot be parsed! For example, the folowing respons cannot be handled by Comfortclick:


[

  {

       "id": 60662,

       "country": "NL",

        "main": true

   }

]


or


[

  {

       "id": 60662,

       "country": "NL",

        "main": true

   },

  {

       "id": 906428

       "country": "UK",

        "main": false

   }

]


When will support for Json array's be implemented? A lot of sites are returning Json data within an array nowedays.


Or is there an other workarround to process Json data within an array?

+2

Interfacing with Resol VBus using Basic HTTP

Scott White 7 years ago in Devices / Http updated 7 years ago 0

I have ComfortClick interfaced to my KNX devices but I would like to also link to my Solar Controller.  The controller is a Resol Deltsol MX  http://www.resol.de/index/produktdetail/kategorie/1/id/69/sprache/en connected to the Resol DL2 Dataloger http://www.resol.de/index/produktdetail/kategorie/2/id/12/sprache/en


All Resol and compatible controllers use the VBus and their are a variety of ways to connect to it.  You can get raw VBus over TCP by telneting to port 7053 of any device on the VBus with an Ethernet interface (see here https://danielwippermann.github.io/resol-vbus/vbus-over-tcp.html) for example.  This lets you issue commands as well as read data.


Initially I am just trying to read data from the bus by using the JSON Data Download API https://danielwippermann.github.io/resol-vbus/dlx-data-download-api.html


If I connect to my device on the following URL I get a JSON formatted response


http://dl2/dlx/download/live?sessionAuthUsername=admin&sessionAuthPassword=password


I am trying to read the temperature that is available as "value" in the following snipit


        "headersets" : [
        {
                "timestamp" : 1506413326.784000,
                "packets" : [
                {
                        "header_index" : 0,
                        "timestamp" : 1506413311.424000,
                        "field_values" : [
                        {
                                "field_index" : 0,
                                "raw_value" : 22.900000,
                                "value" : "22.9"
                        },



Using the basic HTTP device with the the following settings I am able to read this Temp

Image 797



Image 796


Image 798


Image 799


The JSON token name is 


headersets[0].packets[0].field_values[0].raw_value

+1

Hikvision face terminal conectivity

Alexandru Dumbravă 3 months ago in Devices / Http updated 3 months ago 4
Hello! I have been trying for a few days to connect a hikvision facial recognition terminal
(ds-k1t341am) to comfort click using http. I would like to take over from this moment when he 
gives the command to unlock the door. for any command I used, it tells me that it is an 
unauthorized or invalid code as well as the status code. Does anyone have an idea how I could 
solve this problem? In Postman I tried to retrieve certain data, the only thing I managed to 
retrieve (using /ISAPI/System/deviceInfo) was the device data, but if I use this command in 
comfort click, it tells me that it is unauthorized. Thank you!

+1
Under review

Help to identify the correct token

Fabien Fuster 4 months ago in Devices / Http updated 3 months ago 7

Hello Guys,

I'm getting a new device API setup, but I'm facing an issue with a token and need help to identify my mistake.

I have the following command response data: [{"accountId":"aa1111bb-cc2d-3333-e44f-55g666h7i888","genesis":true}]

I'm looking to get the account Id value, which, according to multiple JSON path finder should be under the token : [0].accountId

Image 4982

However, the value remains desperately empty :

Image 4983

Any idea about the possible issue ? 

I've already tried with [].accountId and accountId, but same result

Thanks in advance for any tip

+1

Run bOS functions with Microsoft Power Automate

Ricardo Pinto | visiontech pt 2 years ago in Devices / Http updated 2 years ago 1

Hello everyone,

There a bunch of times, where I'm sitting at the office in my workstation, and I need to turn on the office table light.

I could:

  1. Move my ass and reach to the office entrance, and push the KNX button
  2. Pick up the phone, open the bOS app and navigate into the office room to turn on the light
  3. Open the bOS Windows app and do exactly the same

But honestly I was looking for a quicker way to turn on/off the office light while I'm at the computer.

So I opened Microsoft Power Automate, and created two flows to work with bOS RPC API:

  • One flow to turn ON the light; And a shortcut to fire it up (CTRL+SHIFT+L)
  • One flow to turn OFF the light; And a shortcut to fire it up (CTRL+SHIFT+D)

And that's it! Now I can quickly turn on/off the office table light while I'm working, without having to open the bOS apps, by using the bOS RPC API and Microsoft Power Automate.

Lazy asses, you can thank me later :D

Best regards

Ricardo Pinto